@dinert/element-plus 1.1.45 → 2.0.0
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/README.md +4 -2
- package/dist/element-plus.umd.js +2 -2
- package/dist/element-plus.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/es/node_modules/@element-plus/icons-vue/dist/index.mjs +22 -97
- package/es/node_modules/@element-plus/icons-vue/dist/index.mjs.map +1 -1
- package/es/packages/assets/scss/dinert-dialog.scss +81 -60
- package/es/packages/assets/scss/dinert-drawer.scss +69 -0
- package/es/packages/assets/scss/dinert-drawer.scss.mjs +2 -0
- package/es/packages/assets/scss/dinert-drawer.scss.mjs.map +1 -0
- package/es/packages/assets/scss/dinert-form.scss +65 -52
- package/es/packages/assets/scss/dinert-table-page.scss +11 -13
- package/es/packages/assets/scss/dinert-table.scss +100 -88
- package/es/packages/assets/scss/dinert-tooltip.scss +2 -3
- package/es/packages/components/dialog/src/index.mjs +112 -48
- package/es/packages/components/dialog/src/index.mjs.map +1 -1
- package/es/packages/components/drawer/index.mjs +10 -0
- package/es/packages/components/drawer/index.mjs.map +1 -0
- package/es/packages/components/drawer/src/index.mjs +88 -0
- package/es/packages/components/drawer/src/index.mjs.map +1 -0
- package/es/packages/components/form/src/cascader.mjs +30 -18
- package/es/packages/components/form/src/cascader.mjs.map +1 -1
- package/es/packages/components/form/src/checkbox.mjs +35 -20
- package/es/packages/components/form/src/checkbox.mjs.map +1 -1
- package/es/packages/components/form/src/date.mjs +35 -22
- package/es/packages/components/form/src/date.mjs.map +1 -1
- package/es/packages/components/form/src/form-item.mjs +384 -0
- package/es/packages/components/form/src/form-item.mjs.map +1 -0
- package/es/packages/components/form/src/index.mjs +48 -244
- package/es/packages/components/form/src/index.mjs.map +1 -1
- package/es/packages/components/form/src/input-autocomplete.mjs +22 -10
- package/es/packages/components/form/src/input-autocomplete.mjs.map +1 -1
- package/es/packages/components/form/src/input-number.mjs +22 -10
- package/es/packages/components/form/src/input-number.mjs.map +1 -1
- package/es/packages/components/form/src/input.mjs +29 -19
- package/es/packages/components/form/src/input.mjs.map +1 -1
- package/es/packages/components/form/src/radio.mjs +28 -13
- package/es/packages/components/form/src/radio.mjs.map +1 -1
- package/es/packages/components/form/src/rate.mjs +22 -10
- package/es/packages/components/form/src/rate.mjs.map +1 -1
- package/es/packages/components/form/src/select-v2.mjs +22 -10
- package/es/packages/components/form/src/select-v2.mjs.map +1 -1
- package/es/packages/components/form/src/select.mjs +24 -10
- package/es/packages/components/form/src/select.mjs.map +1 -1
- package/es/packages/components/form/src/slider.mjs +22 -10
- package/es/packages/components/form/src/slider.mjs.map +1 -1
- package/es/packages/components/form/src/switch.mjs +24 -12
- package/es/packages/components/form/src/switch.mjs.map +1 -1
- package/es/packages/components/form/src/time-picker.mjs +22 -10
- package/es/packages/components/form/src/time-picker.mjs.map +1 -1
- package/es/packages/components/form/src/time-select.mjs +22 -10
- package/es/packages/components/form/src/time-select.mjs.map +1 -1
- package/es/packages/components/form/src/tree-select.mjs +28 -16
- package/es/packages/components/form/src/tree-select.mjs.map +1 -1
- package/es/packages/components/form/utils/index.mjs +35 -93
- package/es/packages/components/form/utils/index.mjs.map +1 -1
- package/es/packages/components/index.mjs +10 -10
- package/es/packages/components/table/hooks/index.mjs +9 -12
- package/es/packages/components/table/hooks/index.mjs.map +1 -1
- package/es/packages/components/table/src/index.mjs +130 -207
- package/es/packages/components/table/src/index.mjs.map +1 -1
- package/es/packages/components/table/src/recuve-table-column.mjs +69 -264
- package/es/packages/components/table/src/recuve-table-column.mjs.map +1 -1
- package/es/packages/components/table/src/table-column-control.mjs +60 -0
- package/es/packages/components/table/src/table-column-control.mjs.map +1 -0
- package/es/packages/components/table/src/table-column-operations.mjs +126 -0
- package/es/packages/components/table/src/table-column-operations.mjs.map +1 -0
- package/es/packages/components/table/src/table-header.mjs +128 -0
- package/es/packages/components/table/src/table-header.mjs.map +1 -0
- package/es/packages/components/table/src/table-setting-control.mjs +49 -0
- package/es/packages/components/table/src/table-setting-control.mjs.map +1 -0
- package/es/packages/components/table-page/src/index.mjs +10 -10
- package/es/packages/components/table-page/src/index.mjs.map +1 -1
- package/es/packages/hooks/TablePage/index.mjs +11 -10
- package/es/packages/hooks/TablePage/index.mjs.map +1 -1
- package/es/packages/index.mjs +8 -8
- package/es/packages/utils/tools.mjs +12 -13
- package/es/packages/utils/tools.mjs.map +1 -1
- package/es/src/components/drawer/index.d.ts +4 -0
- package/es/src/components/drawer/src/index.d.ts +3 -0
- package/es/src/components/drawer/types/index.d.ts +10 -0
- package/es/src/components/form/index.d.ts +62 -6
- package/es/src/components/form/src/cascader.d.ts +5 -2
- package/es/src/components/form/src/checkbox.d.ts +5 -2
- package/es/src/components/form/src/date.d.ts +5 -2
- package/es/src/components/form/src/form-item.d.ts +32 -0
- package/es/src/components/form/src/index.d.ts +63 -8
- package/es/src/components/form/src/input-autocomplete.d.ts +5 -2
- package/es/src/components/form/src/input-number.d.ts +5 -2
- package/es/src/components/form/src/input.d.ts +3 -1
- package/es/src/components/form/src/radio.d.ts +5 -2
- package/es/src/components/form/src/rate.d.ts +5 -2
- package/es/src/components/form/src/select-v2.d.ts +5 -2
- package/es/src/components/form/src/select.d.ts +5 -2
- package/es/src/components/form/src/slider.d.ts +5 -2
- package/es/src/components/form/src/switch.d.ts +5 -2
- package/es/src/components/form/src/time-picker.d.ts +5 -2
- package/es/src/components/form/src/time-select.d.ts +5 -2
- package/es/src/components/form/src/tree-select.d.ts +5 -2
- package/es/src/components/form/types/components.d.ts +1 -2
- package/es/src/components/form/types/index.d.ts +77 -18
- package/es/src/components/form/utils/index.d.ts +2 -1
- package/es/src/components/index.d.ts +2 -2
- package/es/src/components/table/index.d.ts +8 -13
- package/es/src/components/table/src/index.d.ts +8 -13
- package/es/src/components/table/src/recuve-table-column.d.ts +3 -4
- package/es/src/components/table/src/table-column-control.d.ts +20 -0
- package/es/src/components/table/src/table-column-operations.d.ts +41 -0
- package/es/src/components/table/src/table-header.d.ts +88 -0
- package/es/src/components/table/src/table-setting-control.d.ts +55 -0
- package/es/src/components/table/types/index.d.ts +15 -14
- package/es/src/components/table-page/index.d.ts +143 -41
- package/es/src/components/table-page/src/index.d.ts +143 -41
- package/es/src/hooks/TablePage/index.d.ts +1 -1
- package/es/src/views/test-tsx-table/index.d.ts +6 -0
- package/es/style.css +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/src/components/drawer/index.d.ts +4 -0
- package/lib/src/components/drawer/src/index.d.ts +3 -0
- package/lib/src/components/drawer/types/index.d.ts +10 -0
- package/lib/src/components/form/index.d.ts +62 -6
- package/lib/src/components/form/src/cascader.d.ts +5 -2
- package/lib/src/components/form/src/checkbox.d.ts +5 -2
- package/lib/src/components/form/src/date.d.ts +5 -2
- package/lib/src/components/form/src/form-item.d.ts +32 -0
- package/lib/src/components/form/src/index.d.ts +63 -8
- package/lib/src/components/form/src/input-autocomplete.d.ts +5 -2
- package/lib/src/components/form/src/input-number.d.ts +5 -2
- package/lib/src/components/form/src/input.d.ts +3 -1
- package/lib/src/components/form/src/radio.d.ts +5 -2
- package/lib/src/components/form/src/rate.d.ts +5 -2
- package/lib/src/components/form/src/select-v2.d.ts +5 -2
- package/lib/src/components/form/src/select.d.ts +5 -2
- package/lib/src/components/form/src/slider.d.ts +5 -2
- package/lib/src/components/form/src/switch.d.ts +5 -2
- package/lib/src/components/form/src/time-picker.d.ts +5 -2
- package/lib/src/components/form/src/time-select.d.ts +5 -2
- package/lib/src/components/form/src/tree-select.d.ts +5 -2
- package/lib/src/components/form/types/components.d.ts +1 -2
- package/lib/src/components/form/types/index.d.ts +77 -18
- package/lib/src/components/form/utils/index.d.ts +2 -1
- package/lib/src/components/index.d.ts +2 -2
- package/lib/src/components/table/index.d.ts +8 -13
- package/lib/src/components/table/src/index.d.ts +8 -13
- package/lib/src/components/table/src/recuve-table-column.d.ts +3 -4
- package/lib/src/components/table/src/table-column-control.d.ts +20 -0
- package/lib/src/components/table/src/table-column-operations.d.ts +41 -0
- package/lib/src/components/table/src/table-header.d.ts +88 -0
- package/lib/src/components/table/src/table-setting-control.d.ts +55 -0
- package/lib/src/components/table/types/index.d.ts +15 -14
- package/lib/src/components/table-page/index.d.ts +143 -41
- package/lib/src/components/table-page/src/index.d.ts +143 -41
- package/lib/src/hooks/TablePage/index.d.ts +1 -1
- package/lib/src/views/test-tsx-table/index.d.ts +6 -0
- package/lib/style.css +1 -1
- package/package.json +2 -1
- package/es/packages/assets/scss/dinert-tooltip.scss.mjs +0 -2
- package/es/packages/assets/scss/dinert-tooltip.scss.mjs.map +0 -1
- package/es/packages/components/tooltip/index.mjs +0 -10
- package/es/packages/components/tooltip/index.mjs.map +0 -1
- package/es/packages/components/tooltip/src/index.mjs +0 -54
- package/es/packages/components/tooltip/src/index.mjs.map +0 -1
- package/es/src/components/tooltip/index.d.ts +0 -51
- package/es/src/components/tooltip/src/index.d.ts +0 -50
- package/es/src/components/tooltip/types/index.d.ts +0 -10
- package/lib/src/components/tooltip/index.d.ts +0 -51
- package/lib/src/components/tooltip/src/index.d.ts +0 -50
- package/lib/src/components/tooltip/types/index.d.ts +0 -10
package/es/packages/index.mjs
CHANGED
|
@@ -2,28 +2,28 @@ import * as o from "./components/index.mjs";
|
|
|
2
2
|
import t from "./hooks/TablePage/index.mjs";
|
|
3
3
|
import m from "./hooks/UseDialog/index.mjs";
|
|
4
4
|
import a from "./hooks/UseForm/index.mjs";
|
|
5
|
-
import { dataTransformRod as
|
|
5
|
+
import { dataTransformRod as c } from "./utils/tools.mjs";
|
|
6
6
|
import { DinertTable as b } from "./components/table/index.mjs";
|
|
7
7
|
import { DinertTablePage as P } from "./components/table-page/index.mjs";
|
|
8
8
|
import { DinertForm as u } from "./components/form/index.mjs";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
const f = t, l = m, p = a,
|
|
9
|
+
import { DinertDialog as $ } from "./components/dialog/index.mjs";
|
|
10
|
+
import { DinertDrawer as y } from "./components/drawer/index.mjs";
|
|
11
|
+
const f = t, l = m, p = a, D = {
|
|
12
12
|
install: (r) => {
|
|
13
13
|
for (const e in o)
|
|
14
14
|
r.use(o[e]);
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
$ as DinertDialog,
|
|
19
|
+
y as DinertDrawer,
|
|
19
20
|
u as DinertForm,
|
|
20
21
|
b as DinertTable,
|
|
21
22
|
P as DinertTablePage,
|
|
22
|
-
$ as DinertTooltip,
|
|
23
23
|
f as TablePage,
|
|
24
24
|
l as UseDialog,
|
|
25
25
|
p as UseForm,
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
c as dataTransformRod,
|
|
27
|
+
D as default
|
|
28
28
|
};
|
|
29
29
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -7,42 +7,41 @@ const d = () => {
|
|
|
7
7
|
let l = n;
|
|
8
8
|
r = r.replace(/\[(\w+)\]/g, ".$1"), r = r.replace(/^\./, "");
|
|
9
9
|
const o = r.split(".");
|
|
10
|
-
let
|
|
11
|
-
for (let
|
|
12
|
-
const e = o[
|
|
10
|
+
let s = 0;
|
|
11
|
+
for (let t = o.length; s < t - 1 && l; ++s) {
|
|
12
|
+
const e = o[s];
|
|
13
13
|
if (e in l)
|
|
14
14
|
l = l[e];
|
|
15
15
|
else
|
|
16
16
|
return null;
|
|
17
17
|
}
|
|
18
|
-
return l ? l[o[
|
|
18
|
+
return l ? l[o[s]] : null;
|
|
19
19
|
}, h = (n, r = "-") => [null, void 0, ""].includes(n) ? r : n;
|
|
20
|
-
function
|
|
20
|
+
function c(n) {
|
|
21
21
|
if (n.checked === !1)
|
|
22
22
|
return !0;
|
|
23
23
|
if (n.children && n.children.length > 0) {
|
|
24
24
|
for (let r = 0; r < n.children.length; r++)
|
|
25
|
-
if (
|
|
25
|
+
if (c(n.children[r]))
|
|
26
26
|
return !0;
|
|
27
27
|
}
|
|
28
28
|
return !1;
|
|
29
29
|
}
|
|
30
30
|
const g = (n, r, l, o) => {
|
|
31
|
-
const
|
|
31
|
+
const s = [], t = (e) => {
|
|
32
32
|
for (let i = 0; i < e.length; i++) {
|
|
33
|
-
const u =
|
|
34
|
-
l.includes(e[i][r]) && !u && e[i][o] &&
|
|
33
|
+
const u = c(e[i]);
|
|
34
|
+
l.includes(e[i][r]) && !u && e[i][o] && s.push(e[i][o]), e[i].children && e[i].children.length && t(e[i].children);
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
-
return
|
|
38
|
-
}, p = (n) => "column_" + n.split(".").join("_"), m = (n) => "column_header_" + n.split(".").join("_")
|
|
37
|
+
return t(n), s;
|
|
38
|
+
}, p = (n) => "column_" + n.split(".").join("_"), m = (n) => "column_header_" + n.split(".").join("_");
|
|
39
39
|
export {
|
|
40
40
|
p as columnProp,
|
|
41
41
|
h as dataTransformRod,
|
|
42
42
|
f as getPropByPath,
|
|
43
43
|
g as getTreeNode,
|
|
44
44
|
d as getUuid,
|
|
45
|
-
m as headerProp
|
|
46
|
-
P as isSlotsValue
|
|
45
|
+
m as headerProp
|
|
47
46
|
};
|
|
48
47
|
//# sourceMappingURL=tools.mjs.map
|
|
@@ -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\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"
|
|
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"],"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;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DrawerProps } from 'element-plus';
|
|
2
|
+
export interface RewriteDrawerProps extends Partial<DrawerProps> {
|
|
3
|
+
customDrag?: boolean;
|
|
4
|
+
height?: number | string;
|
|
5
|
+
size?: 'large' | 'small' | 'medium' | '';
|
|
6
|
+
}
|
|
7
|
+
export interface GETWHDrawer {
|
|
8
|
+
width?: RewriteDrawerProps['width'];
|
|
9
|
+
height?: RewriteDrawerProps['height'];
|
|
10
|
+
}
|
|
@@ -10,9 +10,7 @@ export declare const DinertForm: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
10
10
|
default: boolean;
|
|
11
11
|
};
|
|
12
12
|
}, {
|
|
13
|
-
formItemMap: import("vue").ComputedRef<any>;
|
|
14
13
|
formClass: import("vue").Ref<string>;
|
|
15
|
-
formTypeRef: import("vue").Ref<any>;
|
|
16
14
|
formRef: import("vue").Ref<({
|
|
17
15
|
$: import("vue").ComponentInternalInstance;
|
|
18
16
|
$data: {};
|
|
@@ -906,7 +904,7 @@ export declare const DinertForm: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
906
904
|
readonly disabled: BooleanConstructor;
|
|
907
905
|
}>> & {
|
|
908
906
|
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
909
|
-
}, "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField"
|
|
907
|
+
}, "fields" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField"> & import("vue").ShallowUnwrapRef<{
|
|
910
908
|
validate: (callback?: import("element-plus").FormValidateCallback | undefined) => import("element-plus").FormValidationResult;
|
|
911
909
|
validateField: (props?: (import("element-plus").FormItemProp | import("element-plus").FormItemProp[]) | undefined, callback?: import("element-plus").FormValidateCallback | undefined) => import("element-plus").FormValidationResult;
|
|
912
910
|
resetFields: (props?: (import("element-plus").FormItemProp | import("element-plus").FormItemProp[]) | undefined) => void;
|
|
@@ -1487,9 +1485,67 @@ export declare const DinertForm: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1487
1485
|
}) | undefined>;
|
|
1488
1486
|
packUp: import("vue").Ref<boolean>;
|
|
1489
1487
|
isArrow: import("vue").Ref<boolean>;
|
|
1490
|
-
|
|
1488
|
+
formItemRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
1489
|
+
form: {
|
|
1490
|
+
type: import("vue").PropType<import("./types").RewriteFormProps<any, any>>;
|
|
1491
|
+
default: () => {};
|
|
1492
|
+
};
|
|
1493
|
+
}>>, {
|
|
1494
|
+
schemaTree: import("vue").ComputedRef<any[]>;
|
|
1495
|
+
formTypeRef: import("vue").Ref<any>;
|
|
1496
|
+
tempRef: import("vue").Ref<any>;
|
|
1497
|
+
setFormTypeRefs: (type: string, el: any) => void;
|
|
1498
|
+
tooltipContent: import("vue").Ref<string>;
|
|
1499
|
+
isTooltip: import("vue").Ref<boolean>;
|
|
1500
|
+
onFormItemMouseenter: (item: import("./types").CustomFormItemProps<any, any[], any>, { resultVal, showValue, showContent }: {
|
|
1501
|
+
resultVal: any;
|
|
1502
|
+
showValue: any;
|
|
1503
|
+
showContent: any;
|
|
1504
|
+
}) => void;
|
|
1505
|
+
onFormItemMouseleave: (_item: import("./types").CustomFormItemProps<any, any[], any>) => void;
|
|
1506
|
+
}, unknown, {}, {
|
|
1507
|
+
renderNode(item: any, index: number): any;
|
|
1508
|
+
renderField(item: import("./types").CustomFormItemProps<any, any[], any>, index: number): any;
|
|
1509
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
1510
|
+
form: {
|
|
1511
|
+
type: import("vue").PropType<import("./types").RewriteFormProps<any, any>>;
|
|
1512
|
+
default: () => {};
|
|
1513
|
+
};
|
|
1514
|
+
}>>, {
|
|
1515
|
+
form: import("./types").RewriteFormProps<any, any>;
|
|
1516
|
+
}, true, {}, {}, {
|
|
1517
|
+
P: {};
|
|
1518
|
+
B: {};
|
|
1519
|
+
D: {};
|
|
1520
|
+
C: {};
|
|
1521
|
+
M: {};
|
|
1522
|
+
Defaults: {};
|
|
1523
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
1524
|
+
form: {
|
|
1525
|
+
type: import("vue").PropType<import("./types").RewriteFormProps<any, any>>;
|
|
1526
|
+
default: () => {};
|
|
1527
|
+
};
|
|
1528
|
+
}>>, {
|
|
1529
|
+
schemaTree: import("vue").ComputedRef<any[]>;
|
|
1530
|
+
formTypeRef: import("vue").Ref<any>;
|
|
1531
|
+
tempRef: import("vue").Ref<any>;
|
|
1532
|
+
setFormTypeRefs: (type: string, el: any) => void;
|
|
1533
|
+
tooltipContent: import("vue").Ref<string>;
|
|
1534
|
+
isTooltip: import("vue").Ref<boolean>;
|
|
1535
|
+
onFormItemMouseenter: (item: import("./types").CustomFormItemProps<any, any[], any>, { resultVal, showValue, showContent }: {
|
|
1536
|
+
resultVal: any;
|
|
1537
|
+
showValue: any;
|
|
1538
|
+
showContent: any;
|
|
1539
|
+
}) => void;
|
|
1540
|
+
onFormItemMouseleave: (_item: import("./types").CustomFormItemProps<any, any[], any>) => void;
|
|
1541
|
+
}, {}, {}, {
|
|
1542
|
+
renderNode(item: any, index: number): any;
|
|
1543
|
+
renderField(item: import("./types").CustomFormItemProps<any, any[], any>, index: number): any;
|
|
1544
|
+
}, {
|
|
1545
|
+
form: import("./types").RewriteFormProps<any, any>;
|
|
1546
|
+
}> | undefined>;
|
|
1491
1547
|
unfold: () => void;
|
|
1492
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
1548
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("SearchFn" | "UnFold" | "ResetFn")[], "SearchFn" | "UnFold" | "ResetFn", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1493
1549
|
form: {
|
|
1494
1550
|
type: import("vue").PropType<import("./types").RewriteFormProps<any, any>>;
|
|
1495
1551
|
default: () => {};
|
|
@@ -1499,8 +1555,8 @@ export declare const DinertForm: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1499
1555
|
default: boolean;
|
|
1500
1556
|
};
|
|
1501
1557
|
}>> & {
|
|
1502
|
-
onUnFold?: ((...args: any[]) => any) | undefined;
|
|
1503
1558
|
onSearchFn?: ((...args: any[]) => any) | undefined;
|
|
1559
|
+
onUnFold?: ((...args: any[]) => any) | undefined;
|
|
1504
1560
|
onResetFn?: ((...args: any[]) => any) | undefined;
|
|
1505
1561
|
}, {
|
|
1506
1562
|
form: import("./types").RewriteFormProps<any, any>;
|
|
@@ -12,7 +12,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
}, {
|
|
13
13
|
options: import("vue").ComputedRef<any>;
|
|
14
14
|
cascaderRef: import("vue").Ref<null>;
|
|
15
|
-
|
|
15
|
+
modelValue: import("vue").WritableComputedRef<any>;
|
|
16
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
17
|
form: {
|
|
17
18
|
type: PropType<RewriteFormProps<any, any>>;
|
|
18
19
|
default: () => {};
|
|
@@ -21,7 +22,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
22
|
type: PropType<CustomFormItemProps<any, any[], any>>;
|
|
22
23
|
default: () => {};
|
|
23
24
|
};
|
|
24
|
-
}
|
|
25
|
+
}>> & {
|
|
26
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
}, {
|
|
25
28
|
form: RewriteFormProps<any, any>;
|
|
26
29
|
formItem: CustomFormItemProps<any, any[], any>;
|
|
27
30
|
}, {}>;
|
|
@@ -11,7 +11,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
};
|
|
12
12
|
}, {
|
|
13
13
|
options: import("vue").ComputedRef<any>;
|
|
14
|
-
|
|
14
|
+
modelValue: import("vue").WritableComputedRef<any>;
|
|
15
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
16
|
form: {
|
|
16
17
|
type: PropType<RewriteFormProps<any, any>>;
|
|
17
18
|
default: () => {};
|
|
@@ -20,7 +21,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
21
|
type: PropType<CustomFormItemProps<any, any[], any>>;
|
|
21
22
|
default: () => {};
|
|
22
23
|
};
|
|
23
|
-
}
|
|
24
|
+
}>> & {
|
|
25
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
}, {
|
|
24
27
|
form: RewriteFormProps<any, any>;
|
|
25
28
|
formItem: CustomFormItemProps<any, any[], any>;
|
|
26
29
|
}, {}>;
|
|
@@ -12,7 +12,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
}, {
|
|
13
13
|
options: import("vue").ComputedRef<any>;
|
|
14
14
|
dateRef: import("vue").Ref<null>;
|
|
15
|
-
|
|
15
|
+
modelValue: import("vue").WritableComputedRef<any>;
|
|
16
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
17
|
form: {
|
|
17
18
|
type: PropType<RewriteFormProps<any, any>>;
|
|
18
19
|
default: () => {};
|
|
@@ -21,7 +22,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
22
|
type: PropType<CustomFormItemProps<any, any[], any>>;
|
|
22
23
|
default: () => {};
|
|
23
24
|
};
|
|
24
|
-
}
|
|
25
|
+
}>> & {
|
|
26
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
}, {
|
|
25
28
|
form: RewriteFormProps<any, any>;
|
|
26
29
|
formItem: CustomFormItemProps<any, any[], any>;
|
|
27
30
|
}, {}>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import type { RewriteFormProps, CustomFormItemProps } from '../types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
form: {
|
|
5
|
+
type: PropType<RewriteFormProps<any, any>>;
|
|
6
|
+
default: () => {};
|
|
7
|
+
};
|
|
8
|
+
}, {
|
|
9
|
+
schemaTree: import("vue").ComputedRef<any[]>;
|
|
10
|
+
formTypeRef: import("vue").Ref<any>;
|
|
11
|
+
tempRef: import("vue").Ref<any>;
|
|
12
|
+
setFormTypeRefs: (type: string, el: any) => void;
|
|
13
|
+
tooltipContent: import("vue").Ref<string>;
|
|
14
|
+
isTooltip: import("vue").Ref<boolean>;
|
|
15
|
+
onFormItemMouseenter: (item: CustomFormItemProps, { resultVal, showValue, showContent }: {
|
|
16
|
+
resultVal: any;
|
|
17
|
+
showValue: any;
|
|
18
|
+
showContent: any;
|
|
19
|
+
}) => void;
|
|
20
|
+
onFormItemMouseleave: (_item: CustomFormItemProps) => void;
|
|
21
|
+
}, unknown, {}, {
|
|
22
|
+
renderNode(item: any, index: number): any;
|
|
23
|
+
renderField(item: CustomFormItemProps, index: number): any;
|
|
24
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
form: {
|
|
26
|
+
type: PropType<RewriteFormProps<any, any>>;
|
|
27
|
+
default: () => {};
|
|
28
|
+
};
|
|
29
|
+
}>>, {
|
|
30
|
+
form: RewriteFormProps<any, any>;
|
|
31
|
+
}, {}>;
|
|
32
|
+
export default _default;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { nextTick } from 'vue';
|
|
2
|
-
import type { PropType } from 'vue';
|
|
1
|
+
import { nextTick, PropType } from 'vue';
|
|
3
2
|
import type { RewriteFormProps } from '../types';
|
|
4
3
|
declare const _default: import("vue").DefineComponent<{
|
|
5
4
|
form: {
|
|
@@ -11,9 +10,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
10
|
default: boolean;
|
|
12
11
|
};
|
|
13
12
|
}, {
|
|
14
|
-
formItemMap: import("vue").ComputedRef<any>;
|
|
15
13
|
formClass: import("vue").Ref<string>;
|
|
16
|
-
formTypeRef: import("vue").Ref<any>;
|
|
17
14
|
formRef: import("vue").Ref<({
|
|
18
15
|
$: import("vue").ComponentInternalInstance;
|
|
19
16
|
$data: {};
|
|
@@ -907,7 +904,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
907
904
|
readonly disabled: BooleanConstructor;
|
|
908
905
|
}>> & {
|
|
909
906
|
onValidate?: ((prop: import("element-plus").FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
910
|
-
}, "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField"
|
|
907
|
+
}, "fields" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField"> & import("vue").ShallowUnwrapRef<{
|
|
911
908
|
validate: (callback?: import("element-plus").FormValidateCallback | undefined) => import("element-plus").FormValidationResult;
|
|
912
909
|
validateField: (props?: (import("element-plus").FormItemProp | import("element-plus").FormItemProp[]) | undefined, callback?: import("element-plus").FormValidateCallback | undefined) => import("element-plus").FormValidationResult;
|
|
913
910
|
resetFields: (props?: (import("element-plus").FormItemProp | import("element-plus").FormItemProp[]) | undefined) => void;
|
|
@@ -1488,9 +1485,67 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1488
1485
|
}) | undefined>;
|
|
1489
1486
|
packUp: import("vue").Ref<boolean>;
|
|
1490
1487
|
isArrow: import("vue").Ref<boolean>;
|
|
1491
|
-
|
|
1488
|
+
formItemRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
1489
|
+
form: {
|
|
1490
|
+
type: PropType<RewriteFormProps<any, any>>;
|
|
1491
|
+
default: () => {};
|
|
1492
|
+
};
|
|
1493
|
+
}>>, {
|
|
1494
|
+
schemaTree: import("vue").ComputedRef<any[]>;
|
|
1495
|
+
formTypeRef: import("vue").Ref<any>;
|
|
1496
|
+
tempRef: import("vue").Ref<any>;
|
|
1497
|
+
setFormTypeRefs: (type: string, el: any) => void;
|
|
1498
|
+
tooltipContent: import("vue").Ref<string>;
|
|
1499
|
+
isTooltip: import("vue").Ref<boolean>;
|
|
1500
|
+
onFormItemMouseenter: (item: import('../types').CustomFormItemProps<any, any[], any>, { resultVal, showValue, showContent }: {
|
|
1501
|
+
resultVal: any;
|
|
1502
|
+
showValue: any;
|
|
1503
|
+
showContent: any;
|
|
1504
|
+
}) => void;
|
|
1505
|
+
onFormItemMouseleave: (_item: import('../types').CustomFormItemProps<any, any[], any>) => void;
|
|
1506
|
+
}, unknown, {}, {
|
|
1507
|
+
renderNode(item: any, index: number): any;
|
|
1508
|
+
renderField(item: import('../types').CustomFormItemProps<any, any[], any>, index: number): any;
|
|
1509
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
1510
|
+
form: {
|
|
1511
|
+
type: PropType<RewriteFormProps<any, any>>;
|
|
1512
|
+
default: () => {};
|
|
1513
|
+
};
|
|
1514
|
+
}>>, {
|
|
1515
|
+
form: RewriteFormProps<any, any>;
|
|
1516
|
+
}, true, {}, {}, {
|
|
1517
|
+
P: {};
|
|
1518
|
+
B: {};
|
|
1519
|
+
D: {};
|
|
1520
|
+
C: {};
|
|
1521
|
+
M: {};
|
|
1522
|
+
Defaults: {};
|
|
1523
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
1524
|
+
form: {
|
|
1525
|
+
type: PropType<RewriteFormProps<any, any>>;
|
|
1526
|
+
default: () => {};
|
|
1527
|
+
};
|
|
1528
|
+
}>>, {
|
|
1529
|
+
schemaTree: import("vue").ComputedRef<any[]>;
|
|
1530
|
+
formTypeRef: import("vue").Ref<any>;
|
|
1531
|
+
tempRef: import("vue").Ref<any>;
|
|
1532
|
+
setFormTypeRefs: (type: string, el: any) => void;
|
|
1533
|
+
tooltipContent: import("vue").Ref<string>;
|
|
1534
|
+
isTooltip: import("vue").Ref<boolean>;
|
|
1535
|
+
onFormItemMouseenter: (item: import('../types').CustomFormItemProps<any, any[], any>, { resultVal, showValue, showContent }: {
|
|
1536
|
+
resultVal: any;
|
|
1537
|
+
showValue: any;
|
|
1538
|
+
showContent: any;
|
|
1539
|
+
}) => void;
|
|
1540
|
+
onFormItemMouseleave: (_item: import('../types').CustomFormItemProps<any, any[], any>) => void;
|
|
1541
|
+
}, {}, {}, {
|
|
1542
|
+
renderNode(item: any, index: number): any;
|
|
1543
|
+
renderField(item: import('../types').CustomFormItemProps<any, any[], any>, index: number): any;
|
|
1544
|
+
}, {
|
|
1545
|
+
form: RewriteFormProps<any, any>;
|
|
1546
|
+
}> | undefined>;
|
|
1492
1547
|
unfold: () => void;
|
|
1493
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
1548
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("SearchFn" | "UnFold" | "ResetFn")[], "SearchFn" | "UnFold" | "ResetFn", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1494
1549
|
form: {
|
|
1495
1550
|
type: PropType<RewriteFormProps<any, any>>;
|
|
1496
1551
|
default: () => {};
|
|
@@ -1500,8 +1555,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1500
1555
|
default: boolean;
|
|
1501
1556
|
};
|
|
1502
1557
|
}>> & {
|
|
1503
|
-
onUnFold?: ((...args: any[]) => any) | undefined;
|
|
1504
1558
|
onSearchFn?: ((...args: any[]) => any) | undefined;
|
|
1559
|
+
onUnFold?: ((...args: any[]) => any) | undefined;
|
|
1505
1560
|
onResetFn?: ((...args: any[]) => any) | undefined;
|
|
1506
1561
|
}, {
|
|
1507
1562
|
form: RewriteFormProps<any, any>;
|
|
@@ -12,7 +12,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
}, {
|
|
13
13
|
options: import("vue").ComputedRef<any>;
|
|
14
14
|
inputAutocompleteRef: import("vue").Ref<null>;
|
|
15
|
-
|
|
15
|
+
modelValue: import("vue").WritableComputedRef<any>;
|
|
16
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
17
|
form: {
|
|
17
18
|
type: PropType<RewriteFormProps<any, any>>;
|
|
18
19
|
default: () => {};
|
|
@@ -21,7 +22,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
22
|
type: PropType<CustomFormItemProps<any, any[], any>>;
|
|
22
23
|
default: () => {};
|
|
23
24
|
};
|
|
24
|
-
}
|
|
25
|
+
}>> & {
|
|
26
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
}, {
|
|
25
28
|
form: RewriteFormProps<any, any>;
|
|
26
29
|
formItem: CustomFormItemProps<any, any[], any>;
|
|
27
30
|
}, {}>;
|
|
@@ -12,7 +12,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
}, {
|
|
13
13
|
options: import("vue").ComputedRef<any>;
|
|
14
14
|
inputNumber: import("vue").Ref<null>;
|
|
15
|
-
|
|
15
|
+
modelValue: import("vue").WritableComputedRef<any>;
|
|
16
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
17
|
form: {
|
|
17
18
|
type: PropType<RewriteFormProps<any, any>>;
|
|
18
19
|
default: () => {};
|
|
@@ -21,7 +22,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
22
|
type: PropType<CustomFormItemProps<any, any[], any>>;
|
|
22
23
|
default: () => {};
|
|
23
24
|
};
|
|
24
|
-
}
|
|
25
|
+
}>> & {
|
|
26
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
}, {
|
|
25
28
|
form: RewriteFormProps<any, any>;
|
|
26
29
|
formItem: CustomFormItemProps<any, any[], any>;
|
|
27
30
|
}, {}>;
|
|
@@ -12,7 +12,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
}, {
|
|
13
13
|
options: import("vue").ComputedRef<any>;
|
|
14
14
|
inputRef: import("vue").Ref<null>;
|
|
15
|
-
|
|
15
|
+
modelValue: import("vue").WritableComputedRef<any>;
|
|
16
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "EnterSearch")[], "update:modelValue" | "EnterSearch", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
17
|
form: {
|
|
17
18
|
type: PropType<RewriteFormProps<any, any>>;
|
|
18
19
|
default: () => {};
|
|
@@ -22,6 +23,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
23
|
default: () => {};
|
|
23
24
|
};
|
|
24
25
|
}>> & {
|
|
26
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
25
27
|
onEnterSearch?: ((...args: any[]) => any) | undefined;
|
|
26
28
|
}, {
|
|
27
29
|
form: RewriteFormProps<any, any>;
|
|
@@ -11,7 +11,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
};
|
|
12
12
|
}, {
|
|
13
13
|
options: import("vue").ComputedRef<any>;
|
|
14
|
-
|
|
14
|
+
modelValue: import("vue").WritableComputedRef<any>;
|
|
15
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
16
|
form: {
|
|
16
17
|
type: PropType<RewriteFormProps<any, any>>;
|
|
17
18
|
default: () => {};
|
|
@@ -20,7 +21,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
21
|
type: PropType<CustomFormItemProps<any, any[], any>>;
|
|
21
22
|
default: () => {};
|
|
22
23
|
};
|
|
23
|
-
}
|
|
24
|
+
}>> & {
|
|
25
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
}, {
|
|
24
27
|
form: RewriteFormProps<any, any>;
|
|
25
28
|
formItem: CustomFormItemProps<any, any[], any>;
|
|
26
29
|
}, {}>;
|
|
@@ -12,7 +12,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
}, {
|
|
13
13
|
options: import("vue").ComputedRef<any>;
|
|
14
14
|
reateRef: import("vue").Ref<null>;
|
|
15
|
-
|
|
15
|
+
modelValue: import("vue").WritableComputedRef<any>;
|
|
16
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
17
|
form: {
|
|
17
18
|
type: PropType<RewriteFormProps<any, any>>;
|
|
18
19
|
default: () => {};
|
|
@@ -21,7 +22,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
22
|
type: PropType<CustomFormItemProps<any, any[], any>>;
|
|
22
23
|
default: () => {};
|
|
23
24
|
};
|
|
24
|
-
}
|
|
25
|
+
}>> & {
|
|
26
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
}, {
|
|
25
28
|
form: RewriteFormProps<any, any>;
|
|
26
29
|
formItem: CustomFormItemProps<any, any[], any>;
|
|
27
30
|
}, {}>;
|
|
@@ -12,7 +12,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
}, {
|
|
13
13
|
options: import("vue").ComputedRef<any>;
|
|
14
14
|
selectV2Ref: import("vue").Ref<null>;
|
|
15
|
-
|
|
15
|
+
modelValue: import("vue").WritableComputedRef<any>;
|
|
16
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
17
|
form: {
|
|
17
18
|
type: PropType<RewriteFormProps<any, any>>;
|
|
18
19
|
default: () => {};
|
|
@@ -21,7 +22,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
22
|
type: PropType<CustomFormItemProps<any, any[], any>>;
|
|
22
23
|
default: () => {};
|
|
23
24
|
};
|
|
24
|
-
}
|
|
25
|
+
}>> & {
|
|
26
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
}, {
|
|
25
28
|
form: RewriteFormProps<any, any>;
|
|
26
29
|
formItem: CustomFormItemProps<any, any[], any>;
|
|
27
30
|
}, {}>;
|
|
@@ -12,7 +12,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
}, {
|
|
13
13
|
options: import("vue").ComputedRef<any>;
|
|
14
14
|
selectRef: null;
|
|
15
|
-
|
|
15
|
+
modelValue: import("vue").WritableComputedRef<any>;
|
|
16
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
17
|
form: {
|
|
17
18
|
type: PropType<RewriteFormProps<any, any>>;
|
|
18
19
|
default: () => {};
|
|
@@ -21,7 +22,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
22
|
type: PropType<CustomFormItemProps<any, any[], any>>;
|
|
22
23
|
default: () => {};
|
|
23
24
|
};
|
|
24
|
-
}
|
|
25
|
+
}>> & {
|
|
26
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
}, {
|
|
25
28
|
form: RewriteFormProps<any, any>;
|
|
26
29
|
formItem: CustomFormItemProps<any, any[], any>;
|
|
27
30
|
}, {}>;
|
|
@@ -12,7 +12,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
}, {
|
|
13
13
|
options: import("vue").ComputedRef<any>;
|
|
14
14
|
sliderRef: import("vue").Ref<null>;
|
|
15
|
-
|
|
15
|
+
modelValue: import("vue").WritableComputedRef<any>;
|
|
16
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
17
|
form: {
|
|
17
18
|
type: PropType<RewriteFormProps<any, any>>;
|
|
18
19
|
default: () => {};
|
|
@@ -21,7 +22,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
22
|
type: PropType<CustomFormItemProps<any, any[], any>>;
|
|
22
23
|
default: () => {};
|
|
23
24
|
};
|
|
24
|
-
}
|
|
25
|
+
}>> & {
|
|
26
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
}, {
|
|
25
28
|
form: RewriteFormProps<any, any>;
|
|
26
29
|
formItem: CustomFormItemProps<any, any[], any>;
|
|
27
30
|
}, {}>;
|