fast-element-plus 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.full.js +21 -14
- package/dist/index.full.js.map +1 -1
- package/dist/index.full.min.js +1 -1
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +1 -1
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +21 -14
- package/dist/index.full.mjs.map +1 -1
- package/es/components/table/src/table.mjs +1 -1
- package/es/components/table/src/table.mjs.map +1 -1
- package/es/components/table/src/tableColumn.mjs +1 -1
- package/es/components/table/src/tableColumn.mjs.map +1 -1
- package/es/components/table/utils/table.mjs +1 -1
- package/es/components/table/utils/table.mjs.map +1 -1
- package/es/components/treeSelect/src/treeSelect.d.ts +48 -48
- package/es/components/treeSelect/src/treeSelect.mjs +1 -1
- package/es/components/treeSelect/src/treeSelect.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/table/src/table.js +1 -1
- package/lib/components/table/src/table.js.map +1 -1
- package/lib/components/table/src/tableColumn.js +1 -1
- package/lib/components/table/src/tableColumn.js.map +1 -1
- package/lib/components/table/utils/table.js +1 -1
- package/lib/components/table/utils/table.js.map +1 -1
- package/lib/components/treeSelect/src/treeSelect.d.ts +48 -48
- package/lib/components/treeSelect/src/treeSelect.js +1 -1
- package/lib/components/treeSelect/src/treeSelect.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +1 -1
package/dist/index.full.mjs
CHANGED
|
@@ -18330,7 +18330,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
|
|
|
18330
18330
|
* @param {String} prop 当前 prop
|
|
18331
18331
|
*/
|
|
18332
18332
|
handleRowAccordingToProp(row, prop) {
|
|
18333
|
-
if (!prop.includes(".")) return row[prop]
|
|
18333
|
+
if (!prop.includes(".")) return row[prop];
|
|
18334
18334
|
prop.split(".").forEach((item) => row = row[item]);
|
|
18335
18335
|
return row;
|
|
18336
18336
|
},
|
|
@@ -19019,7 +19019,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
|
|
|
19019
19019
|
tag: Boolean,
|
|
19020
19020
|
/** @description 枚举类型(渲染值的字典) */
|
|
19021
19021
|
enum: {
|
|
19022
|
-
type: utils.definePropType([Array, Function])
|
|
19022
|
+
type: utils.definePropType([String, Array, Function])
|
|
19023
19023
|
},
|
|
19024
19024
|
/** @description 数据删除字段,如果为 true 会显示遮罩层 */
|
|
19025
19025
|
dataDeleteField: String,
|
|
@@ -19194,10 +19194,17 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
|
|
|
19194
19194
|
row
|
|
19195
19195
|
}), $index);
|
|
19196
19196
|
let enumKey = props.prop;
|
|
19197
|
+
let enumData;
|
|
19197
19198
|
if (isString(props.enum)) {
|
|
19198
19199
|
enumKey = props.enum;
|
|
19200
|
+
enumData = enumMap.get(enumKey);
|
|
19201
|
+
} else if (isArray(props.enum)) {
|
|
19202
|
+
enumData = props.enum;
|
|
19203
|
+
} else if (isFunction(props.enum)) {
|
|
19204
|
+
enumData = props.enum({
|
|
19205
|
+
row
|
|
19206
|
+
});
|
|
19199
19207
|
}
|
|
19200
|
-
const enumData = enumMap.get(enumKey);
|
|
19201
19208
|
const type = tableUtil.filterEnum(tableUtil.handleRowAccordingToProp(row, props.prop), enumData, null, "tag");
|
|
19202
19209
|
return vue.createVNode(vue.Fragment, null, [copyRender(renderValue), renderValue ? vue.createVNode(ElementPlus2.ElTag, {
|
|
19203
19210
|
"type": type
|
|
@@ -23780,7 +23787,6 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
|
|
|
23780
23787
|
"defaultTime": utils.dateUtil.getDefaultTime(),
|
|
23781
23788
|
"shortcuts": utils.dateUtil.getShortcuts(),
|
|
23782
23789
|
"valueFormat": "YYYY-MM-DD HH:mm:ss",
|
|
23783
|
-
"disabledDate": utils.dateUtil.getDisabledDate,
|
|
23784
23790
|
"clearable": false,
|
|
23785
23791
|
"teleported": false,
|
|
23786
23792
|
"unlinkPanels": true,
|
|
@@ -24452,6 +24458,14 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
|
|
|
24452
24458
|
const faTreeSelectProps = {
|
|
24453
24459
|
...SelectProps,
|
|
24454
24460
|
...treeProps,
|
|
24461
|
+
/**
|
|
24462
|
+
* 懒加载节点的缓存数据,结构与数据相同,用于获取未加载数据的标签
|
|
24463
|
+
* @description The cached data of the lazy node, the structure is the same as the data, used to get the label of the unloaded data
|
|
24464
|
+
*/
|
|
24465
|
+
cacheData: {
|
|
24466
|
+
type: utils.definePropType(Array),
|
|
24467
|
+
default: []
|
|
24468
|
+
},
|
|
24455
24469
|
/** @description whether Select is disabled 重载使其支持 ElForm*/
|
|
24456
24470
|
disabled: {
|
|
24457
24471
|
type: Boolean,
|
|
@@ -24506,14 +24520,6 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
|
|
|
24506
24520
|
expandOnClickNode: Boolean,
|
|
24507
24521
|
/** @description 点击折叠节点,需要开启 'expandOnClickNode' */
|
|
24508
24522
|
collapseOnClickNode: Boolean,
|
|
24509
|
-
/**
|
|
24510
|
-
* 懒加载节点的缓存数据,结构与数据相同,用于获取未加载数据的标签
|
|
24511
|
-
* @description The cached data of the lazy node, the structure is the same as the data, used to get the label of the unloaded data
|
|
24512
|
-
*/
|
|
24513
|
-
cacheData: {
|
|
24514
|
-
type: utils.definePropType(Array),
|
|
24515
|
-
default: []
|
|
24516
|
-
},
|
|
24517
24523
|
/** @description v-model绑定值 */
|
|
24518
24524
|
modelValue: {
|
|
24519
24525
|
type: utils.definePropType([String, Number, Boolean, Object, Array]),
|
|
@@ -24774,7 +24780,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
|
|
|
24774
24780
|
const elTreeSelectProps = utils.useProps(props, {
|
|
24775
24781
|
...SelectProps,
|
|
24776
24782
|
...treeProps
|
|
24777
|
-
}, ["modelValue", "popperClass", "loading", "expandOnClickNode", "filterNodeMethod"]);
|
|
24783
|
+
}, ["modelValue", "popperClass", "lazy", "loading", "expandOnClickNode", "filterNodeMethod"]);
|
|
24778
24784
|
const elTreeSelectEmits = utils.useEmits({
|
|
24779
24785
|
...ElementPlus2.selectEmits,
|
|
24780
24786
|
...ElementPlus2.treeEmits
|
|
@@ -24788,6 +24794,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
|
|
|
24788
24794
|
},
|
|
24789
24795
|
"modelValue": state.value,
|
|
24790
24796
|
"onUpdate:modelValue": ($event) => state.value = $event,
|
|
24797
|
+
"lazy": false,
|
|
24791
24798
|
"loading": state.loading,
|
|
24792
24799
|
"data": state.selectorData,
|
|
24793
24800
|
"expandOnClickNode": props.checkOnClickNode ? false : props.expandOnClickNode,
|
|
@@ -28294,7 +28301,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
|
|
|
28294
28301
|
}
|
|
28295
28302
|
app.use(ElementPlus2);
|
|
28296
28303
|
};
|
|
28297
|
-
const version$1 = "1.0.
|
|
28304
|
+
const version$1 = "1.0.11";
|
|
28298
28305
|
const INSTALLED_KEY = /* @__PURE__ */ Symbol("INSTALLED_KEY");
|
|
28299
28306
|
const makeInstaller = () => {
|
|
28300
28307
|
const install2 = (app) => {
|