keli-ui 0.0.3 → 0.0.4

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/keli-ui.js CHANGED
@@ -8155,20 +8155,20 @@ function renderCellHandle(params) {
8155
8155
  const isDeepCell = treeNode || rowGroupNode;
8156
8156
  switch (type) {
8157
8157
  case "seq":
8158
- return isDeepCell ? Cell.renderDeepIndexCell(params) : Cell.renderSeqCell(params);
8158
+ return isDeepCell ? Cell$1.renderDeepIndexCell(params) : Cell$1.renderSeqCell(params);
8159
8159
  case "radio":
8160
- return isDeepCell ? Cell.renderDeepRadioCell(params) : Cell.renderRadioCell(params);
8160
+ return isDeepCell ? Cell$1.renderDeepRadioCell(params) : Cell$1.renderRadioCell(params);
8161
8161
  case "checkbox":
8162
- return checkboxOpts.checkField ? isDeepCell ? Cell.renderDeepSelectionCellByProp(params) : Cell.renderCheckboxCellByProp(params) : isDeepCell ? Cell.renderDeepSelectionCell(params) : Cell.renderCheckboxCell(params);
8162
+ return checkboxOpts.checkField ? isDeepCell ? Cell$1.renderDeepSelectionCellByProp(params) : Cell$1.renderCheckboxCellByProp(params) : isDeepCell ? Cell$1.renderDeepSelectionCell(params) : Cell$1.renderCheckboxCell(params);
8163
8163
  case "expand":
8164
- return Cell.renderExpandCell(params);
8164
+ return Cell$1.renderExpandCell(params);
8165
8165
  case "html":
8166
- return isDeepCell ? Cell.renderDeepHTMLCell(params) : Cell.renderHTMLCell(params);
8166
+ return isDeepCell ? Cell$1.renderDeepHTMLCell(params) : Cell$1.renderHTMLCell(params);
8167
8167
  }
8168
8168
  if (isEnableConf(editConfig) && editRender) {
8169
- return editOpts.mode === "cell" ? isDeepCell ? Cell.renderDeepCellEdit(params) : Cell.renderCellEdit(params) : isDeepCell ? Cell.renderDeepRowEdit(params) : Cell.renderRowEdit(params);
8169
+ return editOpts.mode === "cell" ? isDeepCell ? Cell$1.renderDeepCellEdit(params) : Cell$1.renderCellEdit(params) : isDeepCell ? Cell$1.renderDeepRowEdit(params) : Cell$1.renderRowEdit(params);
8170
8170
  }
8171
- return isDeepCell ? Cell.renderDeepCell(params) : Cell.renderDefaultCell(params);
8171
+ return isDeepCell ? Cell$1.renderDeepCell(params) : Cell$1.renderDefaultCell(params);
8172
8172
  }
8173
8173
  function renderHeaderHandle(params) {
8174
8174
  const { column, $table } = params;
@@ -8177,36 +8177,36 @@ function renderHeaderHandle(params) {
8177
8177
  const { type, filters, sortable, editRender } = column;
8178
8178
  switch (type) {
8179
8179
  case "seq":
8180
- return Cell.renderSeqHeader(params);
8180
+ return Cell$1.renderSeqHeader(params);
8181
8181
  case "radio":
8182
- return Cell.renderRadioHeader(params);
8182
+ return Cell$1.renderRadioHeader(params);
8183
8183
  case "checkbox":
8184
- return Cell.renderCheckboxHeader(params);
8184
+ return Cell$1.renderCheckboxHeader(params);
8185
8185
  case "html":
8186
8186
  if (filters && sortable) {
8187
- return Cell.renderSortAndFilterHeader(params);
8187
+ return Cell$1.renderSortAndFilterHeader(params);
8188
8188
  } else if (sortable) {
8189
- return Cell.renderSortHeader(params);
8189
+ return Cell$1.renderSortHeader(params);
8190
8190
  } else if (filters) {
8191
- return Cell.renderFilterHeader(params);
8191
+ return Cell$1.renderFilterHeader(params);
8192
8192
  }
8193
8193
  break;
8194
8194
  }
8195
8195
  if (editConfig && editRender) {
8196
- return Cell.renderEditHeader(params);
8196
+ return Cell$1.renderEditHeader(params);
8197
8197
  } else if (filters && sortable) {
8198
- return Cell.renderSortAndFilterHeader(params);
8198
+ return Cell$1.renderSortAndFilterHeader(params);
8199
8199
  } else if (sortable) {
8200
- return Cell.renderSortHeader(params);
8200
+ return Cell$1.renderSortHeader(params);
8201
8201
  } else if (filters) {
8202
- return Cell.renderFilterHeader(params);
8202
+ return Cell$1.renderFilterHeader(params);
8203
8203
  }
8204
- return Cell.renderDefaultHeader(params);
8204
+ return Cell$1.renderDefaultHeader(params);
8205
8205
  }
8206
8206
  function renderFooterHandle(params) {
8207
- return Cell.renderDefaultFooter(params);
8207
+ return Cell$1.renderDefaultFooter(params);
8208
8208
  }
8209
- const Cell = {
8209
+ const Cell$1 = {
8210
8210
  createColumn($xeTable, columnOpts) {
8211
8211
  const { type } = columnOpts;
8212
8212
  const renConfs = {
@@ -8215,7 +8215,7 @@ const Cell = {
8215
8215
  renderFooter: renderFooterHandle
8216
8216
  };
8217
8217
  if (type === "expand") {
8218
- renConfs.renderData = Cell.renderExpandData;
8218
+ renConfs.renderData = Cell$1.renderExpandData;
8219
8219
  }
8220
8220
  return createColumn($xeTable, columnOpts, renConfs);
8221
8221
  },
@@ -8242,7 +8242,7 @@ const Cell = {
8242
8242
  return renderTitleContent(params, formatText(column.getTitle(), 1));
8243
8243
  },
8244
8244
  renderDefaultHeader(params) {
8245
- return renderHeaderCellBaseVNs(params, Cell.renderHeaderTitle(params));
8245
+ return renderHeaderCellBaseVNs(params, Cell$1.renderHeaderTitle(params));
8246
8246
  },
8247
8247
  renderDefaultCell(params) {
8248
8248
  const { $table, row, column } = params;
@@ -8308,7 +8308,7 @@ const Cell = {
8308
8308
  ]);
8309
8309
  },
8310
8310
  renderDeepCell(params) {
8311
- return Cell.renderDeepNodeBtn(params, Cell.renderDefaultCell(params));
8311
+ return Cell$1.renderDeepNodeBtn(params, Cell$1.renderDefaultCell(params));
8312
8312
  },
8313
8313
  renderDefaultFooter(params) {
8314
8314
  return getFooterContent(params);
@@ -8421,9 +8421,9 @@ const Cell = {
8421
8421
  const { row, column } = params;
8422
8422
  const { rowGroupNode } = column;
8423
8423
  if (rowGroupNode && row.isAggregate) {
8424
- return [Cell.renderRowGroupBtn(params, cellVNodes)];
8424
+ return [Cell$1.renderRowGroupBtn(params, cellVNodes)];
8425
8425
  }
8426
- return [Cell.renderTreeNodeBtn(params, cellVNodes)];
8426
+ return [Cell$1.renderTreeNodeBtn(params, cellVNodes)];
8427
8427
  },
8428
8428
  /**
8429
8429
  * 序号
@@ -8452,7 +8452,7 @@ const Cell = {
8452
8452
  ]);
8453
8453
  },
8454
8454
  renderDeepIndexCell(params) {
8455
- return Cell.renderDeepNodeBtn(params, Cell.renderSeqCell(params));
8455
+ return Cell$1.renderDeepNodeBtn(params, Cell$1.renderSeqCell(params));
8456
8456
  },
8457
8457
  /**
8458
8458
  * 单选
@@ -8518,7 +8518,7 @@ const Cell = {
8518
8518
  ]);
8519
8519
  },
8520
8520
  renderDeepRadioCell(params) {
8521
- return Cell.renderDeepNodeBtn(params, Cell.renderRadioCell(params));
8521
+ return Cell$1.renderDeepNodeBtn(params, Cell$1.renderRadioCell(params));
8522
8522
  },
8523
8523
  /**
8524
8524
  * 多选
@@ -8629,7 +8629,7 @@ const Cell = {
8629
8629
  ]);
8630
8630
  },
8631
8631
  renderDeepSelectionCell(params) {
8632
- return Cell.renderDeepNodeBtn(params, Cell.renderCheckboxCell(params));
8632
+ return Cell$1.renderDeepNodeBtn(params, Cell$1.renderCheckboxCell(params));
8633
8633
  },
8634
8634
  renderCheckboxCellByProp(params) {
8635
8635
  const { $table, row, column, isHidden: isHidden2 } = params;
@@ -8691,7 +8691,7 @@ const Cell = {
8691
8691
  ]);
8692
8692
  },
8693
8693
  renderDeepSelectionCellByProp(params) {
8694
- return Cell.renderDeepNodeBtn(params, Cell.renderCheckboxCellByProp(params));
8694
+ return Cell$1.renderDeepNodeBtn(params, Cell$1.renderCheckboxCellByProp(params));
8695
8695
  },
8696
8696
  /**
8697
8697
  * 展开行
@@ -8780,19 +8780,19 @@ const Cell = {
8780
8780
  ]);
8781
8781
  },
8782
8782
  renderDeepHTMLCell(params) {
8783
- return Cell.renderDeepNodeBtn(params, Cell.renderHTMLCell(params));
8783
+ return Cell$1.renderDeepNodeBtn(params, Cell$1.renderHTMLCell(params));
8784
8784
  },
8785
8785
  /**
8786
8786
  * 排序和筛选
8787
8787
  */
8788
8788
  renderSortAndFilterHeader(params) {
8789
- return renderHeaderCellBaseVNs(params, Cell.renderHeaderTitle(params).concat(Cell.renderSortIcon(params).concat(Cell.renderFilterIcon(params))));
8789
+ return renderHeaderCellBaseVNs(params, Cell$1.renderHeaderTitle(params).concat(Cell$1.renderSortIcon(params).concat(Cell$1.renderFilterIcon(params))));
8790
8790
  },
8791
8791
  /**
8792
8792
  * 排序
8793
8793
  */
8794
8794
  renderSortHeader(params) {
8795
- return renderHeaderCellBaseVNs(params, Cell.renderHeaderTitle(params).concat(Cell.renderSortIcon(params)));
8795
+ return renderHeaderCellBaseVNs(params, Cell$1.renderHeaderTitle(params).concat(Cell$1.renderSortIcon(params)));
8796
8796
  },
8797
8797
  renderSortIcon(params) {
8798
8798
  const { $table, column } = params;
@@ -8834,7 +8834,7 @@ const Cell = {
8834
8834
  * 筛选
8835
8835
  */
8836
8836
  renderFilterHeader(params) {
8837
- return renderHeaderCellBaseVNs(params, Cell.renderHeaderTitle(params).concat(Cell.renderFilterIcon(params)));
8837
+ return renderHeaderCellBaseVNs(params, Cell$1.renderHeaderTitle(params).concat(Cell$1.renderFilterIcon(params)));
8838
8838
  },
8839
8839
  renderFilterIcon(params) {
8840
8840
  const { $table, column, hasFilter } = params;
@@ -8892,7 +8892,7 @@ const Cell = {
8892
8892
  }) : renderEmptyElement$6($table)
8893
8893
  ];
8894
8894
  }
8895
- return renderHeaderCellBaseVNs(params, editIconVNs.concat(Cell.renderHeaderTitle(params)).concat(sortable ? Cell.renderSortIcon(params) : []).concat(filters ? Cell.renderFilterIcon(params) : []));
8895
+ return renderHeaderCellBaseVNs(params, editIconVNs.concat(Cell$1.renderHeaderTitle(params)).concat(sortable ? Cell$1.renderSortIcon(params) : []).concat(filters ? Cell$1.renderFilterIcon(params) : []));
8896
8896
  },
8897
8897
  // 行格编辑模式
8898
8898
  renderRowEdit(params) {
@@ -8901,10 +8901,10 @@ const Cell = {
8901
8901
  const { editStore } = tableReactData;
8902
8902
  const { actived } = editStore;
8903
8903
  const { editRender } = column;
8904
- return Cell.runRenderer(params, isEnableConf(editRender) && actived && actived.row === params.row);
8904
+ return Cell$1.runRenderer(params, isEnableConf(editRender) && actived && actived.row === params.row);
8905
8905
  },
8906
8906
  renderDeepRowEdit(params) {
8907
- return Cell.renderDeepNodeBtn(params, Cell.renderRowEdit(params));
8907
+ return Cell$1.renderDeepNodeBtn(params, Cell$1.renderRowEdit(params));
8908
8908
  },
8909
8909
  // 单元格编辑模式
8910
8910
  renderCellEdit(params) {
@@ -8913,10 +8913,10 @@ const Cell = {
8913
8913
  const { editStore } = tableReactData;
8914
8914
  const { actived } = editStore;
8915
8915
  const { editRender } = column;
8916
- return Cell.runRenderer(params, isEnableConf(editRender) && actived && actived.row === params.row && actived.column === params.column);
8916
+ return Cell$1.runRenderer(params, isEnableConf(editRender) && actived && actived.row === params.row && actived.column === params.column);
8917
8917
  },
8918
8918
  renderDeepCellEdit(params) {
8919
- return Cell.renderDeepNodeBtn(params, Cell.renderCellEdit(params));
8919
+ return Cell$1.renderDeepNodeBtn(params, Cell$1.renderCellEdit(params));
8920
8920
  },
8921
8921
  runRenderer(params, isEdit) {
8922
8922
  const { $table, column } = params;
@@ -8946,7 +8946,7 @@ const Cell = {
8946
8946
  }, getDefaultCellLabel(cellParams))
8947
8947
  ]);
8948
8948
  }
8949
- return Cell.renderDefaultCell(cellParams);
8949
+ return Cell$1.renderDefaultCell(cellParams);
8950
8950
  }
8951
8951
  };
8952
8952
  const columnProps = {
@@ -9082,7 +9082,7 @@ const VxeColumnComponent = defineComponent({
9082
9082
  if (!$xeTable) {
9083
9083
  return () => createCommentVNode();
9084
9084
  }
9085
- const columnConfig = Cell.createColumn($xeTable, props);
9085
+ const columnConfig = Cell$1.createColumn($xeTable, props);
9086
9086
  columnConfig.slots = slots;
9087
9087
  const renderVN = () => {
9088
9088
  return h("div", {
@@ -9129,7 +9129,7 @@ const VxeColgroupComponent = defineComponent({
9129
9129
  if (!$xeTable) {
9130
9130
  return () => createCommentVNode();
9131
9131
  }
9132
- const columnConfig = Cell.createColumn($xeTable, props);
9132
+ const columnConfig = Cell$1.createColumn($xeTable, props);
9133
9133
  const columnSlots = {};
9134
9134
  if (slots.header) {
9135
9135
  columnSlots.header = slots.header;
@@ -16639,7 +16639,7 @@ const VxeTableComponent = defineComponent({
16639
16639
  * @param {ColumnInfo} columns 列配置
16640
16640
  */
16641
16641
  loadColumn(columns) {
16642
- const collectColumn = XEUtils.mapTree(columns, (column) => reactive(Cell.createColumn($xeTable, column)));
16642
+ const collectColumn = XEUtils.mapTree(columns, (column) => reactive(Cell$1.createColumn($xeTable, column)));
16643
16643
  return handleColumn(collectColumn);
16644
16644
  },
16645
16645
  /**
@@ -32487,7 +32487,7 @@ const __default__$6 = defineComponent({
32487
32487
  name: "ElIcon",
32488
32488
  inheritAttrs: false
32489
32489
  });
32490
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
32490
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
32491
32491
  ...__default__$6,
32492
32492
  props: iconProps$1,
32493
32493
  setup(__props) {
@@ -32512,7 +32512,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
32512
32512
  };
32513
32513
  }
32514
32514
  });
32515
- var Icon$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$l, [["__file", "icon.vue"]]);
32515
+ var Icon$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["__file", "icon.vue"]]);
32516
32516
  const ElIcon = withInstall$1(Icon$1);
32517
32517
  const iconPropType = definePropType([
32518
32518
  String,
@@ -32750,7 +32750,7 @@ const ID_INJECTION_KEY = Symbol("elIdInjection");
32750
32750
  const useIdInjection = () => {
32751
32751
  return getCurrentInstance() ? inject(ID_INJECTION_KEY, defaultIdInjection) : defaultIdInjection;
32752
32752
  };
32753
- const useId = (deterministicId) => {
32753
+ const useId$1 = (deterministicId) => {
32754
32754
  const idInjection = useIdInjection();
32755
32755
  if (!isClient && idInjection === defaultIdInjection) {
32756
32756
  debugWarn("IdInjection", `Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
@@ -32790,7 +32790,7 @@ const useFormItemInputId = (props, {
32790
32790
  });
32791
32791
  onMounted(() => {
32792
32792
  idUnwatch = watch([toRef(props, "id"), disableIdGeneration], ([id, disableIdGeneration2]) => {
32793
- const newId = id != null ? id : !disableIdGeneration2 ? useId().value : void 0;
32793
+ const newId = id != null ? id : !disableIdGeneration2 ? useId$1().value : void 0;
32794
32794
  if (newId !== inputId.value) {
32795
32795
  if (formItemContext == null ? void 0 : formItemContext.removeInputId) {
32796
32796
  inputId.value && formItemContext.removeInputId(inputId.value);
@@ -32976,7 +32976,7 @@ const __default__$5 = defineComponent({
32976
32976
  name: COMPONENT_NAME,
32977
32977
  inheritAttrs: false
32978
32978
  });
32979
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
32979
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
32980
32980
  ...__default__$5,
32981
32981
  props: inputProps,
32982
32982
  emits: inputEmits,
@@ -33388,7 +33388,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
33388
33388
  };
33389
33389
  }
33390
33390
  });
33391
- var Input = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["__file", "input.vue"]]);
33391
+ var Input = /* @__PURE__ */ _export_sfc$1(_sfc_main$m, [["__file", "input.vue"]]);
33392
33392
  const ElInput = withInstall$1(Input);
33393
33393
  const FOCUSABLE_ELEMENT_SELECTORS = `a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])`;
33394
33394
  const isVisible = (element) => {
@@ -33608,7 +33608,7 @@ const useEscapeKeydown = (handler) => {
33608
33608
  }
33609
33609
  });
33610
33610
  };
33611
- const _sfc_main$j = defineComponent({
33611
+ const _sfc_main$l = defineComponent({
33612
33612
  name: "ElFocusTrap",
33613
33613
  inheritAttrs: false,
33614
33614
  props: {
@@ -33853,7 +33853,7 @@ const _sfc_main$j = defineComponent({
33853
33853
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
33854
33854
  return renderSlot(_ctx.$slots, "default", { handleKeydown: _ctx.onKeydown });
33855
33855
  }
33856
- var ElFocusTrap = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_render$1], ["__file", "focus-trap.vue"]]);
33856
+ var ElFocusTrap = /* @__PURE__ */ _export_sfc$1(_sfc_main$l, [["render", _sfc_render$1], ["__file", "focus-trap.vue"]]);
33857
33857
  const badgeProps$1 = buildProps({
33858
33858
  value: {
33859
33859
  type: [String, Number],
@@ -33889,7 +33889,7 @@ const badgeProps$1 = buildProps({
33889
33889
  const __default__$4 = defineComponent({
33890
33890
  name: "ElBadge"
33891
33891
  });
33892
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
33892
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
33893
33893
  ...__default__$4,
33894
33894
  props: badgeProps$1,
33895
33895
  setup(__props, { expose }) {
@@ -33951,7 +33951,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
33951
33951
  };
33952
33952
  }
33953
33953
  });
33954
- var Badge$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["__file", "badge.vue"]]);
33954
+ var Badge$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["__file", "badge.vue"]]);
33955
33955
  const ElBadge = withInstall$1(Badge$1);
33956
33956
  const buttonGroupContextKey = Symbol("buttonGroupContextKey");
33957
33957
  const useDeprecated = ({ from, replacement, scope, version: version2, ref: ref2, type = "API" }, condition) => {
@@ -35024,7 +35024,7 @@ function useButtonCustomStyle(props) {
35024
35024
  const __default__$3 = defineComponent({
35025
35025
  name: "ElButton"
35026
35026
  });
35027
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
35027
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
35028
35028
  ...__default__$3,
35029
35029
  props: buttonProps$1,
35030
35030
  emits: buttonEmits,
@@ -35091,7 +35091,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
35091
35091
  };
35092
35092
  }
35093
35093
  });
35094
- var Button$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["__file", "button.vue"]]);
35094
+ var Button$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["__file", "button.vue"]]);
35095
35095
  const buttonGroupProps = {
35096
35096
  size: buttonProps$1.size,
35097
35097
  type: buttonProps$1.type
@@ -35099,7 +35099,7 @@ const buttonGroupProps = {
35099
35099
  const __default__$2 = defineComponent({
35100
35100
  name: "ElButtonGroup"
35101
35101
  });
35102
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
35102
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
35103
35103
  ...__default__$2,
35104
35104
  props: buttonGroupProps,
35105
35105
  setup(__props) {
@@ -35118,7 +35118,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
35118
35118
  };
35119
35119
  }
35120
35120
  });
35121
- var ButtonGroup = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["__file", "button-group.vue"]]);
35121
+ var ButtonGroup = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["__file", "button-group.vue"]]);
35122
35122
  const ElButton = withInstall$1(Button$1, {
35123
35123
  ButtonGroup
35124
35124
  });
@@ -35753,12 +35753,12 @@ const messageEmits = {
35753
35753
  const instances = shallowReactive([]);
35754
35754
  const getInstance$1 = (id) => {
35755
35755
  const idx = instances.findIndex((instance2) => instance2.id === id);
35756
- const current = instances[idx];
35756
+ const current2 = instances[idx];
35757
35757
  let prev;
35758
35758
  if (idx > 0) {
35759
35759
  prev = instances[idx - 1];
35760
35760
  }
35761
- return { current, prev };
35761
+ return { current: current2, prev };
35762
35762
  };
35763
35763
  const getLastOffset = (id) => {
35764
35764
  const { prev } = getInstance$1(id);
@@ -35773,7 +35773,7 @@ const getOffsetOrSpace = (id, offset) => {
35773
35773
  const __default__$1 = defineComponent({
35774
35774
  name: "ElMessage"
35775
35775
  });
35776
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
35776
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
35777
35777
  ...__default__$1,
35778
35778
  props: messageProps,
35779
35779
  emits: messageEmits,
@@ -35914,7 +35914,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
35914
35914
  };
35915
35915
  }
35916
35916
  });
35917
- var MessageConstructor = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["__file", "message.vue"]]);
35917
+ var MessageConstructor = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["__file", "message.vue"]]);
35918
35918
  let seed$1 = 1;
35919
35919
  const normalizeOptions = (params) => {
35920
35920
  const options = !params || isString$1(params) || isVNode(params) || isFunction$2(params) ? { message: params } : params;
@@ -36083,7 +36083,7 @@ const TrapFocus = {
36083
36083
  }
36084
36084
  }
36085
36085
  };
36086
- const _sfc_main$e = defineComponent({
36086
+ const _sfc_main$g = defineComponent({
36087
36087
  name: "ElMessageBox",
36088
36088
  directives: {
36089
36089
  TrapFocus
@@ -36195,8 +36195,8 @@ const _sfc_main$e = defineComponent({
36195
36195
  const type = state.type;
36196
36196
  return { [ns.bm("icon", type)]: type && TypeComponentsMap[type] };
36197
36197
  });
36198
- const contentId = useId();
36199
- const inputId = useId();
36198
+ const contentId = useId$1();
36199
+ const inputId = useId$1();
36200
36200
  const iconComponent = computed(() => {
36201
36201
  const type = state.type;
36202
36202
  return state.icon || type && TypeComponentsMap[type] || "";
@@ -36560,7 +36560,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
36560
36560
  _: 3
36561
36561
  }, 8, ["onAfterLeave"]);
36562
36562
  }
36563
- var MessageBoxConstructor = /* @__PURE__ */ _export_sfc$1(_sfc_main$e, [["render", _sfc_render], ["__file", "index.vue"]]);
36563
+ var MessageBoxConstructor = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["render", _sfc_render], ["__file", "index.vue"]]);
36564
36564
  const messageInstance = /* @__PURE__ */ new Map();
36565
36565
  const getAppendToElement = (props) => {
36566
36566
  let appendTo = document.body;
@@ -36773,7 +36773,7 @@ const notificationEmits = {
36773
36773
  const __default__ = defineComponent({
36774
36774
  name: "ElNotification"
36775
36775
  });
36776
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
36776
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
36777
36777
  ...__default__,
36778
36778
  props: notificationProps,
36779
36779
  emits: notificationEmits,
@@ -36902,7 +36902,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
36902
36902
  };
36903
36903
  }
36904
36904
  });
36905
- var NotificationConstructor = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["__file", "notification.vue"]]);
36905
+ var NotificationConstructor = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["__file", "notification.vue"]]);
36906
36906
  const notifications = {
36907
36907
  "top-left": [],
36908
36908
  "top-right": [],
@@ -37039,10 +37039,18 @@ const truthProp = {
37039
37039
  type: Boolean,
37040
37040
  default: true
37041
37041
  };
37042
+ const makeArrayProp = () => ({
37043
+ type: Array,
37044
+ default: () => []
37045
+ });
37042
37046
  const makeNumberProp = (defaultVal) => ({
37043
37047
  type: Number,
37044
37048
  default: defaultVal
37045
37049
  });
37050
+ const makeNumericProp = (defaultVal) => ({
37051
+ type: numericProp,
37052
+ default: defaultVal
37053
+ });
37046
37054
  const makeStringProp = (defaultVal) => ({
37047
37055
  type: String,
37048
37056
  default: defaultVal
@@ -37225,6 +37233,23 @@ function useEventListener(type, listener, options = {}) {
37225
37233
  cleaned = true;
37226
37234
  };
37227
37235
  }
37236
+ function useClickAway(target, listener, options = {}) {
37237
+ if (!inBrowser) {
37238
+ return;
37239
+ }
37240
+ const { eventName = "click" } = options;
37241
+ const onClick = (event) => {
37242
+ const targets = Array.isArray(target) ? target : [target];
37243
+ const isClickAway = targets.every((item) => {
37244
+ const element = unref(item);
37245
+ return element && !element.contains(event.target);
37246
+ });
37247
+ if (isClickAway) {
37248
+ listener(event);
37249
+ }
37250
+ };
37251
+ useEventListener(eventName, onClick, { target: document });
37252
+ }
37228
37253
  var width;
37229
37254
  var height;
37230
37255
  function useWindowSize() {
@@ -37260,6 +37285,15 @@ function getScrollParent(el, root2 = defaultRoot) {
37260
37285
  }
37261
37286
  return root2;
37262
37287
  }
37288
+ function useScrollParent(el, root2 = defaultRoot) {
37289
+ const scrollParent = ref();
37290
+ onMounted(() => {
37291
+ if (el.value) {
37292
+ scrollParent.value = getScrollParent(el.value, root2);
37293
+ }
37294
+ });
37295
+ return scrollParent;
37296
+ }
37263
37297
  isIOS();
37264
37298
  const stopPropagation = (event) => event.stopPropagation();
37265
37299
  function preventDefault(event, isStopPropagation) {
@@ -37271,6 +37305,22 @@ function preventDefault(event, isStopPropagation) {
37271
37305
  }
37272
37306
  }
37273
37307
  const { width: windowWidth, height: windowHeight } = useWindowSize();
37308
+ function isContainingBlock(el) {
37309
+ const css = window.getComputedStyle(el);
37310
+ return css.transform !== "none" || css.perspective !== "none" || ["transform", "perspective", "filter"].some(
37311
+ (value) => (css.willChange || "").includes(value)
37312
+ );
37313
+ }
37314
+ function getContainingBlock(el) {
37315
+ let node = el.parentElement;
37316
+ while (node) {
37317
+ if (node && node.tagName !== "HTML" && node.tagName !== "BODY" && isContainingBlock(node)) {
37318
+ return node;
37319
+ }
37320
+ node = node.parentElement;
37321
+ }
37322
+ return null;
37323
+ }
37274
37324
  function addUnit(value) {
37275
37325
  if (isDef(value)) {
37276
37326
  return isNumeric(value) ? `${value}px` : String(value);
@@ -37320,7 +37370,7 @@ function deepAssign(to, from) {
37320
37370
  });
37321
37371
  return to;
37322
37372
  }
37323
- var stdin_default$c = {
37373
+ var stdin_default$f = {
37324
37374
  name: "姓名",
37325
37375
  tel: "电话",
37326
37376
  save: "保存",
@@ -37384,7 +37434,7 @@ var stdin_default$c = {
37384
37434
  };
37385
37435
  const lang = ref("zh-CN");
37386
37436
  const messages = reactive({
37387
- "zh-CN": stdin_default$c
37437
+ "zh-CN": stdin_default$f
37388
37438
  });
37389
37439
  const Locale = {
37390
37440
  messages() {
@@ -37398,11 +37448,11 @@ const Locale = {
37398
37448
  deepAssign(messages, newMessages);
37399
37449
  }
37400
37450
  };
37401
- var stdin_default$b = Locale;
37451
+ var stdin_default$e = Locale;
37402
37452
  function createTranslate(name2) {
37403
37453
  const prefix = camelize(name2) + ".";
37404
37454
  return (path, ...args) => {
37405
- const messages2 = stdin_default$b.messages();
37455
+ const messages2 = stdin_default$e.messages();
37406
37456
  const message2 = get(messages2, prefix + path) || get(messages2, path);
37407
37457
  return isFunction(message2) ? message2(...args) : message2;
37408
37458
  };
@@ -37521,20 +37571,20 @@ function usePlaceholder(contentRef, bem2) {
37521
37571
  }
37522
37572
  }, [renderContent()]);
37523
37573
  }
37524
- const [name$b, bem$b] = createNamespace("action-bar");
37525
- const ACTION_BAR_KEY = Symbol(name$b);
37574
+ const [name$e, bem$e] = createNamespace("action-bar");
37575
+ const ACTION_BAR_KEY = Symbol(name$e);
37526
37576
  const actionBarProps = {
37527
37577
  placeholder: Boolean,
37528
37578
  safeAreaInsetBottom: truthProp
37529
37579
  };
37530
- var stdin_default$a = defineComponent({
37531
- name: name$b,
37580
+ var stdin_default$d = defineComponent({
37581
+ name: name$e,
37532
37582
  props: actionBarProps,
37533
37583
  setup(props, {
37534
37584
  slots
37535
37585
  }) {
37536
37586
  const root2 = ref();
37537
- const renderPlaceholder = usePlaceholder(root2, bem$b);
37587
+ const renderPlaceholder = usePlaceholder(root2, bem$e);
37538
37588
  const {
37539
37589
  linkChildren
37540
37590
  } = useChildren(ACTION_BAR_KEY);
@@ -37543,7 +37593,7 @@ var stdin_default$a = defineComponent({
37543
37593
  var _a2;
37544
37594
  return createVNode("div", {
37545
37595
  "ref": root2,
37546
- "class": [bem$b(), {
37596
+ "class": [bem$e(), {
37547
37597
  "van-safe-area-bottom": props.safeAreaInsetBottom
37548
37598
  }]
37549
37599
  }, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)]);
@@ -37556,7 +37606,7 @@ var stdin_default$a = defineComponent({
37556
37606
  };
37557
37607
  }
37558
37608
  });
37559
- const ActionBar = withInstall(stdin_default$a);
37609
+ const ActionBar = withInstall(stdin_default$d);
37560
37610
  function useExpose(apis) {
37561
37611
  const instance2 = getCurrentInstance();
37562
37612
  if (instance2) {
@@ -37584,7 +37634,7 @@ function useRoute() {
37584
37634
  const vm = getCurrentInstance().proxy;
37585
37635
  return () => route(vm);
37586
37636
  }
37587
- const [name$a, bem$a] = createNamespace("badge");
37637
+ const [name$d, bem$d] = createNamespace("badge");
37588
37638
  const badgeProps = {
37589
37639
  dot: Boolean,
37590
37640
  max: numericProp,
@@ -37595,8 +37645,8 @@ const badgeProps = {
37595
37645
  showZero: truthProp,
37596
37646
  position: makeStringProp("top-right")
37597
37647
  };
37598
- var stdin_default$9 = defineComponent({
37599
- name: name$a,
37648
+ var stdin_default$c = defineComponent({
37649
+ name: name$d,
37600
37650
  props: badgeProps,
37601
37651
  setup(props, {
37602
37652
  slots
@@ -37659,7 +37709,7 @@ var stdin_default$9 = defineComponent({
37659
37709
  const renderBadge = () => {
37660
37710
  if (hasContent() || props.dot) {
37661
37711
  return createVNode("div", {
37662
- "class": bem$a([props.position, {
37712
+ "class": bem$d([props.position, {
37663
37713
  dot: props.dot,
37664
37714
  fixed: !!slots.default
37665
37715
  }]),
@@ -37673,7 +37723,7 @@ var stdin_default$9 = defineComponent({
37673
37723
  tag
37674
37724
  } = props;
37675
37725
  return createVNode(tag, {
37676
- "class": bem$a("wrapper")
37726
+ "class": bem$d("wrapper")
37677
37727
  }, {
37678
37728
  default: () => [slots.default(), renderBadge()]
37679
37729
  });
@@ -37682,14 +37732,14 @@ var stdin_default$9 = defineComponent({
37682
37732
  };
37683
37733
  }
37684
37734
  });
37685
- const Badge = withInstall(stdin_default$9);
37735
+ const Badge = withInstall(stdin_default$c);
37686
37736
  let globalZIndex = 2e3;
37687
37737
  const useGlobalZIndex = () => ++globalZIndex;
37688
37738
  const setGlobalZIndex = (val) => {
37689
37739
  globalZIndex = val;
37690
37740
  };
37691
- const [name$9, bem$9] = createNamespace("config-provider");
37692
- const CONFIG_PROVIDER_KEY = Symbol(name$9);
37741
+ const [name$c, bem$c] = createNamespace("config-provider");
37742
+ const CONFIG_PROVIDER_KEY = Symbol(name$c);
37693
37743
  const configProviderProps = {
37694
37744
  tag: makeStringProp("div"),
37695
37745
  theme: makeStringProp("light"),
@@ -37724,7 +37774,7 @@ function syncThemeVarsOnRoot(newStyle = {}, oldStyle = {}) {
37724
37774
  });
37725
37775
  }
37726
37776
  defineComponent({
37727
- name: name$9,
37777
+ name: name$c,
37728
37778
  props: configProviderProps,
37729
37779
  setup(props, {
37730
37780
  slots
@@ -37772,7 +37822,7 @@ defineComponent({
37772
37822
  }
37773
37823
  });
37774
37824
  return () => createVNode(props.tag, {
37775
- "class": bem$9(),
37825
+ "class": bem$c(),
37776
37826
  "style": props.themeVarsScope === "local" ? style.value : void 0
37777
37827
  }, {
37778
37828
  default: () => {
@@ -37782,7 +37832,7 @@ defineComponent({
37782
37832
  });
37783
37833
  }
37784
37834
  });
37785
- const [name$8, bem$8] = createNamespace("icon");
37835
+ const [name$b, bem$b] = createNamespace("icon");
37786
37836
  const isImage = (name2) => name2 == null ? void 0 : name2.includes("/");
37787
37837
  const iconProps = {
37788
37838
  dot: Boolean,
@@ -37794,14 +37844,14 @@ const iconProps = {
37794
37844
  badgeProps: Object,
37795
37845
  classPrefix: String
37796
37846
  };
37797
- var stdin_default$8 = defineComponent({
37798
- name: name$8,
37847
+ var stdin_default$b = defineComponent({
37848
+ name: name$b,
37799
37849
  props: iconProps,
37800
37850
  setup(props, {
37801
37851
  slots
37802
37852
  }) {
37803
37853
  const config2 = inject(CONFIG_PROVIDER_KEY, null);
37804
- const classPrefix = computed(() => props.classPrefix || (config2 == null ? void 0 : config2.iconPrefix) || bem$8());
37854
+ const classPrefix = computed(() => props.classPrefix || (config2 == null ? void 0 : config2.iconPrefix) || bem$b());
37805
37855
  return () => {
37806
37856
  const {
37807
37857
  tag,
@@ -37825,7 +37875,7 @@ var stdin_default$8 = defineComponent({
37825
37875
  default: () => {
37826
37876
  var _a2;
37827
37877
  return [(_a2 = slots.default) == null ? void 0 : _a2.call(slots), isImageIcon && createVNode("img", {
37828
- "class": bem$8("image"),
37878
+ "class": bem$b("image"),
37829
37879
  "src": name2
37830
37880
  }, null)];
37831
37881
  }
@@ -37833,13 +37883,13 @@ var stdin_default$8 = defineComponent({
37833
37883
  };
37834
37884
  }
37835
37885
  });
37836
- const Icon = withInstall(stdin_default$8);
37837
- const [name$7, bem$7] = createNamespace("loading");
37886
+ const Icon = withInstall(stdin_default$b);
37887
+ const [name$a, bem$a] = createNamespace("loading");
37838
37888
  const SpinIcon = Array(12).fill(null).map((_, index2) => createVNode("i", {
37839
- "class": bem$7("line", String(index2 + 1))
37889
+ "class": bem$a("line", String(index2 + 1))
37840
37890
  }, null));
37841
37891
  const CircularIcon = createVNode("svg", {
37842
- "class": bem$7("circular"),
37892
+ "class": bem$a("circular"),
37843
37893
  "viewBox": "25 25 50 50"
37844
37894
  }, [createVNode("circle", {
37845
37895
  "cx": "50",
@@ -37855,8 +37905,8 @@ const loadingProps = {
37855
37905
  textSize: numericProp,
37856
37906
  textColor: String
37857
37907
  };
37858
- var stdin_default$7 = defineComponent({
37859
- name: name$7,
37908
+ var stdin_default$a = defineComponent({
37909
+ name: name$a,
37860
37910
  props: loadingProps,
37861
37911
  setup(props, {
37862
37912
  slots
@@ -37867,7 +37917,7 @@ var stdin_default$7 = defineComponent({
37867
37917
  const renderIcon = () => {
37868
37918
  const DefaultIcon = props.type === "spinner" ? SpinIcon : CircularIcon;
37869
37919
  return createVNode("span", {
37870
- "class": bem$7("spinner", props.type),
37920
+ "class": bem$a("spinner", props.type),
37871
37921
  "style": spinnerStyle.value
37872
37922
  }, [slots.icon ? slots.icon() : DefaultIcon]);
37873
37923
  };
@@ -37875,7 +37925,7 @@ var stdin_default$7 = defineComponent({
37875
37925
  var _a2;
37876
37926
  if (slots.default) {
37877
37927
  return createVNode("span", {
37878
- "class": bem$7("text"),
37928
+ "class": bem$a("text"),
37879
37929
  "style": {
37880
37930
  fontSize: addUnit(props.textSize),
37881
37931
  color: (_a2 = props.textColor) != null ? _a2 : props.color
@@ -37889,7 +37939,7 @@ var stdin_default$7 = defineComponent({
37889
37939
  vertical
37890
37940
  } = props;
37891
37941
  return createVNode("div", {
37892
- "class": bem$7([type, {
37942
+ "class": bem$a([type, {
37893
37943
  vertical
37894
37944
  }]),
37895
37945
  "aria-live": "polite",
@@ -37898,8 +37948,8 @@ var stdin_default$7 = defineComponent({
37898
37948
  };
37899
37949
  }
37900
37950
  });
37901
- const Loading = withInstall(stdin_default$7);
37902
- const [name$6, bem$6] = createNamespace("button");
37951
+ const Loading = withInstall(stdin_default$a);
37952
+ const [name$9, bem$9] = createNamespace("button");
37903
37953
  const buttonProps = extend({}, routeProps, {
37904
37954
  tag: makeStringProp("button"),
37905
37955
  text: String,
@@ -37921,8 +37971,8 @@ const buttonProps = extend({}, routeProps, {
37921
37971
  loadingType: String,
37922
37972
  iconPosition: makeStringProp("left")
37923
37973
  });
37924
- var stdin_default$6 = defineComponent({
37925
- name: name$6,
37974
+ var stdin_default$9 = defineComponent({
37975
+ name: name$9,
37926
37976
  props: buttonProps,
37927
37977
  emits: ["click"],
37928
37978
  setup(props, {
@@ -37937,7 +37987,7 @@ var stdin_default$6 = defineComponent({
37937
37987
  return createVNode(Loading, {
37938
37988
  "size": props.loadingSize,
37939
37989
  "type": props.loadingType,
37940
- "class": bem$6("loading")
37990
+ "class": bem$9("loading")
37941
37991
  }, null);
37942
37992
  };
37943
37993
  const renderIcon = () => {
@@ -37946,13 +37996,13 @@ var stdin_default$6 = defineComponent({
37946
37996
  }
37947
37997
  if (slots.icon) {
37948
37998
  return createVNode("div", {
37949
- "class": bem$6("icon")
37999
+ "class": bem$9("icon")
37950
38000
  }, [slots.icon()]);
37951
38001
  }
37952
38002
  if (props.icon) {
37953
38003
  return createVNode(Icon, {
37954
38004
  "name": props.icon,
37955
- "class": bem$6("icon"),
38005
+ "class": bem$9("icon"),
37956
38006
  "classPrefix": props.iconPrefix
37957
38007
  }, null);
37958
38008
  }
@@ -37966,7 +38016,7 @@ var stdin_default$6 = defineComponent({
37966
38016
  }
37967
38017
  if (text) {
37968
38018
  return createVNode("span", {
37969
- "class": bem$6("text")
38019
+ "class": bem$9("text")
37970
38020
  }, [text]);
37971
38021
  }
37972
38022
  };
@@ -38013,7 +38063,7 @@ var stdin_default$6 = defineComponent({
38013
38063
  nativeType,
38014
38064
  iconPosition
38015
38065
  } = props;
38016
- const classes = [bem$6([type, size, {
38066
+ const classes = [bem$9([type, size, {
38017
38067
  plain,
38018
38068
  block,
38019
38069
  round,
@@ -38032,14 +38082,14 @@ var stdin_default$6 = defineComponent({
38032
38082
  "onClick": onClick
38033
38083
  }, {
38034
38084
  default: () => [createVNode("div", {
38035
- "class": bem$6("content")
38085
+ "class": bem$9("content")
38036
38086
  }, [iconPosition === "left" && renderIcon(), renderText(), iconPosition === "right" && renderIcon()])]
38037
38087
  });
38038
38088
  };
38039
38089
  }
38040
38090
  });
38041
- const Button = withInstall(stdin_default$6);
38042
- const [name$5, bem$5] = createNamespace("action-bar-button");
38091
+ const Button = withInstall(stdin_default$9);
38092
+ const [name$8, bem$8] = createNamespace("action-bar-button");
38043
38093
  const actionBarButtonProps = extend({}, routeProps, {
38044
38094
  type: String,
38045
38095
  text: String,
@@ -38048,8 +38098,8 @@ const actionBarButtonProps = extend({}, routeProps, {
38048
38098
  loading: Boolean,
38049
38099
  disabled: Boolean
38050
38100
  });
38051
- var stdin_default$5 = defineComponent({
38052
- name: name$5,
38101
+ var stdin_default$8 = defineComponent({
38102
+ name: name$8,
38053
38103
  props: actionBarButtonProps,
38054
38104
  setup(props, {
38055
38105
  slots
@@ -38084,7 +38134,7 @@ var stdin_default$5 = defineComponent({
38084
38134
  disabled
38085
38135
  } = props;
38086
38136
  return createVNode(Button, {
38087
- "class": bem$5([type, {
38137
+ "class": bem$8([type, {
38088
38138
  last: isLast.value,
38089
38139
  first: isFirst.value
38090
38140
  }]),
@@ -38101,7 +38151,7 @@ var stdin_default$5 = defineComponent({
38101
38151
  };
38102
38152
  }
38103
38153
  });
38104
- const ActionBarButton = withInstall(stdin_default$5);
38154
+ const ActionBarButton = withInstall(stdin_default$8);
38105
38155
  const popupSharedProps = {
38106
38156
  // whether to show popup
38107
38157
  show: Boolean,
@@ -38263,7 +38313,7 @@ const useScopeId = () => {
38263
38313
  const { scopeId } = ((_a2 = getCurrentInstance()) == null ? void 0 : _a2.vnode) || {};
38264
38314
  return scopeId ? { [scopeId]: "" } : null;
38265
38315
  };
38266
- const [name$4, bem$4] = createNamespace("overlay");
38316
+ const [name$7, bem$7] = createNamespace("overlay");
38267
38317
  const overlayProps = {
38268
38318
  show: Boolean,
38269
38319
  zIndex: numericProp,
@@ -38274,8 +38324,8 @@ const overlayProps = {
38274
38324
  customStyle: Object,
38275
38325
  teleport: [String, Object]
38276
38326
  };
38277
- var stdin_default$4 = defineComponent({
38278
- name: name$4,
38327
+ var stdin_default$7 = defineComponent({
38328
+ name: name$7,
38279
38329
  inheritAttrs: false,
38280
38330
  props: overlayProps,
38281
38331
  setup(props, {
@@ -38298,7 +38348,7 @@ var stdin_default$4 = defineComponent({
38298
38348
  return withDirectives(createVNode("div", mergeProps({
38299
38349
  "ref": root2,
38300
38350
  "style": style,
38301
- "class": [bem$4(), props.className]
38351
+ "class": [bem$7(), props.className]
38302
38352
  }, attrs), [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)]), [[vShow, props.show]]);
38303
38353
  });
38304
38354
  useEventListener("touchmove", onTouchMove, {
@@ -38322,7 +38372,7 @@ var stdin_default$4 = defineComponent({
38322
38372
  };
38323
38373
  }
38324
38374
  });
38325
- const Overlay = withInstall(stdin_default$4);
38375
+ const Overlay = withInstall(stdin_default$7);
38326
38376
  const popupProps = extend({}, popupSharedProps, {
38327
38377
  round: Boolean,
38328
38378
  position: makeStringProp("center"),
@@ -38336,9 +38386,9 @@ const popupProps = extend({}, popupSharedProps, {
38336
38386
  safeAreaInsetTop: Boolean,
38337
38387
  safeAreaInsetBottom: Boolean
38338
38388
  });
38339
- const [name$3, bem$3] = createNamespace("popup");
38340
- var stdin_default$3 = defineComponent({
38341
- name: name$3,
38389
+ const [name$6, bem$6] = createNamespace("popup");
38390
+ var stdin_default$6 = defineComponent({
38391
+ name: name$6,
38342
38392
  inheritAttrs: false,
38343
38393
  props: popupProps,
38344
38394
  emits: ["open", "close", "opened", "closed", "keydown", "update:show", "clickOverlay", "clickCloseIcon"],
@@ -38413,7 +38463,7 @@ var stdin_default$3 = defineComponent({
38413
38463
  "role": "button",
38414
38464
  "tabindex": 0,
38415
38465
  "name": props.closeIcon,
38416
- "class": [bem$3("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
38466
+ "class": [bem$6("close-icon", props.closeIconPosition), HAPTICS_FEEDBACK],
38417
38467
  "classPrefix": props.iconPrefix,
38418
38468
  "onClick": onClickCloseIcon
38419
38469
  }, null);
@@ -38446,7 +38496,7 @@ var stdin_default$3 = defineComponent({
38446
38496
  "style": style.value,
38447
38497
  "role": "dialog",
38448
38498
  "tabindex": 0,
38449
- "class": [bem$3({
38499
+ "class": [bem$6({
38450
38500
  round,
38451
38501
  [position]: position
38452
38502
  }), {
@@ -38527,7 +38577,139 @@ var stdin_default$3 = defineComponent({
38527
38577
  };
38528
38578
  }
38529
38579
  });
38530
- const Popup = withInstall(stdin_default$3);
38580
+ const Popup = withInstall(stdin_default$6);
38581
+ let current = 0;
38582
+ function useId() {
38583
+ const vm = getCurrentInstance();
38584
+ const { name: name2 = "unknown" } = (vm == null ? void 0 : vm.type) || {};
38585
+ if (process.env.NODE_ENV === "test") {
38586
+ return name2;
38587
+ }
38588
+ return `${name2}-${++current}`;
38589
+ }
38590
+ const [name$5, bem$5] = createNamespace("cell");
38591
+ const cellSharedProps = {
38592
+ tag: makeStringProp("div"),
38593
+ icon: String,
38594
+ size: String,
38595
+ title: numericProp,
38596
+ value: numericProp,
38597
+ label: numericProp,
38598
+ center: Boolean,
38599
+ isLink: Boolean,
38600
+ border: truthProp,
38601
+ iconPrefix: String,
38602
+ valueClass: unknownProp,
38603
+ labelClass: unknownProp,
38604
+ titleClass: unknownProp,
38605
+ titleStyle: null,
38606
+ arrowDirection: String,
38607
+ required: {
38608
+ type: [Boolean, String],
38609
+ default: null
38610
+ },
38611
+ clickable: {
38612
+ type: Boolean,
38613
+ default: null
38614
+ }
38615
+ };
38616
+ const cellProps = extend({}, cellSharedProps, routeProps);
38617
+ var stdin_default$5 = defineComponent({
38618
+ name: name$5,
38619
+ props: cellProps,
38620
+ setup(props, {
38621
+ slots
38622
+ }) {
38623
+ const route2 = useRoute();
38624
+ const renderLabel = () => {
38625
+ const showLabel = slots.label || isDef(props.label);
38626
+ if (showLabel) {
38627
+ return createVNode("div", {
38628
+ "class": [bem$5("label"), props.labelClass]
38629
+ }, [slots.label ? slots.label() : props.label]);
38630
+ }
38631
+ };
38632
+ const renderTitle = () => {
38633
+ var _a2;
38634
+ if (slots.title || isDef(props.title)) {
38635
+ const titleSlot = (_a2 = slots.title) == null ? void 0 : _a2.call(slots);
38636
+ if (Array.isArray(titleSlot) && titleSlot.length === 0) {
38637
+ return;
38638
+ }
38639
+ return createVNode("div", {
38640
+ "class": [bem$5("title"), props.titleClass],
38641
+ "style": props.titleStyle
38642
+ }, [titleSlot || createVNode("span", null, [props.title]), renderLabel()]);
38643
+ }
38644
+ };
38645
+ const renderValue = () => {
38646
+ const slot = slots.value || slots.default;
38647
+ const hasValue = slot || isDef(props.value);
38648
+ if (hasValue) {
38649
+ return createVNode("div", {
38650
+ "class": [bem$5("value"), props.valueClass]
38651
+ }, [slot ? slot() : createVNode("span", null, [props.value])]);
38652
+ }
38653
+ };
38654
+ const renderLeftIcon = () => {
38655
+ if (slots.icon) {
38656
+ return slots.icon();
38657
+ }
38658
+ if (props.icon) {
38659
+ return createVNode(Icon, {
38660
+ "name": props.icon,
38661
+ "class": bem$5("left-icon"),
38662
+ "classPrefix": props.iconPrefix
38663
+ }, null);
38664
+ }
38665
+ };
38666
+ const renderRightIcon = () => {
38667
+ if (slots["right-icon"]) {
38668
+ return slots["right-icon"]();
38669
+ }
38670
+ if (props.isLink) {
38671
+ const name2 = props.arrowDirection && props.arrowDirection !== "right" ? `arrow-${props.arrowDirection}` : "arrow";
38672
+ return createVNode(Icon, {
38673
+ "name": name2,
38674
+ "class": bem$5("right-icon")
38675
+ }, null);
38676
+ }
38677
+ };
38678
+ return () => {
38679
+ var _a2;
38680
+ const {
38681
+ tag,
38682
+ size,
38683
+ center,
38684
+ border,
38685
+ isLink,
38686
+ required
38687
+ } = props;
38688
+ const clickable = (_a2 = props.clickable) != null ? _a2 : isLink;
38689
+ const classes = {
38690
+ center,
38691
+ required: !!required,
38692
+ clickable,
38693
+ borderless: !border
38694
+ };
38695
+ if (size) {
38696
+ classes[size] = !!size;
38697
+ }
38698
+ return createVNode(tag, {
38699
+ "class": bem$5(classes),
38700
+ "role": clickable ? "button" : void 0,
38701
+ "tabindex": clickable ? 0 : void 0,
38702
+ "onClick": route2
38703
+ }, {
38704
+ default: () => {
38705
+ var _a22;
38706
+ return [renderLeftIcon(), renderTitle(), renderValue(), renderRightIcon(), (_a22 = slots.extra) == null ? void 0 : _a22.call(slots)];
38707
+ }
38708
+ });
38709
+ };
38710
+ }
38711
+ });
38712
+ const Cell = withInstall(stdin_default$5);
38531
38713
  let lockCount = 0;
38532
38714
  function lockClick(lock) {
38533
38715
  if (lock) {
@@ -38542,7 +38724,7 @@ function lockClick(lock) {
38542
38724
  }
38543
38725
  }
38544
38726
  }
38545
- const [name$2, bem$2] = createNamespace("toast");
38727
+ const [name$4, bem$4] = createNamespace("toast");
38546
38728
  const popupInheritProps$1 = ["show", "overlay", "teleport", "transition", "overlayClass", "overlayStyle", "closeOnClickOverlay", "zIndex"];
38547
38729
  const toastProps = {
38548
38730
  icon: String,
@@ -38566,8 +38748,8 @@ const toastProps = {
38566
38748
  closeOnClickOverlay: Boolean,
38567
38749
  zIndex: numericProp
38568
38750
  };
38569
- var stdin_default$2 = defineComponent({
38570
- name: name$2,
38751
+ var stdin_default$4 = defineComponent({
38752
+ name: name$4,
38571
38753
  props: toastProps,
38572
38754
  emits: ["update:show"],
38573
38755
  setup(props, {
@@ -38603,13 +38785,13 @@ var stdin_default$2 = defineComponent({
38603
38785
  return createVNode(Icon, {
38604
38786
  "name": icon || type,
38605
38787
  "size": iconSize,
38606
- "class": bem$2("icon"),
38788
+ "class": bem$4("icon"),
38607
38789
  "classPrefix": iconPrefix2
38608
38790
  }, null);
38609
38791
  }
38610
38792
  if (type === "loading") {
38611
38793
  return createVNode(Loading, {
38612
- "class": bem$2("loading"),
38794
+ "class": bem$4("loading"),
38613
38795
  "size": iconSize,
38614
38796
  "type": loadingType
38615
38797
  }, null);
@@ -38622,16 +38804,16 @@ var stdin_default$2 = defineComponent({
38622
38804
  } = props;
38623
38805
  if (slots.message) {
38624
38806
  return createVNode("div", {
38625
- "class": bem$2("text")
38807
+ "class": bem$4("text")
38626
38808
  }, [slots.message()]);
38627
38809
  }
38628
38810
  if (isDef(message2) && message2 !== "") {
38629
38811
  return type === "html" ? createVNode("div", {
38630
38812
  "key": 0,
38631
- "class": bem$2("text"),
38813
+ "class": bem$4("text"),
38632
38814
  "innerHTML": String(message2)
38633
38815
  }, null) : createVNode("div", {
38634
- "class": bem$2("text")
38816
+ "class": bem$4("text")
38635
38817
  }, [message2]);
38636
38818
  }
38637
38819
  };
@@ -38647,7 +38829,7 @@ var stdin_default$2 = defineComponent({
38647
38829
  onMounted(toggleClickable);
38648
38830
  onUnmounted(toggleClickable);
38649
38831
  return () => createVNode(Popup, mergeProps({
38650
- "class": [bem$2([props.position, props.wordBreak === "normal" ? "break-normal" : props.wordBreak, {
38832
+ "class": [bem$4([props.position, props.wordBreak === "normal" ? "break-normal" : props.wordBreak, {
38651
38833
  [props.type]: !props.icon
38652
38834
  }]), props.className],
38653
38835
  "lockScroll": false,
@@ -38743,7 +38925,7 @@ function createInstance() {
38743
38925
  onClosed,
38744
38926
  "onUpdate:show": toggle
38745
38927
  };
38746
- return createVNode(stdin_default$2, mergeProps(state, attrs), null);
38928
+ return createVNode(stdin_default$4, mergeProps(state, attrs), null);
38747
38929
  };
38748
38930
  watch(message2, (val) => {
38749
38931
  state.message = val;
@@ -38779,8 +38961,8 @@ const createMethod = (type) => (options) => showToast(extend({
38779
38961
  }, parseOptions$1(options)));
38780
38962
  const showSuccessToast = createMethod("success");
38781
38963
  const showFailToast = createMethod("fail");
38782
- withInstall(stdin_default$2);
38783
- const [name$1, bem$1, t] = createNamespace("dialog");
38964
+ withInstall(stdin_default$4);
38965
+ const [name$3, bem$3, t] = createNamespace("dialog");
38784
38966
  const dialogProps = extend({}, popupSharedProps, {
38785
38967
  title: String,
38786
38968
  theme: String,
@@ -38805,8 +38987,8 @@ const dialogProps = extend({}, popupSharedProps, {
38805
38987
  destroyOnClose: Boolean
38806
38988
  });
38807
38989
  const popupInheritKeys = [...popupSharedPropKeys, "transition", "closeOnPopstate", "destroyOnClose"];
38808
- var stdin_default$1 = defineComponent({
38809
- name: name$1,
38990
+ var stdin_default$3 = defineComponent({
38991
+ name: name$3,
38810
38992
  props: dialogProps,
38811
38993
  emits: ["confirm", "cancel", "keydown", "update:show"],
38812
38994
  setup(props, {
@@ -38866,7 +39048,7 @@ var stdin_default$1 = defineComponent({
38866
39048
  const title = slots.title ? slots.title() : props.title;
38867
39049
  if (title) {
38868
39050
  return createVNode("div", {
38869
- "class": bem$1("header", {
39051
+ "class": bem$3("header", {
38870
39052
  isolated: !props.message && !slots.default
38871
39053
  })
38872
39054
  }, [title]);
@@ -38878,7 +39060,7 @@ var stdin_default$1 = defineComponent({
38878
39060
  allowHtml,
38879
39061
  messageAlign
38880
39062
  } = props;
38881
- const classNames = bem$1("message", {
39063
+ const classNames = bem$3("message", {
38882
39064
  "has-title": hasTitle,
38883
39065
  [messageAlign]: messageAlign
38884
39066
  });
@@ -38896,7 +39078,7 @@ var stdin_default$1 = defineComponent({
38896
39078
  const renderContent = () => {
38897
39079
  if (slots.default) {
38898
39080
  return createVNode("div", {
38899
- "class": bem$1("content")
39081
+ "class": bem$3("content")
38900
39082
  }, [slots.default()]);
38901
39083
  }
38902
39084
  const {
@@ -38908,18 +39090,18 @@ var stdin_default$1 = defineComponent({
38908
39090
  const hasTitle = !!(title || slots.title);
38909
39091
  return createVNode("div", {
38910
39092
  "key": allowHtml ? 1 : 0,
38911
- "class": bem$1("content", {
39093
+ "class": bem$3("content", {
38912
39094
  isolated: !hasTitle
38913
39095
  })
38914
39096
  }, [renderMessage(hasTitle)]);
38915
39097
  }
38916
39098
  };
38917
39099
  const renderButtons = () => createVNode("div", {
38918
- "class": [BORDER_TOP, bem$1("footer")]
39100
+ "class": [BORDER_TOP, bem$3("footer")]
38919
39101
  }, [props.showCancelButton && createVNode(Button, {
38920
39102
  "size": "large",
38921
39103
  "text": props.cancelButtonText || t("cancel"),
38922
- "class": bem$1("cancel"),
39104
+ "class": bem$3("cancel"),
38923
39105
  "style": {
38924
39106
  color: props.cancelButtonColor
38925
39107
  },
@@ -38929,7 +39111,7 @@ var stdin_default$1 = defineComponent({
38929
39111
  }, null), props.showConfirmButton && createVNode(Button, {
38930
39112
  "size": "large",
38931
39113
  "text": props.confirmButtonText || t("confirm"),
38932
- "class": [bem$1("confirm"), {
39114
+ "class": [bem$3("confirm"), {
38933
39115
  [BORDER_LEFT]: props.showCancelButton
38934
39116
  }],
38935
39117
  "style": {
@@ -38940,12 +39122,12 @@ var stdin_default$1 = defineComponent({
38940
39122
  "onClick": onConfirm
38941
39123
  }, null)]);
38942
39124
  const renderRoundButtons = () => createVNode(ActionBar, {
38943
- "class": bem$1("footer")
39125
+ "class": bem$3("footer")
38944
39126
  }, {
38945
39127
  default: () => [props.showCancelButton && createVNode(ActionBarButton, {
38946
39128
  "type": "warning",
38947
39129
  "text": props.cancelButtonText || t("cancel"),
38948
- "class": bem$1("cancel"),
39130
+ "class": bem$3("cancel"),
38949
39131
  "color": props.cancelButtonColor,
38950
39132
  "loading": loading.cancel,
38951
39133
  "disabled": props.cancelButtonDisabled,
@@ -38953,7 +39135,7 @@ var stdin_default$1 = defineComponent({
38953
39135
  }, null), props.showConfirmButton && createVNode(ActionBarButton, {
38954
39136
  "type": "danger",
38955
39137
  "text": props.confirmButtonText || t("confirm"),
38956
- "class": bem$1("confirm"),
39138
+ "class": bem$3("confirm"),
38957
39139
  "color": props.confirmButtonColor,
38958
39140
  "loading": loading.confirm,
38959
39141
  "disabled": props.confirmButtonDisabled,
@@ -38977,7 +39159,7 @@ var stdin_default$1 = defineComponent({
38977
39159
  return createVNode(Popup, mergeProps({
38978
39160
  "ref": root2,
38979
39161
  "role": "dialog",
38980
- "class": [bem$1([theme]), className],
39162
+ "class": [bem$3([theme]), className],
38981
39163
  "style": {
38982
39164
  width: addUnit(width2)
38983
39165
  },
@@ -39028,7 +39210,7 @@ function initInstance$1() {
39028
39210
  state,
39029
39211
  toggle
39030
39212
  } = usePopupState();
39031
- return () => createVNode(stdin_default$1, mergeProps(state, {
39213
+ return () => createVNode(stdin_default$3, mergeProps(state, {
39032
39214
  "onUpdate:show": toggle
39033
39215
  }), null);
39034
39216
  }
@@ -39055,7 +39237,337 @@ function showDialog(options) {
39055
39237
  const showConfirmDialog = (options) => showDialog(extend({
39056
39238
  showCancelButton: true
39057
39239
  }, options));
39058
- withInstall(stdin_default$1);
39240
+ withInstall(stdin_default$3);
39241
+ const [name$2, bem$2] = createNamespace("dropdown-menu");
39242
+ const dropdownMenuProps = {
39243
+ overlay: truthProp,
39244
+ zIndex: numericProp,
39245
+ duration: makeNumericProp(0.2),
39246
+ direction: makeStringProp("down"),
39247
+ activeColor: String,
39248
+ autoLocate: Boolean,
39249
+ closeOnClickOutside: truthProp,
39250
+ closeOnClickOverlay: truthProp,
39251
+ swipeThreshold: numericProp
39252
+ };
39253
+ const DROPDOWN_KEY = Symbol(name$2);
39254
+ var stdin_default$2 = defineComponent({
39255
+ name: name$2,
39256
+ props: dropdownMenuProps,
39257
+ setup(props, {
39258
+ slots
39259
+ }) {
39260
+ const id = useId();
39261
+ const root2 = ref();
39262
+ const barRef = ref();
39263
+ const offset = ref(0);
39264
+ const {
39265
+ children,
39266
+ linkChildren
39267
+ } = useChildren(DROPDOWN_KEY);
39268
+ const scrollParent = useScrollParent(root2);
39269
+ const opened = computed(() => children.some((item) => item.state.showWrapper));
39270
+ const scrollable = computed(() => props.swipeThreshold && children.length > +props.swipeThreshold);
39271
+ const barStyle = computed(() => {
39272
+ if (opened.value && isDef(props.zIndex)) {
39273
+ return {
39274
+ zIndex: +props.zIndex + 1
39275
+ };
39276
+ }
39277
+ });
39278
+ const close2 = () => {
39279
+ children.forEach((item) => {
39280
+ item.toggle(false);
39281
+ });
39282
+ };
39283
+ const onClickAway = () => {
39284
+ if (props.closeOnClickOutside) {
39285
+ close2();
39286
+ }
39287
+ };
39288
+ const updateOffset = () => {
39289
+ if (barRef.value) {
39290
+ const rect = useRect(barRef);
39291
+ if (props.direction === "down") {
39292
+ offset.value = rect.bottom;
39293
+ } else {
39294
+ offset.value = windowHeight.value - rect.top;
39295
+ }
39296
+ }
39297
+ };
39298
+ const onScroll = () => {
39299
+ if (opened.value) {
39300
+ updateOffset();
39301
+ }
39302
+ };
39303
+ const toggleItem = (active) => {
39304
+ children.forEach((item, index2) => {
39305
+ if (index2 === active) {
39306
+ item.toggle();
39307
+ } else if (item.state.showPopup) {
39308
+ item.toggle(false, {
39309
+ immediate: true
39310
+ });
39311
+ }
39312
+ });
39313
+ };
39314
+ const renderTitle = (item, index2) => {
39315
+ const {
39316
+ showPopup
39317
+ } = item.state;
39318
+ const {
39319
+ disabled,
39320
+ titleClass
39321
+ } = item;
39322
+ return createVNode("div", {
39323
+ "id": `${id}-${index2}`,
39324
+ "role": "button",
39325
+ "tabindex": disabled ? void 0 : 0,
39326
+ "data-allow-mismatch": "attribute",
39327
+ "class": [bem$2("item", {
39328
+ disabled,
39329
+ grow: scrollable.value
39330
+ }), {
39331
+ [HAPTICS_FEEDBACK]: !disabled
39332
+ }],
39333
+ "onClick": () => {
39334
+ if (!disabled) {
39335
+ toggleItem(index2);
39336
+ }
39337
+ }
39338
+ }, [createVNode("span", {
39339
+ "class": [bem$2("title", {
39340
+ down: showPopup === (props.direction === "down"),
39341
+ active: showPopup
39342
+ }), titleClass],
39343
+ "style": {
39344
+ color: showPopup ? props.activeColor : ""
39345
+ }
39346
+ }, [createVNode("div", {
39347
+ "class": "van-ellipsis"
39348
+ }, [item.renderTitle()])])]);
39349
+ };
39350
+ useExpose({
39351
+ close: close2
39352
+ });
39353
+ linkChildren({
39354
+ id,
39355
+ props,
39356
+ offset,
39357
+ updateOffset
39358
+ });
39359
+ useClickAway(root2, onClickAway);
39360
+ useEventListener("scroll", onScroll, {
39361
+ target: scrollParent,
39362
+ passive: true
39363
+ });
39364
+ return () => {
39365
+ var _a2;
39366
+ return createVNode("div", {
39367
+ "ref": root2,
39368
+ "class": bem$2()
39369
+ }, [createVNode("div", {
39370
+ "ref": barRef,
39371
+ "style": barStyle.value,
39372
+ "class": bem$2("bar", {
39373
+ opened: opened.value,
39374
+ scrollable: scrollable.value
39375
+ })
39376
+ }, [children.map(renderTitle)]), (_a2 = slots.default) == null ? void 0 : _a2.call(slots)]);
39377
+ };
39378
+ }
39379
+ });
39380
+ const [name$1, bem$1] = createNamespace("dropdown-item");
39381
+ const dropdownItemProps = {
39382
+ title: String,
39383
+ options: makeArrayProp(),
39384
+ disabled: Boolean,
39385
+ teleport: [String, Object],
39386
+ lazyRender: truthProp,
39387
+ modelValue: unknownProp,
39388
+ titleClass: unknownProp
39389
+ };
39390
+ var stdin_default$1 = defineComponent({
39391
+ name: name$1,
39392
+ inheritAttrs: false,
39393
+ props: dropdownItemProps,
39394
+ emits: ["open", "opened", "close", "closed", "change", "update:modelValue"],
39395
+ setup(props, {
39396
+ emit,
39397
+ slots,
39398
+ attrs
39399
+ }) {
39400
+ const state = reactive({
39401
+ showPopup: false,
39402
+ transition: true,
39403
+ showWrapper: false
39404
+ });
39405
+ const wrapperRef = ref();
39406
+ const {
39407
+ parent,
39408
+ index: index2
39409
+ } = useParent(DROPDOWN_KEY);
39410
+ if (!parent) {
39411
+ if (process.env.NODE_ENV !== "production") {
39412
+ console.error("[Vant] <DropdownItem> must be a child component of <DropdownMenu>.");
39413
+ }
39414
+ return;
39415
+ }
39416
+ const getEmitter = (name2) => () => emit(name2);
39417
+ const onOpen = getEmitter("open");
39418
+ const onClose = getEmitter("close");
39419
+ const onOpened = getEmitter("opened");
39420
+ const onClosed = () => {
39421
+ state.showWrapper = false;
39422
+ emit("closed");
39423
+ };
39424
+ const onClickWrapper = (event) => {
39425
+ if (props.teleport) {
39426
+ event.stopPropagation();
39427
+ }
39428
+ };
39429
+ const toggle = (show = !state.showPopup, options = {}) => {
39430
+ if (show === state.showPopup) {
39431
+ return;
39432
+ }
39433
+ state.showPopup = show;
39434
+ state.transition = !options.immediate;
39435
+ if (show) {
39436
+ parent.updateOffset();
39437
+ state.showWrapper = true;
39438
+ }
39439
+ };
39440
+ const renderTitle = () => {
39441
+ if (slots.title) {
39442
+ return slots.title();
39443
+ }
39444
+ if (props.title) {
39445
+ return props.title;
39446
+ }
39447
+ const match = props.options.find((option) => option.value === props.modelValue);
39448
+ return match ? match.text : "";
39449
+ };
39450
+ const renderOption = (option) => {
39451
+ const {
39452
+ activeColor
39453
+ } = parent.props;
39454
+ const {
39455
+ disabled
39456
+ } = option;
39457
+ const active = option.value === props.modelValue;
39458
+ const onClick = () => {
39459
+ if (disabled) {
39460
+ return;
39461
+ }
39462
+ state.showPopup = false;
39463
+ if (option.value !== props.modelValue) {
39464
+ emit("update:modelValue", option.value);
39465
+ emit("change", option.value);
39466
+ }
39467
+ };
39468
+ const renderIcon = () => {
39469
+ if (active) {
39470
+ return createVNode(Icon, {
39471
+ "class": bem$1("icon"),
39472
+ "color": disabled ? void 0 : activeColor,
39473
+ "name": "success"
39474
+ }, null);
39475
+ }
39476
+ };
39477
+ return createVNode(Cell, {
39478
+ "role": "menuitem",
39479
+ "key": String(option.value),
39480
+ "icon": option.icon,
39481
+ "title": option.text,
39482
+ "class": bem$1("option", {
39483
+ active,
39484
+ disabled
39485
+ }),
39486
+ "style": {
39487
+ color: active ? activeColor : ""
39488
+ },
39489
+ "tabindex": active ? 0 : -1,
39490
+ "clickable": !disabled,
39491
+ "onClick": onClick
39492
+ }, {
39493
+ value: renderIcon
39494
+ });
39495
+ };
39496
+ const renderContent = () => {
39497
+ const {
39498
+ offset
39499
+ } = parent;
39500
+ const {
39501
+ autoLocate,
39502
+ zIndex: zIndex2,
39503
+ overlay,
39504
+ duration,
39505
+ direction,
39506
+ closeOnClickOverlay
39507
+ } = parent.props;
39508
+ const style = getZIndexStyle(zIndex2);
39509
+ let offsetValue = offset.value;
39510
+ if (autoLocate && wrapperRef.value) {
39511
+ const offsetParent = getContainingBlock(wrapperRef.value);
39512
+ if (offsetParent) {
39513
+ offsetValue -= useRect(offsetParent).top;
39514
+ }
39515
+ }
39516
+ if (direction === "down") {
39517
+ style.top = `${offsetValue}px`;
39518
+ } else {
39519
+ style.bottom = `${offsetValue}px`;
39520
+ }
39521
+ return withDirectives(createVNode("div", mergeProps({
39522
+ "ref": wrapperRef,
39523
+ "style": style,
39524
+ "class": bem$1([direction]),
39525
+ "onClick": onClickWrapper
39526
+ }, attrs), [createVNode(Popup, {
39527
+ "show": state.showPopup,
39528
+ "onUpdate:show": ($event) => state.showPopup = $event,
39529
+ "role": "menu",
39530
+ "class": bem$1("content"),
39531
+ "overlay": overlay,
39532
+ "position": direction === "down" ? "top" : "bottom",
39533
+ "duration": state.transition ? duration : 0,
39534
+ "lazyRender": props.lazyRender,
39535
+ "overlayStyle": {
39536
+ position: "absolute"
39537
+ },
39538
+ "aria-labelledby": `${parent.id}-${index2.value}`,
39539
+ "data-allow-mismatch": "attribute",
39540
+ "closeOnClickOverlay": closeOnClickOverlay,
39541
+ "onOpen": onOpen,
39542
+ "onClose": onClose,
39543
+ "onOpened": onOpened,
39544
+ "onClosed": onClosed
39545
+ }, {
39546
+ default: () => {
39547
+ var _a2;
39548
+ return [props.options.map(renderOption), (_a2 = slots.default) == null ? void 0 : _a2.call(slots)];
39549
+ }
39550
+ })]), [[vShow, state.showWrapper]]);
39551
+ };
39552
+ useExpose({
39553
+ state,
39554
+ toggle,
39555
+ renderTitle
39556
+ });
39557
+ return () => {
39558
+ if (props.teleport) {
39559
+ return createVNode(Teleport, {
39560
+ "to": props.teleport
39561
+ }, {
39562
+ default: () => [renderContent()]
39563
+ });
39564
+ }
39565
+ return renderContent();
39566
+ };
39567
+ }
39568
+ });
39569
+ const DropdownItem = withInstall(stdin_default$1);
39570
+ const DropdownMenu = withInstall(stdin_default$2);
39059
39571
  const [name, bem] = createNamespace("notify");
39060
39572
  const popupInheritProps = ["lockScroll", "position", "show", "teleport", "zIndex"];
39061
39573
  const notifyProps = extend({}, popupSharedProps, {
@@ -39250,7 +39762,8 @@ const msgTips = { alert, elNotification, tips };
39250
39762
  }
39251
39763
  })();
39252
39764
  function useCopyPaste(params) {
39253
- if (!params.rowConfig.height) {
39765
+ var _a2;
39766
+ if (!((_a2 = params.rowConfig) == null ? void 0 : _a2.height)) {
39254
39767
  return {
39255
39768
  cellArea: () => {
39256
39769
  },
@@ -39696,9 +40209,9 @@ function useCopyPaste(params) {
39696
40209
  }
39697
40210
  if (pasteEventHandler) return;
39698
40211
  pasteEventHandler = (event) => {
39699
- var _a2;
40212
+ var _a3;
39700
40213
  event.preventDefault();
39701
- const clipboardData = (_a2 = event.clipboardData) == null ? void 0 : _a2.getData("text");
40214
+ const clipboardData = (_a3 = event.clipboardData) == null ? void 0 : _a3.getData("text");
39702
40215
  if (!clipboardData) {
39703
40216
  console.warn("剪贴板中没有数据");
39704
40217
  return;
@@ -39832,8 +40345,8 @@ const mergeObjects = (queryData, typeData) => {
39832
40345
  }
39833
40346
  return mergedObj;
39834
40347
  };
39835
- const _hoisted_1$8 = { style: { "width": "100%", "text-align": "right" } };
39836
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
40348
+ const _hoisted_1$a = { style: { "width": "100%", "text-align": "right" } };
40349
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
39837
40350
  __name: "QueryBarClient",
39838
40351
  props: {
39839
40352
  frame: {
@@ -39954,7 +40467,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
39954
40467
  default: withCtx(() => [
39955
40468
  createVNode(_component_el_form_item, null, {
39956
40469
  default: withCtx(() => [
39957
- createElementVNode("div", _hoisted_1$8, [
40470
+ createElementVNode("div", _hoisted_1$a, [
39958
40471
  createVNode(_component_el_button, {
39959
40472
  type: "primary",
39960
40473
  onClick: queryClick
@@ -40000,7 +40513,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
40000
40513
  };
40001
40514
  }
40002
40515
  });
40003
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
40516
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
40004
40517
  __name: "ToolBarClient",
40005
40518
  props: {
40006
40519
  toolButtons: {
@@ -40043,8 +40556,8 @@ const _export_sfc = (sfc, props) => {
40043
40556
  }
40044
40557
  return target;
40045
40558
  };
40046
- const ToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-1d587f27"]]);
40047
- const _hoisted_1$7 = { class: "table-render-client" };
40559
+ const ToolBar = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-1d587f27"]]);
40560
+ const _hoisted_1$9 = { class: "table-render-client" };
40048
40561
  const _hoisted_2$6 = {
40049
40562
  key: 1,
40050
40563
  class: "table-tool-button"
@@ -40053,7 +40566,7 @@ const _hoisted_3$3 = {
40053
40566
  key: 2,
40054
40567
  class: "pagination-div"
40055
40568
  };
40056
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
40569
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
40057
40570
  __name: "TableRenderClient",
40058
40571
  props: /* @__PURE__ */ mergeModels({
40059
40572
  tableId: {
@@ -40207,8 +40720,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
40207
40720
  return (_ctx, _cache) => {
40208
40721
  const _component_el_button = resolveComponent("el-button");
40209
40722
  const _component_el_pagination = resolveComponent("el-pagination");
40210
- return openBlock(), createElementBlock("div", _hoisted_1$7, [
40211
- __props.queryConfig && __props.queryConfig.length > 0 ? (openBlock(), createBlock(_sfc_main$c, {
40723
+ return openBlock(), createElementBlock("div", _hoisted_1$9, [
40724
+ __props.queryConfig && __props.queryConfig.length > 0 ? (openBlock(), createBlock(_sfc_main$e, {
40212
40725
  key: 0,
40213
40726
  frame: __props.queryConfig,
40214
40727
  class: "query-bar-client",
@@ -40276,21 +40789,19 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
40276
40789
  (openBlock(), createBlock(resolveDynamicComponent(column.editRender.name), {
40277
40790
  value: row[column.field],
40278
40791
  "onUpdate:value": ($event) => row[column.field] = $event,
40279
- detail: column.editRender.props,
40280
- "field-name": column.field,
40281
- "row-id": row[__props.tableConfig.rowKey],
40792
+ detail: column,
40793
+ "row-data": row,
40282
40794
  onValueChange: fieldValueChanged
40283
- }, null, 40, ["value", "onUpdate:value", "detail", "field-name", "row-id"]))
40795
+ }, null, 40, ["value", "onUpdate:value", "detail", "row-data"]))
40284
40796
  ]),
40285
40797
  renderAsyncCell: withCtx(({ row, column }) => [
40286
40798
  (openBlock(), createBlock(resolveDynamicComponent(column.editRender.name), {
40287
40799
  value: row[column.field],
40288
40800
  "onUpdate:value": ($event) => row[column.field] = $event,
40289
- detail: column.editRender.props,
40290
- "field-name": column.field,
40291
- "row-id": row[__props.tableConfig.rowKey],
40801
+ detail: column,
40802
+ "row-data": row,
40292
40803
  onValueChange: fieldValueChanged
40293
- }, null, 40, ["value", "onUpdate:value", "detail", "field-name", "row-id"]))
40804
+ }, null, 40, ["value", "onUpdate:value", "detail", "row-data"]))
40294
40805
  ]),
40295
40806
  tableButtonOperate: withCtx(({ row, rowIndex }) => [
40296
40807
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.tableRowButtons, (btn) => {
@@ -40332,7 +40843,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
40332
40843
  };
40333
40844
  }
40334
40845
  });
40335
- const TableRenderClient = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-c785bdca"]]);
40846
+ const TableRenderClient = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-aedf503a"]]);
40336
40847
  const customFormatter = (options) => {
40337
40848
  if (isEmpty(options.cellValue) || isEmpty(options.tabObj))
40338
40849
  return options.cellValue;
@@ -40350,6 +40861,201 @@ const customFormatter = (options) => {
40350
40861
  }
40351
40862
  return options.cellValue;
40352
40863
  };
40864
+ const _hoisted_1$8 = { style: { "margin": "16px" } };
40865
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
40866
+ __name: "QueryBarMobile",
40867
+ props: {
40868
+ frame: {
40869
+ required: true,
40870
+ type: Array
40871
+ },
40872
+ i18nText: {
40873
+ required: false,
40874
+ default: () => {
40875
+ return {
40876
+ search: "搜索",
40877
+ reset: "重置",
40878
+ confirm: "确认"
40879
+ };
40880
+ }
40881
+ }
40882
+ },
40883
+ emits: [
40884
+ "queryClick"
40885
+ // 查询按钮点击事件
40886
+ ],
40887
+ setup(__props, { emit: __emit }) {
40888
+ const props = __props;
40889
+ const emits = __emit;
40890
+ const searchDrawer = ref(false);
40891
+ const queryDataState = reactive({});
40892
+ const queryDataTypeState = reactive({});
40893
+ const openSearchDrawer = () => {
40894
+ if (props.frame.length === 0) {
40895
+ msgTips.tips({
40896
+ msg: "没有可以搜索的选项",
40897
+ type: "warning"
40898
+ });
40899
+ return false;
40900
+ }
40901
+ searchDrawer.value = true;
40902
+ };
40903
+ const queryClick = () => {
40904
+ emits("queryClick", mergeObjects(queryDataState, queryDataTypeState));
40905
+ searchDrawer.value = false;
40906
+ };
40907
+ const resetQuery = () => {
40908
+ Object.keys(queryDataState).forEach((key) => {
40909
+ queryDataState[key] = void 0;
40910
+ });
40911
+ Object.assign(queryDataState, {});
40912
+ };
40913
+ return (_ctx, _cache) => {
40914
+ const _component_van_search = resolveComponent("van-search");
40915
+ const _component_van_field = resolveComponent("van-field");
40916
+ const _component_van_cell_group = resolveComponent("van-cell-group");
40917
+ const _component_van_form = resolveComponent("van-form");
40918
+ const _component_van_button = resolveComponent("van-button");
40919
+ const _component_el_drawer = resolveComponent("el-drawer");
40920
+ return openBlock(), createElementBlock(Fragment, null, [
40921
+ createVNode(_component_van_search, {
40922
+ placeholder: __props.i18nText.search,
40923
+ onClickInput: openSearchDrawer
40924
+ }, null, 8, ["placeholder"]),
40925
+ createVNode(_component_el_drawer, {
40926
+ modelValue: searchDrawer.value,
40927
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchDrawer.value = $event),
40928
+ title: __props.i18nText.search,
40929
+ direction: "ltr",
40930
+ size: "100%",
40931
+ style: { "background-color": "#f7f8fa" }
40932
+ }, {
40933
+ default: withCtx(() => [
40934
+ createVNode(_component_van_form, null, {
40935
+ default: withCtx(() => [
40936
+ createVNode(_component_van_cell_group, null, {
40937
+ default: withCtx(() => [
40938
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.frame, (item) => {
40939
+ return openBlock(), createBlock(_component_van_field, {
40940
+ key: item.fieldName,
40941
+ label: item.fieldTitle,
40942
+ name: item.fieldName
40943
+ }, {
40944
+ input: withCtx(() => [
40945
+ (openBlock(), createBlock(resolveDynamicComponent(item.queryEditor), {
40946
+ "query-type": queryDataTypeState[item.fieldName],
40947
+ "onUpdate:queryType": ($event) => queryDataTypeState[item.fieldName] = $event,
40948
+ value: queryDataState[item.fieldName],
40949
+ "onUpdate:value": ($event) => queryDataState[item.fieldName] = $event,
40950
+ detail: item
40951
+ }, null, 40, ["query-type", "onUpdate:queryType", "value", "onUpdate:value", "detail"]))
40952
+ ]),
40953
+ _: 2
40954
+ }, 1032, ["label", "name"]);
40955
+ }), 128))
40956
+ ]),
40957
+ _: 1
40958
+ })
40959
+ ]),
40960
+ _: 1
40961
+ }),
40962
+ createElementVNode("div", _hoisted_1$8, [
40963
+ createVNode(_component_van_button, {
40964
+ block: "",
40965
+ round: "",
40966
+ type: "primary",
40967
+ onClick: queryClick
40968
+ }, {
40969
+ default: withCtx(() => [
40970
+ createTextVNode(toDisplayString(__props.i18nText.confirm), 1)
40971
+ ]),
40972
+ _: 1
40973
+ }),
40974
+ createVNode(_component_van_button, {
40975
+ block: "",
40976
+ round: "",
40977
+ style: { "margin-top": "16px" },
40978
+ type: "warning",
40979
+ onClick: resetQuery
40980
+ }, {
40981
+ default: withCtx(() => [
40982
+ createTextVNode(toDisplayString(__props.i18nText.reset), 1)
40983
+ ]),
40984
+ _: 1
40985
+ })
40986
+ ])
40987
+ ]),
40988
+ _: 1
40989
+ }, 8, ["modelValue", "title"])
40990
+ ], 64);
40991
+ };
40992
+ }
40993
+ });
40994
+ const _hoisted_1$7 = { class: "button-container" };
40995
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
40996
+ __name: "ToolBarMobile",
40997
+ props: {
40998
+ toolButtons: {
40999
+ required: true,
41000
+ type: Array
41001
+ }
41002
+ },
41003
+ setup(__props) {
41004
+ const props = __props;
41005
+ const directToolButton = computed(() => {
41006
+ return props.toolButtons.slice(0, 2);
41007
+ });
41008
+ const dropdownToolButton = computed(() => {
41009
+ return props.toolButtons.slice(2);
41010
+ });
41011
+ const btnClick = (data, button) => {
41012
+ useButtonExec(data, button);
41013
+ };
41014
+ return (_ctx, _cache) => {
41015
+ return openBlock(), createElementBlock("div", _hoisted_1$7, [
41016
+ (openBlock(true), createElementBlock(Fragment, null, renderList(directToolButton.value, (btn) => {
41017
+ return openBlock(), createBlock(unref(Button), {
41018
+ key: btn.id,
41019
+ type: btn.type,
41020
+ onClick: ($event) => btnClick(null, btn)
41021
+ }, {
41022
+ default: withCtx(() => [
41023
+ createTextVNode(toDisplayString(btn.label), 1)
41024
+ ]),
41025
+ _: 2
41026
+ }, 1032, ["type", "onClick"]);
41027
+ }), 128)),
41028
+ dropdownToolButton.value.length > 0 ? (openBlock(), createBlock(unref(DropdownMenu), {
41029
+ key: 0,
41030
+ class: "dropdown-menu"
41031
+ }, {
41032
+ default: withCtx(() => [
41033
+ createVNode(unref(DropdownItem), { title: "选项" }, {
41034
+ default: withCtx(() => [
41035
+ (openBlock(true), createElementBlock(Fragment, null, renderList(dropdownToolButton.value, (btn) => {
41036
+ return openBlock(), createBlock(unref(Button), {
41037
+ key: btn.id,
41038
+ type: btn.type,
41039
+ block: "",
41040
+ onClick: ($event) => btnClick(null, btn)
41041
+ }, {
41042
+ default: withCtx(() => [
41043
+ createTextVNode(toDisplayString(btn.label), 1)
41044
+ ]),
41045
+ _: 2
41046
+ }, 1032, ["type", "onClick"]);
41047
+ }), 128))
41048
+ ]),
41049
+ _: 1
41050
+ })
41051
+ ]),
41052
+ _: 1
41053
+ })) : createCommentVNode("", true)
41054
+ ]);
41055
+ };
41056
+ }
41057
+ });
41058
+ const ToolBarMobile = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-e19155b1"]]);
40353
41059
  const _hoisted_1$6 = { class: "table-render-mobile" };
40354
41060
  const _hoisted_2$5 = { class: "table-render-mobile-search" };
40355
41061
  const _hoisted_3$2 = { class: "table-tool-button" };
@@ -40477,8 +41183,6 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
40477
41183
  emits("queryClick", queryData);
40478
41184
  };
40479
41185
  return (_ctx, _cache) => {
40480
- const _component_QueryBar = resolveComponent("QueryBar");
40481
- const _component_ToolBar = resolveComponent("ToolBar");
40482
41186
  const _component_van_button = resolveComponent("van-button");
40483
41187
  const _component_van_cell = resolveComponent("van-cell");
40484
41188
  const _component_van_cell_group = resolveComponent("van-cell-group");
@@ -40489,13 +41193,13 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
40489
41193
  const _directive_loading = resolveDirective("loading");
40490
41194
  return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$6, [
40491
41195
  createElementVNode("div", _hoisted_2$5, [
40492
- createVNode(_component_QueryBar, {
41196
+ createVNode(_sfc_main$b, {
40493
41197
  frame: __props.queryConfig,
40494
41198
  onQueryClick: queryClick
40495
41199
  }, null, 8, ["frame"])
40496
41200
  ]),
40497
41201
  createElementVNode("div", _hoisted_3$2, [
40498
- createVNode(_component_ToolBar, { "tool-buttons": __props.tableToolButtons }, null, 8, ["tool-buttons"])
41202
+ createVNode(ToolBarMobile, { "tool-buttons": __props.tableToolButtons }, null, 8, ["tool-buttons"])
40499
41203
  ]),
40500
41204
  createElementVNode("div", _hoisted_4$2, [
40501
41205
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.tableData, (dataItem, index2) => {
@@ -40533,11 +41237,10 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
40533
41237
  key: 0,
40534
41238
  value: dataItem[column.field],
40535
41239
  "onUpdate:value": ($event) => dataItem[column.field] = $event,
40536
- detail: column.editRender.props,
40537
- "field-name": column.field,
40538
- "row-id": dataItem[__props.tableConfig.rowKey],
41240
+ detail: column,
41241
+ "row-data": dataItem,
40539
41242
  onValueChange: fieldValueChanged
40540
- }, null, 40, ["value", "onUpdate:value", "detail", "field-name", "row-id"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
41243
+ }, null, 40, ["value", "onUpdate:value", "detail", "row-data"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
40541
41244
  createTextVNode(toDisplayString(formatterCellValue(dataItem[column.field], column)), 1)
40542
41245
  ], 64))
40543
41246
  ]),
@@ -40586,7 +41289,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
40586
41289
  };
40587
41290
  }
40588
41291
  });
40589
- const TableRenderMobile = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-f5f23a4d"]]);
41292
+ const TableRenderMobile = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-24559185"]]);
40590
41293
  const KeliTableRender = isMobileDevice.value ? TableRenderMobile : TableRenderClient;
40591
41294
  KeliTableRender.install = (app) => {
40592
41295
  app.component(KeliTableRender.__name, KeliTableRender);
@@ -40812,12 +41515,11 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
40812
41515
  key: 0,
40813
41516
  value: cardItem[cardCol.field],
40814
41517
  "onUpdate:value": ($event) => cardItem[cardCol.field] = $event,
40815
- detail: cardCol.editRender.props,
41518
+ detail: cardCol,
40816
41519
  disabled: cardCol.editRender.enabled,
40817
- "field-name": cardCol.field,
40818
- "row-id": cardItem[__props.tableConfig.rowKey],
41520
+ "row-data": cardItem,
40819
41521
  onValueChange: fieldValueChanged
40820
- }, null, 40, ["value", "onUpdate:value", "detail", "disabled", "field-name", "row-id"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
41522
+ }, null, 40, ["value", "onUpdate:value", "detail", "disabled", "row-data"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
40821
41523
  createTextVNode(toDisplayString(formatterCellValue(cardItem[cardCol.field], cardCol)), 1)
40822
41524
  ], 64))
40823
41525
  ]),
@@ -40856,7 +41558,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
40856
41558
  };
40857
41559
  }
40858
41560
  });
40859
- const TableCardRenderClient = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-e03d694f"]]);
41561
+ const TableCardRenderClient = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-f727ae8d"]]);
40860
41562
  const _hoisted_1$4 = { class: "table-render-mobile" };
40861
41563
  const _hoisted_2$3 = { class: "table-render-mobile-search" };
40862
41564
  const _hoisted_3 = { class: "table-tool-button" };
@@ -41044,11 +41746,10 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
41044
41746
  key: 0,
41045
41747
  value: dataItem[column.field],
41046
41748
  "onUpdate:value": ($event) => dataItem[column.field] = $event,
41047
- detail: column.editRender.props,
41048
- "field-name": column.field,
41049
- "row-id": dataItem[__props.tableConfig.rowKey],
41749
+ detail: column,
41750
+ "row-data": dataItem,
41050
41751
  onValueChange: fieldValueChanged
41051
- }, null, 40, ["value", "onUpdate:value", "detail", "field-name", "row-id"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
41752
+ }, null, 40, ["value", "onUpdate:value", "detail", "row-data"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
41052
41753
  createTextVNode(toDisplayString(formatterCellValue(dataItem[column.field], column)), 1)
41053
41754
  ], 64))
41054
41755
  ]),
@@ -41098,7 +41799,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
41098
41799
  };
41099
41800
  }
41100
41801
  });
41101
- const TableCardRenderMobile = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-5c541b2d"]]);
41802
+ const TableCardRenderMobile = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-f646ed8a"]]);
41102
41803
  const KeliTableCardRender = isMobileDevice.value ? TableCardRenderMobile : TableCardRenderClient;
41103
41804
  KeliTableCardRender.install = (app) => {
41104
41805
  app.component(KeliTableCardRender.__name, KeliTableCardRender);
@@ -41265,10 +41966,10 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
41265
41966
  (openBlock(), createBlock(resolveDynamicComponent(column.editRender.name), {
41266
41967
  value: scope.row[column.field],
41267
41968
  "onUpdate:value": ($event) => scope.row[column.field] = $event,
41268
- detail: column.editRender.props,
41269
- "row-id": scope.row[__props.tableConfig.rowKey],
41969
+ detail: column,
41970
+ "row-data": scope.row,
41270
41971
  onValueChange: fieldValueChanged
41271
- }, null, 40, ["value", "onUpdate:value", "detail", "row-id"]))
41972
+ }, null, 40, ["value", "onUpdate:value", "detail", "row-data"]))
41272
41973
  ]),
41273
41974
  key: "0"
41274
41975
  } : void 0
@@ -41309,7 +42010,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
41309
42010
  };
41310
42011
  }
41311
42012
  });
41312
- const KeliTableTreeRender = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-d493fc51"]]);
42013
+ const KeliTableTreeRender = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-ab548e2d"]]);
41313
42014
  KeliTableTreeRender.install = (app) => {
41314
42015
  app.component(KeliTableTreeRender.__name, KeliTableTreeRender);
41315
42016
  };
@@ -41666,41 +42367,44 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
41666
42367
  trigger: "click",
41667
42368
  "virtual-triggering": ""
41668
42369
  }, {
41669
- default: withCtx(() => [
41670
- createVNode(_component_el_input_number, mergeProps({
41671
- modelValue: inputValue.value,
41672
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
41673
- placeholder: __props.detail.placeholder,
41674
- style: { "width": "184px" }
41675
- }, __props.detail.editRender.props.componentParams), createSlots({ _: 2 }, [
41676
- __props.detail.editRender.props.componentParams && __props.detail.editRender.props.componentParams.suffix ? {
41677
- name: "suffix",
41678
- fn: withCtx(() => [
41679
- createElementVNode("span", null, toDisplayString(__props.detail.editRender.props.componentParams.suffix), 1)
41680
- ]),
41681
- key: "0"
41682
- } : void 0
41683
- ]), 1040, ["modelValue", "placeholder"]),
41684
- createElementVNode("div", _hoisted_2, [
41685
- createVNode(_component_el_button, {
41686
- size: "small",
41687
- type: "primary",
41688
- onClick: confirm
41689
- }, {
41690
- default: withCtx(() => [
41691
- createTextVNode(toDisplayString(__props.i18Text.confirm), 1)
41692
- ]),
41693
- _: 1
41694
- })
41695
- ])
41696
- ]),
42370
+ default: withCtx(() => {
42371
+ var _a2, _b, _c, _d;
42372
+ return [
42373
+ createVNode(_component_el_input_number, mergeProps({
42374
+ modelValue: inputValue.value,
42375
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
42376
+ placeholder: __props.detail.placeholder,
42377
+ style: { "width": "184px" }
42378
+ }, (_b = (_a2 = __props.detail.editRender) == null ? void 0 : _a2.props) == null ? void 0 : _b.componentParams), createSlots({ _: 2 }, [
42379
+ ((_d = (_c = __props.detail.editRender) == null ? void 0 : _c.props) == null ? void 0 : _d.componentParams) && __props.detail.editRender.props.componentParams.suffix ? {
42380
+ name: "suffix",
42381
+ fn: withCtx(() => [
42382
+ createElementVNode("span", null, toDisplayString(__props.detail.editRender.props.componentParams.suffix), 1)
42383
+ ]),
42384
+ key: "0"
42385
+ } : void 0
42386
+ ]), 1040, ["modelValue", "placeholder"]),
42387
+ createElementVNode("div", _hoisted_2, [
42388
+ createVNode(_component_el_button, {
42389
+ size: "small",
42390
+ type: "primary",
42391
+ onClick: confirm
42392
+ }, {
42393
+ default: withCtx(() => [
42394
+ createTextVNode(toDisplayString(__props.i18Text.confirm), 1)
42395
+ ]),
42396
+ _: 1
42397
+ })
42398
+ ])
42399
+ ];
42400
+ }),
41697
42401
  _: 1
41698
42402
  }, 8, ["virtual-ref"])
41699
42403
  ]);
41700
42404
  };
41701
42405
  }
41702
42406
  });
41703
- const KeliTableInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-bb72979b"]]);
42407
+ const KeliTableInputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-305591d3"]]);
41704
42408
  KeliTableInputNumber.install = (app) => {
41705
42409
  app.component(KeliTableInputNumber.__name, KeliTableInputNumber);
41706
42410
  };
@@ -41751,7 +42455,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
41751
42455
  setValue(props.value);
41752
42456
  });
41753
42457
  return (_ctx, _cache) => {
41754
- var _a2, _b, _c, _d, _e;
42458
+ var _a2, _b, _c, _d, _e, _f;
41755
42459
  const _component_el_option = resolveComponent("el-option");
41756
42460
  const _component_el_select = resolveComponent("el-select");
41757
42461
  return openBlock(), createBlock(_component_el_select, mergeProps({
@@ -41759,10 +42463,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
41759
42463
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => valueRef.value = $event),
41760
42464
  multiple: ((_a2 = __props.detail) == null ? void 0 : _a2.multiple) === true,
41761
42465
  style: { "width": "100%" }
41762
- }, ((_b = __props.detail) == null ? void 0 : _b.editRender.props.componentParams) ? (_c = __props.detail) == null ? void 0 : _c.editRender.props.componentParams : {}, {
42466
+ }, ((_c = (_b = __props.detail.editRender) == null ? void 0 : _b.props) == null ? void 0 : _c.componentParams) ? (_d = __props.detail) == null ? void 0 : _d.editRender.props.componentParams : {}, {
41763
42467
  disabled: __props.detail.disabled !== false,
41764
- options: (_d = __props.detail) == null ? void 0 : _d.options,
41765
- placeholder: (_e = __props.detail) == null ? void 0 : _e.placeholder,
42468
+ options: (_e = __props.detail) == null ? void 0 : _e.options,
42469
+ placeholder: (_f = __props.detail) == null ? void 0 : _f.placeholder,
41766
42470
  onChange: handleChange
41767
42471
  }), {
41768
42472
  default: withCtx(() => {
@@ -41819,7 +42523,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
41819
42523
  emits("valueChange", (_a2 = props.detail) == null ? void 0 : _a2.field, value, props.rowData);
41820
42524
  };
41821
42525
  return (_ctx, _cache) => {
41822
- var _a2, _b, _c, _d, _e;
42526
+ var _a2, _b, _c, _d, _e, _f;
41823
42527
  const _component_el_option = resolveComponent("el-option");
41824
42528
  const _component_el_select = resolveComponent("el-select");
41825
42529
  return openBlock(), createBlock(_component_el_select, mergeProps({
@@ -41827,9 +42531,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
41827
42531
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => valueRef.value = $event),
41828
42532
  multiple: (_a2 = __props.detail) == null ? void 0 : _a2.multiple,
41829
42533
  style: { "width": "100%" }
41830
- }, ((_b = __props.detail) == null ? void 0 : _b.editRender.props.componentParams) ? (_c = __props.detail) == null ? void 0 : _c.editRender.props.componentParams : {}, {
41831
- disabled: ((_d = __props.detail) == null ? void 0 : _d.disabled) !== false,
41832
- placeholder: (_e = __props.detail) == null ? void 0 : _e.placeholder,
42534
+ }, ((_c = (_b = __props.detail.editRender) == null ? void 0 : _b.props) == null ? void 0 : _c.componentParams) ? (_d = __props.detail) == null ? void 0 : _d.editRender.props.componentParams : {}, {
42535
+ disabled: ((_e = __props.detail) == null ? void 0 : _e.disabled) !== false,
42536
+ placeholder: (_f = __props.detail) == null ? void 0 : _f.placeholder,
41833
42537
  onChange: handleChange
41834
42538
  }), {
41835
42539
  default: withCtx(() => {
@@ -41886,13 +42590,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41886
42590
  emits("valueChange", (_a2 = props.detail) == null ? void 0 : _a2.field, val, props.rowData);
41887
42591
  };
41888
42592
  return (_ctx, _cache) => {
41889
- var _a2;
42593
+ var _a2, _b, _c;
41890
42594
  const _component_el_switch = resolveComponent("el-switch");
41891
42595
  return openBlock(), createBlock(_component_el_switch, mergeProps({
41892
42596
  modelValue: valueRef.value,
41893
42597
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => valueRef.value = $event),
41894
42598
  disabled: ((_a2 = props.detail) == null ? void 0 : _a2.disabled) !== false
41895
- }, __props.detail.editRender.props.componentParams ? __props.detail.editRender.props.componentParams : {}, { onChange: send }), null, 16, ["modelValue", "disabled"]);
42599
+ }, ((_c = (_b = __props.detail.editRender) == null ? void 0 : _b.props) == null ? void 0 : _c.componentParams) ? __props.detail.editRender.props.componentParams : {}, { onChange: send }), null, 16, ["modelValue", "disabled"]);
41896
42600
  };
41897
42601
  }
41898
42602
  });