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.
- package/dist/es/amap/style.css +2 -13
- package/dist/es/amap/style2.css +12 -5
- package/dist/es/amap/style3.css +6 -2
- package/dist/es/form/Form.vue.d.ts +124 -1
- package/dist/es/form/Form.vue.js +29 -10
- package/dist/es/form/FormItem.vue.js +60 -46
- package/dist/es/modal/Modal.vue.js +0 -1
- package/dist/es/package.json.js +1 -1
- package/dist/es/page-table/PageTable.vue.d.ts +797 -661
- package/dist/es/page-table-v2/PageTableV2.vue.d.ts +376 -308
- package/dist/lib/amap/style.css +2 -13
- package/dist/lib/amap/style2.css +12 -5
- package/dist/lib/amap/style3.css +6 -2
- package/dist/lib/form/Form.vue.d.ts +124 -1
- package/dist/lib/form/Form.vue.js +28 -9
- package/dist/lib/form/FormItem.vue.js +59 -45
- package/dist/lib/modal/Modal.vue.js +0 -1
- package/dist/lib/package.json.js +1 -1
- package/dist/lib/page-table/PageTable.vue.d.ts +797 -661
- package/dist/lib/page-table-v2/PageTableV2.vue.d.ts +376 -308
- package/package.json +1 -1
package/dist/lib/amap/style.css
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/* AMap 高德地图组件样式 */
|
|
2
|
-
.jky-amap-container {
|
|
3
|
-
/* 地图容器样式 */
|
|
4
|
-
position: relative;
|
|
5
|
-
overflow: hidden;
|
|
6
1
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
display: none !important;
|
|
10
|
-
}
|
|
11
|
-
.amap-copyright {
|
|
12
|
-
display: none !important;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
2
|
+
/* 轨迹回放组件不需要额外样式 */
|
|
3
|
+
/* 所有样式通过 TailwindCSS 工具类或外部组件控制 */
|
package/dist/lib/amap/style2.css
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
|
+
/* AMap 高德地图组件样式 */
|
|
2
|
+
.jky-amap-container {
|
|
3
|
+
/* 地图容器样式 */
|
|
4
|
+
position: relative;
|
|
5
|
+
overflow: hidden;
|
|
1
6
|
|
|
2
|
-
/*
|
|
3
|
-
.amap-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
+
/* 隐藏高德地图的 logo 和版权信息(注意:商业使用请遵守高德地图条款) */
|
|
8
|
+
.amap-logo {
|
|
9
|
+
display: none !important;
|
|
10
|
+
}
|
|
11
|
+
.amap-copyright {
|
|
12
|
+
display: none !important;
|
|
13
|
+
}
|
|
7
14
|
}
|
package/dist/lib/amap/style3.css
CHANGED
|
@@ -104,7 +104,124 @@ declare function getFormInstance(): ({
|
|
|
104
104
|
type __VLS_PublicProps = {
|
|
105
105
|
modelValue: Record<string, any>;
|
|
106
106
|
} & __VLS_Props;
|
|
107
|
-
declare
|
|
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
|
+
};
|
|
@@ -73,6 +73,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
73
73
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
74
74
|
const props = __props;
|
|
75
75
|
const emit = __emit;
|
|
76
|
+
vue.useSlots();
|
|
76
77
|
const modelValue = vue.useModel(__props, "modelValue");
|
|
77
78
|
vue.provide("formModel", modelValue);
|
|
78
79
|
const attrs = vue.useAttrs();
|
|
@@ -156,8 +157,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
156
157
|
}
|
|
157
158
|
});
|
|
158
159
|
return (_ctx, _cache) => {
|
|
159
|
-
const _component_ElButton = vue.resolveComponent("ElButton");
|
|
160
160
|
const _component_ElFormItem = vue.resolveComponent("ElFormItem");
|
|
161
|
+
const _component_ElButton = vue.resolveComponent("ElButton");
|
|
161
162
|
return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElForm), vue.mergeProps({
|
|
162
163
|
ref_key: "formRef",
|
|
163
164
|
ref: formRef,
|
|
@@ -167,13 +168,31 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
167
168
|
}, innerProps.value), {
|
|
168
169
|
default: vue.withCtx(() => [
|
|
169
170
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_visibleItems.value, (item) => {
|
|
170
|
-
return vue.openBlock(), vue.
|
|
171
|
-
key: item.field
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
171
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
172
|
+
key: item.field
|
|
173
|
+
}, [
|
|
174
|
+
item.slot ? (vue.openBlock(), vue.createBlock(_component_ElFormItem, {
|
|
175
|
+
key: 0,
|
|
176
|
+
label: item.label,
|
|
177
|
+
prop: item.field,
|
|
178
|
+
"label-width": item.labelWidth,
|
|
179
|
+
disabled: __props.disabled
|
|
180
|
+
}, {
|
|
181
|
+
default: vue.withCtx(() => [
|
|
182
|
+
vue.renderSlot(_ctx.$slots, item.slot, {
|
|
183
|
+
model: modelValue.value,
|
|
184
|
+
field: item.field
|
|
185
|
+
})
|
|
186
|
+
]),
|
|
187
|
+
_: 2
|
|
188
|
+
}, 1032, ["label", "prop", "label-width", "disabled"])) : (vue.openBlock(), vue.createBlock(FormItem_vue_vue_type_script_setup_true_lang.default, {
|
|
189
|
+
key: 1,
|
|
190
|
+
field: item.field,
|
|
191
|
+
config: item,
|
|
192
|
+
model: modelValue.value,
|
|
193
|
+
disabled: __props.disabled
|
|
194
|
+
}, null, 8, ["field", "config", "model", "disabled"]))
|
|
195
|
+
], 64);
|
|
177
196
|
}), 128)),
|
|
178
197
|
_showMoreButton.value || props.showFooter ? (vue.openBlock(), vue.createBlock(_component_ElFormItem, {
|
|
179
198
|
key: 0,
|
|
@@ -223,7 +242,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
223
242
|
_: 1
|
|
224
243
|
})) : vue.createCommentVNode("", true)
|
|
225
244
|
]),
|
|
226
|
-
_:
|
|
245
|
+
_: 3
|
|
227
246
|
}, 16, ["model", "inline"]);
|
|
228
247
|
};
|
|
229
248
|
}
|
|
@@ -226,49 +226,63 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
226
226
|
}, componentProps.value), {
|
|
227
227
|
"class": ["w-full min-w-25", componentProps.value.class]
|
|
228
228
|
});
|
|
229
|
+
const { slots: componentSlots } = componentProps.value;
|
|
230
|
+
const _componentSlotsObj = typeof componentSlots === "function" ? componentSlots({
|
|
231
|
+
model: props.model,
|
|
232
|
+
field: props.field,
|
|
233
|
+
$form: props.model
|
|
234
|
+
}) : componentSlots;
|
|
229
235
|
switch (type) {
|
|
230
236
|
case "input":
|
|
231
|
-
return vue.h(
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
237
|
+
return vue.h(
|
|
238
|
+
ElementPlus.ElInput,
|
|
239
|
+
__spreadProps(__spreadValues({}, commonProps), {
|
|
240
|
+
placeholder: commonProps.placeholder || "请输入",
|
|
241
|
+
prefixIcon: props.config.prefixIcon,
|
|
242
|
+
suffixIcon: props.config.suffixIcon
|
|
243
|
+
}),
|
|
244
|
+
_componentSlotsObj
|
|
245
|
+
);
|
|
236
246
|
case "textarea":
|
|
237
|
-
return vue.h(
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
247
|
+
return vue.h(
|
|
248
|
+
ElementPlus.ElInput,
|
|
249
|
+
__spreadProps(__spreadValues({}, commonProps), {
|
|
250
|
+
placeholder: commonProps.placeholder || "请输入",
|
|
251
|
+
type: "textarea",
|
|
252
|
+
rows: 4
|
|
253
|
+
}),
|
|
254
|
+
_componentSlotsObj
|
|
255
|
+
);
|
|
242
256
|
case "select": {
|
|
243
257
|
const selectProps = __spreadValues(__spreadProps(__spreadValues({}, commonProps), {
|
|
244
258
|
placeholder: commonProps.placeholder || "请选择"
|
|
245
259
|
}), componentProps.value);
|
|
246
|
-
return vue.h(ElementPlus.ElSelect, selectProps);
|
|
260
|
+
return vue.h(ElementPlus.ElSelect, selectProps, _componentSlotsObj);
|
|
247
261
|
}
|
|
248
262
|
case "autocomplete": {
|
|
249
263
|
const autocompleteProps = __spreadValues(__spreadProps(__spreadValues({}, commonProps), {
|
|
250
264
|
placeholder: commonProps.placeholder || "请输入"
|
|
251
265
|
}), componentProps.value);
|
|
252
|
-
return vue.h(ElementPlus.ElAutocomplete, autocompleteProps);
|
|
266
|
+
return vue.h(ElementPlus.ElAutocomplete, autocompleteProps, _componentSlotsObj);
|
|
253
267
|
}
|
|
254
268
|
case "datepicker":
|
|
255
|
-
return vue.h(ElementPlus.ElDatePicker, __spreadValues(__spreadValues({}, commonProps), componentProps.value));
|
|
269
|
+
return vue.h(ElementPlus.ElDatePicker, __spreadValues(__spreadValues({}, commonProps), componentProps.value), _componentSlotsObj);
|
|
256
270
|
case "datetime-picker":
|
|
257
|
-
return vue.h(ElementPlus.ElDatePicker, __spreadValues(__spreadValues({}, commonProps), componentProps.value));
|
|
271
|
+
return vue.h(ElementPlus.ElDatePicker, __spreadValues(__spreadValues({}, commonProps), componentProps.value), _componentSlotsObj);
|
|
258
272
|
case "time-picker":
|
|
259
|
-
return vue.h(ElementPlus.ElTimePicker, __spreadValues(__spreadValues({}, commonProps), componentProps.value));
|
|
273
|
+
return vue.h(ElementPlus.ElTimePicker, __spreadValues(__spreadValues({}, commonProps), componentProps.value), _componentSlotsObj);
|
|
260
274
|
case "time-select":
|
|
261
|
-
return vue.h(ElementPlus.ElTimeSelect, __spreadValues(__spreadValues({}, commonProps), componentProps.value));
|
|
275
|
+
return vue.h(ElementPlus.ElTimeSelect, __spreadValues(__spreadValues({}, commonProps), componentProps.value), _componentSlotsObj);
|
|
262
276
|
case "radio-group": {
|
|
263
277
|
const radioGroupProps = __spreadValues(__spreadValues({}, commonProps), componentProps.value);
|
|
264
278
|
return vue.h(
|
|
265
279
|
ElementPlus.ElRadioGroup,
|
|
266
280
|
radioGroupProps,
|
|
267
|
-
{
|
|
281
|
+
__spreadValues({
|
|
268
282
|
default: () => {
|
|
269
283
|
const options = componentProps.value.options || props.config.options || [];
|
|
270
284
|
return options.map(
|
|
271
|
-
(option) => vue.h(ElementPlus.ElRadio, {
|
|
285
|
+
(option) => vue.h(radioGroupProps.button ? ElementPlus.ElRadioButton : ElementPlus.ElRadio, {
|
|
272
286
|
key: option.value,
|
|
273
287
|
value: option.value,
|
|
274
288
|
disabled: option.disabled
|
|
@@ -277,7 +291,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
277
291
|
})
|
|
278
292
|
);
|
|
279
293
|
}
|
|
280
|
-
}
|
|
294
|
+
}, _componentSlotsObj)
|
|
281
295
|
);
|
|
282
296
|
}
|
|
283
297
|
case "checkbox-group": {
|
|
@@ -288,7 +302,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
288
302
|
return vue.h(
|
|
289
303
|
ElementPlus.ElCheckboxGroup,
|
|
290
304
|
checkboxGroupProps,
|
|
291
|
-
{
|
|
305
|
+
__spreadValues({
|
|
292
306
|
default: () => {
|
|
293
307
|
const options = componentProps.value.options || props.config.options || [];
|
|
294
308
|
return options.map(
|
|
@@ -301,30 +315,30 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
301
315
|
})
|
|
302
316
|
);
|
|
303
317
|
}
|
|
304
|
-
}
|
|
318
|
+
}, _componentSlotsObj)
|
|
305
319
|
);
|
|
306
320
|
}
|
|
307
321
|
case "switch":
|
|
308
|
-
return vue.h(ElementPlus.ElSwitch, __spreadValues(__spreadValues({}, commonProps), componentProps.value));
|
|
322
|
+
return vue.h(ElementPlus.ElSwitch, __spreadValues(__spreadValues({}, commonProps), componentProps.value), _componentSlotsObj);
|
|
309
323
|
case "slider":
|
|
310
|
-
return vue.h(ElementPlus.ElSlider, __spreadValues(__spreadValues({}, commonProps), componentProps.value));
|
|
324
|
+
return vue.h(ElementPlus.ElSlider, __spreadValues(__spreadValues({}, commonProps), componentProps.value), _componentSlotsObj);
|
|
311
325
|
case "cascader": {
|
|
312
326
|
const cascaderProps = __spreadValues(__spreadProps(__spreadValues({}, commonProps), {
|
|
313
327
|
placeholder: commonProps.placeholder || "请选择"
|
|
314
328
|
}), componentProps.value);
|
|
315
|
-
return vue.h(ElementPlus.ElCascader, cascaderProps);
|
|
329
|
+
return vue.h(ElementPlus.ElCascader, cascaderProps, _componentSlotsObj);
|
|
316
330
|
}
|
|
317
331
|
case "tree-select": {
|
|
318
332
|
const treeSelectProps = __spreadValues(__spreadProps(__spreadValues({}, commonProps), {
|
|
319
333
|
placeholder: commonProps.placeholder || "请选择"
|
|
320
334
|
}), componentProps.value);
|
|
321
|
-
return vue.h(ElementPlus.ElTreeSelect, treeSelectProps);
|
|
335
|
+
return vue.h(ElementPlus.ElTreeSelect, treeSelectProps, _componentSlotsObj);
|
|
322
336
|
}
|
|
323
337
|
case "color-picker":
|
|
324
|
-
return vue.h(ElementPlus.ElColorPicker, __spreadValues(__spreadValues({}, commonProps), componentProps.value));
|
|
338
|
+
return vue.h(ElementPlus.ElColorPicker, __spreadValues(__spreadValues({}, commonProps), componentProps.value), _componentSlotsObj);
|
|
325
339
|
// 颜色选择器面板
|
|
326
340
|
case "color-picker-panel":
|
|
327
|
-
return vue.h(ElementPlus.ElColorPickerPanel, __spreadValues(__spreadValues({}, commonProps), componentProps.value));
|
|
341
|
+
return vue.h(ElementPlus.ElColorPickerPanel, __spreadValues(__spreadValues({}, commonProps), componentProps.value), _componentSlotsObj);
|
|
328
342
|
// 标签输入框
|
|
329
343
|
case "input-tag": {
|
|
330
344
|
const inputTagProps = __spreadValues(__spreadProps(__spreadValues({}, commonProps), {
|
|
@@ -333,7 +347,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
333
347
|
props.model[props.field] = val;
|
|
334
348
|
}
|
|
335
349
|
}), componentProps.value);
|
|
336
|
-
return vue.h(ElementPlus.ElInputTag, inputTagProps);
|
|
350
|
+
return vue.h(ElementPlus.ElInputTag, inputTagProps, _componentSlotsObj);
|
|
337
351
|
}
|
|
338
352
|
// 提及组件
|
|
339
353
|
case "mention": {
|
|
@@ -343,7 +357,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
343
357
|
props.model[props.field] = val;
|
|
344
358
|
}
|
|
345
359
|
}), componentProps.value);
|
|
346
|
-
return vue.h(ElementPlus.ElMention, mentionProps);
|
|
360
|
+
return vue.h(ElementPlus.ElMention, mentionProps, _componentSlotsObj);
|
|
347
361
|
}
|
|
348
362
|
// 虚拟化选择器
|
|
349
363
|
case "select-v2": {
|
|
@@ -354,7 +368,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
354
368
|
},
|
|
355
369
|
"options": componentProps.value.options || []
|
|
356
370
|
}), componentProps.value);
|
|
357
|
-
return vue.h(ElementPlus.ElSelectV2, selectV2Props);
|
|
371
|
+
return vue.h(ElementPlus.ElSelectV2, selectV2Props, _componentSlotsObj);
|
|
358
372
|
}
|
|
359
373
|
// 穿梭框
|
|
360
374
|
case "transfer": {
|
|
@@ -365,15 +379,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
365
379
|
},
|
|
366
380
|
"data": componentProps.value.data || []
|
|
367
381
|
}), componentProps.value);
|
|
368
|
-
return vue.h(ElementPlus.ElTransfer, transferProps);
|
|
382
|
+
return vue.h(ElementPlus.ElTransfer, transferProps, _componentSlotsObj);
|
|
369
383
|
}
|
|
370
384
|
// 表格选择器
|
|
371
385
|
case "select-table":
|
|
372
386
|
return vue.h(SelectTable_vue_vue_type_script_setup_true_lang.default, __spreadProps(__spreadValues(__spreadValues({}, commonProps), componentProps.value), {
|
|
373
387
|
labelWidth: formItemProps.value.labelWidth
|
|
374
|
-
}));
|
|
388
|
+
}), _componentSlotsObj);
|
|
375
389
|
case "rate":
|
|
376
|
-
return vue.h(ElementPlus.ElRate, __spreadValues(__spreadValues({}, commonProps), componentProps.value));
|
|
390
|
+
return vue.h(ElementPlus.ElRate, __spreadValues(__spreadValues({}, commonProps), componentProps.value), _componentSlotsObj);
|
|
377
391
|
case "input-number": {
|
|
378
392
|
const numberModelValue = modelValue.value === "" || modelValue.value === null || modelValue.value === void 0 ? null : Number(modelValue.value);
|
|
379
393
|
const inputNumberProps = __spreadValues(__spreadProps(__spreadValues({}, commonProps), {
|
|
@@ -383,7 +397,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
383
397
|
props.model[props.field] = val;
|
|
384
398
|
}
|
|
385
399
|
}), componentProps.value);
|
|
386
|
-
return vue.h(ElementPlus.ElInputNumber, inputNumberProps);
|
|
400
|
+
return vue.h(ElementPlus.ElInputNumber, inputNumberProps, _componentSlotsObj);
|
|
387
401
|
}
|
|
388
402
|
// 图片上传
|
|
389
403
|
case "image-upload": {
|
|
@@ -395,18 +409,18 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
395
409
|
"onRemove": componentProps.value.onRemove
|
|
396
410
|
}), componentProps.value);
|
|
397
411
|
if (uploadProps["list-type"] === "picture-card") {
|
|
398
|
-
return vue.h(ElementPlus.ElUpload, uploadProps, {
|
|
412
|
+
return vue.h(ElementPlus.ElUpload, uploadProps, __spreadValues({
|
|
399
413
|
default: () => vue.h("div", { class: "el-upload__picture-card-wrapper" }, [
|
|
400
414
|
vue.h(ElementPlus.ElIcon, { size: 24 }, { default: () => vue.h(iconsVue.Plus) })
|
|
401
415
|
])
|
|
402
|
-
});
|
|
416
|
+
}, _componentSlotsObj));
|
|
403
417
|
}
|
|
404
418
|
if (uploadProps["list-type"] === "picture") {
|
|
405
|
-
return vue.h(ElementPlus.ElUpload, uploadProps, {
|
|
419
|
+
return vue.h(ElementPlus.ElUpload, uploadProps, __spreadValues({
|
|
406
420
|
default: () => vue.h(ElementPlus.ElButton, { type: "primary" }, { default: () => "点击上传" })
|
|
407
|
-
});
|
|
421
|
+
}, _componentSlotsObj));
|
|
408
422
|
}
|
|
409
|
-
return vue.h(ElementPlus.ElUpload, uploadProps);
|
|
423
|
+
return vue.h(ElementPlus.ElUpload, uploadProps, _componentSlotsObj);
|
|
410
424
|
}
|
|
411
425
|
// 文件上传
|
|
412
426
|
case "file-upload": {
|
|
@@ -418,26 +432,26 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
418
432
|
"onRemove": componentProps.value.onRemove
|
|
419
433
|
}), componentProps.value);
|
|
420
434
|
if (uploadProps["list-type"] === "text") {
|
|
421
|
-
return vue.h(ElementPlus.ElUpload, uploadProps, {
|
|
435
|
+
return vue.h(ElementPlus.ElUpload, uploadProps, __spreadValues({
|
|
422
436
|
default: () => vue.h(ElementPlus.ElButton, { type: "primary" }, { default: () => "点击上传" })
|
|
423
|
-
});
|
|
437
|
+
}, _componentSlotsObj));
|
|
424
438
|
}
|
|
425
|
-
return vue.h(ElementPlus.ElUpload, uploadProps);
|
|
439
|
+
return vue.h(ElementPlus.ElUpload, uploadProps, _componentSlotsObj);
|
|
426
440
|
}
|
|
427
441
|
// CodeMirror 编辑器
|
|
428
442
|
case "code-mirror-editor": {
|
|
429
443
|
const codeMirrorProps = __spreadValues(__spreadValues({}, commonProps), componentProps.value);
|
|
430
|
-
return vue.h(index$2.JkyCodeMirrorEditor, codeMirrorProps);
|
|
444
|
+
return vue.h(index$2.JkyCodeMirrorEditor, codeMirrorProps, _componentSlotsObj);
|
|
431
445
|
}
|
|
432
446
|
// RichEditor 富文本编辑器
|
|
433
447
|
case "rich-editor": {
|
|
434
448
|
const richEditorProps = __spreadValues(__spreadValues({}, commonProps), componentProps.value);
|
|
435
|
-
return vue.h(index$1.JkyRichEditor, richEditorProps);
|
|
449
|
+
return vue.h(index$1.JkyRichEditor, richEditorProps, _componentSlotsObj);
|
|
436
450
|
}
|
|
437
451
|
// AddInput 动态键值对输入框
|
|
438
452
|
case "add-input": {
|
|
439
453
|
const addInputProps = __spreadValues(__spreadValues({}, commonProps), componentProps.value);
|
|
440
|
-
return vue.h(index.JkyAddInput, addInputProps);
|
|
454
|
+
return vue.h(index.JkyAddInput, addInputProps, _componentSlotsObj);
|
|
441
455
|
}
|
|
442
456
|
case "custom":
|
|
443
457
|
return (_b = (_a = props.config).render) == null ? void 0 : _b.call(_a, commonProps);
|
package/dist/lib/package.json.js
CHANGED