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.
Files changed (33) hide show
  1. package/dist/index.full.js +21 -14
  2. package/dist/index.full.js.map +1 -1
  3. package/dist/index.full.min.js +1 -1
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +1 -1
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +21 -14
  8. package/dist/index.full.mjs.map +1 -1
  9. package/es/components/table/src/table.mjs +1 -1
  10. package/es/components/table/src/table.mjs.map +1 -1
  11. package/es/components/table/src/tableColumn.mjs +1 -1
  12. package/es/components/table/src/tableColumn.mjs.map +1 -1
  13. package/es/components/table/utils/table.mjs +1 -1
  14. package/es/components/table/utils/table.mjs.map +1 -1
  15. package/es/components/treeSelect/src/treeSelect.d.ts +48 -48
  16. package/es/components/treeSelect/src/treeSelect.mjs +1 -1
  17. package/es/components/treeSelect/src/treeSelect.mjs.map +1 -1
  18. package/es/version.d.ts +1 -1
  19. package/es/version.mjs +1 -1
  20. package/es/version.mjs.map +1 -1
  21. package/lib/components/table/src/table.js +1 -1
  22. package/lib/components/table/src/table.js.map +1 -1
  23. package/lib/components/table/src/tableColumn.js +1 -1
  24. package/lib/components/table/src/tableColumn.js.map +1 -1
  25. package/lib/components/table/utils/table.js +1 -1
  26. package/lib/components/table/utils/table.js.map +1 -1
  27. package/lib/components/treeSelect/src/treeSelect.d.ts +48 -48
  28. package/lib/components/treeSelect/src/treeSelect.js +1 -1
  29. package/lib/components/treeSelect/src/treeSelect.js.map +1 -1
  30. package/lib/version.d.ts +1 -1
  31. package/lib/version.js +1 -1
  32. package/lib/version.js.map +1 -1
  33. package/package.json +1 -1
@@ -18332,7 +18332,7 @@
18332
18332
  * @param {String} prop 当前 prop
18333
18333
  */
18334
18334
  handleRowAccordingToProp(row, prop) {
18335
- if (!prop.includes(".")) return row[prop] ?? null;
18335
+ if (!prop.includes(".")) return row[prop];
18336
18336
  prop.split(".").forEach((item) => row = row[item]);
18337
18337
  return row;
18338
18338
  },
@@ -19021,7 +19021,7 @@
19021
19021
  tag: Boolean,
19022
19022
  /** @description 枚举类型(渲染值的字典) */
19023
19023
  enum: {
19024
- type: utils.definePropType([Array, Function])
19024
+ type: utils.definePropType([String, Array, Function])
19025
19025
  },
19026
19026
  /** @description 数据删除字段,如果为 true 会显示遮罩层 */
19027
19027
  dataDeleteField: String,
@@ -19196,10 +19196,17 @@
19196
19196
  row
19197
19197
  }), $index);
19198
19198
  let enumKey = props.prop;
19199
+ let enumData;
19199
19200
  if (isString(props.enum)) {
19200
19201
  enumKey = props.enum;
19202
+ enumData = enumMap.get(enumKey);
19203
+ } else if (isArray(props.enum)) {
19204
+ enumData = props.enum;
19205
+ } else if (isFunction(props.enum)) {
19206
+ enumData = props.enum({
19207
+ row
19208
+ });
19201
19209
  }
19202
- const enumData = enumMap.get(enumKey);
19203
19210
  const type = tableUtil.filterEnum(tableUtil.handleRowAccordingToProp(row, props.prop), enumData, null, "tag");
19204
19211
  return vue.createVNode(vue.Fragment, null, [copyRender(renderValue), renderValue ? vue.createVNode(ElementPlus.ElTag, {
19205
19212
  "type": type
@@ -23782,7 +23789,6 @@
23782
23789
  "defaultTime": utils.dateUtil.getDefaultTime(),
23783
23790
  "shortcuts": utils.dateUtil.getShortcuts(),
23784
23791
  "valueFormat": "YYYY-MM-DD HH:mm:ss",
23785
- "disabledDate": utils.dateUtil.getDisabledDate,
23786
23792
  "clearable": false,
23787
23793
  "teleported": false,
23788
23794
  "unlinkPanels": true,
@@ -24454,6 +24460,14 @@
24454
24460
  const faTreeSelectProps = {
24455
24461
  ...SelectProps,
24456
24462
  ...treeProps,
24463
+ /**
24464
+ * 懒加载节点的缓存数据,结构与数据相同,用于获取未加载数据的标签
24465
+ * @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
24466
+ */
24467
+ cacheData: {
24468
+ type: utils.definePropType(Array),
24469
+ default: []
24470
+ },
24457
24471
  /** @description whether Select is disabled 重载使其支持 ElForm*/
24458
24472
  disabled: {
24459
24473
  type: Boolean,
@@ -24508,14 +24522,6 @@
24508
24522
  expandOnClickNode: Boolean,
24509
24523
  /** @description 点击折叠节点,需要开启 'expandOnClickNode' */
24510
24524
  collapseOnClickNode: Boolean,
24511
- /**
24512
- * 懒加载节点的缓存数据,结构与数据相同,用于获取未加载数据的标签
24513
- * @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
24514
- */
24515
- cacheData: {
24516
- type: utils.definePropType(Array),
24517
- default: []
24518
- },
24519
24525
  /** @description v-model绑定值 */
24520
24526
  modelValue: {
24521
24527
  type: utils.definePropType([String, Number, Boolean, Object, Array]),
@@ -24776,7 +24782,7 @@
24776
24782
  const elTreeSelectProps = utils.useProps(props, {
24777
24783
  ...SelectProps,
24778
24784
  ...treeProps
24779
- }, ["modelValue", "popperClass", "loading", "expandOnClickNode", "filterNodeMethod"]);
24785
+ }, ["modelValue", "popperClass", "lazy", "loading", "expandOnClickNode", "filterNodeMethod"]);
24780
24786
  const elTreeSelectEmits = utils.useEmits({
24781
24787
  ...ElementPlus.selectEmits,
24782
24788
  ...ElementPlus.treeEmits
@@ -24790,6 +24796,7 @@
24790
24796
  },
24791
24797
  "modelValue": state.value,
24792
24798
  "onUpdate:modelValue": ($event) => state.value = $event,
24799
+ "lazy": false,
24793
24800
  "loading": state.loading,
24794
24801
  "data": state.selectorData,
24795
24802
  "expandOnClickNode": props.checkOnClickNode ? false : props.expandOnClickNode,
@@ -28296,7 +28303,7 @@
28296
28303
  }
28297
28304
  app.use(ElementPlus);
28298
28305
  };
28299
- const version$1 = "1.0.10";
28306
+ const version$1 = "1.0.11";
28300
28307
  const INSTALLED_KEY = /* @__PURE__ */ Symbol("INSTALLED_KEY");
28301
28308
  const makeInstaller = () => {
28302
28309
  const install2 = (app) => {