2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 06:47:20 +08:00

feat: 取消编辑器的自动格式化功能

This commit is contained in:
2025-10-01 05:56:34 +08:00
parent f9d7de06f2
commit 78ca557131
23 changed files with 32 additions and 61 deletions

View File

@@ -59,8 +59,7 @@ defineExpose({
height="60vh"
:options="{
automaticLayout: true,
formatOnType: true,
formatOnPaste: true,
smoothScrolling: true,
wordWrap: 'on'
}"
/>

View File

@@ -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,

View File

@@ -49,8 +49,7 @@ const handleSaveConfig = () => {
mt-8
:options="{
automaticLayout: true,
formatOnType: true,
formatOnPaste: true
smoothScrolling: true
}"
/>
<n-flex>

View File

@@ -45,8 +45,7 @@ const handleSaveConfig = () => {
mt-8
:options="{
automaticLayout: true,
formatOnType: true,
formatOnPaste: true
smoothScrolling: true
}"
/>
<n-flex>

View File

@@ -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>

View File

@@ -47,8 +47,7 @@ const handleSaveConfig = () => {
mt-8
:options="{
automaticLayout: true,
formatOnType: true,
formatOnPaste: true
smoothScrolling: true
}"
/>
<n-flex>

View File

@@ -62,8 +62,7 @@ const handleSaveConfig = () => {
mt-8
:options="{
automaticLayout: true,
formatOnType: true,
formatOnPaste: true
smoothScrolling: true
}"
/>
<n-flex>

View File

@@ -47,8 +47,7 @@ const handleSaveEnv = () => {
mt-8
:options="{
automaticLayout: true,
formatOnType: true,
formatOnPaste: true
smoothScrolling: true
}"
/>
<n-flex>

View File

@@ -99,8 +99,7 @@ const handleSetRootPassword = async () => {
mt-8
:options="{
automaticLayout: true,
formatOnType: true,
formatOnPaste: true
smoothScrolling: true
}"
/>
<n-flex>

View File

@@ -75,8 +75,7 @@ const handleClearErrorLog = () => {
mt-8
:options="{
automaticLayout: true,
formatOnType: true,
formatOnPaste: true
smoothScrolling: true
}"
/>
<n-flex>

View File

@@ -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>

View File

@@ -88,8 +88,7 @@ onMounted(() => {
mt-8
:options="{
automaticLayout: true,
formatOnType: true,
formatOnPaste: true
smoothScrolling: true
}"
/>
<n-flex>

View File

@@ -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>

View File

@@ -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>

View File

@@ -66,8 +66,7 @@ const handleSaveConfig = () => {
mt-8
:options="{
automaticLayout: true,
formatOnType: true,
formatOnPaste: true
smoothScrolling: true
}"
/>
<n-flex>

View File

@@ -238,8 +238,7 @@ onMounted(() => {
mt-8
:options="{
automaticLayout: true,
formatOnType: true,
formatOnPaste: true
smoothScrolling: true
}"
/>
<n-flex>

View File

@@ -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>

View File

@@ -457,8 +457,7 @@ onMounted(() => {
mt-8
:options="{
automaticLayout: true,
formatOnType: true,
formatOnPaste: true,
smoothScrolling: true,
readOnly: true
}"
/>

View File

@@ -120,8 +120,7 @@ onMounted(() => {
mt-8
:options="{
automaticLayout: true,
formatOnType: true,
formatOnPaste: true
smoothScrolling: true
}"
/>
</div>

View File

@@ -266,8 +266,7 @@ onUnmounted(() => {
mt-8
:options="{
automaticLayout: true,
formatOnType: true,
formatOnPaste: true
smoothScrolling: true
}"
/>
</n-modal>

View File

@@ -148,8 +148,7 @@ const handleSyncTime = () => {
mt-8
:options="{
automaticLayout: true,
formatOnType: true,
formatOnPaste: true
smoothScrolling: true
}"
/>
</n-form-item>

View File

@@ -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>

View File

@@ -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>