From 31ea31dde8a149f4fc805c08e4fca4e755c36752 Mon Sep 17 00:00:00 2001 From: kailong321200875 <321200875@qq.com> Date: Wed, 15 Nov 2023 14:51:48 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=A0=BC=E5=BC=8F=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/IconPicker/src/IconPicker.vue | 4 ++-- src/components/Table/src/Table.vue | 24 +++++++++---------- src/views/Components/Table/DefaultTable.vue | 4 ++-- .../Components/Table/TableImagePreview.vue | 4 ++-- src/views/Components/Table/TreeTable.vue | 4 ++-- src/views/Components/Table/UseTableDemo.vue | 4 ++-- src/views/Example/Dialog/ExampleDialog.vue | 4 ++-- src/views/Example/Page/ExamplePage.vue | 4 ++-- src/views/Example/Page/components/Detail.vue | 4 ++-- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/src/components/IconPicker/src/IconPicker.vue b/src/components/IconPicker/src/IconPicker.vue index 3ffafd1..53ca688 100644 --- a/src/components/IconPicker/src/IconPicker.vue +++ b/src/components/IconPicker/src/IconPicker.vue @@ -30,8 +30,8 @@ const iconSize = computed(() => { return unref(size) === 'small' ? 'var(--el-component-size-small)' : unref(size) === 'large' - ? 'var(--el-component-size-large)' - : 'var(--el-component-size)' + ? 'var(--el-component-size-large)' + : 'var(--el-component-size)' }) const iconWrapStyle = computed((): CSSProperties => { diff --git a/src/components/Table/src/Table.vue b/src/components/Table/src/Table.vue index adad3b6..7fca7d7 100644 --- a/src/components/Table/src/Table.vue +++ b/src/components/Table/src/Table.vue @@ -330,12 +330,12 @@ export default defineComponent({ return children && children.length ? renderTreeTableColumn(children) : props?.slots?.default - ? props.slots.default(...args) - : v?.formatter - ? v?.formatter?.(data.row, data.column, get(data.row, v.field), data.$index) - : isImageUrl - ? renderPreview(get(data.row, v.field)) - : get(data.row, v.field) + ? props.slots.default(...args) + : v?.formatter + ? v?.formatter?.(data.row, data.column, get(data.row, v.field), data.$index) + : isImageUrl + ? renderPreview(get(data.row, v.field)) + : get(data.row, v.field) } } if (props?.slots?.header) { @@ -428,12 +428,12 @@ export default defineComponent({ return children && children.length ? renderTreeTableColumn(children) : props?.slots?.default - ? props.slots.default(...args) - : v?.formatter - ? v?.formatter?.(data.row, data.column, get(data.row, v.field), data.$index) - : isImageUrl - ? renderPreview(get(data.row, v.field)) - : get(data.row, v.field) + ? props.slots.default(...args) + : v?.formatter + ? v?.formatter?.(data.row, data.column, get(data.row, v.field), data.$index) + : isImageUrl + ? renderPreview(get(data.row, v.field)) + : get(data.row, v.field) } } if (props?.slots?.header) { diff --git a/src/views/Components/Table/DefaultTable.vue b/src/views/Components/Table/DefaultTable.vue index b06eef2..0cd50a0 100644 --- a/src/views/Components/Table/DefaultTable.vue +++ b/src/views/Components/Table/DefaultTable.vue @@ -41,8 +41,8 @@ const columns: TableColumn[] = [ cellValue === 1 ? t('tableDemo.important') : cellValue === 2 - ? t('tableDemo.good') - : t('tableDemo.commonly') + ? t('tableDemo.good') + : t('tableDemo.commonly') ) } }, diff --git a/src/views/Components/Table/TableImagePreview.vue b/src/views/Components/Table/TableImagePreview.vue index 8b3f3e1..1156943 100644 --- a/src/views/Components/Table/TableImagePreview.vue +++ b/src/views/Components/Table/TableImagePreview.vue @@ -40,8 +40,8 @@ const columns: TableColumn[] = [ {cellValue === 1 ? t('tableDemo.important') : cellValue === 2 - ? t('tableDemo.good') - : t('tableDemo.commonly')} + ? t('tableDemo.good') + : t('tableDemo.commonly')} ) } diff --git a/src/views/Components/Table/TreeTable.vue b/src/views/Components/Table/TreeTable.vue index 5ca4b53..e16f3c8 100644 --- a/src/views/Components/Table/TreeTable.vue +++ b/src/views/Components/Table/TreeTable.vue @@ -59,8 +59,8 @@ const columns = reactive([ {cellValue === 1 ? t('tableDemo.important') : cellValue === 2 - ? t('tableDemo.good') - : t('tableDemo.commonly')} + ? t('tableDemo.good') + : t('tableDemo.commonly')} ) } diff --git a/src/views/Components/Table/UseTableDemo.vue b/src/views/Components/Table/UseTableDemo.vue index 78c9dbf..b433153 100644 --- a/src/views/Components/Table/UseTableDemo.vue +++ b/src/views/Components/Table/UseTableDemo.vue @@ -82,8 +82,8 @@ const columns = reactive([ {cellValue === 1 ? t('tableDemo.important') : cellValue === 2 - ? t('tableDemo.good') - : t('tableDemo.commonly')} + ? t('tableDemo.good') + : t('tableDemo.commonly')} ) } diff --git a/src/views/Example/Dialog/ExampleDialog.vue b/src/views/Example/Dialog/ExampleDialog.vue index cec4b40..8b826de 100644 --- a/src/views/Example/Dialog/ExampleDialog.vue +++ b/src/views/Example/Dialog/ExampleDialog.vue @@ -151,8 +151,8 @@ const crudSchemas = reactive([ {data.importance === 1 ? t('tableDemo.important') : data.importance === 2 - ? t('tableDemo.good') - : t('tableDemo.commonly')} + ? t('tableDemo.good') + : t('tableDemo.commonly')} ) } diff --git a/src/views/Example/Page/ExamplePage.vue b/src/views/Example/Page/ExamplePage.vue index 459e1b4..55eb837 100644 --- a/src/views/Example/Page/ExamplePage.vue +++ b/src/views/Example/Page/ExamplePage.vue @@ -168,8 +168,8 @@ const crudSchemas = reactive([ {data.importance === 1 ? t('tableDemo.important') : data.importance === 2 - ? t('tableDemo.good') - : t('tableDemo.commonly')} + ? t('tableDemo.good') + : t('tableDemo.commonly')} ) } diff --git a/src/views/Example/Page/components/Detail.vue b/src/views/Example/Page/components/Detail.vue index ea336c7..11d4a94 100644 --- a/src/views/Example/Page/components/Detail.vue +++ b/src/views/Example/Page/components/Detail.vue @@ -40,8 +40,8 @@ const schema = reactive([ {data.importance === 1 ? t('tableDemo.important') : data.importance === 2 - ? t('tableDemo.good') - : t('tableDemo.commonly')} + ? t('tableDemo.good') + : t('tableDemo.commonly')} ) }