@dinert/element-plus 1.1.43 → 1.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/element-plus.umd.js +2 -2
- package/dist/element-plus.umd.js.map +1 -1
- package/es/packages/components/form/src/index.mjs +138 -135
- package/es/packages/components/form/src/index.mjs.map +1 -1
- package/es/packages/components/form/utils/index.mjs +23 -25
- package/es/packages/components/form/utils/index.mjs.map +1 -1
- package/es/packages/components/table/src/index.mjs +72 -60
- package/es/packages/components/table/src/index.mjs.map +1 -1
- package/es/packages/hooks/TablePage/index.mjs +2 -3
- package/es/packages/hooks/TablePage/index.mjs.map +1 -1
- package/es/src/components/form/index.d.ts +4 -4
- package/es/src/components/form/src/index.d.ts +4 -4
- package/es/src/components/form/types/components.d.ts +44 -0
- package/es/src/components/form/types/index.d.ts +1 -1
- package/es/src/components/table/types/index.d.ts +6 -1
- package/es/src/components/table-page/index.d.ts +8 -8
- package/es/src/components/table-page/src/index.d.ts +8 -8
- package/es/style.css +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/src/components/form/index.d.ts +4 -4
- package/lib/src/components/form/src/index.d.ts +4 -4
- package/lib/src/components/form/types/components.d.ts +44 -0
- package/lib/src/components/form/types/index.d.ts +1 -1
- package/lib/src/components/table/types/index.d.ts +6 -1
- package/lib/src/components/table-page/index.d.ts +8 -8
- package/lib/src/components/table-page/src/index.d.ts +8 -8
- package/package.json +1 -1
|
@@ -14,8 +14,7 @@ class v {
|
|
|
14
14
|
pagination: {
|
|
15
15
|
total: 0,
|
|
16
16
|
currentPage: 1,
|
|
17
|
-
pageSize: 10
|
|
18
|
-
pageSizes: [10, 20, 30, 50, 100]
|
|
17
|
+
pageSize: 10
|
|
19
18
|
}
|
|
20
19
|
},
|
|
21
20
|
form: {
|
|
@@ -58,7 +57,7 @@ class v {
|
|
|
58
57
|
getAjaxTableDataParams(e) {
|
|
59
58
|
this.params = this.getTableParams(e);
|
|
60
59
|
const a = i.isEqual(this.params, this.oldParams);
|
|
61
|
-
return e.name === "search" ? (a || (this.table.value.pagination.currentPage = 1, this.params = this.getTableParams(e)), this.oldParams = i.cloneDeep(this.params)) : e.name === "reset" ? (this.resetPagination(), this.params = this.getTableParams(e), this.oldParams = i.cloneDeep(this.params)) : e.name === "delete" ? this.table.value.data && this.table.value.data.length && this.table.value.data.length === 1 && this.table.value.pagination.currentPage > 1 && (this.table.value.pagination.currentPage = this.table.value.pagination.currentPage - 1, this.params = this.getTableParams(e)) : ["current", "size", "reset"].includes(e.name || "") && (this.oldParams = i.cloneDeep(this.params)), (!["size", "current"].includes(e.name || "") || !this.table.value.rowKey) && (this.selecTableDatas.value = []), this.params;
|
|
60
|
+
return e.name === "search" ? (a || (this.table.value.pagination.currentPage = 1, this.params = this.getTableParams(e)), this.oldParams = i.cloneDeep(this.params)) : e.name === "reset" ? (this.resetPagination(), this.params = this.getTableParams(e), this.oldParams = i.cloneDeep(this.params)) : e.name === "delete" ? this.table.value.data && this.table.value.data.length && this.table.value.data.length === 1 && this.table.value.pagination.currentPage > 1 && (this.table.value.pagination.currentPage = this.table.value.pagination.currentPage - 1, this.params = this.getTableParams(e)) : ["current", "size", "reset"].includes(e.name || "") && (this.oldParams = i.cloneDeep(this.params)), (!["size", "current"].includes(e.name || "") || !this.table.value.rowKey || !this.table.value.echoSelect) && (this.selecTableDatas.value = []), this.params;
|
|
62
61
|
}
|
|
63
62
|
// 请求
|
|
64
63
|
ajaxTableData(e) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../packages/hooks/TablePage/index.ts"],"sourcesContent":["\nimport {Ref, onMounted, ref} from 'vue'\n\nimport type {DinertTablePageProps, AjaxTableProps} from './types'\n\nimport TablePageComponent from '@packages/components/table-page/index'\nimport TableComponent from '@packages/components/table/index'\nimport FormComponent from '@packages/components/form/index'\nimport {getUuid} from '@packages/utils/tools'\nimport lodash from 'lodash'\nimport {MergeProp} from '@packages/components/form/types/utils'\n\n/**\n * T 表格data数据格式\n * D 表单model的数据格式\n * FI 表单formItem的数据格式\n * P 发起请求的数据格式\n * R 请求回来的数据格式\n */\n\nclass TablePage<T, D = any, FI = any, P = object, R = any> {\n dialogForm: Ref<DinertTablePageProps<T, T, FI>['form']> = ref({formItem: {}, model: {}})\n showSearch: Ref<DinertTablePageProps['search']>\n table: Ref<DinertTablePageProps<T, D, FI>['table']>\n form: Ref<DinertTablePageProps<T, D, FI>['form']>\n footer: Ref<DinertTablePageProps['footer']>\n header: Ref<DinertTablePageProps['header']>\n\n selecTableDatas: Ref<T[]> = ref([])\n lastSelectDatas: Ref<T[]> = ref([])\n\n options: DinertTablePageProps<T, D, FI>\n\n ids: Ref<string[]> = ref([])\n\n params: P | any\n oldParams: P | any\n\n tablePageRef: Ref<InstanceType<typeof TablePageComponent> | null> = ref(null)\n\n tableRef: Ref<InstanceType<typeof TablePageComponent>['tableRef'] | null> = ref(null) // DinertTable的Dom\n tableOriginRef: Ref<InstanceType<typeof TableComponent>['tableRef'] | null> = ref(null) // elTable的Dom\n\n formRef: Ref<(InstanceType<typeof TablePageComponent>['formRef']) | null> = ref(null) // DinertForm的Dom\n formOriginRef: Ref<(InstanceType<typeof FormComponent>['formRef']) | null> = ref(null) // elForm的Dom\n\n private readonly defaultOptions: DinertTablePageProps<T, D, FI> = {\n table: {\n rowKey: 'id',\n className: 'table_page' + getUuid(),\n tableColumns: [],\n data: [],\n key: true,\n border: true,\n pagination: {\n total: 0,\n currentPage: 1,\n pageSize: 10,\n pageSizes: [10, 20, 30, 50, 100],\n },\n },\n form: {\n model: {},\n formItem: {}\n },\n footer: false,\n search: false\n }\n\n\n private readonly firstOptions: DinertTablePageProps<T, D, FI> = {\n table: {\n tableColumns: [],\n data: [],\n key: true,\n pagination: {}\n },\n form: {model: {}, formItem: {}}\n }\n\n\n constructor(options: DinertTablePageProps<T, D, FI> & {initMounteFlag?: boolean}) {\n\n this.options = lodash.defaultsDeep(lodash.cloneDeep(options), this.defaultOptions)\n\n this.firstOptions = lodash.cloneDeep(this.options)\n\n this.table = ref<DinertTablePageProps<T, D, FI>['table'] | any>(this.options.table)\n\n this.form = ref<DinertTablePageProps<T, D, FI>['form'] | any>(this.options.form)\n\n this.footer = ref<DinertTablePageProps<T, D, FI>['footer']>(this.options.footer)\n\n this.header = ref<DinertTablePageProps<T, D, FI>['header']>(this.options.header)\n\n this.showSearch = ref<DinertTablePageProps<T, D, FI>['search']>(this.options.search)\n\n this.params = {}\n this.oldParams = {};\n\n // 在组件挂载时调用\n ([undefined, true].includes(options.initMounteFlag)) && this.initMonunt()\n\n // 监听表格选择的方法,方便表格数据回显\n this.tableSelectEvent()\n }\n\n initMonunt() {\n onMounted(() => {\n this.tableRef.value = this.tablePageRef.value?.tableRef\n this.tableOriginRef.value = this.tablePageRef.value?.tableRef?.tableRef\n\n this.formRef.value = this.tablePageRef.value?.formRef\n this.formOriginRef.value = this.tablePageRef.value?.formRef?.formRef\n })\n }\n\n // 获取请求参数\n getTableParams: (params: P) => (Partial<P>) = () => ({} as P)\n ajaxTableDataAfter: (res: R) => void = () => undefined\n\n sizeChange(size: number) {\n\n const pageSize = this.table.value.pagination.pageSize\n this.table.value.pagination.pageSize = size\n const pagination = this.table.value.pagination\n if ((pageSize as any) > size\n || (pagination.currentPage as any) <= Math.ceil((pagination.total as any) / (pagination.pageSize as any))) {\n this.search({name: 'size', pageSize: size})\n }\n\n }\n\n currentChange(currentPage: number) {\n this.table.value.pagination.currentPage = currentPage\n this.search({name: 'current', currentPage})\n }\n\n async getTableData(options: (MergeProp<P, AjaxTableProps>)) {\n const res = await this.ajaxTableData(options)\n this.changeTableData(res)\n\n typeof this.ajaxTableDataAfter === 'function' && this.ajaxTableDataAfter(res)\n\n this.table.value.key = !this.table.value.key\n return res\n }\n\n // 获取请求的所有参数\n getAjaxTableDataParams(options: MergeProp<P, AjaxTableProps> | any): MergeProp<P, AjaxTableProps> {\n this.params = this.getTableParams(options)\n\n const isSame = lodash.isEqual(this.params, this.oldParams) // 判断当前提交的参数和上一次提交的参数是否相同\n\n if (options.name === 'search') {\n if (!isSame) {\n this.table.value.pagination.currentPage = 1\n this.params = this.getTableParams(options)\n }\n\n this.oldParams = lodash.cloneDeep(this.params)\n } else if (options.name === 'reset') {\n this.resetPagination()\n this.params = this.getTableParams(options)\n\n this.oldParams = lodash.cloneDeep(this.params)\n } else if (options.name === 'delete') {\n if (this.table.value.data && this.table.value.data.length) {\n if (this.table.value.data.length === 1 && (this.table.value as any).pagination.currentPage > 1) {\n this.table.value.pagination.currentPage = (this.table.value.pagination as any).currentPage - 1\n\n this.params = this.getTableParams(options)\n }\n }\n } else if (['current', 'size', 'reset'].includes(options.name || '')) {\n this.oldParams = lodash.cloneDeep(this.params)\n }\n\n if (!['size', 'current'].includes(options.name || '') || !this.table.value.rowKey) {\n this.selecTableDatas.value = []\n }\n\n return this.params\n }\n\n // 请求\n ajaxTableData(options: (MergeProp<P, AjaxTableProps>)): Promise<R> {\n return new Promise(resolve => {\n resolve(this.getAjaxTableDataParams(options) as any)\n })\n }\n\n changeTableData(res: R | any) {\n if (res && res.data && res.data.length) {\n for (let i = 0; i < res.data.length; i++) {\n res.data[i].index = i + 1 + (res.pageNum as number) * (res.pageSize as number)\n }\n this.table.value.data = res.data\n this.table.value.pagination.total = res.total\n }\n }\n\n\n // 查询\n search(options: (P & AjaxTableProps) | any = {name: 'search'}) {\n\n for (const prop in this.form.value?.model) {\n if ([null, undefined, ''].includes((this.form.value.model as any)[prop])) {\n delete this.form.value?.model[prop]\n }\n }\n return this.getTableData(options)\n }\n\n // 重置查询\n resetSearch(options: (P & AjaxTableProps) | any = {name: 'reset'}) {\n this.resetParams()\n this.search(options)\n }\n\n\n // 重置分页参数\n resetPagination() {\n this.table.value.pagination = {...this.defaultOptions.table.pagination}\n }\n\n // 重置表格请求参数\n resetParams() {\n if (lodash.isEmpty(this.firstOptions.form?.model)) { // 判断查询的默认参数是否为空\n for (const prop in this.form.value?.model) {\n delete this.form.value?.model[prop]\n }\n } else {\n for (const prop in this.form.value?.model) {\n delete this.form.value?.model[prop]\n }\n for (const prop in this.firstOptions.form?.model) {\n this.form.value.model[prop] = this.firstOptions.form?.model[prop]\n }\n }\n }\n\n // 清空参数\n clearParams() {\n for (const prop in this.form.value?.model) {\n delete this.form.value.model[prop]\n }\n }\n\n // 根据key获取表格中的数据\n getTableDataKeys(key: string = 'id') {\n this.ids.value = lodash.map(this.table.value.data || [], key)\n return this.ids.value\n }\n\n // 回显选中\n echoOperations() {\n const rowKey = this.table.value.rowKey as any\n const keys = (this.selecTableDatas.value || []).map((item: any) => item[rowKey])\n if (this.tablePageRef.value) {\n (this.table.value.data || []).forEach((item: any) => {\n if (keys.includes(item[rowKey])) {\n this.tablePageRef.value?.tableRef?.tableRef?.toggleRowSelection(item, true)\n } else {\n this.tablePageRef.value?.tableRef?.tableRef?.toggleRowSelection(item, false)\n }\n })\n }\n\n }\n\n // 懒加载使用\n lazyAddKey<T = any>(arr: any = [], children: string = 'children'): T {\n return arr.map((item: any) => {\n if (item[children]) {\n item.children2 = [...item[children]]\n item.hasChildren = true\n delete item[children]\n }\n return {\n ...item,\n children2: item.children2 ? this.lazyAddKey(item.children2) : []\n }\n })\n }\n\n // 监听表格选择事件,包括全选和单选\n tableSelectEvent() {\n const rowKey: any = this.table.value.rowKey\n if (this.table.value) {\n if (!this.table.value.onSelect) {\n this.table.value.onSelect = (selection: T[]) => {\n if (rowKey) {\n this.table.value.data.forEach((item: any) => {\n for (let i = 0; i < this.selecTableDatas.value.length; i++) {\n if (item[rowKey] === (this.selecTableDatas.value[i]as any)[rowKey]) {\n this.selecTableDatas.value.splice(i, 1)\n }\n }\n })\n this.selecTableDatas.value = lodash.uniqBy(selection.concat(this.selecTableDatas.value), rowKey)\n } else {\n this.selecTableDatas.value = selection\n }\n }\n }\n if (!this.table.value['onSelect-all']) {\n this.table.value['onSelect-all'] = (selection: T[]) => {\n if (rowKey) {\n if (selection.length === 0) {\n this.table.value.data.forEach((item: any) => {\n for (let i = 0; i < this.selecTableDatas.value.length; i++) {\n if (item[rowKey] === (this.selecTableDatas.value[i] as any)[rowKey]) {\n this.selecTableDatas.value.splice(i, 1)\n }\n }\n })\n } else {\n this.selecTableDatas.value = lodash.uniqBy(selection.concat(this.selecTableDatas.value), rowKey)\n }\n\n } else {\n this.selecTableDatas.value = selection\n }\n }\n }\n }\n }\n}\n\n\nexport default TablePage\n"],"names":["TablePage","options","ref","getUuid","lodash","onMounted","_a","_c","_b","_d","_f","_e","size","pageSize","pagination","currentPage","res","isSame","resolve","i","prop","_g","key","rowKey","keys","item","arr","children","selection"],"mappings":";;;AAoBA,MAAMA,EAAqD;AAAA,EA6DvD,YAAYC,GAAsE;AA5DxB,SAAA,aAAAC,EAAI,EAAC,UAAU,CAAA,GAAI,OAAO,IAAG,GAO3D,KAAA,kBAAAA,EAAI,CAAA,CAAE,GACN,KAAA,kBAAAA,EAAI,CAAA,CAAE,GAIb,KAAA,MAAAA,EAAI,CAAA,CAAE,GAK3B,KAAA,eAAoEA,EAAI,IAAI,GAE5E,KAAA,WAA4EA,EAAI,IAAI,GACpF,KAAA,iBAA8EA,EAAI,IAAI,GAEtF,KAAA,UAA4EA,EAAI,IAAI,GACpF,KAAA,gBAA6EA,EAAI,IAAI,GAErF,KAAiB,iBAAiD;AAAA,MAC9D,OAAO;AAAA,QACH,QAAQ;AAAA,QACR,WAAW,eAAeC,EAAQ;AAAA,QAClC,cAAc,CAAC;AAAA,QACf,MAAM,CAAC;AAAA,QACP,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,YAAY;AAAA,UACR,OAAO;AAAA,UACP,aAAa;AAAA,UACb,UAAU;AAAA,UACV,WAAW,CAAC,IAAI,IAAI,IAAI,IAAI,GAAG;AAAA,QACnC;AAAA,MACJ;AAAA,MACA,MAAM;AAAA,QACF,OAAO,CAAC;AAAA,QACR,UAAU,CAAC;AAAA,MACf;AAAA,MACA,QAAQ;AAAA,MACR,QA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,IAAI,KAAK,gBAAgB,MAAM,QAAQA;AAC/C,UAAAM,EAAKF,CAAM,MAAO,KAAK,gBAAgB,MAAMJ,CAAC,EAAUI,CAAM,KAC9D,KAAK,gBAAgB,MAAM,OAAOJ,GAAG,CAAC;AAAA,MAE9C,CACH,IAEI,KAAA,gBAAgB,QAAQf,EAAO,OAAOwB,EAAU,OAAO,KAAK,gBAAgB,KAAK,GAAGL,CAAM,IAInG,KAAK,gBAAgB,QAAQK;AAAA,IACjC;AAAA,EAIhB;AACJ;"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../packages/hooks/TablePage/index.ts"],"sourcesContent":["\nimport {Ref, onMounted, ref} from 'vue'\n\nimport type {DinertTablePageProps, AjaxTableProps} from './types'\n\nimport TablePageComponent from '@packages/components/table-page/index'\nimport TableComponent from '@packages/components/table/index'\nimport FormComponent from '@packages/components/form/index'\nimport {getUuid} from '@packages/utils/tools'\nimport lodash from 'lodash'\nimport {MergeProp} from '@packages/components/form/types/utils'\n\n/**\n * T 表格data数据格式\n * D 表单model的数据格式\n * FI 表单formItem的数据格式\n * P 发起请求的数据格式\n * R 请求回来的数据格式\n */\n\nclass TablePage<T, D = any, FI = any, P = object, R = any> {\n dialogForm: Ref<DinertTablePageProps<T, T, FI>['form']> = ref({formItem: {}, model: {}})\n showSearch: Ref<DinertTablePageProps['search']>\n table: Ref<DinertTablePageProps<T, D, FI>['table']>\n form: Ref<DinertTablePageProps<T, D, FI>['form']>\n footer: Ref<DinertTablePageProps['footer']>\n header: Ref<DinertTablePageProps['header']>\n\n selecTableDatas: Ref<T[]> = ref([])\n lastSelectDatas: Ref<T[]> = ref([])\n\n options: DinertTablePageProps<T, D, FI>\n\n ids: Ref<string[]> = ref([])\n\n params: P | any\n oldParams: P | any\n\n tablePageRef: Ref<InstanceType<typeof TablePageComponent> | null> = ref(null)\n\n tableRef: Ref<InstanceType<typeof TablePageComponent>['tableRef'] | null> = ref(null) // DinertTable的Dom\n tableOriginRef: Ref<InstanceType<typeof TableComponent>['tableRef'] | null> = ref(null) // elTable的Dom\n\n formRef: Ref<(InstanceType<typeof TablePageComponent>['formRef']) | null> = ref(null) // DinertForm的Dom\n formOriginRef: Ref<(InstanceType<typeof FormComponent>['formRef']) | null> = ref(null) // elForm的Dom\n\n private readonly defaultOptions: DinertTablePageProps<T, D, FI> = {\n table: {\n rowKey: 'id',\n className: 'table_page' + getUuid(),\n tableColumns: [],\n data: [],\n key: true,\n border: true,\n pagination: {\n total: 0,\n currentPage: 1,\n pageSize: 10,\n },\n },\n form: {\n model: {},\n formItem: {}\n },\n footer: false,\n search: false\n }\n\n\n private readonly firstOptions: DinertTablePageProps<T, D, FI> = {\n table: {\n tableColumns: [],\n data: [],\n key: true,\n pagination: {}\n },\n form: {model: {}, formItem: {}}\n }\n\n\n constructor(options: DinertTablePageProps<T, D, FI> & {initMounteFlag?: boolean}) {\n\n this.options = lodash.defaultsDeep(lodash.cloneDeep(options), this.defaultOptions)\n\n this.firstOptions = lodash.cloneDeep(this.options)\n\n this.table = ref<DinertTablePageProps<T, D, FI>['table'] | any>(this.options.table)\n\n this.form = ref<DinertTablePageProps<T, D, FI>['form'] | any>(this.options.form)\n\n this.footer = ref<DinertTablePageProps<T, D, FI>['footer']>(this.options.footer)\n\n this.header = ref<DinertTablePageProps<T, D, FI>['header']>(this.options.header)\n\n this.showSearch = ref<DinertTablePageProps<T, D, FI>['search']>(this.options.search)\n\n this.params = {}\n this.oldParams = {};\n\n // 在组件挂载时调用\n ([undefined, true].includes(options.initMounteFlag)) && this.initMonunt()\n\n // 监听表格选择的方法,方便表格数据回显\n this.tableSelectEvent()\n }\n\n initMonunt() {\n onMounted(() => {\n this.tableRef.value = this.tablePageRef.value?.tableRef\n this.tableOriginRef.value = this.tablePageRef.value?.tableRef?.tableRef\n\n this.formRef.value = this.tablePageRef.value?.formRef\n this.formOriginRef.value = this.tablePageRef.value?.formRef?.formRef\n })\n }\n\n // 获取请求参数\n getTableParams: (params: P) => (Partial<P>) = () => ({} as P)\n ajaxTableDataAfter: (res: R) => void = () => undefined\n\n sizeChange(size: number) {\n\n const pageSize = this.table.value.pagination.pageSize\n this.table.value.pagination.pageSize = size\n const pagination = this.table.value.pagination\n if ((pageSize as any) > size\n || (pagination.currentPage as any) <= Math.ceil((pagination.total as any) / (pagination.pageSize as any))) {\n this.search({name: 'size', pageSize: size})\n }\n\n }\n\n currentChange(currentPage: number) {\n this.table.value.pagination.currentPage = currentPage\n this.search({name: 'current', currentPage})\n }\n\n async getTableData(options: (MergeProp<P, AjaxTableProps>)) {\n const res = await this.ajaxTableData(options)\n this.changeTableData(res)\n\n typeof this.ajaxTableDataAfter === 'function' && this.ajaxTableDataAfter(res)\n\n this.table.value.key = !this.table.value.key\n return res\n }\n\n // 获取请求的所有参数\n getAjaxTableDataParams(options: MergeProp<P, AjaxTableProps> | any): MergeProp<P, AjaxTableProps> {\n this.params = this.getTableParams(options)\n\n const isSame = lodash.isEqual(this.params, this.oldParams) // 判断当前提交的参数和上一次提交的参数是否相同\n\n if (options.name === 'search') {\n if (!isSame) {\n this.table.value.pagination.currentPage = 1\n this.params = this.getTableParams(options)\n }\n\n this.oldParams = lodash.cloneDeep(this.params)\n } else if (options.name === 'reset') {\n this.resetPagination()\n this.params = this.getTableParams(options)\n\n this.oldParams = lodash.cloneDeep(this.params)\n } else if (options.name === 'delete') {\n if (this.table.value.data && this.table.value.data.length) {\n if (this.table.value.data.length === 1 && (this.table.value as any).pagination.currentPage > 1) {\n this.table.value.pagination.currentPage = (this.table.value.pagination as any).currentPage - 1\n\n this.params = this.getTableParams(options)\n }\n }\n } else if (['current', 'size', 'reset'].includes(options.name || '')) {\n this.oldParams = lodash.cloneDeep(this.params)\n }\n\n if (!['size', 'current'].includes(options.name || '') || !this.table.value.rowKey || !this.table.value.echoSelect) {\n this.selecTableDatas.value = []\n }\n\n return this.params\n }\n\n // 请求\n ajaxTableData(options: (MergeProp<P, AjaxTableProps>)): Promise<R> {\n return new Promise(resolve => {\n resolve(this.getAjaxTableDataParams(options) as any)\n })\n }\n\n changeTableData(res: R | any) {\n if (res && res.data && res.data.length) {\n for (let i = 0; i < res.data.length; i++) {\n res.data[i].index = i + 1 + (res.pageNum as number) * (res.pageSize as number)\n }\n this.table.value.data = res.data\n this.table.value.pagination.total = res.total\n }\n }\n\n\n // 查询\n search(options: (P & AjaxTableProps) | any = {name: 'search'}) {\n\n for (const prop in this.form.value?.model) {\n if ([null, undefined, ''].includes((this.form.value.model as any)[prop])) {\n delete this.form.value?.model[prop]\n }\n }\n return this.getTableData(options)\n }\n\n // 重置查询\n resetSearch(options: (P & AjaxTableProps) | any = {name: 'reset'}) {\n this.resetParams()\n this.search(options)\n }\n\n\n // 重置分页参数\n resetPagination() {\n this.table.value.pagination = {...this.defaultOptions.table.pagination}\n }\n\n // 重置表格请求参数\n resetParams() {\n if (lodash.isEmpty(this.firstOptions.form?.model)) { // 判断查询的默认参数是否为空\n for (const prop in this.form.value?.model) {\n delete this.form.value?.model[prop]\n }\n } else {\n for (const prop in this.form.value?.model) {\n delete this.form.value?.model[prop]\n }\n for (const prop in this.firstOptions.form?.model) {\n this.form.value.model[prop] = this.firstOptions.form?.model[prop]\n }\n }\n }\n\n // 清空参数\n clearParams() {\n for (const prop in this.form.value?.model) {\n delete this.form.value.model[prop]\n }\n }\n\n // 根据key获取表格中的数据\n getTableDataKeys(key: string = 'id') {\n this.ids.value = lodash.map(this.table.value.data || [], key)\n return this.ids.value\n }\n\n // 回显选中\n echoOperations() {\n const rowKey = this.table.value.rowKey as any\n const keys = (this.selecTableDatas.value || []).map((item: any) => item[rowKey])\n if (this.tablePageRef.value) {\n (this.table.value.data || []).forEach((item: any) => {\n if (keys.includes(item[rowKey])) {\n this.tablePageRef.value?.tableRef?.tableRef?.toggleRowSelection(item, true)\n } else {\n this.tablePageRef.value?.tableRef?.tableRef?.toggleRowSelection(item, false)\n }\n })\n }\n\n }\n\n // 懒加载使用\n lazyAddKey<T = any>(arr: any = [], children: string = 'children'): T {\n return arr.map((item: any) => {\n if (item[children]) {\n item.children2 = [...item[children]]\n item.hasChildren = true\n delete item[children]\n }\n return {\n ...item,\n children2: item.children2 ? this.lazyAddKey(item.children2) : []\n }\n })\n }\n\n // 监听表格选择事件,包括全选和单选\n tableSelectEvent() {\n const rowKey: any = this.table.value.rowKey\n if (this.table.value) {\n if (!this.table.value.onSelect) {\n this.table.value.onSelect = (selection: T[]) => {\n if (rowKey) {\n this.table.value.data.forEach((item: any) => {\n for (let i = 0; i < this.selecTableDatas.value.length; i++) {\n if (item[rowKey] === (this.selecTableDatas.value[i]as any)[rowKey]) {\n this.selecTableDatas.value.splice(i, 1)\n }\n }\n })\n this.selecTableDatas.value = lodash.uniqBy(selection.concat(this.selecTableDatas.value), rowKey)\n } else {\n this.selecTableDatas.value = selection\n }\n }\n }\n if (!this.table.value['onSelect-all']) {\n this.table.value['onSelect-all'] = (selection: T[]) => {\n if (rowKey) {\n if (selection.length === 0) {\n this.table.value.data.forEach((item: any) => {\n for (let i = 0; i < this.selecTableDatas.value.length; i++) {\n if (item[rowKey] === (this.selecTableDatas.value[i] as any)[rowKey]) {\n this.selecTableDatas.value.splice(i, 1)\n }\n }\n })\n } else {\n this.selecTableDatas.value = lodash.uniqBy(selection.concat(this.selecTableDatas.value), rowKey)\n }\n\n } else {\n this.selecTableDatas.value = selection\n }\n }\n }\n }\n }\n}\n\n\nexport default TablePage\n"],"names":["TablePage","options","ref","getUuid","lodash","onMounted","_a","_c","_b","_d","_f","_e","size","pageSize","pagination","currentPage","res","isSame","resolve","i","prop","_g","key","rowKey","keys","item","arr","children","selection"],"mappings":";;;AAoBA,MAAMA,EAAqD;AAAA,EA4DvD,YAAYC,GAAsE;AA3DxB,SAAA,aAAAC,EAAI,EAAC,UAAU,CAAA,GAAI,OAAO,IAAG,GAO3D,KAAA,kBAAAA,EAAI,CAAA,CAAE,GACN,KAAA,kBAAAA,EAAI,CAAA,CAAE,GAIb,KAAA,MAAAA,EAAI,CAAA,CAAE,GA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IL,KACA,KAAK,MAAM,MAAM,KAAK,QAAQ,CAACE,MAAc;AACzC,iBAASN,IAAI,GAAGA,IAAI,KAAK,gBAAgB,MAAM,QAAQA;AAC/C,UAAAM,EAAKF,CAAM,MAAO,KAAK,gBAAgB,MAAMJ,CAAC,EAASI,CAAM,KAC7D,KAAK,gBAAgB,MAAM,OAAOJ,GAAG,CAAC;AAAA,MAE9C,CACH,GACI,KAAA,gBAAgB,QAAQf,EAAO,OAAOwB,EAAU,OAAO,KAAK,gBAAgB,KAAK,GAAGL,CAAM,KAE/F,KAAK,gBAAgB,QAAQK;AAAA,IACjC,IAGH,KAAK,MAAM,MAAM,cAAc,MAChC,KAAK,MAAM,MAAM,cAAc,IAAI,CAACA,MAAmB;AACnD,MAAIL,IACIK,EAAU,WAAW,IACrB,KAAK,MAAM,MAAM,KAAK,QAAQ,CAACH,MAAc;AACzC,iBAASN,IAAI,GAAGA,IAAI,KAAK,gBAAgB,MAAM,QAAQA;AAC/C,UAAAM,EAAKF,CAAM,MAAO,KAAK,gBAAgB,MAAMJ,CAAC,EAAUI,CAAM,KAC9D,KAAK,gBAAgB,MAAM,OAAOJ,GAAG,CAAC;AAAA,MAE9C,CACH,IAEI,KAAA,gBAAgB,QAAQf,EAAO,OAAOwB,EAAU,OAAO,KAAK,gBAAgB,KAAK,GAAGL,CAAM,IAInG,KAAK,gBAAgB,QAAQK;AAAA,IACjC;AAAA,EAIhB;AACJ;"}
|
|
@@ -227,7 +227,7 @@ export declare const DinertForm: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
227
227
|
fields: {
|
|
228
228
|
$el: HTMLDivElement | undefined;
|
|
229
229
|
size: "" | "default" | "small" | "large";
|
|
230
|
-
validateState: "" | "
|
|
230
|
+
validateState: "" | "success" | "error" | "validating";
|
|
231
231
|
isGroup: boolean;
|
|
232
232
|
labelId: string;
|
|
233
233
|
inputIds: string[];
|
|
@@ -789,7 +789,7 @@ export declare const DinertForm: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
789
789
|
asyncValidator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | Promise<void>) | undefined;
|
|
790
790
|
validator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | import("async-validator").SyncValidateResult) | undefined;
|
|
791
791
|
}[] | undefined;
|
|
792
|
-
readonly validateStatus?: ("" | "
|
|
792
|
+
readonly validateStatus?: ("" | "success" | "error" | "validating") | undefined;
|
|
793
793
|
readonly for?: string | undefined;
|
|
794
794
|
}[];
|
|
795
795
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -915,7 +915,7 @@ export declare const DinertForm: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
915
915
|
fields: {
|
|
916
916
|
$el: HTMLDivElement | undefined;
|
|
917
917
|
size: "" | "default" | "small" | "large";
|
|
918
|
-
validateState: "" | "
|
|
918
|
+
validateState: "" | "success" | "error" | "validating";
|
|
919
919
|
isGroup: boolean;
|
|
920
920
|
labelId: string;
|
|
921
921
|
inputIds: string[];
|
|
@@ -1477,7 +1477,7 @@ export declare const DinertForm: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1477
1477
|
asyncValidator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | Promise<void>) | undefined;
|
|
1478
1478
|
validator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | import("async-validator").SyncValidateResult) | undefined;
|
|
1479
1479
|
}[] | undefined;
|
|
1480
|
-
readonly validateStatus?: ("" | "
|
|
1480
|
+
readonly validateStatus?: ("" | "success" | "error" | "validating") | undefined;
|
|
1481
1481
|
readonly for?: string | undefined;
|
|
1482
1482
|
}[];
|
|
1483
1483
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
@@ -228,7 +228,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
228
228
|
fields: {
|
|
229
229
|
$el: HTMLDivElement | undefined;
|
|
230
230
|
size: "" | "default" | "small" | "large";
|
|
231
|
-
validateState: "" | "
|
|
231
|
+
validateState: "" | "success" | "error" | "validating";
|
|
232
232
|
isGroup: boolean;
|
|
233
233
|
labelId: string;
|
|
234
234
|
inputIds: string[];
|
|
@@ -790,7 +790,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
790
790
|
asyncValidator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | Promise<void>) | undefined;
|
|
791
791
|
validator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | import("async-validator").SyncValidateResult) | undefined;
|
|
792
792
|
}[] | undefined;
|
|
793
|
-
readonly validateStatus?: ("" | "
|
|
793
|
+
readonly validateStatus?: ("" | "success" | "error" | "validating") | undefined;
|
|
794
794
|
readonly for?: string | undefined;
|
|
795
795
|
}[];
|
|
796
796
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -916,7 +916,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
916
916
|
fields: {
|
|
917
917
|
$el: HTMLDivElement | undefined;
|
|
918
918
|
size: "" | "default" | "small" | "large";
|
|
919
|
-
validateState: "" | "
|
|
919
|
+
validateState: "" | "success" | "error" | "validating";
|
|
920
920
|
isGroup: boolean;
|
|
921
921
|
labelId: string;
|
|
922
922
|
inputIds: string[];
|
|
@@ -1478,7 +1478,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1478
1478
|
asyncValidator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | Promise<void>) | undefined;
|
|
1479
1479
|
validator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | import("async-validator").SyncValidateResult) | undefined;
|
|
1480
1480
|
}[] | undefined;
|
|
1481
|
-
readonly validateStatus?: ("" | "
|
|
1481
|
+
readonly validateStatus?: ("" | "success" | "error" | "validating") | undefined;
|
|
1482
1482
|
readonly for?: string | undefined;
|
|
1483
1483
|
}[];
|
|
1484
1484
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
import { MergeProp } from './utils';
|
|
3
|
+
import { InputProps, ElInput, SelectOptionProxy, ElSelect, cascaderProps, ElCascader, AutocompleteProps, ElAutocomplete, ElInputNumber, InputNumberProps, SwitchProps, DatePickerProps, ElDatePicker, RadioGroupProps, ElRadioGroup, CheckboxProps, RadioProps, CheckboxGroupProps, ElCheckbox, ElTreeSelect, RateProps, ElRate, CascaderProps, ElTree, ElSlider, SliderProps, TimePickerDefaultProps, ElTimePicker, ElTimeSelect } from 'element-plus';
|
|
4
|
+
import { TreeOptionProps } from 'element-plus/es/components/tree-v2/src/types';
|
|
5
|
+
import type { SelectProps } from 'element-plus/es/components/select/src/select';
|
|
6
|
+
import { TreeProps } from 'element-plus/es/components/tree-v2/src/types';
|
|
7
|
+
import { TimeSelectProps } from 'element-plus/es/components/time-select/src/time-select';
|
|
8
|
+
type CommonFn = 'onChange' | 'onClear' | 'onBlur' | 'onFocus';
|
|
9
|
+
export type RewriteInputProps = Partial<InputProps & Pick<typeof ElInput, 'onInput' | CommonFn>>;
|
|
10
|
+
export type RewriteTextareaProps = Partial<InputProps & Pick<typeof ElInput, 'onInput' | CommonFn>>;
|
|
11
|
+
export type RewriteSelectProps<O = any[]> = Partial<Omit<ExtractPropTypes<SelectProps>, 'options'> & {
|
|
12
|
+
options: O | SelectOptionProxy[];
|
|
13
|
+
label: string;
|
|
14
|
+
value: string;
|
|
15
|
+
} & Pick<typeof ElSelect, CommonFn | 'onVisible-change' | 'onRemove-tag'>>;
|
|
16
|
+
export type RewriteCascaderProps<O = any[]> = Partial<Omit<ExtractPropTypes<typeof cascaderProps>, 'options' | 'props'> & {
|
|
17
|
+
options: O;
|
|
18
|
+
props: Partial<MergeProp<CascaderProps, TreeOptionProps>>;
|
|
19
|
+
} & Pick<typeof ElCascader, CommonFn | 'onVisible-change' | 'onRemove-tag'>>;
|
|
20
|
+
export type RewriteAutocompleteProps = Partial<AutocompleteProps & Pick<typeof ElAutocomplete, 'onSelect' | 'onChange'>>;
|
|
21
|
+
export type RewriteInputNumberProps = Partial<InputNumberProps & Pick<typeof ElInputNumber, CommonFn>>;
|
|
22
|
+
export type RewriteSwitchProps = Partial<SwitchProps & Pick<typeof ElInputNumber, 'onChange'>>;
|
|
23
|
+
export type RewriteDatePickerProps = Partial<DatePickerProps & Pick<typeof ElDatePicker, CommonFn | 'onVisible-change' | 'onCalendar-change' | 'onPanel-change'>>;
|
|
24
|
+
export type RewriteRadioGroupProps<O = any[]> = Partial<RadioGroupProps & {
|
|
25
|
+
options: O | RadioProps[];
|
|
26
|
+
value: string;
|
|
27
|
+
} & Pick<typeof ElRadioGroup, 'onChange'>>;
|
|
28
|
+
export type RewriteCheckboxGroupProps<O = any[]> = Partial<CheckboxGroupProps & {
|
|
29
|
+
options: O | CheckboxProps[];
|
|
30
|
+
value: string;
|
|
31
|
+
} & Pick<typeof ElCheckbox, 'onChange'>>;
|
|
32
|
+
export type RewriteTreeSelectProps<O = any[]> = Partial<TreeProps & Omit<ExtractPropTypes<SelectProps>, 'options'> & {
|
|
33
|
+
options: O | SelectOptionProxy[];
|
|
34
|
+
label: string;
|
|
35
|
+
value: string;
|
|
36
|
+
data: O | SelectOptionProxy[];
|
|
37
|
+
} & Pick<typeof ElTreeSelect, CommonFn> & Pick<typeof ElTree, 'onCurrent-change' | 'onCheck' | 'onNode-click' | 'onCurrent-change' | 'onNode-expand' | 'onCheck-change' | 'onNode-click' | 'onNode-contextmenu' | 'onNode-collapse' | 'onNode-drag-start' | 'onNode-drag-end' | 'onNode-drop' | 'onNode-drag-leave' | 'onNode-drag-enter' | 'onNode-drag-over'>>;
|
|
38
|
+
export type RewriteRewriteRateProps<O = any[]> = Partial<Omit<RateProps, 'options'> & {
|
|
39
|
+
options: O;
|
|
40
|
+
} & Pick<typeof ElRate, 'onChange'>>;
|
|
41
|
+
export type RewriteSliderProps = Partial<SliderProps & Pick<typeof ElSlider, 'onChange' | 'onInput'>>;
|
|
42
|
+
export type RewriteTimePickerProps = Partial<TimePickerDefaultProps & Pick<typeof ElTimePicker, CommonFn | 'onVisible-change'>>;
|
|
43
|
+
export type RewriteTimeSelectProps = Partial<TimeSelectProps & Pick<typeof ElTimeSelect, CommonFn>>;
|
|
44
|
+
export {};
|
|
@@ -121,7 +121,7 @@ export interface FormItemPropsSwitch<D, FI> extends CustomFormItemProps<D, FI> {
|
|
|
121
121
|
options?: RewriteSwitchProps;
|
|
122
122
|
}
|
|
123
123
|
export interface FormItemPropsDate<D, FI> extends CustomFormItemProps<D, FI> {
|
|
124
|
-
type: 'date' | 'datetime' | 'week' | 'month' | 'year' | 'years' | 'daterange' | 'datetimerange' | 'monthrange';
|
|
124
|
+
type: 'date' | 'datetime' | 'week' | 'month' | 'year' | 'years' | 'daterange' | 'datetimerange' | 'monthrange' | 'dates';
|
|
125
125
|
options?: RewriteDatePickerProps;
|
|
126
126
|
}
|
|
127
127
|
export interface FormItemPropsRadio<D, FI> extends CustomFormItemProps<D, FI> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TableProps, TableColumnCtx, ElTable, ElPagination, PaginationProps, ButtonProps, PopconfirmProps, ElMessageBoxOptions } from 'element-plus';
|
|
1
|
+
import type { TableProps, TableColumnCtx, ElTable, ElPagination, PaginationProps, ButtonProps, PopconfirmProps, ElMessageBoxOptions, ElTooltipProps } from 'element-plus';
|
|
2
2
|
export type Mutable<T> = {
|
|
3
3
|
-readonly [K in keyof T]: T[K];
|
|
4
4
|
};
|
|
@@ -49,11 +49,16 @@ export interface RewriteTableProps<T = any> extends TableProps<T>, TableFnProps
|
|
|
49
49
|
class?: string;
|
|
50
50
|
pagination: RewritePaginationProps;
|
|
51
51
|
autoHeight?: boolean;
|
|
52
|
+
echoSelect?: boolean;
|
|
52
53
|
}
|
|
53
54
|
type PaginationPropsFn = Partial<Pick<InstanceType<typeof ElPagination>, 'onChange' | 'onUpdate:current-page' | 'onUpdate:page-size' | 'onSize-change' | 'onCurrent-change' | 'onPrev-click' | 'onNext-click'>>;
|
|
54
55
|
export interface RewritePaginationProps extends PaginationPropsFn, Partial<Mutable<PaginationProps>> {
|
|
55
56
|
}
|
|
57
|
+
export interface RewriteElTooltipProps extends Partial<Omit<ElTooltipProps, 'content'>> {
|
|
58
|
+
content?: string | ((scope: ScopeProps) => string);
|
|
59
|
+
}
|
|
56
60
|
export interface HeaderListProps extends Omit<Partial<ButtonProps>, 'disabled'> {
|
|
61
|
+
tooltip?: RewriteElTooltipProps;
|
|
57
62
|
message?: string;
|
|
58
63
|
click?: (item: HeaderListProps) => void;
|
|
59
64
|
sort?: number;
|
|
@@ -376,7 +376,7 @@ export declare const DinertTablePage: SFCWithInstall<import("vue").DefineCompone
|
|
|
376
376
|
fields: {
|
|
377
377
|
$el: HTMLDivElement | undefined;
|
|
378
378
|
size: "" | "default" | "small" | "large";
|
|
379
|
-
validateState: "" | "
|
|
379
|
+
validateState: "" | "success" | "error" | "validating";
|
|
380
380
|
isGroup: boolean;
|
|
381
381
|
labelId: string;
|
|
382
382
|
inputIds: string[];
|
|
@@ -938,7 +938,7 @@ export declare const DinertTablePage: SFCWithInstall<import("vue").DefineCompone
|
|
|
938
938
|
asyncValidator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | Promise<void>) | undefined;
|
|
939
939
|
validator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | import("async-validator").SyncValidateResult) | undefined;
|
|
940
940
|
}[] | undefined;
|
|
941
|
-
readonly validateStatus?: ("" | "
|
|
941
|
+
readonly validateStatus?: ("" | "success" | "error" | "validating") | undefined;
|
|
942
942
|
readonly for?: string | undefined;
|
|
943
943
|
}[];
|
|
944
944
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -1064,7 +1064,7 @@ export declare const DinertTablePage: SFCWithInstall<import("vue").DefineCompone
|
|
|
1064
1064
|
fields: {
|
|
1065
1065
|
$el: HTMLDivElement | undefined;
|
|
1066
1066
|
size: "" | "default" | "small" | "large";
|
|
1067
|
-
validateState: "" | "
|
|
1067
|
+
validateState: "" | "success" | "error" | "validating";
|
|
1068
1068
|
isGroup: boolean;
|
|
1069
1069
|
labelId: string;
|
|
1070
1070
|
inputIds: string[];
|
|
@@ -1626,7 +1626,7 @@ export declare const DinertTablePage: SFCWithInstall<import("vue").DefineCompone
|
|
|
1626
1626
|
asyncValidator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | Promise<void>) | undefined;
|
|
1627
1627
|
validator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | import("async-validator").SyncValidateResult) | undefined;
|
|
1628
1628
|
}[] | undefined;
|
|
1629
|
-
readonly validateStatus?: ("" | "
|
|
1629
|
+
readonly validateStatus?: ("" | "success" | "error" | "validating") | undefined;
|
|
1630
1630
|
readonly for?: string | undefined;
|
|
1631
1631
|
}[];
|
|
1632
1632
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
@@ -1892,7 +1892,7 @@ export declare const DinertTablePage: SFCWithInstall<import("vue").DefineCompone
|
|
|
1892
1892
|
fields: {
|
|
1893
1893
|
$el: HTMLDivElement | undefined;
|
|
1894
1894
|
size: "" | "default" | "small" | "large";
|
|
1895
|
-
validateState: "" | "
|
|
1895
|
+
validateState: "" | "success" | "error" | "validating";
|
|
1896
1896
|
isGroup: boolean;
|
|
1897
1897
|
labelId: string;
|
|
1898
1898
|
inputIds: string[];
|
|
@@ -2454,7 +2454,7 @@ export declare const DinertTablePage: SFCWithInstall<import("vue").DefineCompone
|
|
|
2454
2454
|
asyncValidator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | Promise<void>) | undefined;
|
|
2455
2455
|
validator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | import("async-validator").SyncValidateResult) | undefined;
|
|
2456
2456
|
}[] | undefined;
|
|
2457
|
-
readonly validateStatus?: ("" | "
|
|
2457
|
+
readonly validateStatus?: ("" | "success" | "error" | "validating") | undefined;
|
|
2458
2458
|
readonly for?: string | undefined;
|
|
2459
2459
|
}[];
|
|
2460
2460
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -2580,7 +2580,7 @@ export declare const DinertTablePage: SFCWithInstall<import("vue").DefineCompone
|
|
|
2580
2580
|
fields: {
|
|
2581
2581
|
$el: HTMLDivElement | undefined;
|
|
2582
2582
|
size: "" | "default" | "small" | "large";
|
|
2583
|
-
validateState: "" | "
|
|
2583
|
+
validateState: "" | "success" | "error" | "validating";
|
|
2584
2584
|
isGroup: boolean;
|
|
2585
2585
|
labelId: string;
|
|
2586
2586
|
inputIds: string[];
|
|
@@ -3142,7 +3142,7 @@ export declare const DinertTablePage: SFCWithInstall<import("vue").DefineCompone
|
|
|
3142
3142
|
asyncValidator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | Promise<void>) | undefined;
|
|
3143
3143
|
validator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | import("async-validator").SyncValidateResult) | undefined;
|
|
3144
3144
|
}[] | undefined;
|
|
3145
|
-
readonly validateStatus?: ("" | "
|
|
3145
|
+
readonly validateStatus?: ("" | "success" | "error" | "validating") | undefined;
|
|
3146
3146
|
readonly for?: string | undefined;
|
|
3147
3147
|
}[];
|
|
3148
3148
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
@@ -377,7 +377,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
377
377
|
fields: {
|
|
378
378
|
$el: HTMLDivElement | undefined;
|
|
379
379
|
size: "" | "default" | "small" | "large";
|
|
380
|
-
validateState: "" | "
|
|
380
|
+
validateState: "" | "success" | "error" | "validating";
|
|
381
381
|
isGroup: boolean;
|
|
382
382
|
labelId: string;
|
|
383
383
|
inputIds: string[];
|
|
@@ -939,7 +939,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
939
939
|
asyncValidator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | Promise<void>) | undefined;
|
|
940
940
|
validator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | import("async-validator").SyncValidateResult) | undefined;
|
|
941
941
|
}[] | undefined;
|
|
942
|
-
readonly validateStatus?: ("" | "
|
|
942
|
+
readonly validateStatus?: ("" | "success" | "error" | "validating") | undefined;
|
|
943
943
|
readonly for?: string | undefined;
|
|
944
944
|
}[];
|
|
945
945
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -1065,7 +1065,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1065
1065
|
fields: {
|
|
1066
1066
|
$el: HTMLDivElement | undefined;
|
|
1067
1067
|
size: "" | "default" | "small" | "large";
|
|
1068
|
-
validateState: "" | "
|
|
1068
|
+
validateState: "" | "success" | "error" | "validating";
|
|
1069
1069
|
isGroup: boolean;
|
|
1070
1070
|
labelId: string;
|
|
1071
1071
|
inputIds: string[];
|
|
@@ -1627,7 +1627,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1627
1627
|
asyncValidator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | Promise<void>) | undefined;
|
|
1628
1628
|
validator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | import("async-validator").SyncValidateResult) | undefined;
|
|
1629
1629
|
}[] | undefined;
|
|
1630
|
-
readonly validateStatus?: ("" | "
|
|
1630
|
+
readonly validateStatus?: ("" | "success" | "error" | "validating") | undefined;
|
|
1631
1631
|
readonly for?: string | undefined;
|
|
1632
1632
|
}[];
|
|
1633
1633
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
@@ -1893,7 +1893,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1893
1893
|
fields: {
|
|
1894
1894
|
$el: HTMLDivElement | undefined;
|
|
1895
1895
|
size: "" | "default" | "small" | "large";
|
|
1896
|
-
validateState: "" | "
|
|
1896
|
+
validateState: "" | "success" | "error" | "validating";
|
|
1897
1897
|
isGroup: boolean;
|
|
1898
1898
|
labelId: string;
|
|
1899
1899
|
inputIds: string[];
|
|
@@ -2455,7 +2455,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2455
2455
|
asyncValidator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | Promise<void>) | undefined;
|
|
2456
2456
|
validator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | import("async-validator").SyncValidateResult) | undefined;
|
|
2457
2457
|
}[] | undefined;
|
|
2458
|
-
readonly validateStatus?: ("" | "
|
|
2458
|
+
readonly validateStatus?: ("" | "success" | "error" | "validating") | undefined;
|
|
2459
2459
|
readonly for?: string | undefined;
|
|
2460
2460
|
}[];
|
|
2461
2461
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -2581,7 +2581,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2581
2581
|
fields: {
|
|
2582
2582
|
$el: HTMLDivElement | undefined;
|
|
2583
2583
|
size: "" | "default" | "small" | "large";
|
|
2584
|
-
validateState: "" | "
|
|
2584
|
+
validateState: "" | "success" | "error" | "validating";
|
|
2585
2585
|
isGroup: boolean;
|
|
2586
2586
|
labelId: string;
|
|
2587
2587
|
inputIds: string[];
|
|
@@ -3143,7 +3143,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3143
3143
|
asyncValidator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | Promise<void>) | undefined;
|
|
3144
3144
|
validator?: ((rule: import("async-validator").InternalRuleItem, value: any, callback: (error?: string | Error | undefined) => void, source: import("async-validator").Values, options: import("async-validator").ValidateOption) => void | import("async-validator").SyncValidateResult) | undefined;
|
|
3145
3145
|
}[] | undefined;
|
|
3146
|
-
readonly validateStatus?: ("" | "
|
|
3146
|
+
readonly validateStatus?: ("" | "success" | "error" | "validating") | undefined;
|
|
3147
3147
|
readonly for?: string | undefined;
|
|
3148
3148
|
}[];
|
|
3149
3149
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
package/es/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.tree-item{width:100%}.tree-item .el-tooltip__trigger{display:block;overflow:hidden;width:100%;text-align:left;text-overflow:ellipsis;white-space:nowrap}.dinert-popover-classify{overflow-y:auto;margin:0;padding:0;list-style:none}.dinert-popover-classify li{margin:0;padding:0;list-style:none}.dinert-popover-classify li:first-child{border-bottom:1px solid var(--el-fill-color);line-height:32px}.dinert-popover-classify>.el-tree>.el-tree-node>.el-tree-node__content>.el-tree-node__expand-icon.is-leaf{display:none}.dinert-popover-classify .el-tree-node__children{overflow:unset}.dinert-table{display:flex;padding:20px;height:100%;border-radius:var(--el-bg-radius);background-color:var(--el-bg-color);flex-direction:column;box-sizing:border-box}.dinert-table .dinert-table-header{display:flex;justify-content:space-between;margin-bottom:12px;text-align:right}.dinert-table .dinert-table-header .dinert-popover-classify li .el-checkbox{width:100%;line-height:24px;height:24px}.dinert-table .dinert-table-header .dinert-table-header-left{text-align:left}.dinert-table .dinert-table-body{flex:1;height:0}.dinert-table .dinert-table-body .el-table .el-popper{max-width:50%}.dinert-table .dinert-table-body .el-table .el-table__header .el-table__cell.setting .setting-icon{display:inline-block}.dinert-table .dinert-table-body .el-table .el-table__header .el-table__cell .cell{color:var(--zp-color-secondary-text-title)}.dinert-table .dinert-table-body .el-table .el-table__header .el-table__cell .cell .setting-icon{vertical-align:-1px;margin-left:4px;cursor:pointer}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper td{color:var(--zp-color-secondary-text-title)}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper td .cell.el-tooltip>.cell-item{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper td .cell.el-tooltip>.cell-item .cell-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper .operations .el-dropdown{vertical-align:-2px}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper .operations .cell{display:flex;justify-content:center;align-items:center}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper .operations .cell .el-button{margin-right:8px;margin-left:0}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper .operations .cell .el-button:focus-visible{outline:none}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper .operations .cell .el-svg-icon{font-size:14px;color:var(--el-color-primary);cursor:pointer;flex:1}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper .operations .cell .el-svg-icon.delete{color:var(--el-color-danger)}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper .operations .cell .svg-icon{width:16px;height:16px;vertical-align:-2px;flex:1;color:var(--el-color-primary);cursor:pointer;fill:var(--el-color-primary)}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper .operations .cell .svg-icon.f-14{width:14px;height:14px}.dinert-table .dinert-table-footer{display:flex;margin-top:16px}.dinert-table .dinert-table-footer .el-pagination{display:flex;flex-wrap:wrap}.el-form.dinert-form{display:flex;overflow:hidden;padding:0;min-height:50px;border-radius:4px;background-color:var(--el-bg-color);transition:all .3s cubic-bezier(.645,.045,.355,1);box-sizing:content-box}.el-form.dinert-form.near.packUp{max-height:50px}.el-form.dinert-form.near .dinert-form-left .el-col{display:flex;align-items:center;margin-right:10px;width:auto;max-width:unset;flex:unset}.el-form.dinert-form.near .dinert-form-left .el-col .label-text>div>.el-cascader{width:210px}.el-form.dinert-form.near .dinert-form-right.isArrow{width:230px;flex:0 0 230px}.el-form.dinert-form.dialog .dinert-form-left{flex:1}.el-form.dinert-form.dialog .dinert-form-left .el-col .label-text>div{width:100%}.el-form.dinert-form.dialog .dinert-form-left .el-col.slider .label-text{overflow:unset}.el-form.dinert-form.dialog .dinert-form-left .el-col.slider .label-text .el-slider{padding-left:12px}.el-form.dinert-form.dialog .dinert-form-left .el-col.slider .label-text .el-slider .el-input-number{width:auto}.el-form.dinert-form .dinert-form-left .el-col .label-text .el-radio.is-bordered,.el-form.dinert-form .dinert-form-left .el-col .label-text .el-checkbox.is-bordered{margin-right:16px}.el-form.dinert-form .dinert-form-left .el-col .label-text .el-date-editor{width:210px}.el-form.dinert-form .dinert-form-left .el-col .label-text .el-date-editor--daterange{width:260px}.el-form.dinert-form .dinert-form-left .el-col .label-text>.el-input{width:210px}.el-form.dinert-form .dinert-form-left .el-col .label-text>.el-select{width:210px}.el-form.dinert-form .dinert-form-left .el-col .label-text .el-date-editor--datetimerange{width:400px}.el-form.dinert-form .dinert-form-right{display:flex;margin-left:24px}.el-form.dinert-form .dinert-form-right .dinert-form-right-operation{padding:0}.el-form.dinert-form .dinert-form-right .dinert-form-right-operation.el-button.is-text{padding-right:0;background-color:unset}.el-form.dinert-form div.el-form-item:not(.el-form-item--label-top){position:relative;display:flex;margin-right:0;margin-bottom:18px;width:100%}.el-form.dinert-form div.el-form-item:not(.el-form-item--label-top).show-label .el-form-item__content{width:0}.el-form.dinert-form div.el-form-item:not(.el-form-item--label-top).label-wrap .el-form-item__label{height:auto}.el-form.dinert-form div.el-form-item:not(.el-form-item--label-top).label-wrap .el-form-item__label .label-text{display:inline;text-align:left;white-space:normal}.el-form.dinert-form div.el-form-item.el-form-item--label-top{margin-right:0}.el-form.dinert-form div.el-form-item.el-form-item--label-top .el-form-item__label{display:inline-flex}.el-form.dinert-form div.el-form-item.el-form-item--label-top .dinert-tooltip.el-tooltip__trigger .label-text{white-space:normal}.el-form.dinert-form .el-form-item__content{flex:1;margin-left:0}.el-form.dinert-form .el-form-item__content .el-tooltip__trigger:not(.el-slider__button){width:100%}.el-form.dinert-form .el-form-item__content .el-input-number{width:100%}.el-form.dinert-form .el-form-item__content .el-input-number .el-input__inner{text-align:center}.el-form.dinert-form .el-form-item__content .el-textarea .el-textarea__inner{height:80px}.el-form.dinert-form .el-form-item__content .el-date-editor,.el-form.dinert-form .el-form-item__content .el-date-editor .el-input__wrapper{width:100%;box-sizing:border-box}.el-form.dinert-form .el-form-item__content .el-input__inner{overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.el-form.dinert-form .el-form-item__content .el-form-item__label{overflow:hidden;width:80px;max-width:80px;text-align:right;text-overflow:ellipsis;white-space:nowrap}.el-form.dinert-form .el-form-item__content .el-form-item__label .el-tooltip,.el-form.dinert-form .el-form-item__content .el-form-item__label .el-tooltip .label-text{display:inline}.dinert-table-page{display:flex;flex-direction:column;box-sizing:border-box}.dinert-table-page.text-wrap .el-table__header .cell{white-space:pre-wrap}.dinert-table-page.text-wrap .el-table__body .el-table__row td>.cell,.dinert-table-page.text-wrap .el-table__body .el-table__row td>.cell>.cell-item,.dinert-table-page.text-wrap .el-table__body .el-table__row td .cell.el-tooltip>.cell-item{white-space:pre-wrap}.dinert-table-page.text-wrap .el-table__body .el-table__row .el-button>span{text-align:left}.dinert-table-page.text-wrap .el-table__body .el-table__row span{white-space:pre-wrap;line-height:23px}.dinert-table-page.header-center .el-table__header .el-table__cell{text-align:center}.dinert-table-page.near .dinert-form-left{flex:unset}.dinert-table-page.near .dinert-form-left .el-col{margin-right:16px;width:auto;max-width:unset;flex:unset}.dinert-table-page.near .dinert-table-footer .el-pagination{margin-left:auto}.dinert-table-page.maxWidthAuto .el-form .el-form-item .el-form-item__label{max-width:unset}.dinert-table-page .el-form.dinert-form{padding:20px 20px 0;max-height:300px}.dinert-table-page .dinert-table{padding-top:0;height:0;flex:1}.dinert-tooltip.el-tooltip__trigger{display:block;height:100%}.dinert-tooltip.el-tooltip__trigger .text-tooltip{position:absolute;left:-999999999999px}.dinert-tooltip.el-tooltip__trigger .label-text{display:block;overflow:hidden;width:100%;height:100%;text-overflow:ellipsis;white-space:nowrap}.dinert-overlay.el-overlay.autoHeight .el-dialog{height:80%}.dinert-overlay.el-overlay.notPadding .el-dialog__body{padding:0}.dinert-overlay.el-overlay .el-dialog{top:10%;display:flex;min-width:310px;max-height:80%;border-radius:4px;flex-direction:column;--el-dialog-margin-top: 0;--el-dialog-padding-primary: 0}.dinert-overlay.el-overlay .el-dialog.is-fullscreen{top:unset;max-height:unset}.dinert-overlay.el-overlay .el-dialog__headerbtn{right:0;width:40px;height:100%;color:var(--el-color-info)}.dinert-overlay.el-overlay .el-dialog .full{position:absolute;top:-1.5px;right:34px;display:flex;justify-content:center;align-items:center;width:40px;height:100%;font-size:var(--el-message-close-size, 16px);border:none;color:var(--el-color-info);background:transparent;outline:none;cursor:pointer}.dinert-overlay.el-overlay .el-dialog .full:hover .icon{fill:var(--el-color-primary);color:var(--el-color-primary)}.dinert-overlay.el-overlay .el-dialog .full .icon{overflow:hidden;width:14px;height:14px;vertical-align:-.15em;fill:var(--el-color-info)}.dinert-overlay.el-overlay .el-dialog__header{position:relative;margin-right:0;padding:16px 24px;height:54px;box-sizing:border-box}.dinert-overlay.el-overlay .el-dialog__body{display:flex;overflow-y:auto;padding:24px;flex-direction:column;flex:1;word-wrap:break-word}.dinert-overlay.el-overlay .el-dialog__body>.el-form{overflow:unset}.dinert-overlay.el-overlay .el-dialog__footer{display:flex;justify-content:center;align-items:center;clear:both;padding:12px 24px 16px}.dinert-overlay.el-overlay .el-dialog__footer .el-button{margin:0}.dinert-overlay.el-overlay .el-dialog__footer .el-button+.el-button{margin-left:12px}
|
|
1
|
+
.tree-item{width:100%}.tree-item .el-tooltip__trigger{display:block;overflow:hidden;width:100%;text-align:left;text-overflow:ellipsis;white-space:nowrap}.dinert-popover-classify{overflow-y:auto;margin:0;padding:0;list-style:none}.dinert-popover-classify li{margin:0;padding:0;list-style:none}.dinert-popover-classify li:first-child{border-bottom:1px solid var(--el-fill-color);line-height:32px}.dinert-popover-classify>.el-tree>.el-tree-node>.el-tree-node__content>.el-tree-node__expand-icon.is-leaf{display:none}.dinert-popover-classify .el-tree-node__children{overflow:unset}.dinert-table{display:flex;padding:20px;height:100%;border-radius:var(--el-bg-radius);background-color:var(--el-bg-color);flex-direction:column;box-sizing:border-box}.dinert-table .dinert-table-header{display:flex;justify-content:space-between;margin-bottom:12px;text-align:right}.dinert-table .dinert-table-header .dinert-popover-classify li .el-checkbox{width:100%;line-height:24px;height:24px}.dinert-table .dinert-table-header .dinert-table-header-left{text-align:left}.dinert-table .dinert-table-body{flex:1;height:0}.dinert-table .dinert-table-body .el-table .el-popper{max-width:50%}.dinert-table .dinert-table-body .el-table .el-table__header .el-table__cell.setting .setting-icon{display:inline-block}.dinert-table .dinert-table-body .el-table .el-table__header .el-table__cell .cell{color:var(--zp-color-secondary-text-title)}.dinert-table .dinert-table-body .el-table .el-table__header .el-table__cell .cell .setting-icon{vertical-align:-1px;margin-left:4px;cursor:pointer}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper td{color:var(--zp-color-secondary-text-title)}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper td .cell.el-tooltip>.cell-item{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper td .cell.el-tooltip>.cell-item .cell-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper .operations .el-dropdown{vertical-align:-2px}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper .operations .cell{display:flex;justify-content:center;align-items:center}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper .operations .cell .el-button{margin-right:8px;margin-left:0}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper .operations .cell .el-button:focus-visible{outline:none}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper .operations .cell .el-svg-icon{font-size:14px;color:var(--el-color-primary);cursor:pointer;flex:1}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper .operations .cell .el-svg-icon.delete{color:var(--el-color-danger)}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper .operations .cell .svg-icon{width:16px;height:16px;vertical-align:-2px;flex:1;color:var(--el-color-primary);cursor:pointer;fill:var(--el-color-primary)}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper .operations .cell .svg-icon.f-14{width:14px;height:14px}.dinert-table .dinert-table-footer{display:flex;margin-top:16px}.dinert-table .dinert-table-footer .el-pagination{display:flex;flex-wrap:wrap}.dinert-table-page{display:flex;flex-direction:column;box-sizing:border-box}.dinert-table-page.text-wrap .el-table__header .cell{white-space:pre-wrap}.dinert-table-page.text-wrap .el-table__body .el-table__row td>.cell,.dinert-table-page.text-wrap .el-table__body .el-table__row td>.cell>.cell-item,.dinert-table-page.text-wrap .el-table__body .el-table__row td .cell.el-tooltip>.cell-item{white-space:pre-wrap}.dinert-table-page.text-wrap .el-table__body .el-table__row .el-button>span{text-align:left}.dinert-table-page.text-wrap .el-table__body .el-table__row span{white-space:pre-wrap;line-height:23px}.dinert-table-page.header-center .el-table__header .el-table__cell{text-align:center}.dinert-table-page.near .dinert-form-left{flex:unset}.dinert-table-page.near .dinert-form-left .el-col{margin-right:16px;width:auto;max-width:unset;flex:unset}.dinert-table-page.near .dinert-table-footer .el-pagination{margin-left:auto}.dinert-table-page.maxWidthAuto .el-form .el-form-item .el-form-item__label{max-width:unset}.dinert-table-page .el-form.dinert-form{padding:20px 20px 0;max-height:300px}.dinert-table-page .dinert-table{padding-top:0;height:0;flex:1}.el-form.dinert-form{display:flex;overflow:hidden;padding:0;min-height:50px;border-radius:4px;background-color:var(--el-bg-color);transition:all .3s cubic-bezier(.645,.045,.355,1);box-sizing:content-box}.el-form.dinert-form.near.packUp{max-height:50px}.el-form.dinert-form.near .dinert-form-left .el-col{display:flex;align-items:center;margin-right:10px;width:auto;max-width:unset;flex:unset}.el-form.dinert-form.near .dinert-form-left .el-col .label-text>div>.el-cascader{width:210px}.el-form.dinert-form.near .dinert-form-right.isArrow{width:230px;flex:0 0 230px}.el-form.dinert-form.dialog .dinert-form-left{flex:1}.el-form.dinert-form.dialog .dinert-form-left .el-col .label-text>div{width:100%}.el-form.dinert-form.dialog .dinert-form-left .el-col.slider .label-text{overflow:unset}.el-form.dinert-form.dialog .dinert-form-left .el-col.slider .label-text .el-slider{padding-left:12px}.el-form.dinert-form.dialog .dinert-form-left .el-col.slider .label-text .el-slider .el-input-number{width:auto}.el-form.dinert-form .dinert-form-left .el-col .label-text .el-radio.is-bordered,.el-form.dinert-form .dinert-form-left .el-col .label-text .el-checkbox.is-bordered{margin-right:16px}.el-form.dinert-form .dinert-form-left .el-col .label-text .el-date-editor{width:210px}.el-form.dinert-form .dinert-form-left .el-col .label-text .el-date-editor--daterange{width:260px}.el-form.dinert-form .dinert-form-left .el-col .label-text>.el-input{width:210px}.el-form.dinert-form .dinert-form-left .el-col .label-text>.el-select{width:210px}.el-form.dinert-form .dinert-form-left .el-col .label-text .el-date-editor--datetimerange{width:400px}.el-form.dinert-form .dinert-form-right{display:flex;margin-left:24px}.el-form.dinert-form .dinert-form-right .dinert-form-right-operation{padding:0}.el-form.dinert-form .dinert-form-right .dinert-form-right-operation.el-button.is-text{padding-right:0;background-color:unset}.el-form.dinert-form div.el-form-item:not(.el-form-item--label-top){position:relative;display:flex;margin-right:0;margin-bottom:18px;width:100%}.el-form.dinert-form div.el-form-item:not(.el-form-item--label-top).show-label .el-form-item__content{width:0}.el-form.dinert-form div.el-form-item:not(.el-form-item--label-top).label-wrap .el-form-item__label{height:auto}.el-form.dinert-form div.el-form-item:not(.el-form-item--label-top).label-wrap .el-form-item__label .label-text{display:inline;text-align:left;white-space:normal}.el-form.dinert-form div.el-form-item.el-form-item--label-top{margin-right:0}.el-form.dinert-form div.el-form-item.el-form-item--label-top .el-form-item__label{display:inline-flex}.el-form.dinert-form div.el-form-item.el-form-item--label-top .dinert-tooltip.el-tooltip__trigger .label-text{white-space:normal}.el-form.dinert-form .el-form-item__content{flex:1;margin-left:0}.el-form.dinert-form .el-form-item__content .el-tooltip__trigger:not(.el-slider__button){width:100%}.el-form.dinert-form .el-form-item__content .el-input-number{width:100%}.el-form.dinert-form .el-form-item__content .el-input-number .el-input__inner{text-align:center}.el-form.dinert-form .el-form-item__content .el-textarea .el-textarea__inner{height:80px}.el-form.dinert-form .el-form-item__content .el-date-editor,.el-form.dinert-form .el-form-item__content .el-date-editor .el-input__wrapper{width:100%;box-sizing:border-box}.el-form.dinert-form .el-form-item__content .el-input__inner{overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.el-form.dinert-form .el-form-item__content .el-form-item__label{overflow:hidden;width:80px;max-width:80px;text-align:right;text-overflow:ellipsis;white-space:nowrap}.el-form.dinert-form .el-form-item__content .el-form-item__label .el-tooltip,.el-form.dinert-form .el-form-item__content .el-form-item__label .el-tooltip .label-text{display:inline}.dinert-tooltip.el-tooltip__trigger{display:block;height:100%}.dinert-tooltip.el-tooltip__trigger .text-tooltip{position:absolute;left:-999999999999px}.dinert-tooltip.el-tooltip__trigger .label-text{display:block;overflow:hidden;width:100%;height:100%;text-overflow:ellipsis;white-space:nowrap}.dinert-overlay.el-overlay.autoHeight .el-dialog{height:80%}.dinert-overlay.el-overlay.notPadding .el-dialog__body{padding:0}.dinert-overlay.el-overlay .el-dialog{top:10%;display:flex;min-width:310px;max-height:80%;border-radius:4px;flex-direction:column;--el-dialog-margin-top: 0;--el-dialog-padding-primary: 0}.dinert-overlay.el-overlay .el-dialog.is-fullscreen{top:unset;max-height:unset}.dinert-overlay.el-overlay .el-dialog__headerbtn{right:0;width:40px;height:100%;color:var(--el-color-info)}.dinert-overlay.el-overlay .el-dialog .full{position:absolute;top:-1.5px;right:34px;display:flex;justify-content:center;align-items:center;width:40px;height:100%;font-size:var(--el-message-close-size, 16px);border:none;color:var(--el-color-info);background:transparent;outline:none;cursor:pointer}.dinert-overlay.el-overlay .el-dialog .full:hover .icon{fill:var(--el-color-primary);color:var(--el-color-primary)}.dinert-overlay.el-overlay .el-dialog .full .icon{overflow:hidden;width:14px;height:14px;vertical-align:-.15em;fill:var(--el-color-info)}.dinert-overlay.el-overlay .el-dialog__header{position:relative;margin-right:0;padding:16px 24px;height:54px;box-sizing:border-box}.dinert-overlay.el-overlay .el-dialog__body{display:flex;overflow-y:auto;padding:24px;flex-direction:column;flex:1;word-wrap:break-word}.dinert-overlay.el-overlay .el-dialog__body>.el-form{overflow:unset}.dinert-overlay.el-overlay .el-dialog__footer{display:flex;justify-content:center;align-items:center;clear:both;padding:12px 24px 16px}.dinert-overlay.el-overlay .el-dialog__footer .el-button{margin:0}.dinert-overlay.el-overlay .el-dialog__footer .el-button+.el-button{margin-left:12px}
|