jky-component-lib 0.0.133 → 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 +5 -12
- package/dist/es/amap/style3.css +12 -5
- package/dist/es/form/FormItem.vue.js +60 -54
- package/dist/es/form/items/AutocompleteItem.vue.d.ts +1 -1
- package/dist/es/form/items/AutocompleteItem.vue.js +10 -3
- package/dist/es/form/items/CascaderItem.vue.d.ts +1 -1
- package/dist/es/form/items/CascaderItem.vue.js +10 -3
- package/dist/es/form/items/CheckboxGroupItem.vue.d.ts +3 -1
- package/dist/es/form/items/CheckboxGroupItem.vue.js +10 -3
- package/dist/es/form/items/ColorPickerItem.vue.d.ts +1 -1
- package/dist/es/form/items/ColorPickerItem.vue.js +10 -3
- package/dist/es/form/items/ColorPickerPanelItem.vue.d.ts +1 -1
- package/dist/es/form/items/ColorPickerPanelItem.vue.js +10 -3
- package/dist/es/form/items/DatePickerItem.vue.d.ts +1 -1
- package/dist/es/form/items/DatePickerItem.vue.js +10 -3
- 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 +10 -3
- package/dist/es/form/items/ImageUploadItem.vue.d.ts +1 -1
- package/dist/es/form/items/ImageUploadItem.vue.js +10 -3
- package/dist/es/form/items/InputItem.vue.d.ts +1 -1
- package/dist/es/form/items/InputItem.vue.js +11 -4
- package/dist/es/form/items/InputNumberItem.vue.d.ts +1 -1
- package/dist/es/form/items/InputNumberItem.vue.js +10 -3
- package/dist/es/form/items/InputTagItem.vue.d.ts +1 -1
- package/dist/es/form/items/InputTagItem.vue.js +10 -3
- package/dist/es/form/items/LinkedSelectItem.vue.d.ts +4 -1
- package/dist/es/form/items/LinkedSelectItem.vue.js +10 -3
- package/dist/es/form/items/MentionItem.vue.d.ts +1 -1
- package/dist/es/form/items/MentionItem.vue.js +10 -3
- package/dist/es/form/items/RadioGroupItem.vue.d.ts +3 -1
- package/dist/es/form/items/RadioGroupItem.vue.js +10 -3
- 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 +10 -3
- package/dist/es/form/items/SelectItem.vue.d.ts +1 -1
- package/dist/es/form/items/SelectItem.vue.js +10 -3
- 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 +10 -3
- package/dist/es/form/items/SliderItem.vue.d.ts +1 -1
- package/dist/es/form/items/SliderItem.vue.js +10 -3
- package/dist/es/form/items/SwitchItem.vue.d.ts +1 -1
- package/dist/es/form/items/SwitchItem.vue.js +10 -3
- package/dist/es/form/items/TextareaItem.vue.d.ts +1 -1
- package/dist/es/form/items/TextareaItem.vue.js +10 -3
- package/dist/es/form/items/TimePickerItem.vue.d.ts +1 -1
- package/dist/es/form/items/TimePickerItem.vue.js +10 -3
- package/dist/es/form/items/TimeSelectItem.vue.d.ts +1 -1
- package/dist/es/form/items/TimeSelectItem.vue.js +10 -3
- package/dist/es/form/items/TransferItem.vue.d.ts +1 -1
- package/dist/es/form/items/TransferItem.vue.js +10 -3
- package/dist/es/form/items/TreeSelectItem.vue.d.ts +1 -1
- package/dist/es/form/items/TreeSelectItem.vue.js +10 -3
- 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/lib/amap/style.css +5 -12
- package/dist/lib/amap/style3.css +12 -5
- package/dist/lib/form/FormItem.vue.js +9 -3
- package/dist/lib/form/items/AutocompleteItem.vue.d.ts +1 -1
- package/dist/lib/form/items/AutocompleteItem.vue.js +9 -2
- package/dist/lib/form/items/CascaderItem.vue.d.ts +1 -1
- package/dist/lib/form/items/CascaderItem.vue.js +9 -2
- package/dist/lib/form/items/CheckboxGroupItem.vue.d.ts +3 -1
- package/dist/lib/form/items/CheckboxGroupItem.vue.js +9 -2
- package/dist/lib/form/items/ColorPickerItem.vue.d.ts +1 -1
- package/dist/lib/form/items/ColorPickerItem.vue.js +9 -2
- package/dist/lib/form/items/ColorPickerPanelItem.vue.d.ts +1 -1
- package/dist/lib/form/items/ColorPickerPanelItem.vue.js +9 -2
- package/dist/lib/form/items/DatePickerItem.vue.d.ts +1 -1
- package/dist/lib/form/items/DatePickerItem.vue.js +9 -2
- 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 +9 -2
- package/dist/lib/form/items/ImageUploadItem.vue.d.ts +1 -1
- package/dist/lib/form/items/ImageUploadItem.vue.js +9 -2
- package/dist/lib/form/items/InputItem.vue.d.ts +1 -1
- package/dist/lib/form/items/InputItem.vue.js +10 -3
- package/dist/lib/form/items/InputNumberItem.vue.d.ts +1 -1
- package/dist/lib/form/items/InputNumberItem.vue.js +9 -2
- package/dist/lib/form/items/InputTagItem.vue.d.ts +1 -1
- package/dist/lib/form/items/InputTagItem.vue.js +9 -2
- package/dist/lib/form/items/LinkedSelectItem.vue.d.ts +4 -1
- package/dist/lib/form/items/LinkedSelectItem.vue.js +9 -2
- package/dist/lib/form/items/MentionItem.vue.d.ts +1 -1
- package/dist/lib/form/items/MentionItem.vue.js +9 -2
- package/dist/lib/form/items/RadioGroupItem.vue.d.ts +3 -1
- package/dist/lib/form/items/RadioGroupItem.vue.js +9 -2
- 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 +9 -2
- package/dist/lib/form/items/SelectItem.vue.d.ts +1 -1
- package/dist/lib/form/items/SelectItem.vue.js +9 -2
- 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 +9 -2
- package/dist/lib/form/items/SliderItem.vue.d.ts +1 -1
- package/dist/lib/form/items/SliderItem.vue.js +9 -2
- package/dist/lib/form/items/SwitchItem.vue.d.ts +1 -1
- package/dist/lib/form/items/SwitchItem.vue.js +9 -2
- package/dist/lib/form/items/TextareaItem.vue.d.ts +1 -1
- package/dist/lib/form/items/TextareaItem.vue.js +9 -2
- package/dist/lib/form/items/TimePickerItem.vue.d.ts +1 -1
- package/dist/lib/form/items/TimePickerItem.vue.js +9 -2
- package/dist/lib/form/items/TimeSelectItem.vue.d.ts +1 -1
- package/dist/lib/form/items/TimeSelectItem.vue.js +9 -2
- package/dist/lib/form/items/TransferItem.vue.d.ts +1 -1
- package/dist/lib/form/items/TransferItem.vue.js +9 -2
- package/dist/lib/form/items/TreeSelectItem.vue.d.ts +1 -1
- package/dist/lib/form/items/TreeSelectItem.vue.js +9 -2
- 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/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, 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,6 +34,7 @@ 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 slots = useSlots();
|
|
37
38
|
const selectProps = computed(() => {
|
|
38
39
|
var _a, _b;
|
|
39
40
|
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
@@ -43,6 +44,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
43
44
|
});
|
|
44
45
|
});
|
|
45
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
|
+
}
|
|
46
53
|
return (_ctx, _cache) => {
|
|
47
54
|
return openBlock(), createBlock(unref(ElSelect), mergeProps({ class: "min-w-30" }, selectProps.value, {
|
|
48
55
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
@@ -59,7 +66,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
59
66
|
]),
|
|
60
67
|
_: 2
|
|
61
68
|
}, [
|
|
62
|
-
renderList(
|
|
69
|
+
renderList(getSlotNames(), (name) => {
|
|
63
70
|
return {
|
|
64
71
|
name,
|
|
65
72
|
fn: withCtx((slotData) => [
|
|
@@ -67,7 +74,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
67
74
|
])
|
|
68
75
|
};
|
|
69
76
|
}),
|
|
70
|
-
renderList(
|
|
77
|
+
renderList(getComponentSlotNames(), (name) => {
|
|
71
78
|
return {
|
|
72
79
|
name,
|
|
73
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,6 +34,7 @@ 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 slots = useSlots();
|
|
37
38
|
const selectV2Props = computed(() => {
|
|
38
39
|
var _a, _b;
|
|
39
40
|
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
@@ -43,11 +44,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
43
44
|
options: props.componentProps.options || []
|
|
44
45
|
});
|
|
45
46
|
});
|
|
47
|
+
function getSlotNames() {
|
|
48
|
+
return Object.keys(slots);
|
|
49
|
+
}
|
|
50
|
+
function getComponentSlotNames() {
|
|
51
|
+
return Object.keys(props.componentSlots || {});
|
|
52
|
+
}
|
|
46
53
|
return (_ctx, _cache) => {
|
|
47
54
|
return openBlock(), createBlock(unref(ElSelectV2), mergeProps({ class: "min-w-30" }, selectV2Props.value, {
|
|
48
55
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
49
56
|
}), createSlots({ _: 2 }, [
|
|
50
|
-
renderList(
|
|
57
|
+
renderList(getSlotNames(), (name) => {
|
|
51
58
|
return {
|
|
52
59
|
name,
|
|
53
60
|
fn: withCtx((slotData) => [
|
|
@@ -55,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
55
62
|
])
|
|
56
63
|
};
|
|
57
64
|
}),
|
|
58
|
-
renderList(
|
|
65
|
+
renderList(getComponentSlotNames(), (name) => {
|
|
59
66
|
return {
|
|
60
67
|
name,
|
|
61
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,6 +34,7 @@ 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 slots = useSlots();
|
|
37
38
|
const sliderProps = computed(() => {
|
|
38
39
|
var _a, _b;
|
|
39
40
|
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
@@ -41,11 +42,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
41
42
|
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
42
43
|
});
|
|
43
44
|
});
|
|
45
|
+
function getSlotNames() {
|
|
46
|
+
return Object.keys(slots);
|
|
47
|
+
}
|
|
48
|
+
function getComponentSlotNames() {
|
|
49
|
+
return Object.keys(props.componentSlots || {});
|
|
50
|
+
}
|
|
44
51
|
return (_ctx, _cache) => {
|
|
45
52
|
return openBlock(), createBlock(unref(ElSlider), mergeProps(sliderProps.value, {
|
|
46
53
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
47
54
|
}), createSlots({ _: 2 }, [
|
|
48
|
-
renderList(
|
|
55
|
+
renderList(getSlotNames(), (name) => {
|
|
49
56
|
return {
|
|
50
57
|
name,
|
|
51
58
|
fn: withCtx((slotData) => [
|
|
@@ -53,7 +60,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
53
60
|
])
|
|
54
61
|
};
|
|
55
62
|
}),
|
|
56
|
-
renderList(
|
|
63
|
+
renderList(getComponentSlotNames(), (name) => {
|
|
57
64
|
return {
|
|
58
65
|
name,
|
|
59
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,6 +34,7 @@ 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 slots = useSlots();
|
|
37
38
|
const switchProps = computed(() => {
|
|
38
39
|
var _a, _b;
|
|
39
40
|
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
@@ -41,11 +42,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
41
42
|
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
42
43
|
});
|
|
43
44
|
});
|
|
45
|
+
function getSlotNames() {
|
|
46
|
+
return Object.keys(slots);
|
|
47
|
+
}
|
|
48
|
+
function getComponentSlotNames() {
|
|
49
|
+
return Object.keys(props.componentSlots || {});
|
|
50
|
+
}
|
|
44
51
|
return (_ctx, _cache) => {
|
|
45
52
|
return openBlock(), createBlock(unref(ElSwitch), mergeProps(switchProps.value, {
|
|
46
53
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
47
54
|
}), createSlots({ _: 2 }, [
|
|
48
|
-
renderList(
|
|
55
|
+
renderList(getSlotNames(), (name) => {
|
|
49
56
|
return {
|
|
50
57
|
name,
|
|
51
58
|
fn: withCtx((slotData) => [
|
|
@@ -53,7 +60,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
53
60
|
])
|
|
54
61
|
};
|
|
55
62
|
}),
|
|
56
|
-
renderList(
|
|
63
|
+
renderList(getComponentSlotNames(), (name) => {
|
|
57
64
|
return {
|
|
58
65
|
name,
|
|
59
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,6 +34,7 @@ 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 slots = useSlots();
|
|
37
38
|
const textareaProps = computed(() => {
|
|
38
39
|
var _a, _b;
|
|
39
40
|
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
@@ -44,11 +45,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
44
45
|
rows: props.componentProps.rows || 4
|
|
45
46
|
});
|
|
46
47
|
});
|
|
48
|
+
function getSlotNames() {
|
|
49
|
+
return Object.keys(slots);
|
|
50
|
+
}
|
|
51
|
+
function getComponentSlotNames() {
|
|
52
|
+
return Object.keys(props.componentSlots || {});
|
|
53
|
+
}
|
|
47
54
|
return (_ctx, _cache) => {
|
|
48
55
|
return openBlock(), createBlock(unref(ElInput), mergeProps(textareaProps.value, {
|
|
49
56
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
50
57
|
}), createSlots({ _: 2 }, [
|
|
51
|
-
renderList(
|
|
58
|
+
renderList(getSlotNames(), (name) => {
|
|
52
59
|
return {
|
|
53
60
|
name,
|
|
54
61
|
fn: withCtx((slotData) => [
|
|
@@ -56,7 +63,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
56
63
|
])
|
|
57
64
|
};
|
|
58
65
|
}),
|
|
59
|
-
renderList(
|
|
66
|
+
renderList(getComponentSlotNames(), (name) => {
|
|
60
67
|
return {
|
|
61
68
|
name,
|
|
62
69
|
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 { ElTimePicker } from "element-plus";
|
|
22
22
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
23
23
|
name: "JkyFormItemTimePicker"
|
|
@@ -34,6 +34,7 @@ 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 slots = useSlots();
|
|
37
38
|
const timePickerProps = computed(() => {
|
|
38
39
|
var _a, _b;
|
|
39
40
|
return __spreadProps(__spreadValues({
|
|
@@ -45,11 +46,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
45
46
|
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
46
47
|
});
|
|
47
48
|
});
|
|
49
|
+
function getSlotNames() {
|
|
50
|
+
return Object.keys(slots);
|
|
51
|
+
}
|
|
52
|
+
function getComponentSlotNames() {
|
|
53
|
+
return Object.keys(props.componentSlots || {});
|
|
54
|
+
}
|
|
48
55
|
return (_ctx, _cache) => {
|
|
49
56
|
return openBlock(), createBlock(unref(ElTimePicker), mergeProps(timePickerProps.value, {
|
|
50
57
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
51
58
|
}), createSlots({ _: 2 }, [
|
|
52
|
-
renderList(
|
|
59
|
+
renderList(getSlotNames(), (name) => {
|
|
53
60
|
return {
|
|
54
61
|
name,
|
|
55
62
|
fn: withCtx((slotData) => [
|
|
@@ -57,7 +64,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
57
64
|
])
|
|
58
65
|
};
|
|
59
66
|
}),
|
|
60
|
-
renderList(
|
|
67
|
+
renderList(getComponentSlotNames(), (name) => {
|
|
61
68
|
return {
|
|
62
69
|
name,
|
|
63
70
|
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 { ElTimeSelect } from "element-plus";
|
|
22
22
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
23
23
|
name: "JkyFormItemTimeSelect"
|
|
@@ -34,6 +34,7 @@ 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 slots = useSlots();
|
|
37
38
|
const timeSelectProps = computed(() => {
|
|
38
39
|
var _a, _b;
|
|
39
40
|
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
@@ -41,11 +42,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
41
42
|
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
42
43
|
});
|
|
43
44
|
});
|
|
45
|
+
function getSlotNames() {
|
|
46
|
+
return Object.keys(slots);
|
|
47
|
+
}
|
|
48
|
+
function getComponentSlotNames() {
|
|
49
|
+
return Object.keys(props.componentSlots || {});
|
|
50
|
+
}
|
|
44
51
|
return (_ctx, _cache) => {
|
|
45
52
|
return openBlock(), createBlock(unref(ElTimeSelect), mergeProps(timeSelectProps.value, {
|
|
46
53
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
47
54
|
}), createSlots({ _: 2 }, [
|
|
48
|
-
renderList(
|
|
55
|
+
renderList(getSlotNames(), (name) => {
|
|
49
56
|
return {
|
|
50
57
|
name,
|
|
51
58
|
fn: withCtx((slotData) => [
|
|
@@ -53,7 +60,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
53
60
|
])
|
|
54
61
|
};
|
|
55
62
|
}),
|
|
56
|
-
renderList(
|
|
63
|
+
renderList(getComponentSlotNames(), (name) => {
|
|
57
64
|
return {
|
|
58
65
|
name,
|
|
59
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 { ElTransfer } from "element-plus";
|
|
22
22
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
23
23
|
name: "JkyFormItemTransfer"
|
|
@@ -34,6 +34,7 @@ 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 slots = useSlots();
|
|
37
38
|
const transferProps = computed(() => {
|
|
38
39
|
var _a, _b;
|
|
39
40
|
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
@@ -42,11 +43,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
42
43
|
data: props.componentProps.data || []
|
|
43
44
|
});
|
|
44
45
|
});
|
|
46
|
+
function getSlotNames() {
|
|
47
|
+
return Object.keys(slots);
|
|
48
|
+
}
|
|
49
|
+
function getComponentSlotNames() {
|
|
50
|
+
return Object.keys(props.componentSlots || {});
|
|
51
|
+
}
|
|
45
52
|
return (_ctx, _cache) => {
|
|
46
53
|
return openBlock(), createBlock(unref(ElTransfer), mergeProps(transferProps.value, {
|
|
47
54
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
48
55
|
}), createSlots({ _: 2 }, [
|
|
49
|
-
renderList(
|
|
56
|
+
renderList(getSlotNames(), (name) => {
|
|
50
57
|
return {
|
|
51
58
|
name,
|
|
52
59
|
fn: withCtx((slotData) => [
|
|
@@ -54,7 +61,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
54
61
|
])
|
|
55
62
|
};
|
|
56
63
|
}),
|
|
57
|
-
renderList(
|
|
64
|
+
renderList(getComponentSlotNames(), (name) => {
|
|
58
65
|
return {
|
|
59
66
|
name,
|
|
60
67
|
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 { ElTreeSelect } from "element-plus";
|
|
22
22
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
23
23
|
name: "JkyFormItemTreeSelect"
|
|
@@ -34,6 +34,7 @@ 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 slots = useSlots();
|
|
37
38
|
const treeSelectProps = computed(() => {
|
|
38
39
|
var _a, _b;
|
|
39
40
|
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
@@ -42,11 +43,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
42
43
|
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
43
44
|
});
|
|
44
45
|
});
|
|
46
|
+
function getSlotNames() {
|
|
47
|
+
return Object.keys(slots);
|
|
48
|
+
}
|
|
49
|
+
function getComponentSlotNames() {
|
|
50
|
+
return Object.keys(props.componentSlots || {});
|
|
51
|
+
}
|
|
45
52
|
return (_ctx, _cache) => {
|
|
46
53
|
return openBlock(), createBlock(unref(ElTreeSelect), mergeProps(treeSelectProps.value, {
|
|
47
54
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
48
55
|
}), createSlots({ _: 2 }, [
|
|
49
|
-
renderList(
|
|
56
|
+
renderList(getSlotNames(), (name) => {
|
|
50
57
|
return {
|
|
51
58
|
name,
|
|
52
59
|
fn: withCtx((slotData) => [
|
|
@@ -54,7 +61,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
54
61
|
])
|
|
55
62
|
};
|
|
56
63
|
}),
|
|
57
|
-
renderList(
|
|
64
|
+
renderList(getComponentSlotNames(), (name) => {
|
|
58
65
|
return {
|
|
59
66
|
name,
|
|
60
67
|
fn: withCtx((slotData) => [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ModalProps } from './types';
|
|
2
|
-
type __VLS_Props = Pick<ModalProps, 'confirmText' | 'cancelText'>;
|
|
2
|
+
type __VLS_Props = Pick<ModalProps, 'confirmText' | 'cancelText' | 'disabled'>;
|
|
3
3
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
4
|
cancel: (...args: any[]) => void;
|
|
5
5
|
confirm: (...args: any[]) => void;
|
|
@@ -25,7 +25,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
25
25
|
__name: "Footer",
|
|
26
26
|
props: {
|
|
27
27
|
confirmText: {},
|
|
28
|
-
cancelText: {}
|
|
28
|
+
cancelText: {},
|
|
29
|
+
disabled: { type: Boolean }
|
|
29
30
|
},
|
|
30
31
|
emits: ["confirm", "cancel"],
|
|
31
32
|
setup(__props) {
|
|
@@ -35,13 +36,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
35
36
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
36
37
|
createVNode(_component_el_button, {
|
|
37
38
|
type: "primary",
|
|
39
|
+
disabled: props.disabled,
|
|
38
40
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("confirm"))
|
|
39
41
|
}, {
|
|
40
42
|
default: withCtx(() => [
|
|
41
43
|
createTextVNode(toDisplayString(props.confirmText || "确认"), 1)
|
|
42
44
|
]),
|
|
43
45
|
_: 1
|
|
44
|
-
}),
|
|
46
|
+
}, 8, ["disabled"]),
|
|
45
47
|
createVNode(_component_el_button, {
|
|
46
48
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("cancel"))
|
|
47
49
|
}, {
|
|
@@ -32,7 +32,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
32
32
|
drawerProps: {},
|
|
33
33
|
confirmText: { default: "确认" },
|
|
34
34
|
cancelText: { default: "取消" },
|
|
35
|
-
size: {}
|
|
35
|
+
size: {},
|
|
36
|
+
disabled: { type: Boolean }
|
|
36
37
|
}, {
|
|
37
38
|
"modelValue": __spreadValues({ type: Boolean }, {
|
|
38
39
|
default: false
|
|
@@ -150,9 +151,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
150
151
|
key: 1,
|
|
151
152
|
"confirm-text": __props.confirmText,
|
|
152
153
|
"cancel-text": __props.cancelText,
|
|
154
|
+
disabled: __props.disabled,
|
|
153
155
|
onConfirm: handleConfirm,
|
|
154
156
|
onCancel: handleCancel
|
|
155
|
-
}, null, 8, ["confirm-text", "cancel-text"]))
|
|
157
|
+
}, null, 8, ["confirm-text", "cancel-text", "disabled"]))
|
|
156
158
|
]),
|
|
157
159
|
default: withCtx(() => [
|
|
158
160
|
createVNode(unref(ElScrollbar), {
|
|
@@ -207,9 +209,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
207
209
|
key: 1,
|
|
208
210
|
"confirm-text": __props.confirmText,
|
|
209
211
|
"cancel-text": __props.cancelText,
|
|
212
|
+
disabled: __props.disabled,
|
|
210
213
|
onConfirm: handleConfirm,
|
|
211
214
|
onCancel: handleCancel
|
|
212
|
-
}, null, 8, ["confirm-text", "cancel-text"]))
|
|
215
|
+
}, null, 8, ["confirm-text", "cancel-text", "disabled"]))
|
|
213
216
|
]),
|
|
214
217
|
default: withCtx(() => [
|
|
215
218
|
renderSlot(_ctx.$slots, "default")
|
package/dist/es/package.json.js
CHANGED
|
@@ -381,7 +381,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
381
381
|
return openBlock(), createElementBlock("div", {
|
|
382
382
|
ref_key: "pageTableRef",
|
|
383
383
|
ref: pageTableRef,
|
|
384
|
-
class: normalizeClass(["bg-transparent flex flex-col jky-page-table", [props.class]])
|
|
384
|
+
class: normalizeClass(["bg-transparent flex flex-col justify-between jky-page-table", [props.class]])
|
|
385
385
|
}, [
|
|
386
386
|
__props.filterItems && __props.filterItems.length > 0 ? (openBlock(), createBlock(unref(ElCard), {
|
|
387
387
|
key: 0,
|