jky-component-lib 0.0.118 → 0.0.123

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.
@@ -1,14 +1,3 @@
1
- /* AMap 高德地图组件样式 */
2
- .jky-amap-container {
3
- /* 地图容器样式 */
4
- position: relative;
5
- overflow: hidden;
6
1
 
7
- /* 隐藏高德地图的 logo 和版权信息(注意:商业使用请遵守高德地图条款) */
8
- .amap-logo {
9
- display: none !important;
10
- }
11
- .amap-copyright {
12
- display: none !important;
13
- }
14
- }
2
+ /* 轨迹回放组件不需要额外样式 */
3
+ /* 所有样式通过 TailwindCSS 工具类或外部组件控制 */
@@ -1,7 +1,14 @@
1
+ /* AMap 高德地图组件样式 */
2
+ .jky-amap-container {
3
+ /* 地图容器样式 */
4
+ position: relative;
5
+ overflow: hidden;
1
6
 
2
- /* JkyAMarker 组件样式 - 参考高德官方示例 */
3
- .amap-icon img,
4
- .amap-marker-content img {
5
- width: 25px;
6
- height: 34px;
7
+ /* 隐藏高德地图的 logo 和版权信息(注意:商业使用请遵守高德地图条款) */
8
+ .amap-logo {
9
+ display: none !important;
10
+ }
11
+ .amap-copyright {
12
+ display: none !important;
13
+ }
7
14
  }
@@ -1,3 +1,7 @@
1
1
 
2
- /* 轨迹回放组件不需要额外样式 */
3
- /* 所有样式通过 TailwindCSS 工具类或外部组件控制 */
2
+ /* JkyAMarker 组件样式 - 参考高德官方示例 */
3
+ .amap-icon img,
4
+ .amap-marker-content img {
5
+ width: 25px;
6
+ height: 34px;
7
+ }
@@ -104,7 +104,124 @@ declare function getFormInstance(): ({
104
104
  type __VLS_PublicProps = {
105
105
  modelValue: Record<string, any>;
106
106
  } & __VLS_Props;
107
- declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
107
+ declare function __VLS_template(): {
108
+ attrs: Partial<{}>;
109
+ slots: Readonly<{
110
+ [key: string]: (props: {
111
+ model: Record<string, any>;
112
+ field: string;
113
+ }) => any;
114
+ }> & {
115
+ [key: string]: (props: {
116
+ model: Record<string, any>;
117
+ field: string;
118
+ }) => any;
119
+ };
120
+ refs: {
121
+ formRef: ({
122
+ $: import('vue').ComponentInternalInstance;
123
+ $data: {};
124
+ $props: {
125
+ readonly model?: Record<string, any> | undefined;
126
+ readonly rules?: import('element-plus').FormRules | undefined;
127
+ readonly labelPosition?: "left" | "right" | "top" | undefined;
128
+ readonly requireAsteriskPosition?: "left" | "right" | undefined;
129
+ readonly labelWidth?: string | number | undefined;
130
+ readonly labelSuffix?: string | undefined;
131
+ readonly inline?: boolean | undefined;
132
+ readonly inlineMessage?: boolean | undefined;
133
+ readonly statusIcon?: boolean | undefined;
134
+ readonly showMessage?: boolean | undefined;
135
+ readonly validateOnRuleChange?: boolean | undefined;
136
+ readonly hideRequiredAsterisk?: boolean | undefined;
137
+ readonly scrollToError?: boolean | undefined;
138
+ readonly scrollIntoViewOptions?: (ScrollIntoViewOptions | boolean) | undefined;
139
+ readonly size?: import('element-plus').ComponentSize | undefined;
140
+ readonly disabled?: boolean | undefined;
141
+ readonly onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
142
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
143
+ $attrs: import('vue').Attrs;
144
+ $refs: {
145
+ [x: string]: unknown;
146
+ };
147
+ $slots: Readonly<{
148
+ [name: string]: globalThis.Slot | undefined;
149
+ }>;
150
+ $root: ComponentPublicInstance | null;
151
+ $parent: ComponentPublicInstance | null;
152
+ $host: Element | null;
153
+ $emit: (event: "validate", prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
154
+ $el: any;
155
+ $options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').FormProps> & Readonly<{
156
+ onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
157
+ }>, {
158
+ validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
159
+ validateField: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
160
+ resetFields: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>) => void;
161
+ clearValidate: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>) => void;
162
+ scrollToField: (prop: import('element-plus').FormItemProp) => void;
163
+ getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
164
+ fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
165
+ setInitialValues: (initModel: Record<string, any>) => void;
166
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
167
+ validate: (prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => void;
168
+ }, string, {
169
+ scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
170
+ labelWidth: string | number;
171
+ labelPosition: "left" | "right" | "top";
172
+ requireAsteriskPosition: "left" | "right";
173
+ labelSuffix: string;
174
+ showMessage: boolean;
175
+ validateOnRuleChange: boolean;
176
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
177
+ beforeCreate?: (() => void) | (() => void)[];
178
+ created?: (() => void) | (() => void)[];
179
+ beforeMount?: (() => void) | (() => void)[];
180
+ mounted?: (() => void) | (() => void)[];
181
+ beforeUpdate?: (() => void) | (() => void)[];
182
+ updated?: (() => void) | (() => void)[];
183
+ activated?: (() => void) | (() => void)[];
184
+ deactivated?: (() => void) | (() => void)[];
185
+ beforeDestroy?: (() => void) | (() => void)[];
186
+ beforeUnmount?: (() => void) | (() => void)[];
187
+ destroyed?: (() => void) | (() => void)[];
188
+ unmounted?: (() => void) | (() => void)[];
189
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
190
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
191
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
192
+ };
193
+ $forceUpdate: () => void;
194
+ $nextTick: typeof import('vue').nextTick;
195
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
196
+ } & Readonly<{
197
+ scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
198
+ labelWidth: string | number;
199
+ labelPosition: "left" | "right" | "top";
200
+ requireAsteriskPosition: "left" | "right";
201
+ labelSuffix: string;
202
+ showMessage: boolean;
203
+ validateOnRuleChange: boolean;
204
+ }> & Omit<Readonly<import('element-plus').FormProps> & Readonly<{
205
+ onValidate?: ((prop: import('element-plus').FormItemProp, isValid: boolean, message: string) => any) | undefined;
206
+ }>, "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "showMessage" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validate" | "validateField" | "resetFields" | "clearValidate" | "scrollToField" | "getField" | "fields" | "setInitialValues"> & {
207
+ validate: (callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
208
+ validateField: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>, callback?: import('element-plus').FormValidateCallback) => import('element-plus').FormValidationResult;
209
+ resetFields: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>) => void;
210
+ clearValidate: (props?: import('element-plus/es/utils').Arrayable<import('element-plus').FormItemProp>) => void;
211
+ scrollToField: (prop: import('element-plus').FormItemProp) => void;
212
+ getField: (prop: import('element-plus').FormItemProp) => import('element-plus').FormItemContext | undefined;
213
+ fields: import('vue').Reactive<import('element-plus').FormItemContext[]>;
214
+ setInitialValues: (initModel: Record<string, any>) => void;
215
+ } & {} & import('vue').ComponentCustomProperties & {} & {
216
+ $slots: {
217
+ default?: (props: {}) => any;
218
+ };
219
+ }) | null;
220
+ };
221
+ rootEl: any;
222
+ };
223
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
224
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
108
225
  validate: typeof validate;
109
226
  clearValidate: typeof clearValidate;
110
227
  getFormInstance: typeof getFormInstance;
@@ -335,4 +452,10 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
335
452
  };
336
453
  }) | null;
337
454
  }, any>;
455
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
338
456
  export default _default;
457
+ type __VLS_WithTemplateSlots<T, S> = T & {
458
+ new (): {
459
+ $slots: S;
460
+ };
461
+ };
@@ -37,7 +37,7 @@ var __async = (__this, __arguments, generator) => {
37
37
  step((generator = generator.apply(__this, __arguments)).next());
38
38
  });
39
39
  };
40
- import { defineComponent, useModel, provide, useAttrs, ref, computed, watch, resolveComponent, openBlock, createBlock, unref, mergeProps, withCtx, createElementBlock, Fragment, renderList, createElementVNode, normalizeClass, createTextVNode, toDisplayString, createCommentVNode, createVNode, mergeModels } from "vue";
40
+ import { defineComponent, useSlots, useModel, provide, useAttrs, ref, computed, watch, resolveComponent, openBlock, createBlock, unref, mergeProps, withCtx, createElementBlock, Fragment, renderList, renderSlot, createElementVNode, normalizeClass, createTextVNode, toDisplayString, createCommentVNode, createVNode, mergeModels } from "vue";
41
41
  import { ElForm } from "element-plus";
42
42
  import _sfc_main$1 from "./FormItem.vue.js";
43
43
  /* empty css */
@@ -71,6 +71,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
71
71
  setup(__props, { expose: __expose, emit: __emit }) {
72
72
  const props = __props;
73
73
  const emit = __emit;
74
+ useSlots();
74
75
  const modelValue = useModel(__props, "modelValue");
75
76
  provide("formModel", modelValue);
76
77
  const attrs = useAttrs();
@@ -154,8 +155,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
154
155
  }
155
156
  });
156
157
  return (_ctx, _cache) => {
157
- const _component_ElButton = resolveComponent("ElButton");
158
158
  const _component_ElFormItem = resolveComponent("ElFormItem");
159
+ const _component_ElButton = resolveComponent("ElButton");
159
160
  return openBlock(), createBlock(unref(ElForm), mergeProps({
160
161
  ref_key: "formRef",
161
162
  ref: formRef,
@@ -165,13 +166,31 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
165
166
  }, innerProps.value), {
166
167
  default: withCtx(() => [
167
168
  (openBlock(true), createElementBlock(Fragment, null, renderList(_visibleItems.value, (item) => {
168
- return openBlock(), createBlock(_sfc_main$1, {
169
- key: item.field,
170
- field: item.field,
171
- config: item,
172
- model: modelValue.value,
173
- disabled: __props.disabled
174
- }, null, 8, ["field", "config", "model", "disabled"]);
169
+ return openBlock(), createElementBlock(Fragment, {
170
+ key: item.field
171
+ }, [
172
+ item.slot ? (openBlock(), createBlock(_component_ElFormItem, {
173
+ key: 0,
174
+ label: item.label,
175
+ prop: item.field,
176
+ "label-width": item.labelWidth,
177
+ disabled: __props.disabled
178
+ }, {
179
+ default: withCtx(() => [
180
+ renderSlot(_ctx.$slots, item.slot, {
181
+ model: modelValue.value,
182
+ field: item.field
183
+ })
184
+ ]),
185
+ _: 2
186
+ }, 1032, ["label", "prop", "label-width", "disabled"])) : (openBlock(), createBlock(_sfc_main$1, {
187
+ key: 1,
188
+ field: item.field,
189
+ config: item,
190
+ model: modelValue.value,
191
+ disabled: __props.disabled
192
+ }, null, 8, ["field", "config", "model", "disabled"]))
193
+ ], 64);
175
194
  }), 128)),
176
195
  _showMoreButton.value || props.showFooter ? (openBlock(), createBlock(_component_ElFormItem, {
177
196
  key: 0,
@@ -221,7 +240,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
221
240
  _: 1
222
241
  })) : createCommentVNode("", true)
223
242
  ]),
224
- _: 1
243
+ _: 3
225
244
  }, 16, ["model", "inline"]);
226
245
  };
227
246
  }
@@ -51,7 +51,7 @@ var __async = (__this, __arguments, generator) => {
51
51
  };
52
52
  import { defineComponent, ref, watch, computed, openBlock, createElementBlock, createBlock, unref, mergeProps, withCtx, createElementVNode, resolveDynamicComponent, Fragment, createTextVNode, toDisplayString, createCommentVNode, createSlots, h } from "vue";
53
53
  import { Plus, CircleCloseFilled, CircleCheckFilled, WarningFilled, QuestionFilled } from "@element-plus/icons-vue";
54
- import { ElFormItem, ElDivider, ElInput, ElUpload, ElButton, ElIcon, ElInputNumber, ElRate, ElTransfer, ElSelectV2, ElMention, ElInputTag, ElColorPickerPanel, ElColorPicker, ElTreeSelect, ElCascader, ElSlider, ElSwitch, ElCheckboxGroup, ElCheckbox, ElRadioGroup, ElRadio, ElTimeSelect, ElTimePicker, ElDatePicker, ElAutocomplete, ElSelect, ElTooltip } from "element-plus";
54
+ import { ElFormItem, ElDivider, ElInput, ElUpload, ElButton, ElIcon, ElInputNumber, ElRate, ElTransfer, ElSelectV2, ElMention, ElInputTag, ElColorPickerPanel, ElColorPicker, ElTreeSelect, ElCascader, ElSlider, ElSwitch, ElCheckboxGroup, ElCheckbox, ElRadioGroup, ElRadioButton, ElRadio, ElTimeSelect, ElTimePicker, ElDatePicker, ElAutocomplete, ElSelect, ElTooltip } from "element-plus";
55
55
  import { JkyAddInput } from "../add-input/index.js";
56
56
  import { JkyCodeMirrorEditor } from "../code-mirror-editor/index.js";
57
57
  import { JkyRichEditor } from "../rich-editor/index.js";
@@ -224,49 +224,63 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
224
224
  }, componentProps.value), {
225
225
  "class": ["w-full min-w-25", componentProps.value.class]
226
226
  });
227
+ const { slots: componentSlots } = componentProps.value;
228
+ const _componentSlotsObj = typeof componentSlots === "function" ? componentSlots({
229
+ model: props.model,
230
+ field: props.field,
231
+ $form: props.model
232
+ }) : componentSlots;
227
233
  switch (type) {
228
234
  case "input":
229
- return h(ElInput, __spreadProps(__spreadValues({}, commonProps), {
230
- placeholder: commonProps.placeholder || "请输入",
231
- prefixIcon: props.config.prefixIcon,
232
- suffixIcon: props.config.suffixIcon
233
- }));
235
+ return h(
236
+ ElInput,
237
+ __spreadProps(__spreadValues({}, commonProps), {
238
+ placeholder: commonProps.placeholder || "请输入",
239
+ prefixIcon: props.config.prefixIcon,
240
+ suffixIcon: props.config.suffixIcon
241
+ }),
242
+ _componentSlotsObj
243
+ );
234
244
  case "textarea":
235
- return h(ElInput, __spreadProps(__spreadValues({}, commonProps), {
236
- placeholder: commonProps.placeholder || "请输入",
237
- type: "textarea",
238
- rows: 4
239
- }));
245
+ return h(
246
+ ElInput,
247
+ __spreadProps(__spreadValues({}, commonProps), {
248
+ placeholder: commonProps.placeholder || "请输入",
249
+ type: "textarea",
250
+ rows: 4
251
+ }),
252
+ _componentSlotsObj
253
+ );
240
254
  case "select": {
241
255
  const selectProps = __spreadValues(__spreadProps(__spreadValues({}, commonProps), {
242
256
  placeholder: commonProps.placeholder || "请选择"
243
257
  }), componentProps.value);
244
- return h(ElSelect, selectProps);
258
+ return h(ElSelect, selectProps, _componentSlotsObj);
245
259
  }
246
260
  case "autocomplete": {
247
261
  const autocompleteProps = __spreadValues(__spreadProps(__spreadValues({}, commonProps), {
248
262
  placeholder: commonProps.placeholder || "请输入"
249
263
  }), componentProps.value);
250
- return h(ElAutocomplete, autocompleteProps);
264
+ return h(ElAutocomplete, autocompleteProps, _componentSlotsObj);
251
265
  }
252
266
  case "datepicker":
253
- return h(ElDatePicker, __spreadValues(__spreadValues({}, commonProps), componentProps.value));
267
+ return h(ElDatePicker, __spreadValues(__spreadValues({}, commonProps), componentProps.value), _componentSlotsObj);
254
268
  case "datetime-picker":
255
- return h(ElDatePicker, __spreadValues(__spreadValues({}, commonProps), componentProps.value));
269
+ return h(ElDatePicker, __spreadValues(__spreadValues({}, commonProps), componentProps.value), _componentSlotsObj);
256
270
  case "time-picker":
257
- return h(ElTimePicker, __spreadValues(__spreadValues({}, commonProps), componentProps.value));
271
+ return h(ElTimePicker, __spreadValues(__spreadValues({}, commonProps), componentProps.value), _componentSlotsObj);
258
272
  case "time-select":
259
- return h(ElTimeSelect, __spreadValues(__spreadValues({}, commonProps), componentProps.value));
273
+ return h(ElTimeSelect, __spreadValues(__spreadValues({}, commonProps), componentProps.value), _componentSlotsObj);
260
274
  case "radio-group": {
261
275
  const radioGroupProps = __spreadValues(__spreadValues({}, commonProps), componentProps.value);
262
276
  return h(
263
277
  ElRadioGroup,
264
278
  radioGroupProps,
265
- {
279
+ __spreadValues({
266
280
  default: () => {
267
281
  const options = componentProps.value.options || props.config.options || [];
268
282
  return options.map(
269
- (option) => h(ElRadio, {
283
+ (option) => h(radioGroupProps.button ? ElRadioButton : ElRadio, {
270
284
  key: option.value,
271
285
  value: option.value,
272
286
  disabled: option.disabled
@@ -275,7 +289,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
275
289
  })
276
290
  );
277
291
  }
278
- }
292
+ }, _componentSlotsObj)
279
293
  );
280
294
  }
281
295
  case "checkbox-group": {
@@ -286,7 +300,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
286
300
  return h(
287
301
  ElCheckboxGroup,
288
302
  checkboxGroupProps,
289
- {
303
+ __spreadValues({
290
304
  default: () => {
291
305
  const options = componentProps.value.options || props.config.options || [];
292
306
  return options.map(
@@ -299,30 +313,30 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
299
313
  })
300
314
  );
301
315
  }
302
- }
316
+ }, _componentSlotsObj)
303
317
  );
304
318
  }
305
319
  case "switch":
306
- return h(ElSwitch, __spreadValues(__spreadValues({}, commonProps), componentProps.value));
320
+ return h(ElSwitch, __spreadValues(__spreadValues({}, commonProps), componentProps.value), _componentSlotsObj);
307
321
  case "slider":
308
- return h(ElSlider, __spreadValues(__spreadValues({}, commonProps), componentProps.value));
322
+ return h(ElSlider, __spreadValues(__spreadValues({}, commonProps), componentProps.value), _componentSlotsObj);
309
323
  case "cascader": {
310
324
  const cascaderProps = __spreadValues(__spreadProps(__spreadValues({}, commonProps), {
311
325
  placeholder: commonProps.placeholder || "请选择"
312
326
  }), componentProps.value);
313
- return h(ElCascader, cascaderProps);
327
+ return h(ElCascader, cascaderProps, _componentSlotsObj);
314
328
  }
315
329
  case "tree-select": {
316
330
  const treeSelectProps = __spreadValues(__spreadProps(__spreadValues({}, commonProps), {
317
331
  placeholder: commonProps.placeholder || "请选择"
318
332
  }), componentProps.value);
319
- return h(ElTreeSelect, treeSelectProps);
333
+ return h(ElTreeSelect, treeSelectProps, _componentSlotsObj);
320
334
  }
321
335
  case "color-picker":
322
- return h(ElColorPicker, __spreadValues(__spreadValues({}, commonProps), componentProps.value));
336
+ return h(ElColorPicker, __spreadValues(__spreadValues({}, commonProps), componentProps.value), _componentSlotsObj);
323
337
  // 颜色选择器面板
324
338
  case "color-picker-panel":
325
- return h(ElColorPickerPanel, __spreadValues(__spreadValues({}, commonProps), componentProps.value));
339
+ return h(ElColorPickerPanel, __spreadValues(__spreadValues({}, commonProps), componentProps.value), _componentSlotsObj);
326
340
  // 标签输入框
327
341
  case "input-tag": {
328
342
  const inputTagProps = __spreadValues(__spreadProps(__spreadValues({}, commonProps), {
@@ -331,7 +345,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
331
345
  props.model[props.field] = val;
332
346
  }
333
347
  }), componentProps.value);
334
- return h(ElInputTag, inputTagProps);
348
+ return h(ElInputTag, inputTagProps, _componentSlotsObj);
335
349
  }
336
350
  // 提及组件
337
351
  case "mention": {
@@ -341,7 +355,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
341
355
  props.model[props.field] = val;
342
356
  }
343
357
  }), componentProps.value);
344
- return h(ElMention, mentionProps);
358
+ return h(ElMention, mentionProps, _componentSlotsObj);
345
359
  }
346
360
  // 虚拟化选择器
347
361
  case "select-v2": {
@@ -352,7 +366,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
352
366
  },
353
367
  "options": componentProps.value.options || []
354
368
  }), componentProps.value);
355
- return h(ElSelectV2, selectV2Props);
369
+ return h(ElSelectV2, selectV2Props, _componentSlotsObj);
356
370
  }
357
371
  // 穿梭框
358
372
  case "transfer": {
@@ -363,15 +377,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
363
377
  },
364
378
  "data": componentProps.value.data || []
365
379
  }), componentProps.value);
366
- return h(ElTransfer, transferProps);
380
+ return h(ElTransfer, transferProps, _componentSlotsObj);
367
381
  }
368
382
  // 表格选择器
369
383
  case "select-table":
370
384
  return h(_sfc_main$1, __spreadProps(__spreadValues(__spreadValues({}, commonProps), componentProps.value), {
371
385
  labelWidth: formItemProps.value.labelWidth
372
- }));
386
+ }), _componentSlotsObj);
373
387
  case "rate":
374
- return h(ElRate, __spreadValues(__spreadValues({}, commonProps), componentProps.value));
388
+ return h(ElRate, __spreadValues(__spreadValues({}, commonProps), componentProps.value), _componentSlotsObj);
375
389
  case "input-number": {
376
390
  const numberModelValue = modelValue.value === "" || modelValue.value === null || modelValue.value === void 0 ? null : Number(modelValue.value);
377
391
  const inputNumberProps = __spreadValues(__spreadProps(__spreadValues({}, commonProps), {
@@ -381,7 +395,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
381
395
  props.model[props.field] = val;
382
396
  }
383
397
  }), componentProps.value);
384
- return h(ElInputNumber, inputNumberProps);
398
+ return h(ElInputNumber, inputNumberProps, _componentSlotsObj);
385
399
  }
386
400
  // 图片上传
387
401
  case "image-upload": {
@@ -393,18 +407,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
393
407
  "onRemove": componentProps.value.onRemove
394
408
  }), componentProps.value);
395
409
  if (uploadProps["list-type"] === "picture-card") {
396
- return h(ElUpload, uploadProps, {
410
+ return h(ElUpload, uploadProps, __spreadValues({
397
411
  default: () => h("div", { class: "el-upload__picture-card-wrapper" }, [
398
412
  h(ElIcon, { size: 24 }, { default: () => h(Plus) })
399
413
  ])
400
- });
414
+ }, _componentSlotsObj));
401
415
  }
402
416
  if (uploadProps["list-type"] === "picture") {
403
- return h(ElUpload, uploadProps, {
417
+ return h(ElUpload, uploadProps, __spreadValues({
404
418
  default: () => h(ElButton, { type: "primary" }, { default: () => "点击上传" })
405
- });
419
+ }, _componentSlotsObj));
406
420
  }
407
- return h(ElUpload, uploadProps);
421
+ return h(ElUpload, uploadProps, _componentSlotsObj);
408
422
  }
409
423
  // 文件上传
410
424
  case "file-upload": {
@@ -416,26 +430,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
416
430
  "onRemove": componentProps.value.onRemove
417
431
  }), componentProps.value);
418
432
  if (uploadProps["list-type"] === "text") {
419
- return h(ElUpload, uploadProps, {
433
+ return h(ElUpload, uploadProps, __spreadValues({
420
434
  default: () => h(ElButton, { type: "primary" }, { default: () => "点击上传" })
421
- });
435
+ }, _componentSlotsObj));
422
436
  }
423
- return h(ElUpload, uploadProps);
437
+ return h(ElUpload, uploadProps, _componentSlotsObj);
424
438
  }
425
439
  // CodeMirror 编辑器
426
440
  case "code-mirror-editor": {
427
441
  const codeMirrorProps = __spreadValues(__spreadValues({}, commonProps), componentProps.value);
428
- return h(JkyCodeMirrorEditor, codeMirrorProps);
442
+ return h(JkyCodeMirrorEditor, codeMirrorProps, _componentSlotsObj);
429
443
  }
430
444
  // RichEditor 富文本编辑器
431
445
  case "rich-editor": {
432
446
  const richEditorProps = __spreadValues(__spreadValues({}, commonProps), componentProps.value);
433
- return h(JkyRichEditor, richEditorProps);
447
+ return h(JkyRichEditor, richEditorProps, _componentSlotsObj);
434
448
  }
435
449
  // AddInput 动态键值对输入框
436
450
  case "add-input": {
437
451
  const addInputProps = __spreadValues(__spreadValues({}, commonProps), componentProps.value);
438
- return h(JkyAddInput, addInputProps);
452
+ return h(JkyAddInput, addInputProps, _componentSlotsObj);
439
453
  }
440
454
  case "custom":
441
455
  return (_b = (_a = props.config).render) == null ? void 0 : _b.call(_a, commonProps);
@@ -83,7 +83,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
83
83
  modelValue.value = false;
84
84
  }
85
85
  function handleConfirm() {
86
- handleClose();
87
86
  emit("confirm");
88
87
  }
89
88
  function handleCancel() {
@@ -1,4 +1,4 @@
1
- const version = "0.0.118";
1
+ const version = "0.0.123";
2
2
  export {
3
3
  version
4
4
  };