From 5ffdf6f28463c8e6d08dba402c0988a7c65b2385 Mon Sep 17 00:00:00 2001 From: lijingjia Date: Fri, 22 Nov 2024 11:08:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E6=8C=89=E9=92=AE=E7=BB=84?= =?UTF-8?q?=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Table/src/BasicTable.vue | 1 - src/components/TableButton/index.vue | 115 ++++++++++++++++++ src/components/registerGlobComp.ts | 3 +- src/layouts/default/setting/SettingDrawer.tsx | 4 +- src/locales/lang/en/common.ts | 1 + src/locales/lang/zh-CN/common.ts | 6 + src/views/baseinfo/goodstype/index.vue | 16 ++- 7 files changed, 133 insertions(+), 13 deletions(-) create mode 100644 src/components/TableButton/index.vue diff --git a/src/components/Table/src/BasicTable.vue b/src/components/Table/src/BasicTable.vue index aa953473..24943b45 100644 --- a/src/components/Table/src/BasicTable.vue +++ b/src/components/Table/src/BasicTable.vue @@ -571,7 +571,6 @@ export default defineComponent({ display: flex; justify-content: space-between; align-items: center; - padding-left: 10px; } .ant-pagination { text-align: right; diff --git a/src/components/TableButton/index.vue b/src/components/TableButton/index.vue new file mode 100644 index 00000000..a372de4c --- /dev/null +++ b/src/components/TableButton/index.vue @@ -0,0 +1,115 @@ + + + + + + + \ No newline at end of file diff --git a/src/components/registerGlobComp.ts b/src/components/registerGlobComp.ts index 19b16f23..776bb6f1 100644 --- a/src/components/registerGlobComp.ts +++ b/src/components/registerGlobComp.ts @@ -5,6 +5,7 @@ import VXETable from 'vxe-table' import ConfigForm from './ConfigForm/index.vue' import ActionBar from './ActionBar/index.vue' import ImportExcel from './importExcel/index.vue' +import TableButton from './TableButton/index.vue' import 'vxe-table/lib/style.css' import { // Need @@ -57,7 +58,7 @@ import { Timeline } from 'ant-design-vue' -const compList = [AntButton.Group, Icon, ConfigForm, ActionBar, ImportExcel] +const compList = [AntButton.Group, Icon, ConfigForm, ActionBar, ImportExcel, TableButton] export function registerGlobComp(app: App) { compList.forEach((comp) => { diff --git a/src/layouts/default/setting/SettingDrawer.tsx b/src/layouts/default/setting/SettingDrawer.tsx index fb3da653..a609c423 100644 --- a/src/layouts/default/setting/SettingDrawer.tsx +++ b/src/layouts/default/setting/SettingDrawer.tsx @@ -380,7 +380,7 @@ export default defineComponent({ > {unref(getShowDarkModeToggle) && {() => t('layout.setting.sysTheme')}} {unref(getShowDarkModeToggle) && } - {() => t('layout.setting.sysTheme')} + {/* {() => t('layout.setting.sysTheme')} {renderMainTheme()} {() => t('layout.setting.headerTheme')} {renderHeaderTheme()} @@ -391,7 +391,7 @@ export default defineComponent({ {() => t('layout.setting.interfaceDisplay')} {renderContent()} {() => t('layout.setting.animation')} - {renderTransition()} + {renderTransition()} */} diff --git a/src/locales/lang/en/common.ts b/src/locales/lang/en/common.ts index 4146727b..32e40ecc 100644 --- a/src/locales/lang/en/common.ts +++ b/src/locales/lang/en/common.ts @@ -15,6 +15,7 @@ export default { editText: 'Edit', searchText: 'Search', queryText: 'Search', + copyText: 'Copy', inputText: 'Please enter', chooseText: 'Please choose', diff --git a/src/locales/lang/zh-CN/common.ts b/src/locales/lang/zh-CN/common.ts index 52509357..116d8d7b 100644 --- a/src/locales/lang/zh-CN/common.ts +++ b/src/locales/lang/zh-CN/common.ts @@ -1,3 +1,8 @@ +/* + * @Desc: + * @Author: lijj + * @Date: 2024-08-27 08:44:10 + */ export default { okText: '确认', closeText: '关闭', @@ -10,6 +15,7 @@ export default { editText: '编辑', searchText: '搜索', queryText: '查询', + copyText: '复制', inputText: '请输入', chooseText: '请选择', diff --git a/src/views/baseinfo/goodstype/index.vue b/src/views/baseinfo/goodstype/index.vue index dec3be8c..9905004e 100644 --- a/src/views/baseinfo/goodstype/index.vue +++ b/src/views/baseinfo/goodstype/index.vue @@ -2,6 +2,13 @@