keli-ui 0.2.1 → 0.2.3

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
@@ -42965,10 +42965,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
42965
42965
  const _component_el_select = resolveComponent("el-select");
42966
42966
  return openBlock(), createBlock(_component_el_select, mergeProps({
42967
42967
  modelValue: valueRef.value,
42968
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => valueRef.value = $event),
42969
- multiple: (_a = props.detail) == null ? void 0 : _a.multiple,
42970
- placeholder: props.detail.placeholder
42971
- }, props.detail.componentParams ? props.detail.componentParams : {}, {
42968
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => valueRef.value = $event)
42969
+ }, __props.detail.componentParams ? __props.detail.componentParams : {}, {
42970
+ multiple: (_a = __props.detail) == null ? void 0 : _a.multiple,
42971
+ placeholder: __props.detail.placeholder,
42972
+ "value-key": __props.detail.componentParams.keyField,
42972
42973
  clearable: "",
42973
42974
  onChange: handleChange
42974
42975
  }), {
@@ -42996,19 +42997,21 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
42996
42997
  default: withCtx(() => {
42997
42998
  var _a2;
42998
42999
  return [
42999
- (openBlock(true), createElementBlock(Fragment, null, renderList((_a2 = props.detail) == null ? void 0 : _a2.options, (item) => {
43000
+ (openBlock(true), createElementBlock(Fragment, null, renderList((_a2 = __props.detail) == null ? void 0 : _a2.options, (item) => {
43001
+ var _a3, _b, _c;
43000
43002
  return openBlock(), createBlock(_component_el_option, {
43001
- key: item[__props.detail.componentParams.keyField],
43003
+ key: item[(_a3 = __props.detail.componentParams) == null ? void 0 : _a3.keyField],
43002
43004
  disabled: item.disabled === true,
43003
- label: item[__props.detail.componentParams.labelField],
43004
- value: item[__props.detail.componentParams.valueField]
43005
+ label: item[(_b = __props.detail.componentParams) == null ? void 0 : _b.labelField],
43006
+ value: item,
43007
+ style: normalizeStyle({ width: ((_c = __props.detail.componentParams) == null ? void 0 : _c.optionWidth) ? __props.detail.componentParams.optionWidth + "px" : "100%" })
43005
43008
  }, {
43006
43009
  default: withCtx(() => [
43007
43010
  createVNode(_component_el_row, null, {
43008
43011
  default: withCtx(() => {
43009
- var _a3;
43012
+ var _a4;
43010
43013
  return [
43011
- (openBlock(true), createElementBlock(Fragment, null, renderList((_a3 = __props.detail.componentParams) == null ? void 0 : _a3.optionSlots, (optionSlot) => {
43014
+ (openBlock(true), createElementBlock(Fragment, null, renderList((_a4 = __props.detail.componentParams) == null ? void 0 : _a4.optionSlots, (optionSlot) => {
43012
43015
  return openBlock(), createBlock(_component_el_col, {
43013
43016
  key: optionSlot.field,
43014
43017
  span: optionSlot.span
@@ -43025,12 +43028,12 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
43025
43028
  }, 1024)
43026
43029
  ]),
43027
43030
  _: 2
43028
- }, 1032, ["disabled", "label", "value"]);
43031
+ }, 1032, ["disabled", "label", "value", "style"]);
43029
43032
  }), 128))
43030
43033
  ];
43031
43034
  }),
43032
43035
  _: 1
43033
- }, 16, ["modelValue", "multiple", "placeholder"]);
43036
+ }, 16, ["modelValue", "multiple", "placeholder", "value-key"]);
43034
43037
  };
43035
43038
  }
43036
43039
  });
@@ -43094,11 +43097,12 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
43094
43097
  const _directive_loading = resolveDirective("loading");
43095
43098
  return withDirectives((openBlock(), createBlock(_component_el_select, mergeProps({
43096
43099
  modelValue: valueRef.value,
43097
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => valueRef.value = $event),
43098
- multiple: __props.detail.multiple
43100
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => valueRef.value = $event)
43099
43101
  }, __props.detail.componentParams ? __props.detail.componentParams : {}, {
43102
+ multiple: __props.detail.multiple,
43100
43103
  loading: unref(loading),
43101
43104
  placeholder: (_a = __props.detail) == null ? void 0 : _a.placeholder,
43105
+ "value-key": __props.detail.componentParams.keyField,
43102
43106
  onChange: unref(handleChange),
43103
43107
  onFocus: unref(getOptions)
43104
43108
  }), {
@@ -43125,18 +43129,20 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
43125
43129
  ]),
43126
43130
  default: withCtx(() => [
43127
43131
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(optionsData), (item) => {
43132
+ var _a2, _b, _c;
43128
43133
  return openBlock(), createBlock(_component_el_option, {
43129
- key: item[__props.detail.componentParams.keyField],
43134
+ key: item[(_a2 = __props.detail.componentParams) == null ? void 0 : _a2.keyField],
43130
43135
  disabled: item.disabled === true,
43131
- label: item[__props.detail.componentParams.labelField],
43132
- value: item[__props.detail.componentParams.valueField]
43136
+ label: item[(_b = __props.detail.componentParams) == null ? void 0 : _b.labelField],
43137
+ value: item,
43138
+ style: normalizeStyle({ width: ((_c = __props.detail.componentParams) == null ? void 0 : _c.optionWidth) ? __props.detail.componentParams.optionWidth + "px" : "100%" })
43133
43139
  }, {
43134
43140
  default: withCtx(() => [
43135
43141
  createVNode(_component_el_row, null, {
43136
43142
  default: withCtx(() => {
43137
- var _a2;
43143
+ var _a3;
43138
43144
  return [
43139
- (openBlock(true), createElementBlock(Fragment, null, renderList((_a2 = __props.detail.componentParams) == null ? void 0 : _a2.optionSlots, (optionSlot) => {
43145
+ (openBlock(true), createElementBlock(Fragment, null, renderList((_a3 = __props.detail.componentParams) == null ? void 0 : _a3.optionSlots, (optionSlot) => {
43140
43146
  return openBlock(), createBlock(_component_el_col, {
43141
43147
  key: optionSlot.field,
43142
43148
  span: optionSlot.span
@@ -43153,11 +43159,11 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
43153
43159
  }, 1024)
43154
43160
  ]),
43155
43161
  _: 2
43156
- }, 1032, ["disabled", "label", "value"]);
43162
+ }, 1032, ["disabled", "label", "value", "style"]);
43157
43163
  }), 128))
43158
43164
  ]),
43159
43165
  _: 1
43160
- }, 16, ["modelValue", "multiple", "loading", "placeholder", "onChange", "onFocus"])), [
43166
+ }, 16, ["modelValue", "multiple", "loading", "placeholder", "value-key", "onChange", "onFocus"])), [
43161
43167
  [_directive_loading, unref(loading)]
43162
43168
  ]);
43163
43169
  };