keli-ui 0.2.1 → 0.2.2

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
@@ -42966,9 +42966,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
42966
42966
  return openBlock(), createBlock(_component_el_select, mergeProps({
42967
42967
  modelValue: valueRef.value,
42968
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 : {}, {
42969
+ multiple: (_a = __props.detail) == null ? void 0 : _a.multiple,
42970
+ placeholder: __props.detail.placeholder
42971
+ }, __props.detail.componentParams ? __props.detail.componentParams : {}, {
42972
42972
  clearable: "",
42973
42973
  onChange: handleChange
42974
42974
  }), {
@@ -42996,19 +42996,21 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
42996
42996
  default: withCtx(() => {
42997
42997
  var _a2;
42998
42998
  return [
42999
- (openBlock(true), createElementBlock(Fragment, null, renderList((_a2 = props.detail) == null ? void 0 : _a2.options, (item) => {
42999
+ (openBlock(true), createElementBlock(Fragment, null, renderList((_a2 = __props.detail) == null ? void 0 : _a2.options, (item) => {
43000
+ var _a3, _b, _c;
43000
43001
  return openBlock(), createBlock(_component_el_option, {
43001
- key: item[__props.detail.componentParams.keyField],
43002
+ key: item[(_a3 = __props.detail.componentParams) == null ? void 0 : _a3.keyField],
43002
43003
  disabled: item.disabled === true,
43003
- label: item[__props.detail.componentParams.labelField],
43004
- value: item[__props.detail.componentParams.valueField]
43004
+ label: item[(_b = __props.detail.componentParams) == null ? void 0 : _b.labelField],
43005
+ value: item,
43006
+ style: normalizeStyle({ width: ((_c = __props.detail.componentParams) == null ? void 0 : _c.optionWidth) ? __props.detail.componentParams.optionWidth + "px" : "100%" })
43005
43007
  }, {
43006
43008
  default: withCtx(() => [
43007
43009
  createVNode(_component_el_row, null, {
43008
43010
  default: withCtx(() => {
43009
- var _a3;
43011
+ var _a4;
43010
43012
  return [
43011
- (openBlock(true), createElementBlock(Fragment, null, renderList((_a3 = __props.detail.componentParams) == null ? void 0 : _a3.optionSlots, (optionSlot) => {
43013
+ (openBlock(true), createElementBlock(Fragment, null, renderList((_a4 = __props.detail.componentParams) == null ? void 0 : _a4.optionSlots, (optionSlot) => {
43012
43014
  return openBlock(), createBlock(_component_el_col, {
43013
43015
  key: optionSlot.field,
43014
43016
  span: optionSlot.span
@@ -43025,7 +43027,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
43025
43027
  }, 1024)
43026
43028
  ]),
43027
43029
  _: 2
43028
- }, 1032, ["disabled", "label", "value"]);
43030
+ }, 1032, ["disabled", "label", "value", "style"]);
43029
43031
  }), 128))
43030
43032
  ];
43031
43033
  }),
@@ -43125,18 +43127,20 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
43125
43127
  ]),
43126
43128
  default: withCtx(() => [
43127
43129
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(optionsData), (item) => {
43130
+ var _a2, _b, _c;
43128
43131
  return openBlock(), createBlock(_component_el_option, {
43129
- key: item[__props.detail.componentParams.keyField],
43132
+ key: item[(_a2 = __props.detail.componentParams) == null ? void 0 : _a2.keyField],
43130
43133
  disabled: item.disabled === true,
43131
- label: item[__props.detail.componentParams.labelField],
43132
- value: item[__props.detail.componentParams.valueField]
43134
+ label: item[(_b = __props.detail.componentParams) == null ? void 0 : _b.labelField],
43135
+ value: item,
43136
+ style: normalizeStyle({ width: ((_c = __props.detail.componentParams) == null ? void 0 : _c.optionWidth) ? __props.detail.componentParams.optionWidth + "px" : "100%" })
43133
43137
  }, {
43134
43138
  default: withCtx(() => [
43135
43139
  createVNode(_component_el_row, null, {
43136
43140
  default: withCtx(() => {
43137
- var _a2;
43141
+ var _a3;
43138
43142
  return [
43139
- (openBlock(true), createElementBlock(Fragment, null, renderList((_a2 = __props.detail.componentParams) == null ? void 0 : _a2.optionSlots, (optionSlot) => {
43143
+ (openBlock(true), createElementBlock(Fragment, null, renderList((_a3 = __props.detail.componentParams) == null ? void 0 : _a3.optionSlots, (optionSlot) => {
43140
43144
  return openBlock(), createBlock(_component_el_col, {
43141
43145
  key: optionSlot.field,
43142
43146
  span: optionSlot.span
@@ -43153,7 +43157,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
43153
43157
  }, 1024)
43154
43158
  ]),
43155
43159
  _: 2
43156
- }, 1032, ["disabled", "label", "value"]);
43160
+ }, 1032, ["disabled", "label", "value", "style"]);
43157
43161
  }), 128))
43158
43162
  ]),
43159
43163
  _: 1