jky-component-lib 0.0.118 → 0.0.122
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/style2.css +2 -6
- package/dist/es/amap/style3.css +6 -2
- package/dist/es/form/Form.vue.js +51 -13
- package/dist/es/form/FormItem.vue.js +60 -47
- package/dist/es/modal/Modal.vue.js +0 -1
- package/dist/es/package.json.js +1 -1
- package/dist/lib/amap/style2.css +2 -6
- package/dist/lib/amap/style3.css +6 -2
- package/dist/lib/form/Form.vue.js +50 -12
- package/dist/lib/form/FormItem.vue.js +59 -46
- package/dist/lib/modal/Modal.vue.js +0 -1
- package/dist/lib/package.json.js +1 -1
- package/package.json +2 -2
- package/dist/es/add-input/AddInput.vue.d.ts +0 -27
- package/dist/es/add-input/index.d.ts +0 -5
- package/dist/es/amap/AMap.vue.d.ts +0 -61
- package/dist/es/amap/AMarker.vue.d.ts +0 -38
- package/dist/es/amap/ATrackPlayback.vue.d.ts +0 -69
- package/dist/es/amap/index.d.ts +0 -9
- package/dist/es/button/Button.vue.d.ts +0 -33
- package/dist/es/button/index.d.ts +0 -4
- package/dist/es/button-nav/ButtonNav.vue.d.ts +0 -36
- package/dist/es/button-nav/index.d.ts +0 -4
- package/dist/es/code-mirror-editor/CodeMirrorEditor.vue.d.ts +0 -25
- package/dist/es/code-mirror-editor/index.d.ts +0 -5
- package/dist/es/components.d.ts +0 -18
- package/dist/es/form/Form.vue.d.ts +0 -338
- package/dist/es/form/FormItem.vue.d.ts +0 -6
- package/dist/es/form/SelectTable.vue.d.ts +0 -38
- package/dist/es/form/index.d.ts +0 -5
- package/dist/es/index.d.ts +0 -8
- package/dist/es/menu/Menu.vue.d.ts +0 -23
- package/dist/es/menu/MenuItem.vue.d.ts +0 -7
- package/dist/es/menu/index.d.ts +0 -5
- package/dist/es/modal/Footer.vue.d.ts +0 -10
- package/dist/es/modal/Header.vue.d.ts +0 -37
- package/dist/es/modal/Modal.vue.d.ts +0 -75
- package/dist/es/modal/index.d.ts +0 -5
- package/dist/es/page-header/PageHeader.vue.d.ts +0 -31
- package/dist/es/page-header/PopoverMenu.vue.d.ts +0 -13
- package/dist/es/page-header/index.d.ts +0 -5
- package/dist/es/page-layout/PageLayout.vue.d.ts +0 -18
- package/dist/es/page-layout/index.d.ts +0 -5
- package/dist/es/page-table/ActionColumn.vue.d.ts +0 -11
- package/dist/es/page-table/PageTable.vue.d.ts +0 -5437
- package/dist/es/page-table/PageTableColumn.vue.d.ts +0 -36
- package/dist/es/page-table/Toolbar.vue.d.ts +0 -33
- package/dist/es/page-table/index.d.ts +0 -9
- package/dist/es/page-table-v2/PageTableV2.vue.d.ts +0 -956
- package/dist/es/page-table-v2/index.d.ts +0 -4
- package/dist/es/resolver.d.ts +0 -2
- package/dist/es/rich-editor/RichEditor.vue.d.ts +0 -78
- package/dist/es/rich-editor/index.d.ts +0 -5
- package/dist/es/say-hello/SayHello.vue.d.ts +0 -5
- package/dist/es/say-hello/index.d.ts +0 -4
- package/dist/es/tabs/ContextMenu.vue.d.ts +0 -30
- package/dist/es/tabs/Tabs.vue.d.ts +0 -13
- package/dist/es/tabs/config.d.ts +0 -2
- package/dist/es/tabs/createTabsGuard.d.ts +0 -5
- package/dist/es/tabs/index.d.ts +0 -7
- package/dist/es/tabs/useTabsStore.d.ts +0 -6
- package/dist/es/utils/index.d.ts +0 -5
- package/dist/es/utils/installer.d.ts +0 -13
- package/dist/es/utils/responsive-toolbar.d.ts +0 -78
- package/dist/es/utils/string.d.ts +0 -18
- package/dist/es/utils/types.d.ts +0 -12
- package/dist/es/utils/with-install.d.ts +0 -2
- package/dist/lib/add-input/AddInput.vue.d.ts +0 -27
- package/dist/lib/add-input/index.d.ts +0 -5
- package/dist/lib/amap/AMap.vue.d.ts +0 -61
- package/dist/lib/amap/AMarker.vue.d.ts +0 -38
- package/dist/lib/amap/ATrackPlayback.vue.d.ts +0 -69
- package/dist/lib/amap/index.d.ts +0 -9
- package/dist/lib/button/Button.vue.d.ts +0 -33
- package/dist/lib/button/index.d.ts +0 -4
- package/dist/lib/button-nav/ButtonNav.vue.d.ts +0 -36
- package/dist/lib/button-nav/index.d.ts +0 -4
- package/dist/lib/code-mirror-editor/CodeMirrorEditor.vue.d.ts +0 -25
- package/dist/lib/code-mirror-editor/index.d.ts +0 -5
- package/dist/lib/components.d.ts +0 -18
- package/dist/lib/form/Form.vue.d.ts +0 -338
- package/dist/lib/form/FormItem.vue.d.ts +0 -6
- package/dist/lib/form/SelectTable.vue.d.ts +0 -38
- package/dist/lib/form/index.d.ts +0 -5
- package/dist/lib/index.d.ts +0 -8
- package/dist/lib/menu/Menu.vue.d.ts +0 -23
- package/dist/lib/menu/MenuItem.vue.d.ts +0 -7
- package/dist/lib/menu/index.d.ts +0 -5
- package/dist/lib/modal/Footer.vue.d.ts +0 -10
- package/dist/lib/modal/Header.vue.d.ts +0 -37
- package/dist/lib/modal/Modal.vue.d.ts +0 -75
- package/dist/lib/modal/index.d.ts +0 -5
- package/dist/lib/page-header/PageHeader.vue.d.ts +0 -31
- package/dist/lib/page-header/PopoverMenu.vue.d.ts +0 -13
- package/dist/lib/page-header/index.d.ts +0 -5
- package/dist/lib/page-layout/PageLayout.vue.d.ts +0 -18
- package/dist/lib/page-layout/index.d.ts +0 -5
- package/dist/lib/page-table/ActionColumn.vue.d.ts +0 -11
- package/dist/lib/page-table/PageTable.vue.d.ts +0 -5437
- package/dist/lib/page-table/PageTableColumn.vue.d.ts +0 -36
- package/dist/lib/page-table/Toolbar.vue.d.ts +0 -33
- package/dist/lib/page-table/index.d.ts +0 -9
- package/dist/lib/page-table-v2/PageTableV2.vue.d.ts +0 -956
- package/dist/lib/page-table-v2/index.d.ts +0 -4
- package/dist/lib/resolver.d.ts +0 -2
- package/dist/lib/rich-editor/RichEditor.vue.d.ts +0 -78
- package/dist/lib/rich-editor/index.d.ts +0 -5
- package/dist/lib/say-hello/SayHello.vue.d.ts +0 -5
- package/dist/lib/say-hello/index.d.ts +0 -4
- package/dist/lib/tabs/ContextMenu.vue.d.ts +0 -30
- package/dist/lib/tabs/Tabs.vue.d.ts +0 -13
- package/dist/lib/tabs/config.d.ts +0 -2
- package/dist/lib/tabs/createTabsGuard.d.ts +0 -5
- package/dist/lib/tabs/index.d.ts +0 -7
- package/dist/lib/tabs/useTabsStore.d.ts +0 -6
- package/dist/lib/utils/index.d.ts +0 -5
- package/dist/lib/utils/installer.d.ts +0 -13
- package/dist/lib/utils/responsive-toolbar.d.ts +0 -78
- package/dist/lib/utils/string.d.ts +0 -18
- package/dist/lib/utils/types.d.ts +0 -12
- package/dist/lib/utils/with-install.d.ts +0 -2
|
@@ -88,7 +88,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
88
88
|
model: {},
|
|
89
89
|
readonly: { type: [Boolean, Function], default: false },
|
|
90
90
|
disabled: { type: Boolean, default: false },
|
|
91
|
-
span: {},
|
|
92
91
|
label: {},
|
|
93
92
|
labelWidth: {},
|
|
94
93
|
labelPosition: {},
|
|
@@ -226,49 +225,63 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
226
225
|
}, componentProps.value), {
|
|
227
226
|
"class": ["w-full min-w-25", componentProps.value.class]
|
|
228
227
|
});
|
|
228
|
+
const { slots: componentSlots } = componentProps.value;
|
|
229
|
+
const _componentSlotsObj = typeof componentSlots === "function" ? componentSlots({
|
|
230
|
+
model: props.model,
|
|
231
|
+
field: props.field,
|
|
232
|
+
$form: props.model
|
|
233
|
+
}) : componentSlots;
|
|
229
234
|
switch (type) {
|
|
230
235
|
case "input":
|
|
231
|
-
return vue.h(
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
+
return vue.h(
|
|
237
|
+
ElementPlus.ElInput,
|
|
238
|
+
__spreadProps(__spreadValues({}, commonProps), {
|
|
239
|
+
placeholder: commonProps.placeholder || "请输入",
|
|
240
|
+
prefixIcon: props.config.prefixIcon,
|
|
241
|
+
suffixIcon: props.config.suffixIcon
|
|
242
|
+
}),
|
|
243
|
+
_componentSlotsObj
|
|
244
|
+
);
|
|
236
245
|
case "textarea":
|
|
237
|
-
return vue.h(
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
246
|
+
return vue.h(
|
|
247
|
+
ElementPlus.ElInput,
|
|
248
|
+
__spreadProps(__spreadValues({}, commonProps), {
|
|
249
|
+
placeholder: commonProps.placeholder || "请输入",
|
|
250
|
+
type: "textarea",
|
|
251
|
+
rows: 4
|
|
252
|
+
}),
|
|
253
|
+
_componentSlotsObj
|
|
254
|
+
);
|
|
242
255
|
case "select": {
|
|
243
256
|
const selectProps = __spreadValues(__spreadProps(__spreadValues({}, commonProps), {
|
|
244
257
|
placeholder: commonProps.placeholder || "请选择"
|
|
245
258
|
}), componentProps.value);
|
|
246
|
-
return vue.h(ElementPlus.ElSelect, selectProps);
|
|
259
|
+
return vue.h(ElementPlus.ElSelect, selectProps, _componentSlotsObj);
|
|
247
260
|
}
|
|
248
261
|
case "autocomplete": {
|
|
249
262
|
const autocompleteProps = __spreadValues(__spreadProps(__spreadValues({}, commonProps), {
|
|
250
263
|
placeholder: commonProps.placeholder || "请输入"
|
|
251
264
|
}), componentProps.value);
|
|
252
|
-
return vue.h(ElementPlus.ElAutocomplete, autocompleteProps);
|
|
265
|
+
return vue.h(ElementPlus.ElAutocomplete, autocompleteProps, _componentSlotsObj);
|
|
253
266
|
}
|
|
254
267
|
case "datepicker":
|
|
255
|
-
return vue.h(ElementPlus.ElDatePicker, __spreadValues(__spreadValues({}, commonProps), componentProps.value));
|
|
268
|
+
return vue.h(ElementPlus.ElDatePicker, __spreadValues(__spreadValues({}, commonProps), componentProps.value), _componentSlotsObj);
|
|
256
269
|
case "datetime-picker":
|
|
257
|
-
return vue.h(ElementPlus.ElDatePicker, __spreadValues(__spreadValues({}, commonProps), componentProps.value));
|
|
270
|
+
return vue.h(ElementPlus.ElDatePicker, __spreadValues(__spreadValues({}, commonProps), componentProps.value), _componentSlotsObj);
|
|
258
271
|
case "time-picker":
|
|
259
|
-
return vue.h(ElementPlus.ElTimePicker, __spreadValues(__spreadValues({}, commonProps), componentProps.value));
|
|
272
|
+
return vue.h(ElementPlus.ElTimePicker, __spreadValues(__spreadValues({}, commonProps), componentProps.value), _componentSlotsObj);
|
|
260
273
|
case "time-select":
|
|
261
|
-
return vue.h(ElementPlus.ElTimeSelect, __spreadValues(__spreadValues({}, commonProps), componentProps.value));
|
|
274
|
+
return vue.h(ElementPlus.ElTimeSelect, __spreadValues(__spreadValues({}, commonProps), componentProps.value), _componentSlotsObj);
|
|
262
275
|
case "radio-group": {
|
|
263
276
|
const radioGroupProps = __spreadValues(__spreadValues({}, commonProps), componentProps.value);
|
|
264
277
|
return vue.h(
|
|
265
278
|
ElementPlus.ElRadioGroup,
|
|
266
279
|
radioGroupProps,
|
|
267
|
-
{
|
|
280
|
+
__spreadValues({
|
|
268
281
|
default: () => {
|
|
269
282
|
const options = componentProps.value.options || props.config.options || [];
|
|
270
283
|
return options.map(
|
|
271
|
-
(option) => vue.h(ElementPlus.ElRadio, {
|
|
284
|
+
(option) => vue.h(radioGroupProps.button ? ElementPlus.ElRadioButton : ElementPlus.ElRadio, {
|
|
272
285
|
key: option.value,
|
|
273
286
|
value: option.value,
|
|
274
287
|
disabled: option.disabled
|
|
@@ -277,7 +290,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
277
290
|
})
|
|
278
291
|
);
|
|
279
292
|
}
|
|
280
|
-
}
|
|
293
|
+
}, _componentSlotsObj)
|
|
281
294
|
);
|
|
282
295
|
}
|
|
283
296
|
case "checkbox-group": {
|
|
@@ -288,7 +301,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
288
301
|
return vue.h(
|
|
289
302
|
ElementPlus.ElCheckboxGroup,
|
|
290
303
|
checkboxGroupProps,
|
|
291
|
-
{
|
|
304
|
+
__spreadValues({
|
|
292
305
|
default: () => {
|
|
293
306
|
const options = componentProps.value.options || props.config.options || [];
|
|
294
307
|
return options.map(
|
|
@@ -301,30 +314,30 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
301
314
|
})
|
|
302
315
|
);
|
|
303
316
|
}
|
|
304
|
-
}
|
|
317
|
+
}, _componentSlotsObj)
|
|
305
318
|
);
|
|
306
319
|
}
|
|
307
320
|
case "switch":
|
|
308
|
-
return vue.h(ElementPlus.ElSwitch, __spreadValues(__spreadValues({}, commonProps), componentProps.value));
|
|
321
|
+
return vue.h(ElementPlus.ElSwitch, __spreadValues(__spreadValues({}, commonProps), componentProps.value), _componentSlotsObj);
|
|
309
322
|
case "slider":
|
|
310
|
-
return vue.h(ElementPlus.ElSlider, __spreadValues(__spreadValues({}, commonProps), componentProps.value));
|
|
323
|
+
return vue.h(ElementPlus.ElSlider, __spreadValues(__spreadValues({}, commonProps), componentProps.value), _componentSlotsObj);
|
|
311
324
|
case "cascader": {
|
|
312
325
|
const cascaderProps = __spreadValues(__spreadProps(__spreadValues({}, commonProps), {
|
|
313
326
|
placeholder: commonProps.placeholder || "请选择"
|
|
314
327
|
}), componentProps.value);
|
|
315
|
-
return vue.h(ElementPlus.ElCascader, cascaderProps);
|
|
328
|
+
return vue.h(ElementPlus.ElCascader, cascaderProps, _componentSlotsObj);
|
|
316
329
|
}
|
|
317
330
|
case "tree-select": {
|
|
318
331
|
const treeSelectProps = __spreadValues(__spreadProps(__spreadValues({}, commonProps), {
|
|
319
332
|
placeholder: commonProps.placeholder || "请选择"
|
|
320
333
|
}), componentProps.value);
|
|
321
|
-
return vue.h(ElementPlus.ElTreeSelect, treeSelectProps);
|
|
334
|
+
return vue.h(ElementPlus.ElTreeSelect, treeSelectProps, _componentSlotsObj);
|
|
322
335
|
}
|
|
323
336
|
case "color-picker":
|
|
324
|
-
return vue.h(ElementPlus.ElColorPicker, __spreadValues(__spreadValues({}, commonProps), componentProps.value));
|
|
337
|
+
return vue.h(ElementPlus.ElColorPicker, __spreadValues(__spreadValues({}, commonProps), componentProps.value), _componentSlotsObj);
|
|
325
338
|
// 颜色选择器面板
|
|
326
339
|
case "color-picker-panel":
|
|
327
|
-
return vue.h(ElementPlus.ElColorPickerPanel, __spreadValues(__spreadValues({}, commonProps), componentProps.value));
|
|
340
|
+
return vue.h(ElementPlus.ElColorPickerPanel, __spreadValues(__spreadValues({}, commonProps), componentProps.value), _componentSlotsObj);
|
|
328
341
|
// 标签输入框
|
|
329
342
|
case "input-tag": {
|
|
330
343
|
const inputTagProps = __spreadValues(__spreadProps(__spreadValues({}, commonProps), {
|
|
@@ -333,7 +346,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
333
346
|
props.model[props.field] = val;
|
|
334
347
|
}
|
|
335
348
|
}), componentProps.value);
|
|
336
|
-
return vue.h(ElementPlus.ElInputTag, inputTagProps);
|
|
349
|
+
return vue.h(ElementPlus.ElInputTag, inputTagProps, _componentSlotsObj);
|
|
337
350
|
}
|
|
338
351
|
// 提及组件
|
|
339
352
|
case "mention": {
|
|
@@ -343,7 +356,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
343
356
|
props.model[props.field] = val;
|
|
344
357
|
}
|
|
345
358
|
}), componentProps.value);
|
|
346
|
-
return vue.h(ElementPlus.ElMention, mentionProps);
|
|
359
|
+
return vue.h(ElementPlus.ElMention, mentionProps, _componentSlotsObj);
|
|
347
360
|
}
|
|
348
361
|
// 虚拟化选择器
|
|
349
362
|
case "select-v2": {
|
|
@@ -354,7 +367,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
354
367
|
},
|
|
355
368
|
"options": componentProps.value.options || []
|
|
356
369
|
}), componentProps.value);
|
|
357
|
-
return vue.h(ElementPlus.ElSelectV2, selectV2Props);
|
|
370
|
+
return vue.h(ElementPlus.ElSelectV2, selectV2Props, _componentSlotsObj);
|
|
358
371
|
}
|
|
359
372
|
// 穿梭框
|
|
360
373
|
case "transfer": {
|
|
@@ -365,15 +378,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
365
378
|
},
|
|
366
379
|
"data": componentProps.value.data || []
|
|
367
380
|
}), componentProps.value);
|
|
368
|
-
return vue.h(ElementPlus.ElTransfer, transferProps);
|
|
381
|
+
return vue.h(ElementPlus.ElTransfer, transferProps, _componentSlotsObj);
|
|
369
382
|
}
|
|
370
383
|
// 表格选择器
|
|
371
384
|
case "select-table":
|
|
372
385
|
return vue.h(SelectTable_vue_vue_type_script_setup_true_lang.default, __spreadProps(__spreadValues(__spreadValues({}, commonProps), componentProps.value), {
|
|
373
386
|
labelWidth: formItemProps.value.labelWidth
|
|
374
|
-
}));
|
|
387
|
+
}), _componentSlotsObj);
|
|
375
388
|
case "rate":
|
|
376
|
-
return vue.h(ElementPlus.ElRate, __spreadValues(__spreadValues({}, commonProps), componentProps.value));
|
|
389
|
+
return vue.h(ElementPlus.ElRate, __spreadValues(__spreadValues({}, commonProps), componentProps.value), _componentSlotsObj);
|
|
377
390
|
case "input-number": {
|
|
378
391
|
const numberModelValue = modelValue.value === "" || modelValue.value === null || modelValue.value === void 0 ? null : Number(modelValue.value);
|
|
379
392
|
const inputNumberProps = __spreadValues(__spreadProps(__spreadValues({}, commonProps), {
|
|
@@ -383,7 +396,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
383
396
|
props.model[props.field] = val;
|
|
384
397
|
}
|
|
385
398
|
}), componentProps.value);
|
|
386
|
-
return vue.h(ElementPlus.ElInputNumber, inputNumberProps);
|
|
399
|
+
return vue.h(ElementPlus.ElInputNumber, inputNumberProps, _componentSlotsObj);
|
|
387
400
|
}
|
|
388
401
|
// 图片上传
|
|
389
402
|
case "image-upload": {
|
|
@@ -395,18 +408,18 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
395
408
|
"onRemove": componentProps.value.onRemove
|
|
396
409
|
}), componentProps.value);
|
|
397
410
|
if (uploadProps["list-type"] === "picture-card") {
|
|
398
|
-
return vue.h(ElementPlus.ElUpload, uploadProps, {
|
|
411
|
+
return vue.h(ElementPlus.ElUpload, uploadProps, __spreadValues({
|
|
399
412
|
default: () => vue.h("div", { class: "el-upload__picture-card-wrapper" }, [
|
|
400
413
|
vue.h(ElementPlus.ElIcon, { size: 24 }, { default: () => vue.h(iconsVue.Plus) })
|
|
401
414
|
])
|
|
402
|
-
});
|
|
415
|
+
}, _componentSlotsObj));
|
|
403
416
|
}
|
|
404
417
|
if (uploadProps["list-type"] === "picture") {
|
|
405
|
-
return vue.h(ElementPlus.ElUpload, uploadProps, {
|
|
418
|
+
return vue.h(ElementPlus.ElUpload, uploadProps, __spreadValues({
|
|
406
419
|
default: () => vue.h(ElementPlus.ElButton, { type: "primary" }, { default: () => "点击上传" })
|
|
407
|
-
});
|
|
420
|
+
}, _componentSlotsObj));
|
|
408
421
|
}
|
|
409
|
-
return vue.h(ElementPlus.ElUpload, uploadProps);
|
|
422
|
+
return vue.h(ElementPlus.ElUpload, uploadProps, _componentSlotsObj);
|
|
410
423
|
}
|
|
411
424
|
// 文件上传
|
|
412
425
|
case "file-upload": {
|
|
@@ -418,26 +431,26 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
418
431
|
"onRemove": componentProps.value.onRemove
|
|
419
432
|
}), componentProps.value);
|
|
420
433
|
if (uploadProps["list-type"] === "text") {
|
|
421
|
-
return vue.h(ElementPlus.ElUpload, uploadProps, {
|
|
434
|
+
return vue.h(ElementPlus.ElUpload, uploadProps, __spreadValues({
|
|
422
435
|
default: () => vue.h(ElementPlus.ElButton, { type: "primary" }, { default: () => "点击上传" })
|
|
423
|
-
});
|
|
436
|
+
}, _componentSlotsObj));
|
|
424
437
|
}
|
|
425
|
-
return vue.h(ElementPlus.ElUpload, uploadProps);
|
|
438
|
+
return vue.h(ElementPlus.ElUpload, uploadProps, _componentSlotsObj);
|
|
426
439
|
}
|
|
427
440
|
// CodeMirror 编辑器
|
|
428
441
|
case "code-mirror-editor": {
|
|
429
442
|
const codeMirrorProps = __spreadValues(__spreadValues({}, commonProps), componentProps.value);
|
|
430
|
-
return vue.h(index$2.JkyCodeMirrorEditor, codeMirrorProps);
|
|
443
|
+
return vue.h(index$2.JkyCodeMirrorEditor, codeMirrorProps, _componentSlotsObj);
|
|
431
444
|
}
|
|
432
445
|
// RichEditor 富文本编辑器
|
|
433
446
|
case "rich-editor": {
|
|
434
447
|
const richEditorProps = __spreadValues(__spreadValues({}, commonProps), componentProps.value);
|
|
435
|
-
return vue.h(index$1.JkyRichEditor, richEditorProps);
|
|
448
|
+
return vue.h(index$1.JkyRichEditor, richEditorProps, _componentSlotsObj);
|
|
436
449
|
}
|
|
437
450
|
// AddInput 动态键值对输入框
|
|
438
451
|
case "add-input": {
|
|
439
452
|
const addInputProps = __spreadValues(__spreadValues({}, commonProps), componentProps.value);
|
|
440
|
-
return vue.h(index.JkyAddInput, addInputProps);
|
|
453
|
+
return vue.h(index.JkyAddInput, addInputProps, _componentSlotsObj);
|
|
441
454
|
}
|
|
442
455
|
case "custom":
|
|
443
456
|
return (_b = (_a = props.config).render) == null ? void 0 : _b.call(_a, commonProps);
|
package/dist/lib/package.json.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jky-component-lib",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.122",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"preinstall": "echo 'Using bun package manager'",
|
|
60
|
-
"prepare": "bunx simple-git-hooks",
|
|
60
|
+
"prepare": "if [ \"$NETLIFY\" != \"true\" ]; then bunx simple-git-hooks; fi",
|
|
61
61
|
"dev": "vite build --watch",
|
|
62
62
|
"dev:all": "bash scripts/dev-all.sh",
|
|
63
63
|
"dev:docs": "bash scripts/docs-dev.sh",
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { AddInputItem, AddInputProps } from './types';
|
|
2
|
-
type __VLS_Props = AddInputProps;
|
|
3
|
-
type __VLS_PublicProps = {
|
|
4
|
-
modelValue?: AddInputItem[];
|
|
5
|
-
} & __VLS_Props;
|
|
6
|
-
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
-
"update:modelValue": (value: AddInputItem[]) => any;
|
|
8
|
-
} & {
|
|
9
|
-
"update:modelValue": (value: AddInputItem[]) => any;
|
|
10
|
-
change: (value: AddInputItem[]) => any;
|
|
11
|
-
add: () => any;
|
|
12
|
-
delete: (index: number) => any;
|
|
13
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
|
-
"onUpdate:modelValue"?: ((value: AddInputItem[]) => any) | undefined;
|
|
15
|
-
onChange?: ((value: AddInputItem[]) => any) | undefined;
|
|
16
|
-
onAdd?: (() => any) | undefined;
|
|
17
|
-
onDelete?: ((index: number) => any) | undefined;
|
|
18
|
-
}>, {
|
|
19
|
-
modelValue: AddInputItem[];
|
|
20
|
-
disabled: boolean;
|
|
21
|
-
readonly: boolean;
|
|
22
|
-
keyPlaceholder: string;
|
|
23
|
-
valuePlaceholder: string;
|
|
24
|
-
addButtonText: string;
|
|
25
|
-
deleteButtonText: string;
|
|
26
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
27
|
-
export default _default;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { InstallWithSFC } from '../utils';
|
|
2
|
-
import { default as AddInput } from './AddInput.vue';
|
|
3
|
-
export type { AddInputEmits, AddInputItem, AddInputProps } from './types';
|
|
4
|
-
export declare const JkyAddInput: InstallWithSFC<typeof AddInput>;
|
|
5
|
-
export default JkyAddInput;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { AMapProps } from './types';
|
|
2
|
-
declare function __VLS_template(): {
|
|
3
|
-
attrs: Partial<{}>;
|
|
4
|
-
slots: {
|
|
5
|
-
default?(_: {}): any;
|
|
6
|
-
};
|
|
7
|
-
refs: {
|
|
8
|
-
mapRef: HTMLDivElement;
|
|
9
|
-
};
|
|
10
|
-
rootEl: HTMLDivElement;
|
|
11
|
-
};
|
|
12
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
-
declare const __VLS_component: import('vue').DefineComponent<AMapProps, {
|
|
14
|
-
getMapInstance: () => any;
|
|
15
|
-
addMarker: (options: any) => any;
|
|
16
|
-
removeMarker: (marker: any) => void;
|
|
17
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
18
|
-
click: (data: any) => any;
|
|
19
|
-
moveend: (center: {
|
|
20
|
-
lng: number;
|
|
21
|
-
lat: number;
|
|
22
|
-
}) => any;
|
|
23
|
-
zoomend: (zoom: number) => any;
|
|
24
|
-
ready: (map: any) => any;
|
|
25
|
-
}, string, import('vue').PublicProps, Readonly<AMapProps> & Readonly<{
|
|
26
|
-
onClick?: ((data: any) => any) | undefined;
|
|
27
|
-
onMoveend?: ((center: {
|
|
28
|
-
lng: number;
|
|
29
|
-
lat: number;
|
|
30
|
-
}) => any) | undefined;
|
|
31
|
-
onZoomend?: ((zoom: number) => any) | undefined;
|
|
32
|
-
onReady?: ((map: any) => any) | undefined;
|
|
33
|
-
}>, {
|
|
34
|
-
width: string;
|
|
35
|
-
height: string;
|
|
36
|
-
token: string;
|
|
37
|
-
zoom: number;
|
|
38
|
-
viewMode: import('./types').MapViewMode;
|
|
39
|
-
showScale: boolean;
|
|
40
|
-
showHawkEye: boolean;
|
|
41
|
-
showToolbar: boolean;
|
|
42
|
-
showControlBar: boolean;
|
|
43
|
-
showGeolocation: boolean;
|
|
44
|
-
scalePosition: import('./types').ControlPosition;
|
|
45
|
-
hawkEyePosition: import('./types').ControlPosition;
|
|
46
|
-
toolbarPosition: import('./types').ControlPosition;
|
|
47
|
-
controlBarPosition: import('./types').ControlBarPosition;
|
|
48
|
-
geolocationPosition: import('./types').ControlPosition;
|
|
49
|
-
enableHighAccuracy: boolean;
|
|
50
|
-
timeout: number;
|
|
51
|
-
zoomToAccuracy: boolean;
|
|
52
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
53
|
-
mapRef: HTMLDivElement;
|
|
54
|
-
}, HTMLDivElement>;
|
|
55
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
56
|
-
export default _default;
|
|
57
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
58
|
-
new (): {
|
|
59
|
-
$slots: S;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { AMapMarkerProps, MarkerData } from './types';
|
|
2
|
-
declare function removeMarkers(): void;
|
|
3
|
-
declare function __VLS_template(): {
|
|
4
|
-
attrs: Partial<{}>;
|
|
5
|
-
slots: {
|
|
6
|
-
default?(_: {}): any;
|
|
7
|
-
};
|
|
8
|
-
refs: {};
|
|
9
|
-
rootEl: any;
|
|
10
|
-
};
|
|
11
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
-
declare const __VLS_component: import('vue').DefineComponent<AMapMarkerProps, {
|
|
13
|
-
getMarkers: () => any[];
|
|
14
|
-
clearMarkers: typeof removeMarkers;
|
|
15
|
-
addMarker: (data: MarkerData) => any;
|
|
16
|
-
removeMarker: (marker: any) => void;
|
|
17
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
18
|
-
click: (marker: any, data: MarkerData) => any;
|
|
19
|
-
dragend: (marker: any, data: MarkerData) => any;
|
|
20
|
-
mouseout: (marker: any, data: MarkerData) => any;
|
|
21
|
-
mouseover: (marker: any, data: MarkerData) => any;
|
|
22
|
-
}, string, import('vue').PublicProps, Readonly<AMapMarkerProps> & Readonly<{
|
|
23
|
-
onClick?: ((marker: any, data: MarkerData) => any) | undefined;
|
|
24
|
-
onDragend?: ((marker: any, data: MarkerData) => any) | undefined;
|
|
25
|
-
onMouseout?: ((marker: any, data: MarkerData) => any) | undefined;
|
|
26
|
-
onMouseover?: ((marker: any, data: MarkerData) => any) | undefined;
|
|
27
|
-
}>, {
|
|
28
|
-
draggable: boolean;
|
|
29
|
-
visible: boolean;
|
|
30
|
-
updateMode: "incremental" | "full";
|
|
31
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
32
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
33
|
-
export default _default;
|
|
34
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
35
|
-
new (): {
|
|
36
|
-
$slots: S;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { AMapTrackPlaybackProps } from './types';
|
|
2
|
-
declare function startAnimation(): void;
|
|
3
|
-
declare function pauseAnimation(): void;
|
|
4
|
-
declare function resumeAnimation(): void;
|
|
5
|
-
declare function stopAnimation(): void;
|
|
6
|
-
declare function __VLS_template(): {
|
|
7
|
-
attrs: Partial<{}>;
|
|
8
|
-
slots: {
|
|
9
|
-
default?(_: {
|
|
10
|
-
isPlaying: boolean;
|
|
11
|
-
isPaused: boolean;
|
|
12
|
-
start: typeof startAnimation;
|
|
13
|
-
pause: typeof pauseAnimation;
|
|
14
|
-
resume: typeof resumeAnimation;
|
|
15
|
-
stop: typeof stopAnimation;
|
|
16
|
-
}): any;
|
|
17
|
-
};
|
|
18
|
-
refs: {};
|
|
19
|
-
rootEl: HTMLDivElement;
|
|
20
|
-
};
|
|
21
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
-
declare const __VLS_component: import('vue').DefineComponent<AMapTrackPlaybackProps, {
|
|
23
|
-
start: typeof startAnimation;
|
|
24
|
-
pause: typeof pauseAnimation;
|
|
25
|
-
resume: typeof resumeAnimation;
|
|
26
|
-
stop: typeof stopAnimation;
|
|
27
|
-
isPlaying: globalThis.Ref<boolean, boolean>;
|
|
28
|
-
isPaused: globalThis.Ref<boolean, boolean>;
|
|
29
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
30
|
-
stop: () => any;
|
|
31
|
-
pause: () => any;
|
|
32
|
-
start: () => any;
|
|
33
|
-
resume: () => any;
|
|
34
|
-
end: () => any;
|
|
35
|
-
moving: (data: {
|
|
36
|
-
passedPath: import('./types').MapCenter[];
|
|
37
|
-
target: any;
|
|
38
|
-
}) => any;
|
|
39
|
-
}, string, import('vue').PublicProps, Readonly<AMapTrackPlaybackProps> & Readonly<{
|
|
40
|
-
onStop?: (() => any) | undefined;
|
|
41
|
-
onPause?: (() => any) | undefined;
|
|
42
|
-
onStart?: (() => any) | undefined;
|
|
43
|
-
onResume?: (() => any) | undefined;
|
|
44
|
-
onEnd?: (() => any) | undefined;
|
|
45
|
-
onMoving?: ((data: {
|
|
46
|
-
passedPath: import('./types').MapCenter[];
|
|
47
|
-
target: any;
|
|
48
|
-
}) => any) | undefined;
|
|
49
|
-
}>, {
|
|
50
|
-
duration: number;
|
|
51
|
-
autoPlay: boolean;
|
|
52
|
-
autoRotation: boolean;
|
|
53
|
-
loop: boolean;
|
|
54
|
-
showPath: boolean;
|
|
55
|
-
showPassedPath: boolean;
|
|
56
|
-
pathColor: string;
|
|
57
|
-
passedPathColor: string;
|
|
58
|
-
pathWeight: number;
|
|
59
|
-
carIcon: string;
|
|
60
|
-
carIconOffset: [number, number];
|
|
61
|
-
initialZoom: number;
|
|
62
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
63
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
64
|
-
export default _default;
|
|
65
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
66
|
-
new (): {
|
|
67
|
-
$slots: S;
|
|
68
|
-
};
|
|
69
|
-
};
|
package/dist/es/amap/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { InstallWithSFC } from '../utils';
|
|
2
|
-
import { default as AMap } from './AMap.vue';
|
|
3
|
-
import { default as AMarker } from './AMarker.vue';
|
|
4
|
-
import { default as ATrackPlayback } from './ATrackPlayback.vue';
|
|
5
|
-
export declare const JkyAMap: InstallWithSFC<typeof AMap>;
|
|
6
|
-
export declare const JkyAMarker: InstallWithSFC<typeof AMarker>;
|
|
7
|
-
export declare const JkyATrackPlayback: InstallWithSFC<typeof ATrackPlayback>;
|
|
8
|
-
export default JkyAMap;
|
|
9
|
-
export { AMarker, ATrackPlayback };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
type?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
3
|
-
size?: 'large' | 'default' | 'small';
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
loading?: boolean;
|
|
6
|
-
icon?: string;
|
|
7
|
-
iconPosition?: 'prefix' | 'suffix';
|
|
8
|
-
};
|
|
9
|
-
declare function __VLS_template(): {
|
|
10
|
-
attrs: Partial<{}>;
|
|
11
|
-
slots: {
|
|
12
|
-
icon?(_: {}): any;
|
|
13
|
-
icon?(_: {}): any;
|
|
14
|
-
icon?(_: {}): any;
|
|
15
|
-
default?(_: {}): any;
|
|
16
|
-
default?(_: {}): any;
|
|
17
|
-
};
|
|
18
|
-
refs: {};
|
|
19
|
-
rootEl: HTMLButtonElement;
|
|
20
|
-
};
|
|
21
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
23
|
-
click: () => any;
|
|
24
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
-
onClick?: (() => any) | undefined;
|
|
26
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
27
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
|
-
export default _default;
|
|
29
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
|
-
new (): {
|
|
31
|
-
$slots: S;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ButtonProps } from 'element-plus/es/components/button';
|
|
2
|
-
import { RouteLocationRaw } from 'vue-router';
|
|
3
|
-
type __VLS_Props = {
|
|
4
|
-
modelValue?: string | number;
|
|
5
|
-
items?: NavItem[];
|
|
6
|
-
limit?: number;
|
|
7
|
-
size?: ButtonProps['size'];
|
|
8
|
-
type?: ButtonProps['type'];
|
|
9
|
-
plain?: boolean;
|
|
10
|
-
buttonWidth?: string;
|
|
11
|
-
route?: boolean;
|
|
12
|
-
};
|
|
13
|
-
interface NavItem {
|
|
14
|
-
label: string;
|
|
15
|
-
value: string | number;
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
icon?: string;
|
|
18
|
-
to?: RouteLocationRaw;
|
|
19
|
-
}
|
|
20
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
21
|
-
"update:modelValue": (value: string | number) => any;
|
|
22
|
-
change: (value: string | number) => any;
|
|
23
|
-
navClick: (item: NavItem) => any;
|
|
24
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
-
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
26
|
-
onChange?: ((value: string | number) => any) | undefined;
|
|
27
|
-
onNavClick?: ((item: NavItem) => any) | undefined;
|
|
28
|
-
}>, {
|
|
29
|
-
size: "" | "default" | "large" | "small";
|
|
30
|
-
type: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
|
|
31
|
-
plain: boolean;
|
|
32
|
-
items: NavItem[];
|
|
33
|
-
limit: number;
|
|
34
|
-
route: boolean;
|
|
35
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
36
|
-
export default _default;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { CodeMirrorEditorProps } from './types';
|
|
2
|
-
import { EditorView } from '@codemirror/view';
|
|
3
|
-
declare const _default: import('vue').DefineComponent<CodeMirrorEditorProps, {
|
|
4
|
-
getEditor: () => EditorView | null;
|
|
5
|
-
getContent: () => string;
|
|
6
|
-
setContent: (content: string) => void;
|
|
7
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
8
|
-
"update:modelValue": (value: string) => any;
|
|
9
|
-
change: (value: string) => any;
|
|
10
|
-
}, string, import('vue').PublicProps, Readonly<CodeMirrorEditorProps> & Readonly<{
|
|
11
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
12
|
-
onChange?: ((value: string) => any) | undefined;
|
|
13
|
-
}>, {
|
|
14
|
-
height: string;
|
|
15
|
-
modelValue: string;
|
|
16
|
-
disabled: boolean;
|
|
17
|
-
readonly: boolean;
|
|
18
|
-
language: "javascript" | "typescript" | "json" | "css" | "markdown" | "html" | "vue";
|
|
19
|
-
theme: "oneDark" | "default";
|
|
20
|
-
lineNumbers: boolean;
|
|
21
|
-
lineWrapping: boolean;
|
|
22
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
23
|
-
editorRef: HTMLDivElement;
|
|
24
|
-
}, HTMLDivElement>;
|
|
25
|
-
export default _default;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { InstallWithSFC } from '../utils';
|
|
2
|
-
import { default as CodeMirrorEditor } from './CodeMirrorEditor.vue';
|
|
3
|
-
export type { CodeMirrorEditorEmits, CodeMirrorEditorProps } from './types';
|
|
4
|
-
export declare const JkyCodeMirrorEditor: InstallWithSFC<typeof CodeMirrorEditor>;
|
|
5
|
-
export default JkyCodeMirrorEditor;
|
package/dist/es/components.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Plugin } from 'vue';
|
|
2
|
-
export * from './add-input';
|
|
3
|
-
export * from './amap';
|
|
4
|
-
export * from './button';
|
|
5
|
-
export * from './button-nav';
|
|
6
|
-
export * from './code-mirror-editor';
|
|
7
|
-
export * from './form';
|
|
8
|
-
export * from './menu';
|
|
9
|
-
export * from './modal';
|
|
10
|
-
export * from './page-header';
|
|
11
|
-
export * from './page-layout';
|
|
12
|
-
export * from './page-table';
|
|
13
|
-
export * from './page-table-v2';
|
|
14
|
-
export * from './rich-editor';
|
|
15
|
-
export * from './say-hello';
|
|
16
|
-
export * from './tabs';
|
|
17
|
-
export declare const components: Plugin[];
|
|
18
|
-
export default components;
|