feat: 优化表格
自动部署 / build (push) Successful in 1m29s Details

master
绝弹 2023-11-21 21:57:10 +08:00
parent c8dc40127a
commit c489f3b0cf
4 changed files with 5 additions and 9 deletions

View File

@ -1,10 +1,9 @@
import { AnForm, AnFormInstance, AnFormProps } from '@/components/AnForm';
import { AnFormModal, AnFormModalInstance, AnFormModalProps } from '@/components/AnForm';
import { TableColumnData, TableData, Table, Button, PaginationProps, TableInstance } from '@arco-design/web-vue';
import { AnForm, AnFormInstance, AnFormModal, AnFormModalInstance, AnFormModalProps, AnFormProps } from '@/components/AnForm';
import AniEmpty from '@/components/empty/AniEmpty.vue';
import { Button, PaginationProps, Table, TableColumnData, TableData, TableInstance } from '@arco-design/web-vue';
import { isArray, isFunction, merge } from 'lodash-es';
import { InjectionKey, PropType, Ref, defineComponent, ref } from 'vue';
import { PluginContainer } from '../hooks/useTablePlugin';
import AniEmpty from '@/components/empty/AniEmpty.vue';
type DataFn = (filter: { page: number; size: number; [key: string]: any }) => any | Promise<any>;

View File

@ -17,7 +17,7 @@ export const usePassworModal = () => {
field: "password",
label: ({ model }) => (
<span>
<span class="text-brand-500 font-semibold">{model.nickname}</span> :
{model.nickname} :
</span>
),
type: "input",

View File

@ -17,7 +17,6 @@ declare module '@vue/runtime-core' {
ACheckbox: typeof import('@arco-design/web-vue')['Checkbox']
ACheckboxGroup: typeof import('@arco-design/web-vue')['CheckboxGroup']
AConfigProvider: typeof import('@arco-design/web-vue')['ConfigProvider']
ADatePicker: typeof import('@arco-design/web-vue')['DatePicker']
ADivider: typeof import('@arco-design/web-vue')['Divider']
ADoption: typeof import('@arco-design/web-vue')['Doption']
ADrawer: typeof import('@arco-design/web-vue')['Drawer']
@ -54,8 +53,6 @@ declare module '@vue/runtime-core' {
ASpace: typeof import('@arco-design/web-vue')['Space']
ASpin: typeof import('@arco-design/web-vue')['Spin']
ASwitch: typeof import('@arco-design/web-vue')['Switch']
ATabPane: typeof import('@arco-design/web-vue')['TabPane']
ATabs: typeof import('@arco-design/web-vue')['Tabs']
ATag: typeof import('@arco-design/web-vue')['Tag']
ATextarea: typeof import('@arco-design/web-vue')['Textarea']
ATooltip: typeof import('@arco-design/web-vue')['Tooltip']

View File

@ -10,7 +10,7 @@ export const delOptions: ModalConfig = {
content: '危险操作,确定删除该数据吗?',
maskClosable: false,
closable: false,
okText: '确定',
okText: '确定删除',
okButtonProps: {
status: 'danger',
},