@silver-formily/element-plus 2.0.0 → 2.1.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.en-US.md +32 -0
- package/README.md +18 -21
- package/esm/__builtins__/index.mjs +15 -16
- package/esm/__builtins__/shared/index.mjs +11 -12
- package/esm/__builtins__/shared/transform-component.d.ts +2 -7
- package/esm/__builtins__/shared/transform-component.mjs +16 -33
- package/esm/__builtins__/shared/transform-component.mjs.map +1 -1
- package/esm/__builtins__/shared/utils.mjs +11 -11
- package/esm/__builtins__/shared/utils.mjs.map +1 -1
- package/esm/array-base/index.mjs +62 -62
- package/esm/array-base/index.mjs.map +1 -1
- package/esm/array-base/utils.mjs +2 -2
- package/esm/array-cards/array-cards.d.ts +1 -1
- package/esm/array-cards/index.d.ts +3 -3
- package/esm/array-cards/index.mjs +49 -49
- package/esm/array-cards/index.mjs.map +1 -1
- package/esm/array-collapse/array-collapse.d.ts +2 -2
- package/esm/array-collapse/index.d.ts +3 -3
- package/esm/array-collapse/index.mjs +85 -84
- package/esm/array-collapse/index.mjs.map +1 -1
- package/esm/array-collapse/utils.mjs +2 -2
- package/esm/array-items/index.mjs +43 -40
- package/esm/array-items/index.mjs.map +1 -1
- package/esm/array-list-tabs/array-list-tabs.d.ts +3 -3
- package/esm/array-list-tabs/index.d.ts +6 -6
- package/esm/array-list-tabs/index.mjs +93 -89
- package/esm/array-list-tabs/index.mjs.map +1 -1
- package/esm/array-list-tabs/utils.mjs +2 -2
- package/esm/array-table/array-table.d.ts +29 -1
- package/esm/array-table/index.d.ts +31 -3
- package/esm/array-table/index.mjs +126 -125
- package/esm/array-table/index.mjs.map +1 -1
- package/esm/array-table/types.d.ts +2 -1
- package/esm/array-table/utils.mjs +2 -2
- package/esm/array-tabs/index.mjs +17 -17
- package/esm/array-tabs/index.mjs.map +1 -1
- package/esm/cascader/cascader.d.ts +1 -6
- package/esm/cascader/index.d.ts +3 -16
- package/esm/cascader/index.mjs +29 -33
- package/esm/cascader/index.mjs.map +1 -1
- package/esm/checkbox/checkbox-group.d.ts +3 -19
- package/esm/checkbox/index.d.ts +445 -407
- package/esm/checkbox/index.mjs +27 -36
- package/esm/checkbox/index.mjs.map +1 -1
- package/esm/date-picker/index.d.ts +442 -1
- package/esm/date-picker/index.mjs +12 -19
- package/esm/date-picker/index.mjs.map +1 -1
- package/esm/editable/editable.d.ts +16 -12
- package/esm/editable/index.d.ts +8 -6
- package/esm/editable/index.mjs +108 -110
- package/esm/editable/index.mjs.map +1 -1
- package/esm/form/form.mjs +1 -1
- package/esm/form/form.mjs.map +1 -1
- package/esm/form-button-group/index.mjs +31 -30
- package/esm/form-button-group/index.mjs.map +1 -1
- package/esm/form-button-group/utils.mjs +2 -2
- package/esm/form-collapse/index.mjs +40 -40
- package/esm/form-collapse/index.mjs.map +1 -1
- package/esm/form-dialog/index.d.ts +1 -1
- package/esm/form-dialog/index.mjs +5 -5
- package/esm/form-dialog/index.mjs.map +1 -1
- package/esm/form-dialog/types.d.ts +6 -6
- package/esm/form-drawer/index.d.ts +1 -1
- package/esm/form-drawer/index.mjs +5 -5
- package/esm/form-drawer/index.mjs.map +1 -1
- package/esm/form-drawer/types.d.ts +6 -6
- package/esm/form-grid/index.d.ts +1 -183
- package/esm/form-grid/index.mjs +2 -2
- package/esm/form-grid/index.mjs.map +1 -1
- package/esm/form-item/form-item.d.ts +2 -1
- package/esm/form-item/index.d.ts +12 -6
- package/esm/form-item/index.mjs +156 -152
- package/esm/form-item/index.mjs.map +1 -1
- package/esm/form-item/types.d.ts +0 -1
- package/esm/form-layout/form-layout.d.ts +0 -1
- package/esm/form-layout/form-layout.mjs +55 -53
- package/esm/form-layout/form-layout.mjs.map +1 -1
- package/esm/form-layout/types.d.ts +0 -2
- package/esm/form-layout/utils.d.ts +3 -3
- package/esm/form-layout/utils.mjs +47 -42
- package/esm/form-layout/utils.mjs.map +1 -1
- package/esm/form-step/index.mjs +26 -24
- package/esm/form-step/index.mjs.map +1 -1
- package/esm/form-tab/form-tab.d.ts +2 -2
- package/esm/form-tab/hooks.mjs +1 -1
- package/esm/form-tab/hooks.mjs.map +1 -1
- package/esm/form-tab/index.d.ts +1 -26
- package/esm/form-tab/index.mjs +31 -31
- package/esm/form-tab/index.mjs.map +1 -1
- package/esm/form-tab/types.d.ts +1 -1
- package/esm/input/index.d.ts +6 -38
- package/esm/input/index.mjs +38 -47
- package/esm/input/index.mjs.map +1 -1
- package/esm/input/input.d.ts +1 -8
- package/esm/input-number/index.d.ts +326 -1
- package/esm/input-number/index.mjs +10 -17
- package/esm/input-number/index.mjs.map +1 -1
- package/esm/pagination/pagination.mjs +110 -111
- package/esm/pagination/pagination.mjs.map +1 -1
- package/esm/password/index.d.ts +6 -38
- package/esm/password/index.mjs +1 -1
- package/esm/password/index.mjs.map +1 -1
- package/esm/preview-text/cascader.d.ts +1 -1
- package/esm/preview-text/date-picker.d.ts +1 -1
- package/esm/preview-text/index.d.ts +13 -13
- package/esm/preview-text/index.mjs +121 -121
- package/esm/preview-text/index.mjs.map +1 -1
- package/esm/preview-text/input.d.ts +1 -1
- package/esm/preview-text/select.d.ts +1 -1
- package/esm/preview-text/time-picker.d.ts +1 -1
- package/esm/preview-text/tree.d.ts +1 -1
- package/esm/radio/index.d.ts +347 -219
- package/esm/radio/index.mjs +37 -44
- package/esm/radio/index.mjs.map +1 -1
- package/esm/radio/radio-group.d.ts +2 -13
- package/esm/reset/index.d.ts +1 -62
- package/esm/reset/index.mjs +2 -2
- package/esm/reset/index.mjs.map +1 -1
- package/esm/select/index.d.ts +3 -16
- package/esm/select/index.mjs +65 -70
- package/esm/select/index.mjs.map +1 -1
- package/esm/select/select.d.ts +1 -6
- package/esm/select-table/index.d.ts +33 -5
- package/esm/select-table/index.mjs +90 -89
- package/esm/select-table/index.mjs.map +1 -1
- package/esm/select-table/select-table.d.ts +58 -2
- package/esm/select-table/types.d.ts +1 -1
- package/esm/submit/index.d.ts +1 -47
- package/esm/submit/index.mjs +2 -2
- package/esm/submit/index.mjs.map +1 -1
- package/esm/switch/index.d.ts +296 -1
- package/esm/switch/index.mjs +5 -11
- package/esm/switch/index.mjs.map +1 -1
- package/esm/time-picker/index.d.ts +442 -1
- package/esm/time-picker/index.mjs +9 -14
- package/esm/time-picker/index.mjs.map +1 -1
- package/esm/time-select/index.d.ts +184 -1
- package/esm/time-select/index.mjs +8 -13
- package/esm/time-select/index.mjs.map +1 -1
- package/esm/transfer/index.d.ts +196 -115
- package/esm/transfer/index.mjs +5 -5
- package/esm/transfer/index.mjs.map +1 -1
- package/esm/tree/index.d.ts +5 -5
- package/esm/tree/index.mjs +34 -34
- package/esm/tree/index.mjs.map +1 -1
- package/esm/tree/tree.d.ts +2 -2
- package/esm/tree/types.d.ts +1 -1
- package/esm/tree-select/index.d.ts +3 -19
- package/esm/tree-select/index.mjs +23 -30
- package/esm/tree-select/index.mjs.map +1 -1
- package/esm/tree-select/tree-select.d.ts +1 -8
- package/esm/upload/index.d.ts +409 -404
- package/esm/upload/index.mjs +9 -9
- package/esm/upload/index.mjs.map +1 -1
- package/esm/upload/upload.d.ts +802 -792
- package/esm/vendor/icon.mjs.map +1 -1
- package/esm/vendor/lodash.mjs +12 -20
- package/esm/vendor/lodash.mjs.map +1 -1
- package/esm/vendor/runtime.mjs +29 -24
- package/esm/vendor/runtime.mjs.map +1 -1
- package/esm/vendor/shared.esm-bundler.mjs +2 -2
- package/esm/vendor/sizes.mjs.map +1 -1
- package/esm/vendor/types.mjs +5 -5
- package/esm/vendor/types.mjs.map +1 -1
- package/package.json +8 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../src/array-list-tabs/array-list-tabs.vue","../../src/array-list-tabs/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { ArrayField } from '@formily/core'\nimport type { ISchema } from '@formily/json-schema'\nimport { autorun, observable } from '@formily/reactive'\nimport { RecursionField, useField, useFieldSchema } from '@formily/vue'\nimport { ElBadge, ElEmpty, ElScrollbar } from 'element-plus'\nimport { ref } from 'vue'\nimport { ArrayBase } from '../array-base'\nimport { getArrayItemSchema, isAdditionComponent, isRemoveComponent } from '../array-base/utils'\nimport { isTabTitleComponent, prefixCls } from './utils'\nimport './style.scss'\n\ndefineOptions({\n name: 'FArrayListTabs',\n})\n\nconst props = defineProps({\n tabTitleField: {\n required: true,\n type: String,\n },\n showTitleFieldInTab: {\n type: Boolean,\n default: false,\n },\n value: {\n type: Array,\n default: () => [],\n },\n})\n\nconst fieldRef = useField<ArrayField>()\nconst schemaRef = useFieldSchema()\nconst field = fieldRef.value\nconst schema = schemaRef.value\n\nconst activeIndex = ref(0)\nconst { getKey, keyMap } = ArrayBase.useKey(schemaRef.value)\n\nconst errorCountList = observable.computed(() => {\n if (props.showTitleFieldInTab) {\n return field.value.map((item, index) => {\n const path = field.path.concat(index)\n return field.form.queryFeedbacks({\n type: 'error',\n path: `${path}.*(!${props.tabTitleField})`,\n }).length\n })\n }\n return field.value.map((item, index) => {\n const path = field.path.concat(index)\n return field.form.queryFeedbacks({\n type: 'error',\n path: `${path}.**`,\n }).length\n })\n})\n\n// 保证arrayBase在必要时重新渲染\nconst arrayBaseKey = ref()\n\nautorun(() => {\n if (props.showTitleFieldInTab) {\n const key = field.value.map((item, index) => {\n const keyParts = [\n index,\n errorCountList.value[index],\n ]\n return keyParts.join('|')\n }).join(',')\n arrayBaseKey.value = key\n }\n else {\n const key = field.value.map((item, index) => {\n const keyParts = [\n index,\n item?.[props.tabTitleField],\n errorCountList.value[index],\n ]\n return keyParts.join('|')\n }).join(',')\n arrayBaseKey.value = key\n }\n})\n\nautorun(() => {\n if (field.value.length > 0 && activeIndex.value >= field.value.length) {\n activeIndex.value = field.value.length - 1\n }\n})\n\nfunction getTabTitle(item) {\n return `${item?.[props.tabTitleField] || '未命名条目'}`\n}\n</script>\n\n<template>\n <div :class=\"prefixCls\">\n <ArrayBase :key=\"props.value.length\" :key-map=\"keyMap\">\n <ul :class=\"`${prefixCls}_list`\">\n <ElScrollbar :class=\"`${prefixCls}_list--scroll-wrapper`\">\n <ArrayBase.Item\n v-for=\"(item, index) in props.value\"\n :key=\"index\"\n :index=\"index\"\n :record=\"item\"\n >\n <li\n :id=\"`${field.props.name}-tab-${index}`\"\n :key=\"arrayBaseKey\"\n :class=\"[\n `${prefixCls}_list-item`,\n activeIndex === index && 'is-active',\n ]\"\n role=\"tab\"\n :aria-controls=\"`${field.props.name}-tab-panel-${index}`\"\n @click=\"() => activeIndex = index\"\n >\n <div :class=\"`${prefixCls}_list-item--content`\">\n <ElBadge\n :class=\"[`${prefixCls}-errors-badge`]\"\n :value=\"errorCountList.value[index]\"\n :offset=\"[5, 0]\"\n :hidden=\"errorCountList.value[index] === 0\"\n >\n <template v-if=\"!props.showTitleFieldInTab\">\n <span :class=\"`${prefixCls}_list-item--title`\">{{ getTabTitle(item) }}</span>\n </template>\n <template v-else>\n <RecursionField\n :schema=\"schema.items\"\n :name=\"index\"\n :filter-properties=\"(schema: ISchema) => isTabTitleComponent(schema, props.tabTitleField)\"\n only-render-properties\n />\n </template>\n </ElBadge>\n </div>\n <!-- remove icon -->\n <RecursionField\n :schema=\"schema.items\"\n :name=\"index\"\n :filter-properties=\"(schema: ISchema) => isRemoveComponent(schema)\"\n only-render-properties\n />\n </li>\n </ArrayBase.Item>\n </ElScrollbar>\n <template v-for=\"(property, key) in schema.properties\" :key=\"key\">\n <RecursionField\n v-if=\"isAdditionComponent(property)\"\n :schema=\"property\"\n name=\"addition\"\n />\n </template>\n </ul>\n <div v-if=\"props.value.length === 0\" :class=\"`${prefixCls}-tabpane`\">\n <ElEmpty :image-size=\"100\" />\n </div>\n <ArrayBase.Item\n v-for=\"(item, index) in props.value\"\n :key=\"getKey(item, index)\"\n :index=\"index\"\n :record=\"item\"\n >\n <!-- tab-panel -->\n <div\n :id=\"`${field.props.name}-tab-panel-${index}`\"\n :key=\"getKey(item, index)\"\n :class=\"`${prefixCls}-tabpane`\"\n :style=\"{ display: activeIndex === index ? undefined : 'none' }\"\n role=\"tabpanel\"\n :aria-labelledby=\"`${field.props.name}-tab-${index}`\"\n >\n <RecursionField\n :schema=\"getArrayItemSchema(schema, index)\"\n :name=\"index\"\n :filter-properties=\"(schema: ISchema) => {\n if (isRemoveComponent(schema)) {\n return false\n }\n if (props.showTitleFieldInTab) {\n return !isTabTitleComponent(schema, props.tabTitleField)\n }\n return true\n }\"\n only-render-properties\n />\n </div>\n </ArrayBase.Item>\n </ArrayBase>\n </div>\n</template>\n","import { composeExport } from '../__builtins__/shared'\r\nimport { ArrayBase } from '../array-base'\r\nimport ArrayListTabsInner from './array-list-tabs.vue'\r\nimport './style.scss'\r\n\r\nexport const ArrayListTabs = composeExport(ArrayListTabsInner, {\r\n Addition: ArrayBase.Addition,\r\n Remove: ArrayBase.Remove,\r\n})\r\n\r\nexport default ArrayListTabs\r\n"],"names":["props","__props","fieldRef","useField","schemaRef","useFieldSchema","field","schema","activeIndex","ref","getKey","keyMap","ArrayBase","errorCountList","observable","item","index","path","arrayBaseKey","autorun","key","getTabTitle","_createElementBlock","_unref","prefixCls","_createBlock","_createElementVNode","_createVNode","ElScrollbar","_openBlock","_Fragment","_normalizeClass","ElBadge","RecursionField","isTabTitleComponent","_toDisplayString","isRemoveComponent","property","isAdditionComponent","ElEmpty","_normalizeStyle","getArrayItemSchema","ArrayListTabs","composeExport","ArrayListTabsInner"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,UAAMA,IAAQC,GAeRC,IAAWC,EAAA,GACXC,IAAYC,EAAA,GACZC,IAAQJ,EAAS,OACjBK,IAASH,EAAU,OAEnBI,IAAcC,EAAI,CAAC,GACnB,EAAE,QAAAC,GAAQ,QAAAC,EAAA,IAAWC,EAAU,OAAOR,EAAU,KAAK,GAErDS,IAAiBC,EAAW,SAAS,MACrCd,EAAM,sBACDM,EAAM,MAAM,IAAI,CAACS,GAAMC,MAAU;AACtC,YAAMC,IAAOX,EAAM,KAAK,OAAOU,CAAK;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,OAAOC,EAAAjB,CAAA,EAAM,MAAM,IAAI,cAAcU,CAAK;AAAA,gBAC1C,KAAKO,EAAAb,CAAA,EAAOK,GAAMC,CAAK;AAAA,gBACvB,YAAUO,EAAAC,CAAA,CAAS,UAAA;AAAA,gBACnB,OAAKgB,EAAA,EAAA,SAAahC,EAAA,UAAgBQ,IAAQ,SAAS,QAAA;AAAA,gBACpD,MAAK;AAAA,gBACJ,sBAAoBO,EAAAjB,CAAA,EAAM,MAAM,IAAI,QAAQU,CAAK;AAAA,cAAA;gBAElDW,EAaEJ,EAAAU,CAAA,GAAA;AAAA,kBAZC,QAAQV,EAAAkB,CAAA,EAAmBlB,EAAAhB,CAAA,GAAQS,CAAK;AAAA,kBACxC,MAAMA;AAAA,kBACN,sBAAoBT,MAAwCgB,EAAAa,CAAA,EAAkB7B,CAAM,SAAoEP,EAAM,sBAA+C,CAAAuB,EAAAW,CAAA,EAAoB3B,GAAQP,EAAM,aAAa;kBAS7P,0BAAA;AAAA,gBAAA;;;;;;;;;;ICrLC0C,KAAgBC,EAAcC,GAAoB;AAAA,EAC7D,UAAUhC,EAAU;AAAA,EACpB,QAAQA,EAAU;AACpB,CAAC;"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../src/array-list-tabs/array-list-tabs.vue","../../src/array-list-tabs/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { ArrayField } from '@formily/core'\nimport type { ISchema } from '@formily/json-schema'\nimport { autorun } from '@formily/reactive'\nimport { isArr } from '@formily/shared'\nimport { formilyComputed } from '@silver-formily/reactive-vue'\nimport { RecursionField, useField, useFieldSchema } from '@silver-formily/vue'\nimport { ElBadge, ElEmpty, ElScrollbar } from 'element-plus'\nimport { ref } from 'vue'\nimport { ArrayBase } from '../array-base'\nimport { getArrayItemSchema, isAdditionComponent, isRemoveComponent } from '../array-base/utils'\nimport { isTabTitleComponent, prefixCls } from './utils'\nimport './style.scss'\n\ndefineOptions({\n name: 'FArrayListTabs',\n})\n\nconst props = defineProps({\n tabTitleField: {\n required: true,\n type: String,\n },\n showTitleFieldInTab: {\n type: Boolean,\n default: false,\n },\n modelValue: {\n type: Array,\n default: () => [],\n },\n})\n\nconst fieldRef = useField<ArrayField>()\nconst schemaRef = useFieldSchema()\nconst field = fieldRef.value\nconst schema = schemaRef.value\n\nconst activeIndex = ref(0)\nconst { getKey, keyMap } = ArrayBase.useKey(schemaRef.value)\n\nconst errorCountList = formilyComputed(() => {\n if (props.showTitleFieldInTab) {\n return field.value.map((item, index) => {\n const path = field.path.concat(index)\n return field.form.queryFeedbacks({\n type: 'error',\n path: `${path}.*(!${props.tabTitleField})`,\n }).length\n })\n }\n return field.value.map((item, index) => {\n const path = field.path.concat(index)\n return field.form.queryFeedbacks({\n type: 'error',\n path: `${path}.**`,\n }).length\n })\n})\n\n// 保证arrayBase在必要时重新渲染\nconst arrayBaseKey = ref()\n\nautorun(() => {\n if (props.showTitleFieldInTab) {\n const key = field.value.map((item, index) => {\n const keyParts = [\n index,\n errorCountList.value[index],\n ]\n return keyParts.join('|')\n }).join(',')\n arrayBaseKey.value = key\n }\n else {\n const key = field.value.map((item, index) => {\n const keyParts = [\n index,\n item?.[props.tabTitleField],\n errorCountList.value[index],\n ]\n return keyParts.join('|')\n }).join(',')\n arrayBaseKey.value = key\n }\n})\n\nautorun(() => {\n if (field.value.length > 0 && activeIndex.value >= field.value.length) {\n activeIndex.value = field.value.length - 1\n }\n})\n\nfunction getTabTitle(item) {\n return `${item?.[props.tabTitleField] || '未命名条目'}`\n}\n</script>\n\n<template>\n <div :class=\"prefixCls\">\n <ArrayBase :key=\"props.modelValue.length\" :key-map=\"keyMap\">\n <ul :class=\"`${prefixCls}_list`\">\n <ElScrollbar :class=\"`${prefixCls}_list--scroll-wrapper`\">\n <ArrayBase.Item\n v-for=\"(item, index) in props.modelValue\"\n :key=\"index\"\n :index=\"index\"\n :record=\"item\"\n >\n <li\n :id=\"`${field.props.name}-tab-${index}`\"\n :key=\"arrayBaseKey\"\n :class=\"[\n `${prefixCls}_list-item`,\n activeIndex === index && 'is-active',\n ]\"\n role=\"tab\"\n :aria-controls=\"`${field.props.name}-tab-panel-${index}`\"\n @click=\"() => activeIndex = index\"\n >\n <div :class=\"`${prefixCls}_list-item--content`\">\n <ElBadge\n :class=\"[`${prefixCls}-errors-badge`]\"\n :value=\"errorCountList[index]\"\n :offset=\"[5, 0]\"\n :hidden=\"errorCountList[index] === 0\"\n >\n <template v-if=\"!props.showTitleFieldInTab\">\n <span :class=\"`${prefixCls}_list-item--title`\">{{ getTabTitle(item) }}</span>\n </template>\n <template v-else>\n <RecursionField\n v-if=\"!isArr(schema.items)\"\n :schema=\"schema.items\"\n :name=\"index\"\n :filter-properties=\"(schema: ISchema) => isTabTitleComponent(schema, props.tabTitleField)\"\n only-render-properties\n />\n </template>\n </ElBadge>\n </div>\n <!-- remove icon -->\n <RecursionField\n v-if=\"!isArr(schema.items)\"\n :schema=\"schema.items\"\n :name=\"index\"\n :filter-properties=\"(schema: ISchema) => isRemoveComponent(schema)\"\n only-render-properties\n />\n </li>\n </ArrayBase.Item>\n </ElScrollbar>\n <template v-for=\"(property, key) in schema.properties\" :key=\"key\">\n <RecursionField\n v-if=\"isAdditionComponent(property)\"\n :schema=\"property\"\n name=\"addition\"\n />\n </template>\n </ul>\n <div v-if=\"props.modelValue.length === 0\" :class=\"`${prefixCls}-tabpane`\">\n <ElEmpty :image-size=\"100\" />\n </div>\n <ArrayBase.Item\n v-for=\"(item, index) in props.modelValue\"\n :key=\"getKey(item, index)\"\n :index=\"index\"\n :record=\"item\"\n >\n <!-- tab-panel -->\n <div\n :id=\"`${field.props.name}-tab-panel-${index}`\"\n :key=\"getKey(item, index)\"\n :class=\"`${prefixCls}-tabpane`\"\n :style=\"{ display: activeIndex === index ? undefined : 'none' }\"\n role=\"tabpanel\"\n :aria-labelledby=\"`${field.props.name}-tab-${index}`\"\n >\n <RecursionField\n :schema=\"getArrayItemSchema(schema, index)\"\n :name=\"index\"\n :filter-properties=\"(schema: ISchema) => {\n if (isRemoveComponent(schema)) {\n return false\n }\n if (props.showTitleFieldInTab) {\n return !isTabTitleComponent(schema, props.tabTitleField)\n }\n return true\n }\"\n only-render-properties\n />\n </div>\n </ArrayBase.Item>\n </ArrayBase>\n </div>\n</template>\n","import { composeExport } from '../__builtins__/shared'\r\nimport { ArrayBase } from '../array-base'\r\nimport ArrayListTabsInner from './array-list-tabs.vue'\r\nimport './style.scss'\r\n\r\nexport const ArrayListTabs = composeExport(ArrayListTabsInner, {\r\n Addition: ArrayBase.Addition,\r\n Remove: ArrayBase.Remove,\r\n})\r\n\r\nexport default ArrayListTabs\r\n"],"names":["props","__props","fieldRef","useField","schemaRef","useFieldSchema","field","schema","activeIndex","ref","getKey","keyMap","ArrayBase","errorCountList","formilyComputed","item","index","path","arrayBaseKey","autorun","key","getTabTitle","_createElementBlock","_unref","prefixCls","_createBlock","_createElementVNode","_createVNode","ElScrollbar","_openBlock","_Fragment","_normalizeClass","ElBadge","isArr","RecursionField","isTabTitleComponent","_toDisplayString","isRemoveComponent","property","isAdditionComponent","ElEmpty","_normalizeStyle","getArrayItemSchema","ArrayListTabs","composeExport","ArrayListTabsInner"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,UAAMA,IAAQC,GAeRC,IAAWC,EAAA,GACXC,IAAYC,EAAA,GACZC,IAAQJ,EAAS,OACjBK,IAASH,EAAU,OAEnBI,IAAcC,EAAI,CAAC,GACnB,EAAE,QAAAC,GAAQ,QAAAC,EAAA,IAAWC,EAAU,OAAOR,EAAU,KAAK,GAErDS,IAAiBC,EAAgB,MACjCd,EAAM,sBACDM,EAAM,MAAM,IAAI,CAACS,GAAMC,MAAU;AACtC,YAAMC,IAAOX,EAAM,KAAK,OAAOU,CAAK;AACpC,aAAOV,EAAM,KAAK,eAAe;AAAA,QAC/B,MAAM;AAAA,QACN,MAAM,GAAGW,CAAI,OAAOjB,EAAM,aAAa;AAAA,MAAA,CACxC,EAAE;AAAA,I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M,OAAA;AAAA,gBArBH,OAAOC,EAAAjB,CAAA,EAAM,MAAM,IAAI,cAAcU,CAAK;AAAA,gBAC1C,KAAKO,EAAAb,CAAA,EAAOK,GAAMC,CAAK;AAAA,gBACvB,YAAUO,EAAAC,CAAA,CAAS,UAAA;AAAA,gBACnB,OAAKiB,EAAA,EAAA,SAAajC,EAAA,UAAgBQ,IAAQ,SAAS,QAAA;AAAA,gBACpD,MAAK;AAAA,gBACJ,sBAAoBO,EAAAjB,CAAA,EAAM,MAAM,IAAI,QAAQU,CAAK;AAAA,cAAA;gBAElDW,EAaEJ,EAAAW,CAAA,GAAA;AAAA,kBAZC,QAAQX,EAAAmB,CAAA,EAAmBnB,EAAAhB,CAAA,GAAQS,CAAK;AAAA,kBACxC,MAAMA;AAAA,kBACN,sBAAoBT,MAAwCgB,EAAAc,CAAA,EAAkB9B,CAAM,SAAoEP,EAAM,sBAA+C,CAAAuB,EAAAY,CAAA,EAAoB5B,GAAQP,EAAM,aAAa;kBAS7P,0BAAA;AAAA,gBAAA;;;;;;;;;;ICzLC2C,KAAgBC,EAAcC,GAAoB;AAAA,EAC7D,UAAUjC,EAAU;AAAA,EACpB,QAAQA,EAAU;AACpB,CAAC;"}
|
|
@@ -3,8 +3,8 @@ import "vue";
|
|
|
3
3
|
import "element-plus";
|
|
4
4
|
import "@formily/reactive";
|
|
5
5
|
import "@formily/core";
|
|
6
|
-
import "@formily/reactive-vue";
|
|
7
|
-
import "@formily/vue";
|
|
6
|
+
import "@silver-formily/reactive-vue";
|
|
7
|
+
import "@silver-formily/vue";
|
|
8
8
|
const u = `${i}-array-list-tabs`;
|
|
9
9
|
function l(r, t) {
|
|
10
10
|
return r.type !== "void" ? r.name === t : r.properties ? t in r.properties : !1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IArrayTableProps } from './types';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<IArrayTableProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IArrayTableProps> & Readonly<{}>, {
|
|
3
|
-
|
|
3
|
+
modelValue: any[];
|
|
4
4
|
pagination: boolean;
|
|
5
5
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
6
6
|
elTableRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -44,6 +44,9 @@ declare const _default: import('vue').DefineComponent<IArrayTableProps, {}, {},
|
|
|
44
44
|
emptyText: StringConstructor;
|
|
45
45
|
expandRowKeys: import('vue').PropType<import('element-plus').TableProps<any>["expandRowKeys"]>;
|
|
46
46
|
defaultExpandAll: BooleanConstructor;
|
|
47
|
+
rowExpandable: {
|
|
48
|
+
type: import('vue').PropType<import('element-plus').TableProps<any>["rowExpandable"]>;
|
|
49
|
+
};
|
|
47
50
|
defaultSort: import('vue').PropType<import('element-plus').TableProps<any>["defaultSort"]>;
|
|
48
51
|
tooltipEffect: StringConstructor;
|
|
49
52
|
tooltipOptions: import('vue').PropType<import('element-plus').TableProps<any>["tooltipOptions"]>;
|
|
@@ -170,6 +173,7 @@ declare const _default: import('vue').DefineComponent<IArrayTableProps, {}, {},
|
|
|
170
173
|
reserveSelection: import('vue').Ref<boolean>;
|
|
171
174
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
172
175
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
176
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
173
177
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
174
178
|
filteredData: import('vue').Ref<any[] | null>;
|
|
175
179
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -212,6 +216,7 @@ declare const _default: import('vue').DefineComponent<IArrayTableProps, {}, {},
|
|
|
212
216
|
reserveSelection: import('vue').Ref<boolean>;
|
|
213
217
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
214
218
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
219
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
215
220
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
216
221
|
filteredData: import('vue').Ref<any[] | null>;
|
|
217
222
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -254,6 +259,7 @@ declare const _default: import('vue').DefineComponent<IArrayTableProps, {}, {},
|
|
|
254
259
|
reserveSelection: import('vue').Ref<boolean>;
|
|
255
260
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
256
261
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
262
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
257
263
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
258
264
|
filteredData: import('vue').Ref<any[] | null>;
|
|
259
265
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -296,6 +302,7 @@ declare const _default: import('vue').DefineComponent<IArrayTableProps, {}, {},
|
|
|
296
302
|
reserveSelection: import('vue').Ref<boolean>;
|
|
297
303
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
298
304
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
305
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
299
306
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
300
307
|
filteredData: import('vue').Ref<any[] | null>;
|
|
301
308
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -338,6 +345,7 @@ declare const _default: import('vue').DefineComponent<IArrayTableProps, {}, {},
|
|
|
338
345
|
reserveSelection: import('vue').Ref<boolean>;
|
|
339
346
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
340
347
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
348
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
341
349
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
342
350
|
filteredData: import('vue').Ref<any[] | null>;
|
|
343
351
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -380,6 +388,7 @@ declare const _default: import('vue').DefineComponent<IArrayTableProps, {}, {},
|
|
|
380
388
|
reserveSelection: import('vue').Ref<boolean>;
|
|
381
389
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
382
390
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
391
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
383
392
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
384
393
|
filteredData: import('vue').Ref<any[] | null>;
|
|
385
394
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -422,6 +431,7 @@ declare const _default: import('vue').DefineComponent<IArrayTableProps, {}, {},
|
|
|
422
431
|
reserveSelection: import('vue').Ref<boolean>;
|
|
423
432
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
424
433
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
434
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
425
435
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
426
436
|
filteredData: import('vue').Ref<any[] | null>;
|
|
427
437
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -465,6 +475,7 @@ declare const _default: import('vue').DefineComponent<IArrayTableProps, {}, {},
|
|
|
465
475
|
reserveSelection: import('vue').Ref<boolean>;
|
|
466
476
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
467
477
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
478
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
468
479
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
469
480
|
filteredData: import('vue').Ref<any[] | null>;
|
|
470
481
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -507,6 +518,7 @@ declare const _default: import('vue').DefineComponent<IArrayTableProps, {}, {},
|
|
|
507
518
|
reserveSelection: import('vue').Ref<boolean>;
|
|
508
519
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
509
520
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
521
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
510
522
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
511
523
|
filteredData: import('vue').Ref<any[] | null>;
|
|
512
524
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -549,6 +561,7 @@ declare const _default: import('vue').DefineComponent<IArrayTableProps, {}, {},
|
|
|
549
561
|
reserveSelection: import('vue').Ref<boolean>;
|
|
550
562
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
551
563
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
564
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
552
565
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
553
566
|
filteredData: import('vue').Ref<any[] | null>;
|
|
554
567
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -625,6 +638,7 @@ declare const _default: import('vue').DefineComponent<IArrayTableProps, {}, {},
|
|
|
625
638
|
reserveSelection: import('vue').Ref<boolean>;
|
|
626
639
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
627
640
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
641
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
628
642
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
629
643
|
filteredData: import('vue').Ref<any[] | null>;
|
|
630
644
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -782,6 +796,9 @@ declare const _default: import('vue').DefineComponent<IArrayTableProps, {}, {},
|
|
|
782
796
|
emptyText: StringConstructor;
|
|
783
797
|
expandRowKeys: import('vue').PropType<import('element-plus').TableProps<any>["expandRowKeys"]>;
|
|
784
798
|
defaultExpandAll: BooleanConstructor;
|
|
799
|
+
rowExpandable: {
|
|
800
|
+
type: import('vue').PropType<import('element-plus').TableProps<any>["rowExpandable"]>;
|
|
801
|
+
};
|
|
785
802
|
defaultSort: import('vue').PropType<import('element-plus').TableProps<any>["defaultSort"]>;
|
|
786
803
|
tooltipEffect: StringConstructor;
|
|
787
804
|
tooltipOptions: import('vue').PropType<import('element-plus').TableProps<any>["tooltipOptions"]>;
|
|
@@ -908,6 +925,7 @@ declare const _default: import('vue').DefineComponent<IArrayTableProps, {}, {},
|
|
|
908
925
|
reserveSelection: import('vue').Ref<boolean>;
|
|
909
926
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
910
927
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
928
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
911
929
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
912
930
|
filteredData: import('vue').Ref<any[] | null>;
|
|
913
931
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -950,6 +968,7 @@ declare const _default: import('vue').DefineComponent<IArrayTableProps, {}, {},
|
|
|
950
968
|
reserveSelection: import('vue').Ref<boolean>;
|
|
951
969
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
952
970
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
971
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
953
972
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
954
973
|
filteredData: import('vue').Ref<any[] | null>;
|
|
955
974
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -992,6 +1011,7 @@ declare const _default: import('vue').DefineComponent<IArrayTableProps, {}, {},
|
|
|
992
1011
|
reserveSelection: import('vue').Ref<boolean>;
|
|
993
1012
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
994
1013
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1014
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
995
1015
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
996
1016
|
filteredData: import('vue').Ref<any[] | null>;
|
|
997
1017
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -1034,6 +1054,7 @@ declare const _default: import('vue').DefineComponent<IArrayTableProps, {}, {},
|
|
|
1034
1054
|
reserveSelection: import('vue').Ref<boolean>;
|
|
1035
1055
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
1036
1056
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1057
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1037
1058
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
1038
1059
|
filteredData: import('vue').Ref<any[] | null>;
|
|
1039
1060
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -1076,6 +1097,7 @@ declare const _default: import('vue').DefineComponent<IArrayTableProps, {}, {},
|
|
|
1076
1097
|
reserveSelection: import('vue').Ref<boolean>;
|
|
1077
1098
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
1078
1099
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1100
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1079
1101
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
1080
1102
|
filteredData: import('vue').Ref<any[] | null>;
|
|
1081
1103
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -1118,6 +1140,7 @@ declare const _default: import('vue').DefineComponent<IArrayTableProps, {}, {},
|
|
|
1118
1140
|
reserveSelection: import('vue').Ref<boolean>;
|
|
1119
1141
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
1120
1142
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1143
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1121
1144
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
1122
1145
|
filteredData: import('vue').Ref<any[] | null>;
|
|
1123
1146
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -1160,6 +1183,7 @@ declare const _default: import('vue').DefineComponent<IArrayTableProps, {}, {},
|
|
|
1160
1183
|
reserveSelection: import('vue').Ref<boolean>;
|
|
1161
1184
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
1162
1185
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1186
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1163
1187
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
1164
1188
|
filteredData: import('vue').Ref<any[] | null>;
|
|
1165
1189
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -1203,6 +1227,7 @@ declare const _default: import('vue').DefineComponent<IArrayTableProps, {}, {},
|
|
|
1203
1227
|
reserveSelection: import('vue').Ref<boolean>;
|
|
1204
1228
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
1205
1229
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1230
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1206
1231
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
1207
1232
|
filteredData: import('vue').Ref<any[] | null>;
|
|
1208
1233
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -1245,6 +1270,7 @@ declare const _default: import('vue').DefineComponent<IArrayTableProps, {}, {},
|
|
|
1245
1270
|
reserveSelection: import('vue').Ref<boolean>;
|
|
1246
1271
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
1247
1272
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1273
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1248
1274
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
1249
1275
|
filteredData: import('vue').Ref<any[] | null>;
|
|
1250
1276
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -1287,6 +1313,7 @@ declare const _default: import('vue').DefineComponent<IArrayTableProps, {}, {},
|
|
|
1287
1313
|
reserveSelection: import('vue').Ref<boolean>;
|
|
1288
1314
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
1289
1315
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1316
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1290
1317
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
1291
1318
|
filteredData: import('vue').Ref<any[] | null>;
|
|
1292
1319
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -1363,6 +1390,7 @@ declare const _default: import('vue').DefineComponent<IArrayTableProps, {}, {},
|
|
|
1363
1390
|
reserveSelection: import('vue').Ref<boolean>;
|
|
1364
1391
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
1365
1392
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1393
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1366
1394
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
1367
1395
|
filteredData: import('vue').Ref<any[] | null>;
|
|
1368
1396
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const ArrayTable: {
|
|
2
2
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').IArrayTableProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
3
|
-
|
|
3
|
+
modelValue: any[];
|
|
4
4
|
pagination: boolean;
|
|
5
5
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
6
6
|
elTableRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -44,6 +44,9 @@ export declare const ArrayTable: {
|
|
|
44
44
|
emptyText: StringConstructor;
|
|
45
45
|
expandRowKeys: import('vue').PropType<import('element-plus').TableProps<any>["expandRowKeys"]>;
|
|
46
46
|
defaultExpandAll: BooleanConstructor;
|
|
47
|
+
rowExpandable: {
|
|
48
|
+
type: import('vue').PropType<import('element-plus').TableProps<any>["rowExpandable"]>;
|
|
49
|
+
};
|
|
47
50
|
defaultSort: import('vue').PropType<import('element-plus').TableProps<any>["defaultSort"]>;
|
|
48
51
|
tooltipEffect: StringConstructor;
|
|
49
52
|
tooltipOptions: import('vue').PropType<import('element-plus').TableProps<any>["tooltipOptions"]>;
|
|
@@ -170,6 +173,7 @@ export declare const ArrayTable: {
|
|
|
170
173
|
reserveSelection: import('vue').Ref<boolean>;
|
|
171
174
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
172
175
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
176
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
173
177
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
174
178
|
filteredData: import('vue').Ref<any[] | null>;
|
|
175
179
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -212,6 +216,7 @@ export declare const ArrayTable: {
|
|
|
212
216
|
reserveSelection: import('vue').Ref<boolean>;
|
|
213
217
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
214
218
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
219
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
215
220
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
216
221
|
filteredData: import('vue').Ref<any[] | null>;
|
|
217
222
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -254,6 +259,7 @@ export declare const ArrayTable: {
|
|
|
254
259
|
reserveSelection: import('vue').Ref<boolean>;
|
|
255
260
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
256
261
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
262
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
257
263
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
258
264
|
filteredData: import('vue').Ref<any[] | null>;
|
|
259
265
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -296,6 +302,7 @@ export declare const ArrayTable: {
|
|
|
296
302
|
reserveSelection: import('vue').Ref<boolean>;
|
|
297
303
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
298
304
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
305
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
299
306
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
300
307
|
filteredData: import('vue').Ref<any[] | null>;
|
|
301
308
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -338,6 +345,7 @@ export declare const ArrayTable: {
|
|
|
338
345
|
reserveSelection: import('vue').Ref<boolean>;
|
|
339
346
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
340
347
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
348
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
341
349
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
342
350
|
filteredData: import('vue').Ref<any[] | null>;
|
|
343
351
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -380,6 +388,7 @@ export declare const ArrayTable: {
|
|
|
380
388
|
reserveSelection: import('vue').Ref<boolean>;
|
|
381
389
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
382
390
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
391
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
383
392
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
384
393
|
filteredData: import('vue').Ref<any[] | null>;
|
|
385
394
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -422,6 +431,7 @@ export declare const ArrayTable: {
|
|
|
422
431
|
reserveSelection: import('vue').Ref<boolean>;
|
|
423
432
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
424
433
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
434
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
425
435
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
426
436
|
filteredData: import('vue').Ref<any[] | null>;
|
|
427
437
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -465,6 +475,7 @@ export declare const ArrayTable: {
|
|
|
465
475
|
reserveSelection: import('vue').Ref<boolean>;
|
|
466
476
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
467
477
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
478
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
468
479
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
469
480
|
filteredData: import('vue').Ref<any[] | null>;
|
|
470
481
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -507,6 +518,7 @@ export declare const ArrayTable: {
|
|
|
507
518
|
reserveSelection: import('vue').Ref<boolean>;
|
|
508
519
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
509
520
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
521
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
510
522
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
511
523
|
filteredData: import('vue').Ref<any[] | null>;
|
|
512
524
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -549,6 +561,7 @@ export declare const ArrayTable: {
|
|
|
549
561
|
reserveSelection: import('vue').Ref<boolean>;
|
|
550
562
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
551
563
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
564
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
552
565
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
553
566
|
filteredData: import('vue').Ref<any[] | null>;
|
|
554
567
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -625,6 +638,7 @@ export declare const ArrayTable: {
|
|
|
625
638
|
reserveSelection: import('vue').Ref<boolean>;
|
|
626
639
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
627
640
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
641
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
628
642
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
629
643
|
filteredData: import('vue').Ref<any[] | null>;
|
|
630
644
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -782,6 +796,9 @@ export declare const ArrayTable: {
|
|
|
782
796
|
emptyText: StringConstructor;
|
|
783
797
|
expandRowKeys: import('vue').PropType<import('element-plus').TableProps<any>["expandRowKeys"]>;
|
|
784
798
|
defaultExpandAll: BooleanConstructor;
|
|
799
|
+
rowExpandable: {
|
|
800
|
+
type: import('vue').PropType<import('element-plus').TableProps<any>["rowExpandable"]>;
|
|
801
|
+
};
|
|
785
802
|
defaultSort: import('vue').PropType<import('element-plus').TableProps<any>["defaultSort"]>;
|
|
786
803
|
tooltipEffect: StringConstructor;
|
|
787
804
|
tooltipOptions: import('vue').PropType<import('element-plus').TableProps<any>["tooltipOptions"]>;
|
|
@@ -908,6 +925,7 @@ export declare const ArrayTable: {
|
|
|
908
925
|
reserveSelection: import('vue').Ref<boolean>;
|
|
909
926
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
910
927
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
928
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
911
929
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
912
930
|
filteredData: import('vue').Ref<any[] | null>;
|
|
913
931
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -950,6 +968,7 @@ export declare const ArrayTable: {
|
|
|
950
968
|
reserveSelection: import('vue').Ref<boolean>;
|
|
951
969
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
952
970
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
971
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
953
972
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
954
973
|
filteredData: import('vue').Ref<any[] | null>;
|
|
955
974
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -992,6 +1011,7 @@ export declare const ArrayTable: {
|
|
|
992
1011
|
reserveSelection: import('vue').Ref<boolean>;
|
|
993
1012
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
994
1013
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1014
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
995
1015
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
996
1016
|
filteredData: import('vue').Ref<any[] | null>;
|
|
997
1017
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -1034,6 +1054,7 @@ export declare const ArrayTable: {
|
|
|
1034
1054
|
reserveSelection: import('vue').Ref<boolean>;
|
|
1035
1055
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
1036
1056
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1057
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1037
1058
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
1038
1059
|
filteredData: import('vue').Ref<any[] | null>;
|
|
1039
1060
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -1076,6 +1097,7 @@ export declare const ArrayTable: {
|
|
|
1076
1097
|
reserveSelection: import('vue').Ref<boolean>;
|
|
1077
1098
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
1078
1099
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1100
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1079
1101
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
1080
1102
|
filteredData: import('vue').Ref<any[] | null>;
|
|
1081
1103
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -1118,6 +1140,7 @@ export declare const ArrayTable: {
|
|
|
1118
1140
|
reserveSelection: import('vue').Ref<boolean>;
|
|
1119
1141
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
1120
1142
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1143
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1121
1144
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
1122
1145
|
filteredData: import('vue').Ref<any[] | null>;
|
|
1123
1146
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -1160,6 +1183,7 @@ export declare const ArrayTable: {
|
|
|
1160
1183
|
reserveSelection: import('vue').Ref<boolean>;
|
|
1161
1184
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
1162
1185
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1186
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1163
1187
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
1164
1188
|
filteredData: import('vue').Ref<any[] | null>;
|
|
1165
1189
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -1203,6 +1227,7 @@ export declare const ArrayTable: {
|
|
|
1203
1227
|
reserveSelection: import('vue').Ref<boolean>;
|
|
1204
1228
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
1205
1229
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1230
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1206
1231
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
1207
1232
|
filteredData: import('vue').Ref<any[] | null>;
|
|
1208
1233
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -1245,6 +1270,7 @@ export declare const ArrayTable: {
|
|
|
1245
1270
|
reserveSelection: import('vue').Ref<boolean>;
|
|
1246
1271
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
1247
1272
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1273
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1248
1274
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
1249
1275
|
filteredData: import('vue').Ref<any[] | null>;
|
|
1250
1276
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -1287,6 +1313,7 @@ export declare const ArrayTable: {
|
|
|
1287
1313
|
reserveSelection: import('vue').Ref<boolean>;
|
|
1288
1314
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
1289
1315
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1316
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1290
1317
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
1291
1318
|
filteredData: import('vue').Ref<any[] | null>;
|
|
1292
1319
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -1363,6 +1390,7 @@ export declare const ArrayTable: {
|
|
|
1363
1390
|
reserveSelection: import('vue').Ref<boolean>;
|
|
1364
1391
|
selectOnIndeterminate: import('vue').Ref<boolean>;
|
|
1365
1392
|
selectable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1393
|
+
rowExpandable: import('vue').Ref<((row: any, index: number) => boolean) | null>;
|
|
1366
1394
|
filters: import('vue').Ref<import('element-plus/es/components/table/src/store/index.mjs').StoreFilter>;
|
|
1367
1395
|
filteredData: import('vue').Ref<any[] | null>;
|
|
1368
1396
|
sortingColumn: import('vue').Ref<import('element-plus').TableColumnCtx<any> | null>;
|
|
@@ -1481,14 +1509,14 @@ export declare const ArrayTable: {
|
|
|
1481
1509
|
M: {};
|
|
1482
1510
|
Defaults: {};
|
|
1483
1511
|
}, Readonly<import('./types').IArrayTableProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
1484
|
-
|
|
1512
|
+
modelValue: any[];
|
|
1485
1513
|
pagination: boolean;
|
|
1486
1514
|
}>;
|
|
1487
1515
|
__isFragment?: never;
|
|
1488
1516
|
__isTeleport?: never;
|
|
1489
1517
|
__isSuspense?: never;
|
|
1490
1518
|
} & import('vue').ComponentOptionsBase<Readonly<import('./types').IArrayTableProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
1491
|
-
|
|
1519
|
+
modelValue: any[];
|
|
1492
1520
|
pagination: boolean;
|
|
1493
1521
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
1494
1522
|
Column: import('vue').ComponentOptions<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, any, any, any, string, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>;
|