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
|
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
|
|
20
|
+
import { defineComponent, useSlots, computed, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
|
|
21
21
|
import { ElRadioGroup, ElRadioButton, ElRadio } from "element-plus";
|
|
22
22
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
23
23
|
name: "JkyFormItemRadioGroup"
|
|
@@ -34,12 +34,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
34
34
|
setup(__props, { emit: __emit }) {
|
|
35
35
|
const props = __props;
|
|
36
36
|
const emit = __emit;
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
const slots = useSlots();
|
|
38
|
+
const radioGroupProps = computed(() => {
|
|
39
|
+
var _a, _b;
|
|
40
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
41
|
+
modelValue: props.modelValue,
|
|
42
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
43
|
+
});
|
|
44
|
+
});
|
|
41
45
|
const options = computed(() => props.componentProps.options || props.config.options || []);
|
|
42
46
|
const isButton = computed(() => props.componentProps.button || false);
|
|
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 openBlock(), createBlock(unref(ElRadioGroup), mergeProps(radioGroupProps.value, {
|
|
45
55
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
@@ -73,7 +83,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
73
83
|
]),
|
|
74
84
|
_: 2
|
|
75
85
|
}, [
|
|
76
|
-
renderList(
|
|
86
|
+
renderList(getSlotNames(), (name) => {
|
|
77
87
|
return {
|
|
78
88
|
name,
|
|
79
89
|
fn: withCtx((slotData) => [
|
|
@@ -81,7 +91,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
81
91
|
])
|
|
82
92
|
};
|
|
83
93
|
}),
|
|
84
|
-
renderList(
|
|
94
|
+
renderList(getComponentSlotNames(), (name) => {
|
|
85
95
|
return {
|
|
86
96
|
name,
|
|
87
97
|
fn: 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
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import { defineComponent, computed, h, openBlock, createElementBlock, createVNode, unref, mergeProps, createBlock, resolveDynamicComponent } from "vue";
|
|
21
|
+
import { ElInputNumber } from "element-plus";
|
|
22
|
+
const _hoisted_1 = { class: "flex items-center gap-2" };
|
|
23
|
+
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
24
|
+
name: "JkyFormItemRangeInputNumber"
|
|
25
|
+
}), {
|
|
26
|
+
__name: "RangeInputNumberItem",
|
|
27
|
+
props: {
|
|
28
|
+
modelValue: {},
|
|
29
|
+
config: {},
|
|
30
|
+
componentProps: {},
|
|
31
|
+
componentSlots: {},
|
|
32
|
+
disabled: { type: Boolean }
|
|
33
|
+
},
|
|
34
|
+
emits: ["update:modelValue"],
|
|
35
|
+
setup(__props, { emit: __emit }) {
|
|
36
|
+
const props = __props;
|
|
37
|
+
const emit = __emit;
|
|
38
|
+
function parseModelValue() {
|
|
39
|
+
var _a, _b;
|
|
40
|
+
const val = props.modelValue;
|
|
41
|
+
if (val && typeof val === "object") {
|
|
42
|
+
return {
|
|
43
|
+
min: (_a = val.min) != null ? _a : null,
|
|
44
|
+
max: (_b = val.max) != null ? _b : null
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
return { min: null, max: null };
|
|
48
|
+
}
|
|
49
|
+
const rangeProps = computed(() => {
|
|
50
|
+
var _a, _b;
|
|
51
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
52
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
const separator = computed(() => {
|
|
56
|
+
var _a;
|
|
57
|
+
const separatorProp = (_a = rangeProps.value.separator) != null ? _a : "~";
|
|
58
|
+
if (typeof separatorProp === "function") {
|
|
59
|
+
return separatorProp();
|
|
60
|
+
} else if (typeof separatorProp === "string") {
|
|
61
|
+
return h("span", {}, separatorProp);
|
|
62
|
+
}
|
|
63
|
+
return separatorProp;
|
|
64
|
+
});
|
|
65
|
+
const minInputProps = computed(() => {
|
|
66
|
+
var _a;
|
|
67
|
+
return __spreadProps(__spreadValues({}, rangeProps.value), {
|
|
68
|
+
modelValue: parseModelValue().min,
|
|
69
|
+
placeholder: rangeProps.value.minPlaceholder || "最小值",
|
|
70
|
+
class: ["flex-1", (_a = rangeProps.value) == null ? void 0 : _a.minClass]
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
const maxInputProps = computed(() => {
|
|
74
|
+
var _a;
|
|
75
|
+
return __spreadProps(__spreadValues({}, rangeProps.value), {
|
|
76
|
+
modelValue: parseModelValue().max,
|
|
77
|
+
placeholder: rangeProps.value.maxPlaceholder || "最大值",
|
|
78
|
+
class: ["flex-1", (_a = rangeProps.value) == null ? void 0 : _a.maxClass]
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
function handleMinChange(value) {
|
|
82
|
+
const current = parseModelValue();
|
|
83
|
+
const minVal = value != null ? value : null;
|
|
84
|
+
const maxVal = current.max;
|
|
85
|
+
if (minVal !== null && maxVal !== null && minVal > maxVal) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
emit("update:modelValue", {
|
|
89
|
+
min: minVal,
|
|
90
|
+
max: maxVal
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
function handleMaxChange(value) {
|
|
94
|
+
const current = parseModelValue();
|
|
95
|
+
const minVal = current.min;
|
|
96
|
+
const maxVal = value != null ? value : null;
|
|
97
|
+
if (minVal !== null && maxVal !== null && maxVal < minVal) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
emit("update:modelValue", {
|
|
101
|
+
min: minVal,
|
|
102
|
+
max: maxVal
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
return (_ctx, _cache) => {
|
|
106
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
107
|
+
createVNode(unref(ElInputNumber), mergeProps(minInputProps.value, { "onUpdate:modelValue": handleMinChange }), null, 16),
|
|
108
|
+
(openBlock(), createBlock(resolveDynamicComponent(separator.value))),
|
|
109
|
+
createVNode(unref(ElInputNumber), mergeProps(maxInputProps.value, { "onUpdate:modelValue": handleMaxChange }), null, 16)
|
|
110
|
+
]);
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
}));
|
|
114
|
+
export {
|
|
115
|
+
_sfc_main as default
|
|
116
|
+
};
|
|
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
|
|
20
|
+
import { defineComponent, useSlots, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
|
|
21
21
|
import { ElRate } from "element-plus";
|
|
22
22
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
23
23
|
name: "JkyFormItemRate"
|
|
@@ -34,15 +34,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
34
34
|
setup(__props, { emit: __emit }) {
|
|
35
35
|
const props = __props;
|
|
36
36
|
const emit = __emit;
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
const slots = useSlots();
|
|
38
|
+
const rateProps = computed(() => {
|
|
39
|
+
var _a, _b;
|
|
40
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
41
|
+
modelValue: props.modelValue,
|
|
42
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
function getSlotNames() {
|
|
46
|
+
return Object.keys(slots);
|
|
47
|
+
}
|
|
48
|
+
function getComponentSlotNames() {
|
|
49
|
+
return Object.keys(props.componentSlots || {});
|
|
50
|
+
}
|
|
41
51
|
return (_ctx, _cache) => {
|
|
42
52
|
return openBlock(), createBlock(unref(ElRate), mergeProps(rateProps.value, {
|
|
43
53
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
44
54
|
}), createSlots({ _: 2 }, [
|
|
45
|
-
renderList(
|
|
55
|
+
renderList(getSlotNames(), (name) => {
|
|
46
56
|
return {
|
|
47
57
|
name,
|
|
48
58
|
fn: withCtx((slotData) => [
|
|
@@ -50,7 +60,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
50
60
|
])
|
|
51
61
|
};
|
|
52
62
|
}),
|
|
53
|
-
renderList(
|
|
63
|
+
renderList(getComponentSlotNames(), (name) => {
|
|
54
64
|
return {
|
|
55
65
|
name,
|
|
56
66
|
fn: withCtx((slotData) => [
|
|
@@ -35,9 +35,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
35
35
|
setup(__props, { emit: __emit }) {
|
|
36
36
|
const props = __props;
|
|
37
37
|
const emit = __emit;
|
|
38
|
-
const editorProps = computed(() =>
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
const editorProps = computed(() => {
|
|
39
|
+
var _a, _b;
|
|
40
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
41
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
42
|
+
});
|
|
43
|
+
});
|
|
41
44
|
const innerValue = computed({
|
|
42
45
|
get: () => props.modelValue,
|
|
43
46
|
set: (val) => emit("update:modelValue", val)
|
|
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, createElementBlock, Fragment, renderList, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
|
|
20
|
+
import { defineComponent, useSlots, computed, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, createElementBlock, Fragment, renderList, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
|
|
21
21
|
import { ElSelect, ElOption } from "element-plus";
|
|
22
22
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
23
23
|
name: "JkyFormItemSelect"
|
|
@@ -34,12 +34,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
34
34
|
setup(__props, { emit: __emit }) {
|
|
35
35
|
const props = __props;
|
|
36
36
|
const emit = __emit;
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
const slots = useSlots();
|
|
38
|
+
const selectProps = computed(() => {
|
|
39
|
+
var _a, _b;
|
|
40
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
41
|
+
modelValue: props.modelValue,
|
|
42
|
+
placeholder: props.componentProps.placeholder || props.config.placeholder || "请选择",
|
|
43
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
44
|
+
});
|
|
45
|
+
});
|
|
42
46
|
const options = computed(() => props.componentProps.options || props.config.options || []);
|
|
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 openBlock(), createBlock(unref(ElSelect), mergeProps({ class: "min-w-30" }, selectProps.value, {
|
|
45
55
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
@@ -56,7 +66,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
56
66
|
]),
|
|
57
67
|
_: 2
|
|
58
68
|
}, [
|
|
59
|
-
renderList(
|
|
69
|
+
renderList(getSlotNames(), (name) => {
|
|
60
70
|
return {
|
|
61
71
|
name,
|
|
62
72
|
fn: withCtx((slotData) => [
|
|
@@ -64,7 +74,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
64
74
|
])
|
|
65
75
|
};
|
|
66
76
|
}),
|
|
67
|
-
renderList(
|
|
77
|
+
renderList(getComponentSlotNames(), (name) => {
|
|
68
78
|
return {
|
|
69
79
|
name,
|
|
70
80
|
fn: withCtx((slotData) => [
|
|
@@ -37,7 +37,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
37
37
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
|
-
import { defineComponent, ref, computed, watch, nextTick, openBlock, createElementBlock, createElementVNode, Fragment, renderList, createBlock, unref, withCtx, createTextVNode, toDisplayString, createCommentVNode, withDirectives, normalizeStyle, createVNode, mergeProps, createSlots, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent, vShow } from "vue";
|
|
40
|
+
import { defineComponent, useSlots, ref, computed, watch, nextTick, openBlock, createElementBlock, createElementVNode, Fragment, renderList, createBlock, unref, withCtx, createTextVNode, toDisplayString, createCommentVNode, withDirectives, normalizeStyle, createVNode, mergeProps, createSlots, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent, vShow } from "vue";
|
|
41
41
|
import { ElTag, ElButton } from "element-plus";
|
|
42
42
|
import { JkyPageTable } from "../../page-table/index.js";
|
|
43
43
|
const _hoisted_1 = { class: "jky-select-table" };
|
|
@@ -57,6 +57,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
57
57
|
setup(__props, { emit: __emit }) {
|
|
58
58
|
const props = __props;
|
|
59
59
|
const emit = __emit;
|
|
60
|
+
const slots = useSlots();
|
|
60
61
|
const showTable = ref(false);
|
|
61
62
|
const selectedData = ref([]);
|
|
62
63
|
const selectedRows = ref([]);
|
|
@@ -225,6 +226,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
225
226
|
transform: `translateX(-${width})`
|
|
226
227
|
};
|
|
227
228
|
});
|
|
229
|
+
function getSlotNames() {
|
|
230
|
+
return Object.keys(slots);
|
|
231
|
+
}
|
|
232
|
+
function getComponentSlotNames() {
|
|
233
|
+
return Object.keys(props.componentSlots || {});
|
|
234
|
+
}
|
|
228
235
|
return (_ctx, _cache) => {
|
|
229
236
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
230
237
|
createElementVNode("div", _hoisted_2, [
|
|
@@ -268,7 +275,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
268
275
|
"selected-rows": selectedRows.value,
|
|
269
276
|
onSelectionChange: handleSelectionChange
|
|
270
277
|
}), createSlots({ _: 2 }, [
|
|
271
|
-
renderList(
|
|
278
|
+
renderList(getSlotNames(), (name) => {
|
|
272
279
|
return {
|
|
273
280
|
name,
|
|
274
281
|
fn: withCtx((slotData) => [
|
|
@@ -276,7 +283,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
276
283
|
])
|
|
277
284
|
};
|
|
278
285
|
}),
|
|
279
|
-
renderList(
|
|
286
|
+
renderList(getComponentSlotNames(), (name) => {
|
|
280
287
|
return {
|
|
281
288
|
name,
|
|
282
289
|
fn: withCtx((slotData) => [
|
|
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
|
|
20
|
+
import { defineComponent, useSlots, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
|
|
21
21
|
import { ElSelectV2 } from "element-plus";
|
|
22
22
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
23
23
|
name: "JkyFormItemSelectV2"
|
|
@@ -34,17 +34,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
34
34
|
setup(__props, { emit: __emit }) {
|
|
35
35
|
const props = __props;
|
|
36
36
|
const emit = __emit;
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
const slots = useSlots();
|
|
38
|
+
const selectV2Props = computed(() => {
|
|
39
|
+
var _a, _b;
|
|
40
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
41
|
+
modelValue: props.modelValue,
|
|
42
|
+
placeholder: props.componentProps.placeholder || props.config.placeholder || "请选择",
|
|
43
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled,
|
|
44
|
+
options: props.componentProps.options || []
|
|
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 openBlock(), createBlock(unref(ElSelectV2), mergeProps({ class: "min-w-30" }, selectV2Props.value, {
|
|
45
55
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
46
56
|
}), createSlots({ _: 2 }, [
|
|
47
|
-
renderList(
|
|
57
|
+
renderList(getSlotNames(), (name) => {
|
|
48
58
|
return {
|
|
49
59
|
name,
|
|
50
60
|
fn: withCtx((slotData) => [
|
|
@@ -52,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
52
62
|
])
|
|
53
63
|
};
|
|
54
64
|
}),
|
|
55
|
-
renderList(
|
|
65
|
+
renderList(getComponentSlotNames(), (name) => {
|
|
56
66
|
return {
|
|
57
67
|
name,
|
|
58
68
|
fn: withCtx((slotData) => [
|
|
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
|
|
20
|
+
import { defineComponent, useSlots, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
|
|
21
21
|
import { ElSlider } from "element-plus";
|
|
22
22
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
23
23
|
name: "JkyFormItemSlider"
|
|
@@ -34,15 +34,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
34
34
|
setup(__props, { emit: __emit }) {
|
|
35
35
|
const props = __props;
|
|
36
36
|
const emit = __emit;
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
const slots = useSlots();
|
|
38
|
+
const sliderProps = computed(() => {
|
|
39
|
+
var _a, _b;
|
|
40
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
41
|
+
modelValue: props.modelValue,
|
|
42
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
function getSlotNames() {
|
|
46
|
+
return Object.keys(slots);
|
|
47
|
+
}
|
|
48
|
+
function getComponentSlotNames() {
|
|
49
|
+
return Object.keys(props.componentSlots || {});
|
|
50
|
+
}
|
|
41
51
|
return (_ctx, _cache) => {
|
|
42
52
|
return openBlock(), createBlock(unref(ElSlider), mergeProps(sliderProps.value, {
|
|
43
53
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
44
54
|
}), createSlots({ _: 2 }, [
|
|
45
|
-
renderList(
|
|
55
|
+
renderList(getSlotNames(), (name) => {
|
|
46
56
|
return {
|
|
47
57
|
name,
|
|
48
58
|
fn: withCtx((slotData) => [
|
|
@@ -50,7 +60,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
50
60
|
])
|
|
51
61
|
};
|
|
52
62
|
}),
|
|
53
|
-
renderList(
|
|
63
|
+
renderList(getComponentSlotNames(), (name) => {
|
|
54
64
|
return {
|
|
55
65
|
name,
|
|
56
66
|
fn: withCtx((slotData) => [
|
|
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
|
|
20
|
+
import { defineComponent, useSlots, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
|
|
21
21
|
import { ElSwitch } from "element-plus";
|
|
22
22
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
23
23
|
name: "JkyFormItemSwitch"
|
|
@@ -34,15 +34,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
34
34
|
setup(__props, { emit: __emit }) {
|
|
35
35
|
const props = __props;
|
|
36
36
|
const emit = __emit;
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
const slots = useSlots();
|
|
38
|
+
const switchProps = computed(() => {
|
|
39
|
+
var _a, _b;
|
|
40
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
41
|
+
modelValue: props.modelValue,
|
|
42
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
function getSlotNames() {
|
|
46
|
+
return Object.keys(slots);
|
|
47
|
+
}
|
|
48
|
+
function getComponentSlotNames() {
|
|
49
|
+
return Object.keys(props.componentSlots || {});
|
|
50
|
+
}
|
|
41
51
|
return (_ctx, _cache) => {
|
|
42
52
|
return openBlock(), createBlock(unref(ElSwitch), mergeProps(switchProps.value, {
|
|
43
53
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
44
54
|
}), createSlots({ _: 2 }, [
|
|
45
|
-
renderList(
|
|
55
|
+
renderList(getSlotNames(), (name) => {
|
|
46
56
|
return {
|
|
47
57
|
name,
|
|
48
58
|
fn: withCtx((slotData) => [
|
|
@@ -50,7 +60,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
50
60
|
])
|
|
51
61
|
};
|
|
52
62
|
}),
|
|
53
|
-
renderList(
|
|
63
|
+
renderList(getComponentSlotNames(), (name) => {
|
|
54
64
|
return {
|
|
55
65
|
name,
|
|
56
66
|
fn: withCtx((slotData) => [
|
|
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
|
|
20
|
+
import { defineComponent, useSlots, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, resolveDynamicComponent } from "vue";
|
|
21
21
|
import { ElInput } from "element-plus";
|
|
22
22
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
23
23
|
name: "JkyFormItemTextarea"
|
|
@@ -34,18 +34,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
34
34
|
setup(__props, { emit: __emit }) {
|
|
35
35
|
const props = __props;
|
|
36
36
|
const emit = __emit;
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
37
|
+
const slots = useSlots();
|
|
38
|
+
const textareaProps = computed(() => {
|
|
39
|
+
var _a, _b;
|
|
40
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
41
|
+
modelValue: props.modelValue,
|
|
42
|
+
placeholder: props.componentProps.placeholder || props.config.placeholder || "请输入",
|
|
43
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled,
|
|
44
|
+
type: "textarea",
|
|
45
|
+
rows: props.componentProps.rows || 4
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
function getSlotNames() {
|
|
49
|
+
return Object.keys(slots);
|
|
50
|
+
}
|
|
51
|
+
function getComponentSlotNames() {
|
|
52
|
+
return Object.keys(props.componentSlots || {});
|
|
53
|
+
}
|
|
44
54
|
return (_ctx, _cache) => {
|
|
45
55
|
return openBlock(), createBlock(unref(ElInput), mergeProps(textareaProps.value, {
|
|
46
56
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
47
57
|
}), createSlots({ _: 2 }, [
|
|
48
|
-
renderList(
|
|
58
|
+
renderList(getSlotNames(), (name) => {
|
|
49
59
|
return {
|
|
50
60
|
name,
|
|
51
61
|
fn: withCtx((slotData) => [
|
|
@@ -53,7 +63,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
53
63
|
])
|
|
54
64
|
};
|
|
55
65
|
}),
|
|
56
|
-
renderList(
|
|
66
|
+
renderList(getComponentSlotNames(), (name) => {
|
|
57
67
|
return {
|
|
58
68
|
name,
|
|
59
69
|
fn: withCtx((slotData) => [
|