keli-ui 0.0.12 → 0.0.13

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
@@ -80529,9 +80529,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
80529
80529
  };
80530
80530
  const textCache = {};
80531
80531
  const setShowText = (componentData, canReTry) => {
80532
- var _a2;
80533
- if (Array.isArray(props.detail.options)) {
80534
- (_a2 = props.detail) == null ? void 0 : _a2.options.forEach((item) => {
80532
+ var _a2, _b, _c, _d, _e, _f;
80533
+ if (Array.isArray((_c = (_b = (_a2 = props.detail) == null ? void 0 : _a2.editRender) == null ? void 0 : _b.props) == null ? void 0 : _c.options)) {
80534
+ (_f = (_e = (_d = props.detail) == null ? void 0 : _d.editRender) == null ? void 0 : _e.props) == null ? void 0 : _f.options.forEach((item) => {
80535
80535
  textCache[item.value] = item.label;
80536
80536
  });
80537
80537
  }
@@ -80602,16 +80602,19 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
80602
80602
  modelValue: checkData.value,
80603
80603
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => checkData.value = $event)
80604
80604
  }, {
80605
- default: withCtx(() => [
80606
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.detail.options, (ops) => {
80607
- return openBlock(), createBlock(_component_el_checkbox, {
80608
- key: ops.value,
80609
- disabled: ops.disabled,
80610
- label: ops.label,
80611
- value: ops.value
80612
- }, null, 8, ["disabled", "label", "value"]);
80613
- }), 128))
80614
- ]),
80605
+ default: withCtx(() => {
80606
+ var _a2;
80607
+ return [
80608
+ (openBlock(true), createElementBlock(Fragment, null, renderList((_a2 = __props.detail) == null ? void 0 : _a2.editRender.props.options, (ops) => {
80609
+ return openBlock(), createBlock(_component_el_checkbox, {
80610
+ key: ops.value,
80611
+ disabled: ops.disabled,
80612
+ label: ops.label,
80613
+ value: ops.value
80614
+ }, null, 8, ["disabled", "label", "value"]);
80615
+ }), 128))
80616
+ ];
80617
+ }),
80615
80618
  _: 1
80616
80619
  }, 8, ["modelValue"])
80617
80620
  ]),
@@ -80621,7 +80624,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
80621
80624
  };
80622
80625
  }
80623
80626
  });
80624
- const KeliTableCheckBoxAsync = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-16ccc8c0"]]);
80627
+ const KeliTableCheckBoxAsync = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-4a2cf19e"]]);
80625
80628
  KeliTableCheckBoxAsync.install = (app) => {
80626
80629
  app.component(KeliTableCheckBoxAsync.__name, KeliTableCheckBoxAsync);
80627
80630
  };
@@ -80899,8 +80902,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
80899
80902
  }
80900
80903
  );
80901
80904
  const setValue = (v) => {
80902
- var _a2;
80903
- if ((_a2 = props.detail) == null ? void 0 : _a2.multiple) {
80905
+ var _a2, _b, _c;
80906
+ if ((_c = (_b = (_a2 = props.detail) == null ? void 0 : _a2.editRender) == null ? void 0 : _b.props) == null ? void 0 : _c.multiple) {
80904
80907
  valueRef.value = Array.isArray(v) ? v : [];
80905
80908
  } else if (["number", "string"].includes(typeof v) || v === null) {
80906
80909
  valueRef.value = v;
@@ -80916,18 +80919,18 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
80916
80919
  return openBlock(), createBlock(_component_el_select, mergeProps({
80917
80920
  modelValue: valueRef.value,
80918
80921
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => valueRef.value = $event),
80919
- multiple: ((_a2 = __props.detail) == null ? void 0 : _a2.multiple) === true,
80922
+ multiple: ((_a2 = __props.detail) == null ? void 0 : _a2.editRender.props.multiple) === true,
80920
80923
  style: { "width": "100%" }
80921
80924
  }, ((_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 : {}, {
80922
80925
  disabled: __props.detail.disabled !== false,
80923
- options: (_e = __props.detail) == null ? void 0 : _e.options,
80926
+ options: (_e = __props.detail) == null ? void 0 : _e.editRender.props.options,
80924
80927
  placeholder: (_f = __props.detail) == null ? void 0 : _f.placeholder,
80925
80928
  onChange: handleChange
80926
80929
  }), {
80927
80930
  default: withCtx(() => {
80928
80931
  var _a3;
80929
80932
  return [
80930
- (openBlock(true), createElementBlock(Fragment, null, renderList((_a3 = __props.detail) == null ? void 0 : _a3.options, (item) => {
80933
+ (openBlock(true), createElementBlock(Fragment, null, renderList((_a3 = __props.detail) == null ? void 0 : _a3.editRender.props.options, (item) => {
80931
80934
  return openBlock(), createBlock(_component_el_option, {
80932
80935
  key: item.value,
80933
80936
  disabled: item.disabled,
@@ -80984,7 +80987,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
80984
80987
  return openBlock(), createBlock(_component_el_select, mergeProps({
80985
80988
  modelValue: valueRef.value,
80986
80989
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => valueRef.value = $event),
80987
- multiple: (_a2 = __props.detail) == null ? void 0 : _a2.multiple,
80990
+ multiple: ((_a2 = __props.detail) == null ? void 0 : _a2.editRender.props.multiple) === true,
80988
80991
  style: { "width": "100%" }
80989
80992
  }, ((_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 : {}, {
80990
80993
  disabled: ((_e = __props.detail) == null ? void 0 : _e.disabled) !== false,
@@ -80994,7 +80997,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
80994
80997
  default: withCtx(() => {
80995
80998
  var _a3;
80996
80999
  return [
80997
- (openBlock(true), createElementBlock(Fragment, null, renderList((_a3 = __props.detail) == null ? void 0 : _a3.options, (item) => {
81000
+ (openBlock(true), createElementBlock(Fragment, null, renderList((_a3 = __props.detail) == null ? void 0 : _a3.editRender.props.options, (item) => {
80998
81001
  return openBlock(), createBlock(_component_el_option, {
80999
81002
  key: item.value,
81000
81003
  disabled: item.disabled,
@@ -81249,7 +81252,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
81249
81252
  };
81250
81253
  }
81251
81254
  });
81252
- const KeliQuerySelect = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-ce16482a"]]);
81255
+ const KeliQuerySelect = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-96d710e6"]]);
81253
81256
  KeliQuerySelect.install = (app) => {
81254
81257
  app.component(KeliQuerySelect.__name, KeliQuerySelect);
81255
81258
  };