jky-component-lib 0.0.132 → 0.0.138
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 +6 -2
- package/dist/es/amap/style2.css +2 -13
- package/dist/es/amap/style3.css +12 -5
- package/dist/es/form/FormItem.vue.js +60 -54
- package/dist/es/form/FormItemWrapper.vue.js +13 -15
- package/dist/es/form/items/AddInputItem.vue.js +6 -3
- package/dist/es/form/items/AutocompleteItem.vue.d.ts +1 -1
- package/dist/es/form/items/AutocompleteItem.vue.js +18 -8
- package/dist/es/form/items/CascaderItem.vue.d.ts +1 -1
- package/dist/es/form/items/CascaderItem.vue.js +18 -8
- package/dist/es/form/items/CheckboxGroupItem.vue.d.ts +3 -1
- package/dist/es/form/items/CheckboxGroupItem.vue.js +17 -7
- package/dist/es/form/items/CodeMirrorEditorItem.vue.js +6 -3
- package/dist/es/form/items/ColorPickerItem.vue.d.ts +1 -1
- package/dist/es/form/items/ColorPickerItem.vue.js +17 -7
- package/dist/es/form/items/ColorPickerPanelItem.vue.d.ts +1 -1
- package/dist/es/form/items/ColorPickerPanelItem.vue.js +17 -7
- package/dist/es/form/items/CustomItem.vue.js +2 -1
- package/dist/es/form/items/DatePickerItem.vue.d.ts +1 -1
- package/dist/es/form/items/DatePickerItem.vue.js +21 -11
- package/dist/es/form/items/DividerItem.vue.d.ts +3 -1
- package/dist/es/form/items/DividerItem.vue.js +10 -3
- package/dist/es/form/items/FileUploadItem.vue.d.ts +1 -1
- package/dist/es/form/items/FileUploadItem.vue.js +19 -9
- package/dist/es/form/items/ImageUploadItem.vue.d.ts +1 -1
- package/dist/es/form/items/ImageUploadItem.vue.js +19 -9
- package/dist/es/form/items/InputItem.vue.d.ts +1 -1
- package/dist/es/form/items/InputItem.vue.js +13 -6
- package/dist/es/form/items/InputNumberItem.vue.d.ts +1 -1
- package/dist/es/form/items/InputNumberItem.vue.js +18 -8
- package/dist/es/form/items/InputTagItem.vue.d.ts +1 -1
- package/dist/es/form/items/InputTagItem.vue.js +17 -7
- package/dist/es/form/items/LinkedSelectItem.vue.d.ts +4 -1
- package/dist/es/form/items/LinkedSelectItem.vue.js +11 -4
- package/dist/es/form/items/MentionItem.vue.d.ts +1 -1
- package/dist/es/form/items/MentionItem.vue.js +17 -7
- package/dist/es/form/items/RadioGroupItem.vue.d.ts +3 -1
- package/dist/es/form/items/RadioGroupItem.vue.js +17 -7
- package/dist/es/form/items/RangeInputNumberItem.vue.d.ts +13 -0
- package/dist/es/form/items/RangeInputNumberItem.vue.js +116 -0
- package/dist/es/form/items/RangeInputNumberItem.vue2.js +4 -0
- package/dist/es/form/items/RateItem.vue.d.ts +1 -1
- package/dist/es/form/items/RateItem.vue.js +17 -7
- package/dist/es/form/items/RichEditorItem.vue.js +6 -3
- package/dist/es/form/items/SelectItem.vue.d.ts +1 -1
- package/dist/es/form/items/SelectItem.vue.js +18 -8
- package/dist/es/form/items/SelectTableItem.vue.d.ts +1 -1
- package/dist/es/form/items/SelectTableItem.vue.js +10 -3
- package/dist/es/form/items/SelectV2Item.vue.d.ts +1 -1
- package/dist/es/form/items/SelectV2Item.vue.js +19 -9
- package/dist/es/form/items/SliderItem.vue.d.ts +1 -1
- package/dist/es/form/items/SliderItem.vue.js +17 -7
- package/dist/es/form/items/SwitchItem.vue.d.ts +1 -1
- package/dist/es/form/items/SwitchItem.vue.js +17 -7
- package/dist/es/form/items/TextareaItem.vue.d.ts +1 -1
- package/dist/es/form/items/TextareaItem.vue.js +20 -10
- package/dist/es/form/items/TimePickerItem.vue.d.ts +1 -1
- package/dist/es/form/items/TimePickerItem.vue.js +21 -11
- package/dist/es/form/items/TimeSelectItem.vue.d.ts +1 -1
- package/dist/es/form/items/TimeSelectItem.vue.js +17 -7
- package/dist/es/form/items/TransferItem.vue.d.ts +1 -1
- package/dist/es/form/items/TransferItem.vue.js +18 -8
- package/dist/es/form/items/TreeSelectItem.vue.d.ts +1 -1
- package/dist/es/form/items/TreeSelectItem.vue.js +18 -8
- package/dist/es/modal/Footer.vue.d.ts +1 -1
- package/dist/es/modal/Footer.vue.js +4 -2
- package/dist/es/modal/Modal.vue.js +6 -3
- package/dist/es/package.json.js +1 -1
- package/dist/es/page-table/PageTable.vue.js +1 -1
- package/dist/es/page-table/PageTableColumn.vue.d.ts +1 -0
- package/dist/es/style.css +8 -0
- package/dist/lib/amap/style.css +6 -2
- package/dist/lib/amap/style2.css +2 -13
- package/dist/lib/amap/style3.css +12 -5
- package/dist/lib/form/FormItem.vue.js +9 -3
- package/dist/lib/form/FormItemWrapper.vue.js +11 -13
- package/dist/lib/form/items/AddInputItem.vue.js +6 -3
- package/dist/lib/form/items/AutocompleteItem.vue.d.ts +1 -1
- package/dist/lib/form/items/AutocompleteItem.vue.js +17 -7
- package/dist/lib/form/items/CascaderItem.vue.d.ts +1 -1
- package/dist/lib/form/items/CascaderItem.vue.js +17 -7
- package/dist/lib/form/items/CheckboxGroupItem.vue.d.ts +3 -1
- package/dist/lib/form/items/CheckboxGroupItem.vue.js +16 -6
- package/dist/lib/form/items/CodeMirrorEditorItem.vue.js +6 -3
- package/dist/lib/form/items/ColorPickerItem.vue.d.ts +1 -1
- package/dist/lib/form/items/ColorPickerItem.vue.js +16 -6
- package/dist/lib/form/items/ColorPickerPanelItem.vue.d.ts +1 -1
- package/dist/lib/form/items/ColorPickerPanelItem.vue.js +16 -6
- package/dist/lib/form/items/CustomItem.vue.js +2 -1
- package/dist/lib/form/items/DatePickerItem.vue.d.ts +1 -1
- package/dist/lib/form/items/DatePickerItem.vue.js +20 -10
- package/dist/lib/form/items/DividerItem.vue.d.ts +3 -1
- package/dist/lib/form/items/DividerItem.vue.js +9 -2
- package/dist/lib/form/items/FileUploadItem.vue.d.ts +1 -1
- package/dist/lib/form/items/FileUploadItem.vue.js +18 -8
- package/dist/lib/form/items/ImageUploadItem.vue.d.ts +1 -1
- package/dist/lib/form/items/ImageUploadItem.vue.js +18 -8
- package/dist/lib/form/items/InputItem.vue.d.ts +1 -1
- package/dist/lib/form/items/InputItem.vue.js +12 -5
- package/dist/lib/form/items/InputNumberItem.vue.d.ts +1 -1
- package/dist/lib/form/items/InputNumberItem.vue.js +17 -7
- package/dist/lib/form/items/InputTagItem.vue.d.ts +1 -1
- package/dist/lib/form/items/InputTagItem.vue.js +16 -6
- package/dist/lib/form/items/LinkedSelectItem.vue.d.ts +4 -1
- package/dist/lib/form/items/LinkedSelectItem.vue.js +10 -3
- package/dist/lib/form/items/MentionItem.vue.d.ts +1 -1
- package/dist/lib/form/items/MentionItem.vue.js +16 -6
- package/dist/lib/form/items/RadioGroupItem.vue.d.ts +3 -1
- package/dist/lib/form/items/RadioGroupItem.vue.js +16 -6
- package/dist/lib/form/items/RangeInputNumberItem.vue.d.ts +13 -0
- package/dist/lib/form/items/RangeInputNumberItem.vue.js +116 -0
- package/dist/lib/form/items/RangeInputNumberItem.vue2.js +4 -0
- package/dist/lib/form/items/RateItem.vue.d.ts +1 -1
- package/dist/lib/form/items/RateItem.vue.js +16 -6
- package/dist/lib/form/items/RichEditorItem.vue.js +6 -3
- package/dist/lib/form/items/SelectItem.vue.d.ts +1 -1
- package/dist/lib/form/items/SelectItem.vue.js +17 -7
- package/dist/lib/form/items/SelectTableItem.vue.d.ts +1 -1
- package/dist/lib/form/items/SelectTableItem.vue.js +9 -2
- package/dist/lib/form/items/SelectV2Item.vue.d.ts +1 -1
- package/dist/lib/form/items/SelectV2Item.vue.js +18 -8
- package/dist/lib/form/items/SliderItem.vue.d.ts +1 -1
- package/dist/lib/form/items/SliderItem.vue.js +16 -6
- package/dist/lib/form/items/SwitchItem.vue.d.ts +1 -1
- package/dist/lib/form/items/SwitchItem.vue.js +16 -6
- package/dist/lib/form/items/TextareaItem.vue.d.ts +1 -1
- package/dist/lib/form/items/TextareaItem.vue.js +19 -9
- package/dist/lib/form/items/TimePickerItem.vue.d.ts +1 -1
- package/dist/lib/form/items/TimePickerItem.vue.js +20 -10
- package/dist/lib/form/items/TimeSelectItem.vue.d.ts +1 -1
- package/dist/lib/form/items/TimeSelectItem.vue.js +16 -6
- package/dist/lib/form/items/TransferItem.vue.d.ts +1 -1
- package/dist/lib/form/items/TransferItem.vue.js +17 -7
- package/dist/lib/form/items/TreeSelectItem.vue.d.ts +1 -1
- package/dist/lib/form/items/TreeSelectItem.vue.js +17 -7
- package/dist/lib/modal/Footer.vue.d.ts +1 -1
- package/dist/lib/modal/Footer.vue.js +4 -2
- package/dist/lib/modal/Modal.vue.js +6 -3
- package/dist/lib/package.json.js +1 -1
- package/dist/lib/page-table/PageTable.vue.js +1 -1
- package/dist/lib/page-table/PageTableColumn.vue.d.ts +1 -0
- package/dist/lib/style.css +8 -0
- package/package.json +3 -6
|
@@ -36,15 +36,25 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
36
36
|
setup(__props, { emit: __emit }) {
|
|
37
37
|
const props = __props;
|
|
38
38
|
const emit = __emit;
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
const slots = vue.useSlots();
|
|
40
|
+
const mentionProps = vue.computed(() => {
|
|
41
|
+
var _a, _b;
|
|
42
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
43
|
+
modelValue: props.modelValue || "",
|
|
44
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
function getSlotNames() {
|
|
48
|
+
return Object.keys(slots);
|
|
49
|
+
}
|
|
50
|
+
function getComponentSlotNames() {
|
|
51
|
+
return Object.keys(props.componentSlots || {});
|
|
52
|
+
}
|
|
43
53
|
return (_ctx, _cache) => {
|
|
44
54
|
return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElMention), vue.mergeProps(mentionProps.value, {
|
|
45
55
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
46
56
|
}), vue.createSlots({ _: 2 }, [
|
|
47
|
-
vue.renderList(
|
|
57
|
+
vue.renderList(getSlotNames(), (name) => {
|
|
48
58
|
return {
|
|
49
59
|
name,
|
|
50
60
|
fn: vue.withCtx((slotData) => [
|
|
@@ -52,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
52
62
|
])
|
|
53
63
|
};
|
|
54
64
|
}),
|
|
55
|
-
vue.renderList(
|
|
65
|
+
vue.renderList(getComponentSlotNames(), (name) => {
|
|
56
66
|
return {
|
|
57
67
|
name,
|
|
58
68
|
fn: vue.withCtx((slotData) => [
|
|
@@ -36,12 +36,22 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
36
36
|
setup(__props, { emit: __emit }) {
|
|
37
37
|
const props = __props;
|
|
38
38
|
const emit = __emit;
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
const slots = vue.useSlots();
|
|
40
|
+
const radioGroupProps = vue.computed(() => {
|
|
41
|
+
var _a, _b;
|
|
42
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
43
|
+
modelValue: props.modelValue,
|
|
44
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
45
|
+
});
|
|
46
|
+
});
|
|
43
47
|
const options = vue.computed(() => props.componentProps.options || props.config.options || []);
|
|
44
48
|
const isButton = vue.computed(() => props.componentProps.button || false);
|
|
49
|
+
function getSlotNames() {
|
|
50
|
+
return Object.keys(slots);
|
|
51
|
+
}
|
|
52
|
+
function getComponentSlotNames() {
|
|
53
|
+
return Object.keys(props.componentSlots || {});
|
|
54
|
+
}
|
|
45
55
|
return (_ctx, _cache) => {
|
|
46
56
|
return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElRadioGroup), vue.mergeProps(radioGroupProps.value, {
|
|
47
57
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
@@ -75,7 +85,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
75
85
|
]),
|
|
76
86
|
_: 2
|
|
77
87
|
}, [
|
|
78
|
-
vue.renderList(
|
|
88
|
+
vue.renderList(getSlotNames(), (name) => {
|
|
79
89
|
return {
|
|
80
90
|
name,
|
|
81
91
|
fn: vue.withCtx((slotData) => [
|
|
@@ -83,7 +93,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
83
93
|
])
|
|
84
94
|
};
|
|
85
95
|
}),
|
|
86
|
-
vue.renderList(
|
|
96
|
+
vue.renderList(getComponentSlotNames(), (name) => {
|
|
87
97
|
return {
|
|
88
98
|
name,
|
|
89
99
|
fn: vue.withCtx((slotData) => [
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue?: any;
|
|
3
|
+
config: any;
|
|
4
|
+
componentProps: any;
|
|
5
|
+
componentSlots?: any;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
"update:modelValue": (value: any) => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __spreadValues = (a, b) => {
|
|
10
|
+
for (var prop in b || (b = {}))
|
|
11
|
+
if (__hasOwnProp.call(b, prop))
|
|
12
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13
|
+
if (__getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
+
if (__propIsEnum.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
}
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
20
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
22
|
+
const vue = require("vue");
|
|
23
|
+
const ElementPlus = require("element-plus");
|
|
24
|
+
const _hoisted_1 = { class: "flex items-center gap-2" };
|
|
25
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, {
|
|
26
|
+
name: "JkyFormItemRangeInputNumber"
|
|
27
|
+
}), {
|
|
28
|
+
__name: "RangeInputNumberItem",
|
|
29
|
+
props: {
|
|
30
|
+
modelValue: {},
|
|
31
|
+
config: {},
|
|
32
|
+
componentProps: {},
|
|
33
|
+
componentSlots: {},
|
|
34
|
+
disabled: { type: Boolean }
|
|
35
|
+
},
|
|
36
|
+
emits: ["update:modelValue"],
|
|
37
|
+
setup(__props, { emit: __emit }) {
|
|
38
|
+
const props = __props;
|
|
39
|
+
const emit = __emit;
|
|
40
|
+
function parseModelValue() {
|
|
41
|
+
var _a, _b;
|
|
42
|
+
const val = props.modelValue;
|
|
43
|
+
if (val && typeof val === "object") {
|
|
44
|
+
return {
|
|
45
|
+
min: (_a = val.min) != null ? _a : null,
|
|
46
|
+
max: (_b = val.max) != null ? _b : null
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
return { min: null, max: null };
|
|
50
|
+
}
|
|
51
|
+
const rangeProps = vue.computed(() => {
|
|
52
|
+
var _a, _b;
|
|
53
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
54
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
const separator = vue.computed(() => {
|
|
58
|
+
var _a;
|
|
59
|
+
const separatorProp = (_a = rangeProps.value.separator) != null ? _a : "~";
|
|
60
|
+
if (typeof separatorProp === "function") {
|
|
61
|
+
return separatorProp();
|
|
62
|
+
} else if (typeof separatorProp === "string") {
|
|
63
|
+
return vue.h("span", {}, separatorProp);
|
|
64
|
+
}
|
|
65
|
+
return separatorProp;
|
|
66
|
+
});
|
|
67
|
+
const minInputProps = vue.computed(() => {
|
|
68
|
+
var _a;
|
|
69
|
+
return __spreadProps(__spreadValues({}, rangeProps.value), {
|
|
70
|
+
modelValue: parseModelValue().min,
|
|
71
|
+
placeholder: rangeProps.value.minPlaceholder || "最小值",
|
|
72
|
+
class: ["flex-1", (_a = rangeProps.value) == null ? void 0 : _a.minClass]
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
const maxInputProps = vue.computed(() => {
|
|
76
|
+
var _a;
|
|
77
|
+
return __spreadProps(__spreadValues({}, rangeProps.value), {
|
|
78
|
+
modelValue: parseModelValue().max,
|
|
79
|
+
placeholder: rangeProps.value.maxPlaceholder || "最大值",
|
|
80
|
+
class: ["flex-1", (_a = rangeProps.value) == null ? void 0 : _a.maxClass]
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
function handleMinChange(value) {
|
|
84
|
+
const current = parseModelValue();
|
|
85
|
+
const minVal = value != null ? value : null;
|
|
86
|
+
const maxVal = current.max;
|
|
87
|
+
if (minVal !== null && maxVal !== null && minVal > maxVal) {
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
emit("update:modelValue", {
|
|
91
|
+
min: minVal,
|
|
92
|
+
max: maxVal
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
function handleMaxChange(value) {
|
|
96
|
+
const current = parseModelValue();
|
|
97
|
+
const minVal = current.min;
|
|
98
|
+
const maxVal = value != null ? value : null;
|
|
99
|
+
if (minVal !== null && maxVal !== null && maxVal < minVal) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
emit("update:modelValue", {
|
|
103
|
+
min: minVal,
|
|
104
|
+
max: maxVal
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
return (_ctx, _cache) => {
|
|
108
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
109
|
+
vue.createVNode(vue.unref(ElementPlus.ElInputNumber), vue.mergeProps(minInputProps.value, { "onUpdate:modelValue": handleMinChange }), null, 16),
|
|
110
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(separator.value))),
|
|
111
|
+
vue.createVNode(vue.unref(ElementPlus.ElInputNumber), vue.mergeProps(maxInputProps.value, { "onUpdate:modelValue": handleMaxChange }), null, 16)
|
|
112
|
+
]);
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
}));
|
|
116
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const RangeInputNumberItem_vue_vue_type_script_setup_true_lang = require("./RangeInputNumberItem.vue.js");
|
|
4
|
+
exports.default = RangeInputNumberItem_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -36,15 +36,25 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
36
36
|
setup(__props, { emit: __emit }) {
|
|
37
37
|
const props = __props;
|
|
38
38
|
const emit = __emit;
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
const slots = vue.useSlots();
|
|
40
|
+
const rateProps = vue.computed(() => {
|
|
41
|
+
var _a, _b;
|
|
42
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
43
|
+
modelValue: props.modelValue,
|
|
44
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
function getSlotNames() {
|
|
48
|
+
return Object.keys(slots);
|
|
49
|
+
}
|
|
50
|
+
function getComponentSlotNames() {
|
|
51
|
+
return Object.keys(props.componentSlots || {});
|
|
52
|
+
}
|
|
43
53
|
return (_ctx, _cache) => {
|
|
44
54
|
return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElRate), vue.mergeProps(rateProps.value, {
|
|
45
55
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
46
56
|
}), vue.createSlots({ _: 2 }, [
|
|
47
|
-
vue.renderList(
|
|
57
|
+
vue.renderList(getSlotNames(), (name) => {
|
|
48
58
|
return {
|
|
49
59
|
name,
|
|
50
60
|
fn: vue.withCtx((slotData) => [
|
|
@@ -52,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
52
62
|
])
|
|
53
63
|
};
|
|
54
64
|
}),
|
|
55
|
-
vue.renderList(
|
|
65
|
+
vue.renderList(getComponentSlotNames(), (name) => {
|
|
56
66
|
return {
|
|
57
67
|
name,
|
|
58
68
|
fn: vue.withCtx((slotData) => [
|
|
@@ -37,9 +37,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
37
37
|
setup(__props, { emit: __emit }) {
|
|
38
38
|
const props = __props;
|
|
39
39
|
const emit = __emit;
|
|
40
|
-
const editorProps = vue.computed(() =>
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
const editorProps = vue.computed(() => {
|
|
41
|
+
var _a, _b;
|
|
42
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
43
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
44
|
+
});
|
|
45
|
+
});
|
|
43
46
|
const innerValue = vue.computed({
|
|
44
47
|
get: () => props.modelValue,
|
|
45
48
|
set: (val) => emit("update:modelValue", val)
|
|
@@ -36,12 +36,22 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
36
36
|
setup(__props, { emit: __emit }) {
|
|
37
37
|
const props = __props;
|
|
38
38
|
const emit = __emit;
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
const slots = vue.useSlots();
|
|
40
|
+
const selectProps = vue.computed(() => {
|
|
41
|
+
var _a, _b;
|
|
42
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
43
|
+
modelValue: props.modelValue,
|
|
44
|
+
placeholder: props.componentProps.placeholder || props.config.placeholder || "请选择",
|
|
45
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
46
|
+
});
|
|
47
|
+
});
|
|
44
48
|
const options = vue.computed(() => props.componentProps.options || props.config.options || []);
|
|
49
|
+
function getSlotNames() {
|
|
50
|
+
return Object.keys(slots);
|
|
51
|
+
}
|
|
52
|
+
function getComponentSlotNames() {
|
|
53
|
+
return Object.keys(props.componentSlots || {});
|
|
54
|
+
}
|
|
45
55
|
return (_ctx, _cache) => {
|
|
46
56
|
return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElSelect), vue.mergeProps({ class: "min-w-30" }, selectProps.value, {
|
|
47
57
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
@@ -58,7 +68,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
58
68
|
]),
|
|
59
69
|
_: 2
|
|
60
70
|
}, [
|
|
61
|
-
vue.renderList(
|
|
71
|
+
vue.renderList(getSlotNames(), (name) => {
|
|
62
72
|
return {
|
|
63
73
|
name,
|
|
64
74
|
fn: vue.withCtx((slotData) => [
|
|
@@ -66,7 +76,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
66
76
|
])
|
|
67
77
|
};
|
|
68
78
|
}),
|
|
69
|
-
vue.renderList(
|
|
79
|
+
vue.renderList(getComponentSlotNames(), (name) => {
|
|
70
80
|
return {
|
|
71
81
|
name,
|
|
72
82
|
fn: vue.withCtx((slotData) => [
|
|
@@ -59,6 +59,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
59
59
|
setup(__props, { emit: __emit }) {
|
|
60
60
|
const props = __props;
|
|
61
61
|
const emit = __emit;
|
|
62
|
+
const slots = vue.useSlots();
|
|
62
63
|
const showTable = vue.ref(false);
|
|
63
64
|
const selectedData = vue.ref([]);
|
|
64
65
|
const selectedRows = vue.ref([]);
|
|
@@ -227,6 +228,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
227
228
|
transform: `translateX(-${width})`
|
|
228
229
|
};
|
|
229
230
|
});
|
|
231
|
+
function getSlotNames() {
|
|
232
|
+
return Object.keys(slots);
|
|
233
|
+
}
|
|
234
|
+
function getComponentSlotNames() {
|
|
235
|
+
return Object.keys(props.componentSlots || {});
|
|
236
|
+
}
|
|
230
237
|
return (_ctx, _cache) => {
|
|
231
238
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
232
239
|
vue.createElementVNode("div", _hoisted_2, [
|
|
@@ -270,7 +277,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
270
277
|
"selected-rows": selectedRows.value,
|
|
271
278
|
onSelectionChange: handleSelectionChange
|
|
272
279
|
}), vue.createSlots({ _: 2 }, [
|
|
273
|
-
vue.renderList(
|
|
280
|
+
vue.renderList(getSlotNames(), (name) => {
|
|
274
281
|
return {
|
|
275
282
|
name,
|
|
276
283
|
fn: vue.withCtx((slotData) => [
|
|
@@ -278,7 +285,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
278
285
|
])
|
|
279
286
|
};
|
|
280
287
|
}),
|
|
281
|
-
vue.renderList(
|
|
288
|
+
vue.renderList(getComponentSlotNames(), (name) => {
|
|
282
289
|
return {
|
|
283
290
|
name,
|
|
284
291
|
fn: vue.withCtx((slotData) => [
|
|
@@ -36,17 +36,27 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
36
36
|
setup(__props, { emit: __emit }) {
|
|
37
37
|
const props = __props;
|
|
38
38
|
const emit = __emit;
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
const slots = vue.useSlots();
|
|
40
|
+
const selectV2Props = vue.computed(() => {
|
|
41
|
+
var _a, _b;
|
|
42
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
43
|
+
modelValue: props.modelValue,
|
|
44
|
+
placeholder: props.componentProps.placeholder || props.config.placeholder || "请选择",
|
|
45
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled,
|
|
46
|
+
options: props.componentProps.options || []
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
function getSlotNames() {
|
|
50
|
+
return Object.keys(slots);
|
|
51
|
+
}
|
|
52
|
+
function getComponentSlotNames() {
|
|
53
|
+
return Object.keys(props.componentSlots || {});
|
|
54
|
+
}
|
|
45
55
|
return (_ctx, _cache) => {
|
|
46
56
|
return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElSelectV2), vue.mergeProps({ class: "min-w-30" }, selectV2Props.value, {
|
|
47
57
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
48
58
|
}), vue.createSlots({ _: 2 }, [
|
|
49
|
-
vue.renderList(
|
|
59
|
+
vue.renderList(getSlotNames(), (name) => {
|
|
50
60
|
return {
|
|
51
61
|
name,
|
|
52
62
|
fn: vue.withCtx((slotData) => [
|
|
@@ -54,7 +64,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
54
64
|
])
|
|
55
65
|
};
|
|
56
66
|
}),
|
|
57
|
-
vue.renderList(
|
|
67
|
+
vue.renderList(getComponentSlotNames(), (name) => {
|
|
58
68
|
return {
|
|
59
69
|
name,
|
|
60
70
|
fn: vue.withCtx((slotData) => [
|
|
@@ -36,15 +36,25 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
36
36
|
setup(__props, { emit: __emit }) {
|
|
37
37
|
const props = __props;
|
|
38
38
|
const emit = __emit;
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
const slots = vue.useSlots();
|
|
40
|
+
const sliderProps = vue.computed(() => {
|
|
41
|
+
var _a, _b;
|
|
42
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
43
|
+
modelValue: props.modelValue,
|
|
44
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
function getSlotNames() {
|
|
48
|
+
return Object.keys(slots);
|
|
49
|
+
}
|
|
50
|
+
function getComponentSlotNames() {
|
|
51
|
+
return Object.keys(props.componentSlots || {});
|
|
52
|
+
}
|
|
43
53
|
return (_ctx, _cache) => {
|
|
44
54
|
return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElSlider), vue.mergeProps(sliderProps.value, {
|
|
45
55
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
46
56
|
}), vue.createSlots({ _: 2 }, [
|
|
47
|
-
vue.renderList(
|
|
57
|
+
vue.renderList(getSlotNames(), (name) => {
|
|
48
58
|
return {
|
|
49
59
|
name,
|
|
50
60
|
fn: vue.withCtx((slotData) => [
|
|
@@ -52,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
52
62
|
])
|
|
53
63
|
};
|
|
54
64
|
}),
|
|
55
|
-
vue.renderList(
|
|
65
|
+
vue.renderList(getComponentSlotNames(), (name) => {
|
|
56
66
|
return {
|
|
57
67
|
name,
|
|
58
68
|
fn: vue.withCtx((slotData) => [
|
|
@@ -36,15 +36,25 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
36
36
|
setup(__props, { emit: __emit }) {
|
|
37
37
|
const props = __props;
|
|
38
38
|
const emit = __emit;
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
const slots = vue.useSlots();
|
|
40
|
+
const switchProps = vue.computed(() => {
|
|
41
|
+
var _a, _b;
|
|
42
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
43
|
+
modelValue: props.modelValue,
|
|
44
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
function getSlotNames() {
|
|
48
|
+
return Object.keys(slots);
|
|
49
|
+
}
|
|
50
|
+
function getComponentSlotNames() {
|
|
51
|
+
return Object.keys(props.componentSlots || {});
|
|
52
|
+
}
|
|
43
53
|
return (_ctx, _cache) => {
|
|
44
54
|
return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElSwitch), vue.mergeProps(switchProps.value, {
|
|
45
55
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
46
56
|
}), vue.createSlots({ _: 2 }, [
|
|
47
|
-
vue.renderList(
|
|
57
|
+
vue.renderList(getSlotNames(), (name) => {
|
|
48
58
|
return {
|
|
49
59
|
name,
|
|
50
60
|
fn: vue.withCtx((slotData) => [
|
|
@@ -52,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
52
62
|
])
|
|
53
63
|
};
|
|
54
64
|
}),
|
|
55
|
-
vue.renderList(
|
|
65
|
+
vue.renderList(getComponentSlotNames(), (name) => {
|
|
56
66
|
return {
|
|
57
67
|
name,
|
|
58
68
|
fn: vue.withCtx((slotData) => [
|
|
@@ -36,18 +36,28 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
36
36
|
setup(__props, { emit: __emit }) {
|
|
37
37
|
const props = __props;
|
|
38
38
|
const emit = __emit;
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
const slots = vue.useSlots();
|
|
40
|
+
const textareaProps = vue.computed(() => {
|
|
41
|
+
var _a, _b;
|
|
42
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
43
|
+
modelValue: props.modelValue,
|
|
44
|
+
placeholder: props.componentProps.placeholder || props.config.placeholder || "请输入",
|
|
45
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled,
|
|
46
|
+
type: "textarea",
|
|
47
|
+
rows: props.componentProps.rows || 4
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
function getSlotNames() {
|
|
51
|
+
return Object.keys(slots);
|
|
52
|
+
}
|
|
53
|
+
function getComponentSlotNames() {
|
|
54
|
+
return Object.keys(props.componentSlots || {});
|
|
55
|
+
}
|
|
46
56
|
return (_ctx, _cache) => {
|
|
47
57
|
return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElInput), vue.mergeProps(textareaProps.value, {
|
|
48
58
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
49
59
|
}), vue.createSlots({ _: 2 }, [
|
|
50
|
-
vue.renderList(
|
|
60
|
+
vue.renderList(getSlotNames(), (name) => {
|
|
51
61
|
return {
|
|
52
62
|
name,
|
|
53
63
|
fn: vue.withCtx((slotData) => [
|
|
@@ -55,7 +65,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
55
65
|
])
|
|
56
66
|
};
|
|
57
67
|
}),
|
|
58
|
-
vue.renderList(
|
|
68
|
+
vue.renderList(getComponentSlotNames(), (name) => {
|
|
59
69
|
return {
|
|
60
70
|
name,
|
|
61
71
|
fn: vue.withCtx((slotData) => [
|