@dinert/element-plus 1.1.22 → 1.1.24
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/cascader.mjs +19 -9
- package/es/packages/components/form/src/cascader.mjs.map +1 -1
- package/es/packages/components/form/src/checkbox.mjs.map +1 -1
- package/es/packages/components/form/src/date.mjs +22 -16
- package/es/packages/components/form/src/date.mjs.map +1 -1
- package/es/packages/components/form/src/index.mjs +156 -141
- package/es/packages/components/form/src/index.mjs.map +1 -1
- package/es/packages/components/form/src/input-autocomplete.mjs +12 -6
- package/es/packages/components/form/src/input-autocomplete.mjs.map +1 -1
- package/es/packages/components/form/src/input-number.mjs +12 -6
- package/es/packages/components/form/src/input-number.mjs.map +1 -1
- package/es/packages/components/form/src/input.mjs +12 -6
- package/es/packages/components/form/src/input.mjs.map +1 -1
- package/es/packages/components/form/src/rate.mjs +12 -6
- package/es/packages/components/form/src/rate.mjs.map +1 -1
- package/es/packages/components/form/src/select-v2.mjs +11 -6
- package/es/packages/components/form/src/select-v2.mjs.map +1 -1
- package/es/packages/components/form/src/select.mjs +13 -9
- package/es/packages/components/form/src/select.mjs.map +1 -1
- package/es/packages/components/form/src/switch.mjs +12 -6
- package/es/packages/components/form/src/switch.mjs.map +1 -1
- package/es/packages/components/form/src/tree-select.mjs +12 -7
- package/es/packages/components/form/src/tree-select.mjs.map +1 -1
- package/es/packages/components/form/utils/index.mjs +28 -17
- package/es/packages/components/form/utils/index.mjs.map +1 -1
- package/es/packages/components/table/src/index.mjs +100 -89
- package/es/packages/components/table/src/index.mjs.map +1 -1
- package/es/packages/components/table/src/recuve-table-column.mjs +96 -98
- package/es/packages/components/table/src/recuve-table-column.mjs.map +1 -1
- package/es/packages/index.mjs.map +1 -1
- package/es/packages/utils/tools.mjs +13 -12
- package/es/packages/utils/tools.mjs.map +1 -1
- package/es/src/components/form/index.d.ts +3 -1
- package/es/src/components/form/src/cascader.d.ts +1 -0
- package/es/src/components/form/src/checkbox.d.ts +1 -1
- package/es/src/components/form/src/date.d.ts +1 -0
- package/es/src/components/form/src/index.d.ts +3 -1
- package/es/src/components/form/src/input-autocomplete.d.ts +1 -0
- package/es/src/components/form/src/input-number.d.ts +1 -0
- package/es/src/components/form/src/input.d.ts +1 -0
- package/es/src/components/form/src/rate.d.ts +1 -0
- package/es/src/components/form/src/select-v2.d.ts +1 -0
- package/es/src/components/form/src/select.d.ts +1 -0
- package/es/src/components/form/src/switch.d.ts +1 -0
- package/es/src/components/form/src/tree-select.d.ts +1 -0
- package/es/src/components/form/types/index.d.ts +8 -1
- package/es/src/components/form/utils/index.d.ts +1 -0
- package/es/src/components/table/types/index.d.ts +2 -0
- package/es/src/components/table-page/index.d.ts +6 -2
- package/es/src/components/table-page/src/index.d.ts +6 -2
- package/es/src/index.d.ts +6 -6
- package/es/src/utils/tools.d.ts +1 -0
- 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 +3 -1
- package/lib/src/components/form/src/cascader.d.ts +1 -0
- package/lib/src/components/form/src/checkbox.d.ts +1 -1
- package/lib/src/components/form/src/date.d.ts +1 -0
- package/lib/src/components/form/src/index.d.ts +3 -1
- package/lib/src/components/form/src/input-autocomplete.d.ts +1 -0
- package/lib/src/components/form/src/input-number.d.ts +1 -0
- package/lib/src/components/form/src/input.d.ts +1 -0
- package/lib/src/components/form/src/rate.d.ts +1 -0
- package/lib/src/components/form/src/select-v2.d.ts +1 -0
- package/lib/src/components/form/src/select.d.ts +1 -0
- package/lib/src/components/form/src/switch.d.ts +1 -0
- package/lib/src/components/form/src/tree-select.d.ts +1 -0
- package/lib/src/components/form/types/index.d.ts +8 -1
- package/lib/src/components/form/utils/index.d.ts +1 -0
- package/lib/src/components/table/types/index.d.ts +2 -0
- package/lib/src/components/table-page/index.d.ts +6 -2
- package/lib/src/components/table-page/src/index.d.ts +6 -2
- package/lib/src/index.d.ts +6 -6
- package/lib/src/utils/tools.d.ts +1 -0
- package/package.json +7 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.mjs","sources":["../../../packages/utils/tools.ts"],"sourcesContent":["\n// 浏览器的各种存储\nexport const storage = (name: 'localStorage' | 'sessionStorage', key: string, value?: any) => {\n if (key === 'remove') {\n return (window as any)[name].removeItem(`dinert-zhdd-${value}`)\n } else if (key === 'clear') {\n return (window as any)[name].clear()\n } else if (value) {\n return (window as any)[name].setItem(`dinert-zhdd-${key}`, JSON.stringify(value))\n } else {\n return JSON.parse((window as any)[name].getItem(`dinert-zhdd-${key}`))\n }\n}\n\n// 首字母大写\nexport const firstUpperCase = (str: string) => {\n str = String(str)\n return str.replace(/^\\S/, s => s.toUpperCase())\n}\n\n// 重写判断类型\nexport const type = (type: any) => {\n return Object.prototype.toString\n .call(type)\n .split(' ')[1]\n .split(']')[0]\n .toLocaleLowerCase()\n}\n\n// 生成唯一ID\nexport const getUuid = (): string => {\n const s: any[] = []\n const hexDigits = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'\n for (let i = 0; i < 36; i++) {\n s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1)\n }\n s[14] = '4'\n s[19] = hexDigits.substr((+s[19] & 0x3) | 0x8, 1)\n s[8] = s[13] = s[18] = s[23] = '-'\n const uuid = s.join('')\n return uuid\n}\n\n\n/**\n *\n * @param {Object} obj\n * @param {String} path\n * @returns\n */\nexport const getPropByPath = (obj: any, path: string) => {\n let tempObj = obj\n path = path.replace(/\\[(\\w+)\\]/g, '.$1')\n path = path.replace(/^\\./, '')\n\n const keyArr = path.split('.')\n let i = 0\n for (let len = keyArr.length; i < len - 1; ++i) {\n // eslint-disable-next-line max-statements-per-line\n if (!tempObj) {break}\n const key = keyArr[i]\n if (key in tempObj) {\n tempObj = tempObj[key]\n } else {\n return null\n // break;\n }\n }\n return tempObj ? tempObj[keyArr[i]] : null\n}\n\nexport const dataTransformRod = (data: any, errData: any = '-') => {\n return [null, undefined, ''].includes(data) ? errData : data\n}\n\nfunction findNode(tree) {\n // 如果当前节点为目标节点,返回 true\n if (tree.checked === false) {\n return true\n }\n\n // 遍历当前节点的所有子节点\n if (tree.children && tree.children.length > 0) {\n // eslint-disable-next-line @typescript-eslint/prefer-for-of\n for (let i = 0; i < tree.children.length; i++) {\n // 对每个子节点递归执行查找过程\n const found = findNode(tree.children[i])\n if (found) {\n // 如果找到了目标节点,直接返回 true,结束递归\n return true\n }\n }\n }\n // 如果所有子节点都不是目标节点,返回 false\n return false\n}\n\n\n// 获取树指定的所有节点\nexport const getTreeNode = <T = any>(treeData: any, name: string, value: any, key: string): T[] => {\n const result: T[] = []\n\n // eslint-disable-next-line consistent-return\n const treeNode = (treeData2: any) => {\n // eslint-disable-next-line @typescript-eslint/prefer-for-of\n for (let i = 0; i < treeData2.length; i++) {\n const isFlag = findNode(treeData2[i])\n\n\n if (value.includes(treeData2[i][name]) && !isFlag && treeData2[i][key]) {\n result.push(treeData2[i][key])\n }\n if (treeData2[i].children && treeData2[i].children.length) {\n treeNode(treeData2[i].children)\n }\n }\n\n }\n treeNode(treeData)\n return result\n}\n\n// 树转扁平\nexport function convertToFlat<T = any>(data: T[], children: string = 'children', parentId: any = null): T[] {\n return data.reduce((acc: any, curr: any) => {\n acc.push({...curr, parentId})\n if (curr[children] && curr[children].length) {\n acc = acc.concat(convertToFlat(curr[children], children, curr.id))\n }\n return acc\n }, [])\n}\n\n// 格式化手机号\nexport function formatPhone(value: string): string {\n if (!/^1[3|4|5|7|8|9][0-9]\\d{4,8}$/.test(value)\n || value.length !== 11) {\n return value\n } else {\n const mobile = value.replace(/^(.{3})(.*)(.{4})/, '$1-$2-$3')\n return mobile\n }\n}\n\n// 下载文件\nexport const downFile = (response: any): any => {\n const content = response.data\n // blob内容是json,不下载\n if (response.headers['content-type'] === 'application/json;charset=UTF-8') {\n return response\n }\n const data = new Blob([content], {\n type: response.headers['content-type']\n })\n const downloadUrl = window.URL.createObjectURL(data)\n\n if (response.config.headers.prohibitDownload) {\n return downloadUrl\n }\n const anchor = document.createElement('a')\n anchor.href = downloadUrl\n let filename = response.headers['content-disposition'].split('=')[1]\n filename = filename.split(';')[0]\n anchor.download = decodeURIComponent(filename)\n anchor.target = '_blank'\n anchor.click()\n window.URL.revokeObjectURL((data as any))\n return true\n}\n\n// 转化数组为字符串\nexport const formatterArray = (cellValue: any) => {\n if (cellValue instanceof Array) {\n const joinValue = cellValue.join(',')\n return joinValue || '-'\n } else if (cellValue) {\n return cellValue\n } else {\n return '-'\n }\n}\n\n\nexport const columnProp = (prop: string) => {\n return 'column_' + prop.split('.').join('_')\n}\n\nexport const headerProp = (prop: string) => {\n return 'column_header_' + prop.split('.').join('_')\n}\n"],"names":["getUuid","s","hexDigits","i","getPropByPath","obj","path","tempObj","keyArr","len","key","dataTransformRod","data","errData","findNode","tree","getTreeNode","treeData","name","value","result","treeNode","treeData2","isFlag","columnProp","prop","headerProp"],"mappings":"AA8BO,MAAMA,IAAU,MAAc;AACjC,QAAMC,IAAW,CAAA,GACXC,IAAY;AAClB,WAASC,IAAI,GAAGA,IAAI,IAAIA;AAClB,IAAAF,EAAAE,CAAC,IAAID,EAAU,OAAO,KAAK,MAAM,KAAK,OAAO,IAAI,EAAI,GAAG,CAAC;AAE/D,SAAAD,EAAE,EAAE,IAAI,KACNA,EAAA,EAAE,IAAIC,EAAU,OAAQ,CAACD,EAAE,EAAE,IAAI,IAAO,GAAK,CAAC,GAC9CA,EAAA,CAAC,IAAIA,EAAE,EAAE,IAAIA,EAAE,EAAE,IAAIA,EAAE,EAAE,IAAI,KAClBA,EAAE,KAAK,EAAE;AAE1B,GASaG,IAAgB,CAACC,GAAUC,MAAiB;AACrD,MAAIC,IAAUF;AACP,EAAAC,IAAAA,EAAK,QAAQ,cAAc,KAAK,GAChCA,IAAAA,EAAK,QAAQ,OAAO,EAAE;AAEvB,QAAAE,IAASF,EAAK,MAAM,GAAG;AAC7B,MAAIH,IAAI;AACR,WAASM,IAAMD,EAAO,QAAQL,IAAIM,IAAM,KAE/BF,GAFkC,EAAEJ,GAAG;AAGtC,UAAAO,IAAMF,EAAOL,CAAC;AACpB,QAAIO,KAAOH;AACP,MAAAA,IAAUA,EAAQG,CAAG;AAAA;AAEd,aAAA;AAAA,EAGf;AACA,SAAOH,IAAUA,EAAQC,EAAOL,CAAC,CAAC,IAAI;AAC1C,GAEaQ,IAAmB,CAACC,GAAWC,IAAe,QAChD,CAAC,MAAM,QAAW,EAAE,EAAE,SAASD,CAAI,IAAIC,IAAUD;AAG5D,SAASE,EAASC,GAAM;AAEhB,MAAAA,EAAK,YAAY;AACV,WAAA;AAIX,MAAIA,EAAK,YAAYA,EAAK,SAAS,SAAS;AAExC,aAASZ,IAAI,GAAGA,IAAIY,EAAK,SAAS,QAAQZ;AAGtC,UADcW,EAASC,EAAK,SAASZ,CAAC,CAAC;AAG5B,eAAA;AAAA;AAKZ,SAAA;AACX;AAIO,MAAMa,IAAc,CAAUC,GAAeC,GAAcC,GAAYT,MAAqB;AAC/F,QAAMU,IAAc,CAAA,GAGdC,IAAW,CAACC,MAAmB;AAEjC,aAAS,IAAI,GAAG,IAAIA,EAAU,QAAQ,KAAK;AACvC,YAAMC,IAAST,EAASQ,EAAU,CAAC,CAAC;AAGpC,MAAIH,EAAM,SAASG,EAAU,CAAC,EAAEJ,CAAI,CAAC,KAAK,CAACK,KAAUD,EAAU,CAAC,EAAEZ,CAAG,KACjEU,EAAO,KAAKE,EAAU,CAAC,EAAEZ,CAAG,CAAC,GAE7BY,EAAU,CAAC,EAAE,YAAYA,EAAU,CAAC,EAAE,SAAS,UACtCD,EAAAC,EAAU,CAAC,EAAE,QAAQ;AAAA,IAEtC;AAAA,EAAA;AAGJ,SAAAD,EAASJ,CAAQ,GACVG;AACX,GA+DaI,IAAa,CAACC,MAChB,YAAYA,EAAK,MAAM,GAAG,EAAE,KAAK,GAAG,GAGlCC,IAAa,CAACD,MAChB,mBAAmBA,EAAK,MAAM,GAAG,EAAE,KAAK,GAAG;"}
|
|
1
|
+
{"version":3,"file":"tools.mjs","sources":["../../../packages/utils/tools.ts"],"sourcesContent":["\n// 浏览器的各种存储\nexport const storage = (name: 'localStorage' | 'sessionStorage', key: string, value?: any) => {\n if (key === 'remove') {\n return (window as any)[name].removeItem(`dinert-zhdd-${value}`)\n } else if (key === 'clear') {\n return (window as any)[name].clear()\n } else if (value) {\n return (window as any)[name].setItem(`dinert-zhdd-${key}`, JSON.stringify(value))\n } else {\n return JSON.parse((window as any)[name].getItem(`dinert-zhdd-${key}`))\n }\n}\n\n// 首字母大写\nexport const firstUpperCase = (str: string) => {\n str = String(str)\n return str.replace(/^\\S/, s => s.toUpperCase())\n}\n\n// 重写判断类型\nexport const type = (type: any) => {\n return Object.prototype.toString\n .call(type)\n .split(' ')[1]\n .split(']')[0]\n .toLocaleLowerCase()\n}\n\n// 生成唯一ID\nexport const getUuid = (): string => {\n const s: any[] = []\n const hexDigits = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'\n for (let i = 0; i < 36; i++) {\n s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1)\n }\n s[14] = '4'\n s[19] = hexDigits.substr((+s[19] & 0x3) | 0x8, 1)\n s[8] = s[13] = s[18] = s[23] = '-'\n const uuid = s.join('')\n return uuid\n}\n\n\n/**\n *\n * @param {Object} obj\n * @param {String} path\n * @returns\n */\nexport const getPropByPath = (obj: any, path: string) => {\n let tempObj = obj\n path = path.replace(/\\[(\\w+)\\]/g, '.$1')\n path = path.replace(/^\\./, '')\n\n const keyArr = path.split('.')\n let i = 0\n for (let len = keyArr.length; i < len - 1; ++i) {\n // eslint-disable-next-line max-statements-per-line\n if (!tempObj) {break}\n const key = keyArr[i]\n if (key in tempObj) {\n tempObj = tempObj[key]\n } else {\n return null\n // break;\n }\n }\n return tempObj ? tempObj[keyArr[i]] : null\n}\n\nexport const dataTransformRod = (data: any, errData: any = '-') => {\n return [null, undefined, ''].includes(data) ? errData : data\n}\n\nfunction findNode(tree) {\n // 如果当前节点为目标节点,返回 true\n if (tree.checked === false) {\n return true\n }\n\n // 遍历当前节点的所有子节点\n if (tree.children && tree.children.length > 0) {\n // eslint-disable-next-line @typescript-eslint/prefer-for-of\n for (let i = 0; i < tree.children.length; i++) {\n // 对每个子节点递归执行查找过程\n const found = findNode(tree.children[i])\n if (found) {\n // 如果找到了目标节点,直接返回 true,结束递归\n return true\n }\n }\n }\n // 如果所有子节点都不是目标节点,返回 false\n return false\n}\n\n\n// 获取树指定的所有节点\nexport const getTreeNode = <T = any>(treeData: any, name: string, value: any, key: string): T[] => {\n const result: T[] = []\n\n // eslint-disable-next-line consistent-return\n const treeNode = (treeData2: any) => {\n // eslint-disable-next-line @typescript-eslint/prefer-for-of\n for (let i = 0; i < treeData2.length; i++) {\n const isFlag = findNode(treeData2[i])\n\n\n if (value.includes(treeData2[i][name]) && !isFlag && treeData2[i][key]) {\n result.push(treeData2[i][key])\n }\n if (treeData2[i].children && treeData2[i].children.length) {\n treeNode(treeData2[i].children)\n }\n }\n\n }\n treeNode(treeData)\n return result\n}\n\n// 树转扁平\nexport function convertToFlat<T = any>(data: T[], children: string = 'children', parentId: any = null): T[] {\n return data.reduce((acc: any, curr: any) => {\n acc.push({...curr, parentId})\n if (curr[children] && curr[children].length) {\n acc = acc.concat(convertToFlat(curr[children], children, curr.id))\n }\n return acc\n }, [])\n}\n\n// 格式化手机号\nexport function formatPhone(value: string): string {\n if (!/^1[3|4|5|7|8|9][0-9]\\d{4,8}$/.test(value)\n || value.length !== 11) {\n return value\n } else {\n const mobile = value.replace(/^(.{3})(.*)(.{4})/, '$1-$2-$3')\n return mobile\n }\n}\n\n// 下载文件\nexport const downFile = (response: any): any => {\n const content = response.data\n // blob内容是json,不下载\n if (response.headers['content-type'] === 'application/json;charset=UTF-8') {\n return response\n }\n const data = new Blob([content], {\n type: response.headers['content-type']\n })\n const downloadUrl = window.URL.createObjectURL(data)\n\n if (response.config.headers.prohibitDownload) {\n return downloadUrl\n }\n const anchor = document.createElement('a')\n anchor.href = downloadUrl\n let filename = response.headers['content-disposition'].split('=')[1]\n filename = filename.split(';')[0]\n anchor.download = decodeURIComponent(filename)\n anchor.target = '_blank'\n anchor.click()\n window.URL.revokeObjectURL((data as any))\n return true\n}\n\n// 转化数组为字符串\nexport const formatterArray = (cellValue: any) => {\n if (cellValue instanceof Array) {\n const joinValue = cellValue.join(',')\n return joinValue || '-'\n } else if (cellValue) {\n return cellValue\n } else {\n return '-'\n }\n}\n\n\nexport const columnProp = (prop: string) => {\n return 'column_' + prop.split('.').join('_')\n}\n\nexport const headerProp = (prop: string) => {\n return 'column_header_' + prop.split('.').join('_')\n}\n\nexport const isSlotsValue = (slot: any) => {\n return slot && slot[0] && slot[0].children\n}\n"],"names":["getUuid","s","hexDigits","i","getPropByPath","obj","path","tempObj","keyArr","len","key","dataTransformRod","data","errData","findNode","tree","getTreeNode","treeData","name","value","result","treeNode","treeData2","isFlag","columnProp","prop","headerProp","isSlotsValue","slot"],"mappings":"AA8BO,MAAMA,IAAU,MAAc;AACjC,QAAMC,IAAW,CAAA,GACXC,IAAY;AAClB,WAASC,IAAI,GAAGA,IAAI,IAAIA;AAClB,IAAAF,EAAAE,CAAC,IAAID,EAAU,OAAO,KAAK,MAAM,KAAK,OAAO,IAAI,EAAI,GAAG,CAAC;AAE/D,SAAAD,EAAE,EAAE,IAAI,KACNA,EAAA,EAAE,IAAIC,EAAU,OAAQ,CAACD,EAAE,EAAE,IAAI,IAAO,GAAK,CAAC,GAC9CA,EAAA,CAAC,IAAIA,EAAE,EAAE,IAAIA,EAAE,EAAE,IAAIA,EAAE,EAAE,IAAI,KAClBA,EAAE,KAAK,EAAE;AAE1B,GASaG,IAAgB,CAACC,GAAUC,MAAiB;AACrD,MAAIC,IAAUF;AACP,EAAAC,IAAAA,EAAK,QAAQ,cAAc,KAAK,GAChCA,IAAAA,EAAK,QAAQ,OAAO,EAAE;AAEvB,QAAAE,IAASF,EAAK,MAAM,GAAG;AAC7B,MAAIH,IAAI;AACR,WAASM,IAAMD,EAAO,QAAQL,IAAIM,IAAM,KAE/BF,GAFkC,EAAEJ,GAAG;AAGtC,UAAAO,IAAMF,EAAOL,CAAC;AACpB,QAAIO,KAAOH;AACP,MAAAA,IAAUA,EAAQG,CAAG;AAAA;AAEd,aAAA;AAAA,EAGf;AACA,SAAOH,IAAUA,EAAQC,EAAOL,CAAC,CAAC,IAAI;AAC1C,GAEaQ,IAAmB,CAACC,GAAWC,IAAe,QAChD,CAAC,MAAM,QAAW,EAAE,EAAE,SAASD,CAAI,IAAIC,IAAUD;AAG5D,SAASE,EAASC,GAAM;AAEhB,MAAAA,EAAK,YAAY;AACV,WAAA;AAIX,MAAIA,EAAK,YAAYA,EAAK,SAAS,SAAS;AAExC,aAASZ,IAAI,GAAGA,IAAIY,EAAK,SAAS,QAAQZ;AAGtC,UADcW,EAASC,EAAK,SAASZ,CAAC,CAAC;AAG5B,eAAA;AAAA;AAKZ,SAAA;AACX;AAIO,MAAMa,IAAc,CAAUC,GAAeC,GAAcC,GAAYT,MAAqB;AAC/F,QAAMU,IAAc,CAAA,GAGdC,IAAW,CAACC,MAAmB;AAEjC,aAAS,IAAI,GAAG,IAAIA,EAAU,QAAQ,KAAK;AACvC,YAAMC,IAAST,EAASQ,EAAU,CAAC,CAAC;AAGpC,MAAIH,EAAM,SAASG,EAAU,CAAC,EAAEJ,CAAI,CAAC,KAAK,CAACK,KAAUD,EAAU,CAAC,EAAEZ,CAAG,KACjEU,EAAO,KAAKE,EAAU,CAAC,EAAEZ,CAAG,CAAC,GAE7BY,EAAU,CAAC,EAAE,YAAYA,EAAU,CAAC,EAAE,SAAS,UACtCD,EAAAC,EAAU,CAAC,EAAE,QAAQ;AAAA,IAEtC;AAAA,EAAA;AAGJ,SAAAD,EAASJ,CAAQ,GACVG;AACX,GA+DaI,IAAa,CAACC,MAChB,YAAYA,EAAK,MAAM,GAAG,EAAE,KAAK,GAAG,GAGlCC,IAAa,CAACD,MAChB,mBAAmBA,EAAK,MAAM,GAAG,EAAE,KAAK,GAAG,GAGzCE,IAAe,CAACC,MAClBA,KAAQA,EAAK,CAAC,KAAKA,EAAK,CAAC,EAAE;"}
|
|
@@ -11,8 +11,8 @@ export declare const DinertForm: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
11
11
|
};
|
|
12
12
|
}, {
|
|
13
13
|
formItemMap: import("vue").ComputedRef<any>;
|
|
14
|
-
unfold: () => void;
|
|
15
14
|
formClass: import("vue").Ref<string>;
|
|
15
|
+
formTypeRef: import("vue").Ref<any>;
|
|
16
16
|
formRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
17
17
|
readonly model: ObjectConstructor;
|
|
18
18
|
readonly rules: {
|
|
@@ -297,6 +297,8 @@ export declare const DinertForm: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
297
297
|
}> | undefined>;
|
|
298
298
|
packUp: import("vue").Ref<boolean>;
|
|
299
299
|
isArrow: import("vue").Ref<boolean>;
|
|
300
|
+
setFormTypeRefs: (type: string, el: any) => void;
|
|
301
|
+
unfold: () => void;
|
|
300
302
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("UnFold" | "SearchFn" | "ResetFn")[], "UnFold" | "SearchFn" | "ResetFn", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
301
303
|
form: {
|
|
302
304
|
type: import("vue").PropType<import("./types").RewriteFormProps<any, any>>;
|
|
@@ -11,6 +11,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
};
|
|
12
12
|
}, {
|
|
13
13
|
options: import("vue").ComputedRef<any>;
|
|
14
|
+
cascaderRef: import("vue").Ref<null>;
|
|
14
15
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
16
|
form: {
|
|
16
17
|
type: PropType<RewriteFormProps<any, any>>;
|
|
@@ -11,6 +11,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
};
|
|
12
12
|
}, {
|
|
13
13
|
options: import("vue").ComputedRef<any>;
|
|
14
|
+
dateRef: import("vue").Ref<null>;
|
|
14
15
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
16
|
form: {
|
|
16
17
|
type: PropType<RewriteFormProps<any, any>>;
|
|
@@ -11,8 +11,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
};
|
|
12
12
|
}, {
|
|
13
13
|
formItemMap: import("vue").ComputedRef<any>;
|
|
14
|
-
unfold: () => void;
|
|
15
14
|
formClass: import("vue").Ref<string>;
|
|
15
|
+
formTypeRef: import("vue").Ref<any>;
|
|
16
16
|
formRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
17
17
|
readonly model: ObjectConstructor;
|
|
18
18
|
readonly rules: {
|
|
@@ -297,6 +297,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
297
297
|
}> | undefined>;
|
|
298
298
|
packUp: import("vue").Ref<boolean>;
|
|
299
299
|
isArrow: import("vue").Ref<boolean>;
|
|
300
|
+
setFormTypeRefs: (type: string, el: any) => void;
|
|
301
|
+
unfold: () => void;
|
|
300
302
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("UnFold" | "SearchFn" | "ResetFn")[], "UnFold" | "SearchFn" | "ResetFn", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
301
303
|
form: {
|
|
302
304
|
type: PropType<RewriteFormProps<any, any>>;
|
|
@@ -11,6 +11,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
};
|
|
12
12
|
}, {
|
|
13
13
|
options: import("vue").ComputedRef<any>;
|
|
14
|
+
inputAutocompleteRef: import("vue").Ref<null>;
|
|
14
15
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
16
|
form: {
|
|
16
17
|
type: PropType<RewriteFormProps<any, any>>;
|
|
@@ -11,6 +11,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
};
|
|
12
12
|
}, {
|
|
13
13
|
options: import("vue").ComputedRef<any>;
|
|
14
|
+
inputNumber: import("vue").Ref<null>;
|
|
14
15
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
16
|
form: {
|
|
16
17
|
type: PropType<RewriteFormProps<any, any>>;
|
|
@@ -11,6 +11,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
};
|
|
12
12
|
}, {
|
|
13
13
|
options: import("vue").ComputedRef<any>;
|
|
14
|
+
inputRef: import("vue").Ref<null>;
|
|
14
15
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
16
|
form: {
|
|
16
17
|
type: PropType<RewriteFormProps<any, any>>;
|
|
@@ -11,6 +11,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
};
|
|
12
12
|
}, {
|
|
13
13
|
options: import("vue").ComputedRef<any>;
|
|
14
|
+
reateRef: import("vue").Ref<null>;
|
|
14
15
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
16
|
form: {
|
|
16
17
|
type: PropType<RewriteFormProps<any, any>>;
|
|
@@ -11,6 +11,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
};
|
|
12
12
|
}, {
|
|
13
13
|
options: import("vue").ComputedRef<any>;
|
|
14
|
+
selectV2Ref: import("vue").Ref<null>;
|
|
14
15
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
16
|
form: {
|
|
16
17
|
type: PropType<RewriteFormProps<any, any>>;
|
|
@@ -11,6 +11,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
};
|
|
12
12
|
}, {
|
|
13
13
|
options: import("vue").ComputedRef<any>;
|
|
14
|
+
selectRef: null;
|
|
14
15
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
16
|
form: {
|
|
16
17
|
type: PropType<RewriteFormProps<any, any>>;
|
|
@@ -11,6 +11,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
};
|
|
12
12
|
}, {
|
|
13
13
|
options: import("vue").ComputedRef<any>;
|
|
14
|
+
switchRef: import("vue").Ref<null>;
|
|
14
15
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
16
|
form: {
|
|
16
17
|
type: PropType<RewriteFormProps<any, any>>;
|
|
@@ -11,6 +11,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
};
|
|
12
12
|
}, {
|
|
13
13
|
options: import("vue").ComputedRef<any>;
|
|
14
|
+
treeSelectRef: import("vue").Ref<null>;
|
|
14
15
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
16
|
form: {
|
|
16
17
|
type: PropType<RewriteFormProps<any, any>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type FormProps, type FormItemProps, type ColProps, type RowProps } from 'element-plus';
|
|
1
|
+
import { type FormProps, type FormItemProps, type ColProps, type RowProps, ButtonProps } from 'element-plus';
|
|
2
2
|
import { RewriteInputProps, RewriteSelectProps, RewriteTextareaProps, RewriteCascaderProps, RewriteAutocompleteProps, RewriteInputNumberProps, RewriteSwitchProps, RewriteDatePickerProps, RewriteRadioGroupProps, RewriteCheckboxGroupProps, RewriteTreeSelectProps, RewriteRewriteRateProps } from './components';
|
|
3
3
|
import { MergeProp } from './utils';
|
|
4
4
|
type RewriteColProps = Partial<ColProps>;
|
|
@@ -55,12 +55,19 @@ type FormItemMap<D, FI> = {
|
|
|
55
55
|
};
|
|
56
56
|
export interface RewriteFormProps<D = any, FI = any> extends Omit<Partial<FormProps>, 'model'> {
|
|
57
57
|
model: Partial<MergeProp<D, ToString<FI>>>;
|
|
58
|
+
vif?: boolean | ((model: D) => boolean);
|
|
58
59
|
formItem: Partial<FormItemMap<D, FI>>;
|
|
59
60
|
colLayout?: RewriteColProps;
|
|
60
61
|
row?: RewriteRowProps;
|
|
61
62
|
showLabel?: boolean;
|
|
62
63
|
required?: boolean;
|
|
63
64
|
packUp?: boolean;
|
|
65
|
+
searchButton?: Partial<ButtonProps & {
|
|
66
|
+
message?: string;
|
|
67
|
+
}>;
|
|
68
|
+
resetButton?: Partial<ButtonProps & {
|
|
69
|
+
message?: string;
|
|
70
|
+
}>;
|
|
64
71
|
}
|
|
65
72
|
export interface DinertFormProps<D = any, FI = any> {
|
|
66
73
|
form: RewriteFormProps<D, FI>;
|
|
@@ -4,3 +4,4 @@ export declare const getTooltipValue: (value: any, item: any) => any;
|
|
|
4
4
|
export declare const valueMouseEnter: (e: MouseEvent, item: any, value: any, _this: any) => void;
|
|
5
5
|
export declare const customPlaceholder: (customName: any, type?: string, name?: string) => string;
|
|
6
6
|
export declare const formItemSlot: (customName: any, name?: string) => string;
|
|
7
|
+
export declare const renderSlot: (arr: string[] | undefined, _this: any, slots: any, item: any) => any;
|
|
@@ -44,6 +44,8 @@ export interface RewriteTableProps<T = any> extends TableProps<T>, TableFnProps
|
|
|
44
44
|
errData?: string;
|
|
45
45
|
setting?: boolean;
|
|
46
46
|
key?: any;
|
|
47
|
+
rowIndex?: RewriteTableColumnCtx<T>;
|
|
48
|
+
rowSelection?: RewriteTableColumnCtx<T>;
|
|
47
49
|
class?: string;
|
|
48
50
|
pagination: RewritePaginationProps;
|
|
49
51
|
}
|
|
@@ -158,8 +158,8 @@ export declare const DinertTablePage: SFCWithInstall<import("vue").DefineCompone
|
|
|
158
158
|
onResetFn?: ((...args: any[]) => any) | undefined;
|
|
159
159
|
}, {
|
|
160
160
|
formItemMap: import("vue").ComputedRef<any>;
|
|
161
|
-
unfold: () => void;
|
|
162
161
|
formClass: import("vue").Ref<string>;
|
|
162
|
+
formTypeRef: import("vue").Ref<any>;
|
|
163
163
|
formRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
164
164
|
readonly model: ObjectConstructor;
|
|
165
165
|
readonly rules: {
|
|
@@ -444,6 +444,8 @@ export declare const DinertTablePage: SFCWithInstall<import("vue").DefineCompone
|
|
|
444
444
|
}> | undefined>;
|
|
445
445
|
packUp: import("vue").Ref<boolean>;
|
|
446
446
|
isArrow: import("vue").Ref<boolean>;
|
|
447
|
+
setFormTypeRefs: (type: string, el: any) => void;
|
|
448
|
+
unfold: () => void;
|
|
447
449
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("UnFold" | "SearchFn" | "ResetFn")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
448
450
|
form: {
|
|
449
451
|
type: import("vue").PropType<import("..").RewriteFormProps<any, any>>;
|
|
@@ -482,8 +484,8 @@ export declare const DinertTablePage: SFCWithInstall<import("vue").DefineCompone
|
|
|
482
484
|
onResetFn?: ((...args: any[]) => any) | undefined;
|
|
483
485
|
}, {
|
|
484
486
|
formItemMap: import("vue").ComputedRef<any>;
|
|
485
|
-
unfold: () => void;
|
|
486
487
|
formClass: import("vue").Ref<string>;
|
|
488
|
+
formTypeRef: import("vue").Ref<any>;
|
|
487
489
|
formRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
488
490
|
readonly model: ObjectConstructor;
|
|
489
491
|
readonly rules: {
|
|
@@ -768,6 +770,8 @@ export declare const DinertTablePage: SFCWithInstall<import("vue").DefineCompone
|
|
|
768
770
|
}> | undefined>;
|
|
769
771
|
packUp: import("vue").Ref<boolean>;
|
|
770
772
|
isArrow: import("vue").Ref<boolean>;
|
|
773
|
+
setFormTypeRefs: (type: string, el: any) => void;
|
|
774
|
+
unfold: () => void;
|
|
771
775
|
}, {}, {}, {}, {
|
|
772
776
|
form: import("..").RewriteFormProps<any, any>;
|
|
773
777
|
search: boolean;
|
|
@@ -159,8 +159,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
159
159
|
onResetFn?: ((...args: any[]) => any) | undefined;
|
|
160
160
|
}, {
|
|
161
161
|
formItemMap: import("vue").ComputedRef<any>;
|
|
162
|
-
unfold: () => void;
|
|
163
162
|
formClass: import("vue").Ref<string>;
|
|
163
|
+
formTypeRef: import("vue").Ref<any>;
|
|
164
164
|
formRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
165
165
|
readonly model: ObjectConstructor;
|
|
166
166
|
readonly rules: {
|
|
@@ -445,6 +445,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
445
445
|
}> | undefined>;
|
|
446
446
|
packUp: import("vue").Ref<boolean>;
|
|
447
447
|
isArrow: import("vue").Ref<boolean>;
|
|
448
|
+
setFormTypeRefs: (type: string, el: any) => void;
|
|
449
|
+
unfold: () => void;
|
|
448
450
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("UnFold" | "SearchFn" | "ResetFn")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
449
451
|
form: {
|
|
450
452
|
type: PropType<RewriteFormProps<any, any>>;
|
|
@@ -483,8 +485,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
483
485
|
onResetFn?: ((...args: any[]) => any) | undefined;
|
|
484
486
|
}, {
|
|
485
487
|
formItemMap: import("vue").ComputedRef<any>;
|
|
486
|
-
unfold: () => void;
|
|
487
488
|
formClass: import("vue").Ref<string>;
|
|
489
|
+
formTypeRef: import("vue").Ref<any>;
|
|
488
490
|
formRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
489
491
|
readonly model: ObjectConstructor;
|
|
490
492
|
readonly rules: {
|
|
@@ -769,6 +771,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
769
771
|
}> | undefined>;
|
|
770
772
|
packUp: import("vue").Ref<boolean>;
|
|
771
773
|
isArrow: import("vue").Ref<boolean>;
|
|
774
|
+
setFormTypeRefs: (type: string, el: any) => void;
|
|
775
|
+
unfold: () => void;
|
|
772
776
|
}, {}, {}, {}, {
|
|
773
777
|
form: RewriteFormProps<any, any>;
|
|
774
778
|
search: boolean;
|
package/es/src/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Plugin } from 'vue';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import tablePage from './hooks/TablePage/index';
|
|
3
|
+
import useDialog from './hooks/UseDialog/index';
|
|
4
|
+
import useForm from './hooks/UseForm/index';
|
|
5
5
|
export { dataTransformRod } from './utils/tools';
|
|
6
6
|
export * from './components/index';
|
|
7
|
-
export declare const TablePage: typeof
|
|
8
|
-
export declare const UseDialog: typeof
|
|
9
|
-
export declare const UseForm: typeof
|
|
7
|
+
export declare const TablePage: typeof tablePage;
|
|
8
|
+
export declare const UseDialog: typeof useDialog;
|
|
9
|
+
export declare const UseForm: typeof useForm;
|
|
10
10
|
export * from './hooks/TablePage/types/index';
|
|
11
11
|
declare const myPlugin: Plugin;
|
|
12
12
|
export default myPlugin;
|
package/es/src/utils/tools.d.ts
CHANGED
|
@@ -17,3 +17,4 @@ export declare const downFile: (response: any) => any;
|
|
|
17
17
|
export declare const formatterArray: (cellValue: any) => any;
|
|
18
18
|
export declare const columnProp: (prop: string) => string;
|
|
19
19
|
export declare const headerProp: (prop: string) => string;
|
|
20
|
+
export declare const isSlotsValue: (slot: any) => any;
|
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}.el-popover-classify{overflow-y:auto;margin:0;padding:0;list-style:none}.el-popover-classify li{margin:0;padding:0;list-style:none}.el-popover-classify li:first-child{border-bottom:1px solid var(--el-fill-color);line-height:32px}.el-popover-classify>.el-tree>.el-tree-node>.el-tree-node__content>.el-tree-node__expand-icon.is-leaf{display:none}.el-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 .el-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}.
|
|
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}.tree-item{width:100%}.tree-item .el-tooltip__trigger{display:block;overflow:hidden;width:100%;text-align:left;text-overflow:ellipsis;white-space:nowrap}.el-popover-classify{overflow-y:auto;margin:0;padding:0;list-style:none}.el-popover-classify li{margin:0;padding:0;list-style:none}.el-popover-classify li:first-child{border-bottom:1px solid var(--el-fill-color);line-height:32px}.el-popover-classify>.el-tree>.el-tree-node>.el-tree-node__content>.el-tree-node__expand-icon.is-leaf{display:none}.el-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 .el-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 .el-form-left{flex:unset}.dinert-table-page.near .el-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-form.el-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}.dinert-form.el-form.near.packUp{max-height:50px}.dinert-form.el-form.near .el-form-left .el-col{display:flex;align-items:center;margin-right:10px;width:auto;max-width:unset;flex:unset}.dinert-form.el-form.near .el-form-right.isArrow{width:230px;flex:0 0 230px}.dinert-form.el-form.dialog .el-form-left{flex:1}.dinert-form.el-form.dialog .el-form-left .el-col .label-text>div{width:100%}.dinert-form.el-form .el-form-left .el-col .label-text .el-radio.is-bordered,.dinert-form.el-form .el-form-left .el-col .label-text .el-checkbox.is-bordered{margin-right:16px}.dinert-form.el-form .el-form-left .el-col .label-text .el-date-editor{width:210px}.dinert-form.el-form .el-form-left .el-col .label-text .el-date-editor--daterange{width:260px}.dinert-form.el-form .el-form-left .el-col .label-text>.el-input{width:210px}.dinert-form.el-form .el-form-left .el-col .label-text>.el-select{width:210px}.dinert-form.el-form .el-form-left .el-col .label-text .el-date-editor--datetimerange{width:400px}.dinert-form.el-form .el-form-right{display:flex;margin-left:24px}.dinert-form.el-form .el-form-right .el-form-right-operation{padding:0}.dinert-form.el-form .el-form-right .el-form-right-operation.el-button.is-text{padding-right:0;background-color:unset}.dinert-form.el-form div.el-form-item{position:relative;display:flex;margin-right:0;margin-bottom:18px;width:100%}.dinert-form.el-form div.el-form-item.show-label .label-text{overflow:unset;text-overflow:unset;white-space:unset}.dinert-form.el-form div.el-form-item.label-wrap .el-form-item__label{height:auto}.dinert-form.el-form div.el-form-item.label-wrap .el-form-item__label .label-text{display:inline;text-align:left;white-space:normal}.dinert-form.el-form .el-form-item__content{flex:1;margin-left:0}.dinert-form.el-form .el-form-item__content .el-tooltip__trigger,.dinert-form.el-form .el-form-item__content .el-input-number{width:100%}.dinert-form.el-form .el-form-item__content .el-input-number .el-input__inner{text-align:center}.dinert-form.el-form .el-form-item__content .el-textarea .el-textarea__inner{height:80px}.dinert-form.el-form .el-form-item__content .el-date-editor,.dinert-form.el-form .el-form-item__content .el-date-editor .el-input__wrapper{width:100%;box-sizing:border-box}.dinert-form.el-form .el-form-item__content .el-input__inner{overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.dinert-form.el-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}.dinert-form.el-form .el-form-item__content .el-form-item__label .el-tooltip,.dinert-form.el-form .el-form-item__content .el-form-item__label .el-tooltip .label-text{display:inline}.el-overlay.autoHeight .el-dialog{height:80%}.el-overlay.notPadding .el-dialog__body{padding:0}.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}.el-overlay .el-dialog.is-fullscreen{top:unset;max-height:unset}.el-overlay .el-dialog__headerbtn{right:0;width:40px;height:100%;color:var(--el-color-info)}.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}.el-overlay .el-dialog .full:hover .icon{fill:var(--el-color-primary);color:var(--el-color-primary)}.el-overlay .el-dialog .full .icon{overflow:hidden;width:14px;height:14px;vertical-align:-.15em;fill:var(--el-color-info)}.el-overlay .el-dialog__header{position:relative;margin-right:0;padding:16px 24px;height:54px;box-sizing:border-box}.el-overlay .el-dialog__body{display:flex;overflow-y:auto;padding:24px;flex-direction:column;flex:1;word-wrap:break-word}.el-overlay .el-dialog__body>.el-form{overflow:unset}.el-overlay .el-dialog__footer{display:flex;justify-content:center;align-items:center;clear:both;padding:12px 24px 16px}.el-overlay .el-dialog__footer .el-button{margin:0}.el-overlay .el-dialog__footer .el-button+.el-button{margin-left:12px}
|