mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 06:47:20 +08:00
feat: 取消编辑器的自动格式化功能
This commit is contained in:
@@ -59,8 +59,7 @@ defineExpose({
|
||||
height="60vh"
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true,
|
||||
smoothScrolling: true,
|
||||
wordWrap: 'on'
|
||||
}"
|
||||
/>
|
||||
|
||||
@@ -126,7 +126,8 @@ const columns: DataTableColumns<RowData> = [
|
||||
]
|
||||
|
||||
const { loading, data, page, total, pageSize, pageCount, refresh } = usePagination(
|
||||
(page, pageSize) => file.list(path.value, page, pageSize, sort.value),
|
||||
(page, pageSize) =>
|
||||
file.list(encodeURIComponent(path.value), '', false, sort.value, page, pageSize),
|
||||
{
|
||||
initialData: { total: 0, list: [] },
|
||||
initialPageSize: 100,
|
||||
|
||||
@@ -49,8 +49,7 @@ const handleSaveConfig = () => {
|
||||
mt-8
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true
|
||||
smoothScrolling: true
|
||||
}"
|
||||
/>
|
||||
<n-flex>
|
||||
|
||||
@@ -45,8 +45,7 @@ const handleSaveConfig = () => {
|
||||
mt-8
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true
|
||||
smoothScrolling: true
|
||||
}"
|
||||
/>
|
||||
<n-flex>
|
||||
|
||||
@@ -55,8 +55,7 @@ onMounted(() => {
|
||||
mt-8
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true
|
||||
smoothScrolling: true
|
||||
}"
|
||||
/>
|
||||
</n-card>
|
||||
@@ -79,8 +78,7 @@ onMounted(() => {
|
||||
mt-8
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true
|
||||
smoothScrolling: true
|
||||
}"
|
||||
/>
|
||||
</n-card>
|
||||
|
||||
@@ -47,8 +47,7 @@ const handleSaveConfig = () => {
|
||||
mt-8
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true
|
||||
smoothScrolling: true
|
||||
}"
|
||||
/>
|
||||
<n-flex>
|
||||
|
||||
@@ -62,8 +62,7 @@ const handleSaveConfig = () => {
|
||||
mt-8
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true
|
||||
smoothScrolling: true
|
||||
}"
|
||||
/>
|
||||
<n-flex>
|
||||
|
||||
@@ -47,8 +47,7 @@ const handleSaveEnv = () => {
|
||||
mt-8
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true
|
||||
smoothScrolling: true
|
||||
}"
|
||||
/>
|
||||
<n-flex>
|
||||
|
||||
@@ -99,8 +99,7 @@ const handleSetRootPassword = async () => {
|
||||
mt-8
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true
|
||||
smoothScrolling: true
|
||||
}"
|
||||
/>
|
||||
<n-flex>
|
||||
|
||||
@@ -75,8 +75,7 @@ const handleClearErrorLog = () => {
|
||||
mt-8
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true
|
||||
smoothScrolling: true
|
||||
}"
|
||||
/>
|
||||
<n-flex>
|
||||
|
||||
@@ -217,8 +217,7 @@ const handleUninstallExtension = async (name: string) => {
|
||||
mt-8
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true
|
||||
smoothScrolling: true
|
||||
}"
|
||||
/>
|
||||
<n-flex>
|
||||
@@ -246,8 +245,7 @@ const handleUninstallExtension = async (name: string) => {
|
||||
mt-8
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true
|
||||
smoothScrolling: true
|
||||
}"
|
||||
/>
|
||||
<n-flex>
|
||||
|
||||
@@ -88,8 +88,7 @@ onMounted(() => {
|
||||
mt-8
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true
|
||||
smoothScrolling: true
|
||||
}"
|
||||
/>
|
||||
<n-flex>
|
||||
|
||||
@@ -66,8 +66,7 @@ const handleSaveStorageConfig = () => {
|
||||
mt-8
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true
|
||||
smoothScrolling: true
|
||||
}"
|
||||
/>
|
||||
<n-flex>
|
||||
@@ -94,8 +93,7 @@ const handleSaveStorageConfig = () => {
|
||||
mt-8
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true
|
||||
smoothScrolling: true
|
||||
}"
|
||||
/>
|
||||
<n-flex>
|
||||
|
||||
@@ -81,8 +81,7 @@ const handleClearLog = async () => {
|
||||
mt-8
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true
|
||||
smoothScrolling: true
|
||||
}"
|
||||
/>
|
||||
<n-flex>
|
||||
@@ -109,8 +108,7 @@ const handleClearLog = async () => {
|
||||
mt-8
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true
|
||||
smoothScrolling: true
|
||||
}"
|
||||
/>
|
||||
<n-flex>
|
||||
|
||||
@@ -66,8 +66,7 @@ const handleSaveConfig = () => {
|
||||
mt-8
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true
|
||||
smoothScrolling: true
|
||||
}"
|
||||
/>
|
||||
<n-flex>
|
||||
|
||||
@@ -238,8 +238,7 @@ onMounted(() => {
|
||||
mt-8
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true
|
||||
smoothScrolling: true
|
||||
}"
|
||||
/>
|
||||
<n-flex>
|
||||
|
||||
@@ -345,8 +345,7 @@ onUnmounted(() => {
|
||||
mt-8
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true
|
||||
smoothScrolling: true
|
||||
}"
|
||||
/>
|
||||
<n-flex>
|
||||
@@ -439,8 +438,7 @@ onUnmounted(() => {
|
||||
mt-8
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true
|
||||
smoothScrolling: true
|
||||
}"
|
||||
/>
|
||||
</n-modal>
|
||||
|
||||
@@ -457,8 +457,7 @@ onMounted(() => {
|
||||
mt-8
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true,
|
||||
smoothScrolling: true,
|
||||
readOnly: true
|
||||
}"
|
||||
/>
|
||||
|
||||
@@ -120,8 +120,7 @@ onMounted(() => {
|
||||
mt-8
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true
|
||||
smoothScrolling: true
|
||||
}"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -266,8 +266,7 @@ onUnmounted(() => {
|
||||
mt-8
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true
|
||||
smoothScrolling: true
|
||||
}"
|
||||
/>
|
||||
</n-modal>
|
||||
|
||||
@@ -148,8 +148,7 @@ const handleSyncTime = () => {
|
||||
mt-8
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true
|
||||
smoothScrolling: true
|
||||
}"
|
||||
/>
|
||||
</n-form-item>
|
||||
|
||||
@@ -350,8 +350,7 @@ const onCreateListen = () => {
|
||||
height="60vh"
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true
|
||||
smoothScrolling: true
|
||||
}"
|
||||
/>
|
||||
</n-flex>
|
||||
@@ -388,8 +387,7 @@ const onCreateListen = () => {
|
||||
height="60vh"
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true
|
||||
smoothScrolling: true
|
||||
}"
|
||||
/>
|
||||
</n-flex>
|
||||
|
||||
@@ -47,8 +47,7 @@ onMounted(() => {
|
||||
mt-8
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true
|
||||
smoothScrolling: true
|
||||
}"
|
||||
/>
|
||||
<n-flex>
|
||||
@@ -68,8 +67,7 @@ onMounted(() => {
|
||||
mt-8
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true
|
||||
smoothScrolling: true
|
||||
}"
|
||||
/>
|
||||
<n-flex>
|
||||
@@ -89,8 +87,7 @@ onMounted(() => {
|
||||
mt-8
|
||||
:options="{
|
||||
automaticLayout: true,
|
||||
formatOnType: true,
|
||||
formatOnPaste: true
|
||||
smoothScrolling: true
|
||||
}"
|
||||
/>
|
||||
<n-flex>
|
||||
|
||||
Reference in New Issue
Block a user