jky-component-lib 0.0.131 → 0.0.133
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/amap/style2.css +2 -6
- package/dist/es/amap/style3.css +6 -2
- package/dist/es/form/FormItem.vue.js +30 -10
- 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.js +8 -5
- package/dist/es/form/items/CascaderItem.vue.js +8 -5
- package/dist/es/form/items/CheckboxGroupItem.vue.js +7 -4
- package/dist/es/form/items/CodeMirrorEditorItem.vue.js +6 -3
- package/dist/es/form/items/ColorPickerItem.vue.js +7 -4
- package/dist/es/form/items/ColorPickerPanelItem.vue.js +7 -4
- package/dist/es/form/items/CustomItem.vue.js +2 -1
- package/dist/es/form/items/DatePickerItem.vue.js +11 -8
- package/dist/es/form/items/FileUploadItem.vue.js +9 -6
- package/dist/es/form/items/ImageUploadItem.vue.js +9 -6
- package/dist/es/form/items/InputItem.vue.js +5 -5
- package/dist/es/form/items/InputNumberItem.vue.js +8 -5
- package/dist/es/form/items/InputTagItem.vue.js +7 -4
- package/dist/es/form/items/LinkedSelectItem.vue.js +1 -1
- package/dist/es/form/items/MentionItem.vue.js +7 -4
- package/dist/es/form/items/RadioGroupItem.vue.js +7 -4
- package/dist/es/form/items/RateItem.vue.js +7 -4
- package/dist/es/form/items/RichEditorItem.vue.js +6 -3
- package/dist/es/form/items/SelectItem.vue.js +8 -5
- package/dist/es/form/items/SelectV2Item.vue.js +9 -6
- package/dist/es/form/items/SliderItem.vue.js +7 -4
- package/dist/es/form/items/SwitchItem.vue.js +7 -4
- package/dist/es/form/items/TextareaItem.vue.js +10 -7
- package/dist/es/form/items/TimePickerItem.vue.js +11 -8
- package/dist/es/form/items/TimeSelectItem.vue.js +7 -4
- package/dist/es/form/items/TransferItem.vue.js +8 -5
- package/dist/es/form/items/TreeSelectItem.vue.js +8 -5
- package/dist/es/package.json.js +1 -1
- package/dist/es/style.css +8 -0
- package/dist/lib/amap/style2.css +2 -6
- package/dist/lib/amap/style3.css +6 -2
- package/dist/lib/form/FormItem.vue.js +30 -10
- 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.js +8 -5
- package/dist/lib/form/items/CascaderItem.vue.js +8 -5
- package/dist/lib/form/items/CheckboxGroupItem.vue.js +7 -4
- package/dist/lib/form/items/CodeMirrorEditorItem.vue.js +6 -3
- package/dist/lib/form/items/ColorPickerItem.vue.js +7 -4
- package/dist/lib/form/items/ColorPickerPanelItem.vue.js +7 -4
- package/dist/lib/form/items/CustomItem.vue.js +2 -1
- package/dist/lib/form/items/DatePickerItem.vue.js +11 -8
- package/dist/lib/form/items/FileUploadItem.vue.js +9 -6
- package/dist/lib/form/items/ImageUploadItem.vue.js +9 -6
- package/dist/lib/form/items/InputItem.vue.js +4 -4
- package/dist/lib/form/items/InputNumberItem.vue.js +8 -5
- package/dist/lib/form/items/InputTagItem.vue.js +7 -4
- package/dist/lib/form/items/LinkedSelectItem.vue.js +1 -1
- package/dist/lib/form/items/MentionItem.vue.js +7 -4
- package/dist/lib/form/items/RadioGroupItem.vue.js +7 -4
- package/dist/lib/form/items/RateItem.vue.js +7 -4
- package/dist/lib/form/items/RichEditorItem.vue.js +6 -3
- package/dist/lib/form/items/SelectItem.vue.js +8 -5
- package/dist/lib/form/items/SelectV2Item.vue.js +9 -6
- package/dist/lib/form/items/SliderItem.vue.js +7 -4
- package/dist/lib/form/items/SwitchItem.vue.js +7 -4
- package/dist/lib/form/items/TextareaItem.vue.js +10 -7
- package/dist/lib/form/items/TimePickerItem.vue.js +11 -8
- package/dist/lib/form/items/TimeSelectItem.vue.js +7 -4
- package/dist/lib/form/items/TransferItem.vue.js +8 -5
- package/dist/lib/form/items/TreeSelectItem.vue.js +8 -5
- package/dist/lib/package.json.js +1 -1
- package/dist/lib/style.css +8 -0
- package/package.json +1 -1
|
@@ -34,13 +34,16 @@ 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 textareaProps = computed(() =>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
37
|
+
const textareaProps = computed(() => {
|
|
38
|
+
var _a, _b;
|
|
39
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
40
|
+
modelValue: props.modelValue,
|
|
41
|
+
placeholder: props.componentProps.placeholder || props.config.placeholder || "请输入",
|
|
42
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled,
|
|
43
|
+
type: "textarea",
|
|
44
|
+
rows: props.componentProps.rows || 4
|
|
45
|
+
});
|
|
46
|
+
});
|
|
44
47
|
return (_ctx, _cache) => {
|
|
45
48
|
return openBlock(), createBlock(unref(ElInput), mergeProps(textareaProps.value, {
|
|
46
49
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
@@ -34,14 +34,17 @@ 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 timePickerProps = computed(() =>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
const timePickerProps = computed(() => {
|
|
38
|
+
var _a, _b;
|
|
39
|
+
return __spreadProps(__spreadValues({
|
|
40
|
+
startPlaceholder: "开始时间",
|
|
41
|
+
endPlaceholder: "结束时间",
|
|
42
|
+
placeholder: "请选择时间"
|
|
43
|
+
}, props.componentProps), {
|
|
44
|
+
modelValue: props.modelValue,
|
|
45
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
46
|
+
});
|
|
47
|
+
});
|
|
45
48
|
return (_ctx, _cache) => {
|
|
46
49
|
return openBlock(), createBlock(unref(ElTimePicker), mergeProps(timePickerProps.value, {
|
|
47
50
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
@@ -34,10 +34,13 @@ 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 timeSelectProps = computed(() =>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
const timeSelectProps = computed(() => {
|
|
38
|
+
var _a, _b;
|
|
39
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
40
|
+
modelValue: props.modelValue,
|
|
41
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
42
|
+
});
|
|
43
|
+
});
|
|
41
44
|
return (_ctx, _cache) => {
|
|
42
45
|
return openBlock(), createBlock(unref(ElTimeSelect), mergeProps(timeSelectProps.value, {
|
|
43
46
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
@@ -34,11 +34,14 @@ 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 transferProps = computed(() =>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
const transferProps = computed(() => {
|
|
38
|
+
var _a, _b;
|
|
39
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
40
|
+
modelValue: props.modelValue || [],
|
|
41
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled,
|
|
42
|
+
data: props.componentProps.data || []
|
|
43
|
+
});
|
|
44
|
+
});
|
|
42
45
|
return (_ctx, _cache) => {
|
|
43
46
|
return openBlock(), createBlock(unref(ElTransfer), mergeProps(transferProps.value, {
|
|
44
47
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
@@ -34,11 +34,14 @@ 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 treeSelectProps = computed(() =>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
const treeSelectProps = computed(() => {
|
|
38
|
+
var _a, _b;
|
|
39
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
40
|
+
modelValue: props.modelValue,
|
|
41
|
+
placeholder: props.componentProps.placeholder || props.config.placeholder || "请选择",
|
|
42
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
43
|
+
});
|
|
44
|
+
});
|
|
42
45
|
return (_ctx, _cache) => {
|
|
43
46
|
return openBlock(), createBlock(unref(ElTreeSelect), mergeProps(treeSelectProps.value, {
|
|
44
47
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
package/dist/es/package.json.js
CHANGED
package/dist/es/style.css
CHANGED
|
@@ -1715,6 +1715,10 @@
|
|
|
1715
1715
|
display: table;
|
|
1716
1716
|
}
|
|
1717
1717
|
|
|
1718
|
+
.h-0 {
|
|
1719
|
+
height: calc(var(--spacing) * 0);
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1718
1722
|
.h-1\.5 {
|
|
1719
1723
|
height: calc(var(--spacing) * 1.5);
|
|
1720
1724
|
}
|
|
@@ -1783,6 +1787,10 @@
|
|
|
1783
1787
|
min-height: 100%;
|
|
1784
1788
|
}
|
|
1785
1789
|
|
|
1790
|
+
.w-0 {
|
|
1791
|
+
width: calc(var(--spacing) * 0);
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1786
1794
|
.w-4 {
|
|
1787
1795
|
width: calc(var(--spacing) * 4);
|
|
1788
1796
|
}
|
package/dist/lib/amap/style2.css
CHANGED
package/dist/lib/amap/style3.css
CHANGED
|
@@ -137,6 +137,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
137
137
|
const loadError = vue.ref(null);
|
|
138
138
|
const componentProps = vue.ref({});
|
|
139
139
|
const rulesData = vue.ref(null);
|
|
140
|
+
const isHidden = vue.ref(false);
|
|
140
141
|
const rules = vue.computed(() => {
|
|
141
142
|
const r = rulesData.value;
|
|
142
143
|
if (!r)
|
|
@@ -208,6 +209,33 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
208
209
|
rulesData.value = typeof configRules !== "function" ? configRules : null;
|
|
209
210
|
});
|
|
210
211
|
}
|
|
212
|
+
function loadHidden() {
|
|
213
|
+
return __async(this, null, function* () {
|
|
214
|
+
const configHidden = props.config.hidden;
|
|
215
|
+
if (!configHidden) {
|
|
216
|
+
isHidden.value = false;
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
219
|
+
if (typeof configHidden === "function") {
|
|
220
|
+
loading.value = true;
|
|
221
|
+
try {
|
|
222
|
+
const result = yield configHidden({
|
|
223
|
+
model: props.model,
|
|
224
|
+
field: props.field,
|
|
225
|
+
$form: props.model
|
|
226
|
+
});
|
|
227
|
+
isHidden.value = result || false;
|
|
228
|
+
} catch (error) {
|
|
229
|
+
console.error("Failed to load hidden:", error);
|
|
230
|
+
isHidden.value = false;
|
|
231
|
+
} finally {
|
|
232
|
+
loading.value = false;
|
|
233
|
+
}
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
isHidden.value = configHidden != null ? configHidden : false;
|
|
237
|
+
});
|
|
238
|
+
}
|
|
211
239
|
function reloadComponentProps() {
|
|
212
240
|
return __async(this, null, function* () {
|
|
213
241
|
yield loadComponentProps();
|
|
@@ -225,12 +253,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
225
253
|
() => {
|
|
226
254
|
loadComponentProps();
|
|
227
255
|
loadRules();
|
|
256
|
+
loadHidden();
|
|
228
257
|
},
|
|
229
258
|
{ deep: true }
|
|
230
259
|
);
|
|
231
260
|
}
|
|
232
261
|
loadComponentProps();
|
|
233
262
|
loadRules();
|
|
263
|
+
loadHidden();
|
|
234
264
|
setupWatchFields();
|
|
235
265
|
const modelValue = vue.computed({
|
|
236
266
|
get: () => props.model[props.field],
|
|
@@ -238,16 +268,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
238
268
|
props.model[props.field] = val;
|
|
239
269
|
}
|
|
240
270
|
});
|
|
241
|
-
const isHidden = vue.computed(() => {
|
|
242
|
-
if (typeof props.config.hidden === "function") {
|
|
243
|
-
return props.config.hidden({
|
|
244
|
-
model: props.model,
|
|
245
|
-
field: props.field,
|
|
246
|
-
$form: props.model
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
return props.config.hidden || false;
|
|
250
|
-
});
|
|
251
271
|
const formItemProps = vue.computed(() => {
|
|
252
272
|
const config = props.config;
|
|
253
273
|
const _a = config, {
|
|
@@ -23,10 +23,14 @@ const vue = require("vue");
|
|
|
23
23
|
const iconsVue = require("@element-plus/icons-vue");
|
|
24
24
|
const ElementPlus = require("element-plus");
|
|
25
25
|
const _hoisted_1 = {
|
|
26
|
+
key: 0,
|
|
27
|
+
class: "w-0 h-0 jky-form-item-wrapper__loading"
|
|
28
|
+
};
|
|
29
|
+
const _hoisted_2 = {
|
|
26
30
|
key: 1,
|
|
27
31
|
class: "jky-form-item-wrapper__error"
|
|
28
32
|
};
|
|
29
|
-
const
|
|
33
|
+
const _hoisted_3 = { class: "flex items-center gap-2 text-red-500 py-1" };
|
|
30
34
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValues({}, {
|
|
31
35
|
name: "JkyFormItemWrapper"
|
|
32
36
|
}), {
|
|
@@ -45,22 +49,16 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
45
49
|
emit("retry");
|
|
46
50
|
}
|
|
47
51
|
return (_ctx, _cache) => {
|
|
48
|
-
return showLoading.value ? (vue.openBlock(), vue.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
vue.renderSlot(_ctx.$slots, "loading", {}, () => [
|
|
54
|
-
_cache[0] || (_cache[0] = vue.createElementVNode("div", { class: "skeleton-box w-full h-9 rounded bg-gray-200 animate-pulse" }, null, -1))
|
|
55
|
-
])
|
|
56
|
-
]),
|
|
57
|
-
_: 3
|
|
58
|
-
})) : showError.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
52
|
+
return showLoading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
53
|
+
vue.renderSlot(_ctx.$slots, "loading", {}, () => [
|
|
54
|
+
_cache[0] || (_cache[0] = vue.createElementVNode("div", { class: "skeleton-box w-full h-9 rounded bg-gray-200 animate-pulse" }, null, -1))
|
|
55
|
+
])
|
|
56
|
+
])) : showError.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
59
57
|
vue.renderSlot(_ctx.$slots, "error", {
|
|
60
58
|
error: __props.error,
|
|
61
59
|
retry: handleRetry
|
|
62
60
|
}, () => [
|
|
63
|
-
vue.createElementVNode("div",
|
|
61
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
64
62
|
vue.createVNode(vue.unref(ElementPlus.ElIcon), { size: 14 }, {
|
|
65
63
|
default: vue.withCtx(() => [
|
|
66
64
|
vue.createVNode(vue.unref(iconsVue.WarningFilled))
|
|
@@ -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 addInputProps = vue.computed(() =>
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
const addInputProps = 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,11 +36,14 @@ 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 autocompleteProps = vue.computed(() =>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
const autocompleteProps = vue.computed(() => {
|
|
40
|
+
var _a, _b;
|
|
41
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
42
|
+
modelValue: props.modelValue,
|
|
43
|
+
placeholder: props.componentProps.placeholder || props.config.placeholder || "请输入",
|
|
44
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
45
|
+
});
|
|
46
|
+
});
|
|
44
47
|
return (_ctx, _cache) => {
|
|
45
48
|
return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElAutocomplete), vue.mergeProps(autocompleteProps.value, {
|
|
46
49
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
@@ -36,11 +36,14 @@ 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 cascaderProps = vue.computed(() =>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
const cascaderProps = vue.computed(() => {
|
|
40
|
+
var _a, _b;
|
|
41
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
42
|
+
modelValue: props.modelValue,
|
|
43
|
+
placeholder: props.componentProps.placeholder || props.config.placeholder || "请选择",
|
|
44
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
45
|
+
});
|
|
46
|
+
});
|
|
44
47
|
return (_ctx, _cache) => {
|
|
45
48
|
return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElCascader), vue.mergeProps(cascaderProps.value, {
|
|
46
49
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
@@ -36,10 +36,13 @@ 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 checkboxGroupProps = vue.computed(() =>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
const checkboxGroupProps = vue.computed(() => {
|
|
40
|
+
var _a, _b;
|
|
41
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
42
|
+
modelValue: Array.isArray(props.modelValue) ? props.modelValue : [],
|
|
43
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
44
|
+
});
|
|
45
|
+
});
|
|
43
46
|
const options = vue.computed(() => props.componentProps.options || props.config.options || []);
|
|
44
47
|
return (_ctx, _cache) => {
|
|
45
48
|
return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElCheckboxGroup), vue.mergeProps(checkboxGroupProps.value, {
|
|
@@ -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,10 +36,13 @@ 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 colorPickerProps = vue.computed(() =>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
const colorPickerProps = vue.computed(() => {
|
|
40
|
+
var _a, _b;
|
|
41
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
42
|
+
modelValue: props.modelValue,
|
|
43
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
44
|
+
});
|
|
45
|
+
});
|
|
43
46
|
return (_ctx, _cache) => {
|
|
44
47
|
return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElColorPicker), vue.mergeProps(colorPickerProps.value, {
|
|
45
48
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
@@ -36,10 +36,13 @@ 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 colorPickerPanelProps = vue.computed(() =>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
const colorPickerPanelProps = vue.computed(() => {
|
|
40
|
+
var _a, _b;
|
|
41
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
42
|
+
modelValue: props.modelValue,
|
|
43
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
44
|
+
});
|
|
45
|
+
});
|
|
43
46
|
return (_ctx, _cache) => {
|
|
44
47
|
return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElColorPickerPanel), vue.mergeProps(colorPickerPanelProps.value, {
|
|
45
48
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
@@ -35,11 +35,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
35
35
|
const props = __props;
|
|
36
36
|
const emit = __emit;
|
|
37
37
|
const customRender = vue.computed(() => {
|
|
38
|
+
var _a, _b;
|
|
38
39
|
if (typeof props.config.render === "function") {
|
|
39
40
|
return props.config.render({
|
|
40
41
|
model: props.modelValue,
|
|
41
42
|
field: props.config.field,
|
|
42
|
-
disabled: props.disabled,
|
|
43
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled,
|
|
43
44
|
onChange: (val) => emit("update:modelValue", val)
|
|
44
45
|
});
|
|
45
46
|
}
|
|
@@ -36,14 +36,17 @@ 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 datepickerProps = vue.computed(() =>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
39
|
+
const datepickerProps = vue.computed(() => {
|
|
40
|
+
var _a, _b;
|
|
41
|
+
return __spreadProps(__spreadValues({
|
|
42
|
+
startPlaceholder: "开始日期",
|
|
43
|
+
endPlaceholder: "结束日期",
|
|
44
|
+
placeholder: "选择日期"
|
|
45
|
+
}, props.componentProps), {
|
|
46
|
+
modelValue: props.modelValue,
|
|
47
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
48
|
+
});
|
|
49
|
+
});
|
|
47
50
|
return (_ctx, _cache) => {
|
|
48
51
|
return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElDatePicker), vue.mergeProps(datepickerProps.value, {
|
|
49
52
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
@@ -36,12 +36,15 @@ 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 uploadProps = vue.computed(() =>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
const uploadProps = vue.computed(() => {
|
|
40
|
+
var _a, _b;
|
|
41
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
42
|
+
action: props.componentProps.action || "#",
|
|
43
|
+
fileList: props.componentProps.fileList || [],
|
|
44
|
+
listType: props.componentProps.listType || "text",
|
|
45
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
46
|
+
});
|
|
47
|
+
});
|
|
45
48
|
const listType = vue.computed(() => props.componentProps.listType || "text");
|
|
46
49
|
return (_ctx, _cache) => {
|
|
47
50
|
return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElUpload), vue.mergeProps(uploadProps.value, {
|
|
@@ -38,12 +38,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
38
38
|
setup(__props, { emit: __emit }) {
|
|
39
39
|
const props = __props;
|
|
40
40
|
const emit = __emit;
|
|
41
|
-
const uploadProps = vue.computed(() =>
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
const uploadProps = vue.computed(() => {
|
|
42
|
+
var _a, _b;
|
|
43
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
44
|
+
action: props.componentProps.action || "#",
|
|
45
|
+
fileList: props.componentProps.fileList || [],
|
|
46
|
+
listType: props.componentProps.listType || "picture-card",
|
|
47
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
48
|
+
});
|
|
49
|
+
});
|
|
47
50
|
const listType = vue.computed(() => props.componentProps.listType || "picture-card");
|
|
48
51
|
return (_ctx, _cache) => {
|
|
49
52
|
return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElUpload), vue.mergeProps(uploadProps.value, {
|
|
@@ -37,14 +37,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
37
37
|
const props = __props;
|
|
38
38
|
const emit = __emit;
|
|
39
39
|
const inputProps = vue.computed(() => {
|
|
40
|
-
var _a;
|
|
40
|
+
var _a, _b, _c;
|
|
41
41
|
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
42
42
|
modelValue: props.modelValue,
|
|
43
43
|
placeholder: props.componentProps.placeholder || props.config.placeholder || "请输入",
|
|
44
|
-
disabled: props.disabled,
|
|
44
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled,
|
|
45
45
|
prefixIcon: props.config.prefixIcon,
|
|
46
46
|
suffixIcon: props.config.suffixIcon,
|
|
47
|
-
class: ["w-full min-w-25", (
|
|
47
|
+
class: ["w-full min-w-25", (_c = props.componentProps) == null ? void 0 : _c.class]
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
50
|
return (_ctx, _cache) => {
|
|
@@ -55,7 +55,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
55
55
|
return {
|
|
56
56
|
name,
|
|
57
57
|
fn: vue.withCtx((slotData) => [
|
|
58
|
-
vue.renderSlot(_ctx.$slots, name, vue.
|
|
58
|
+
vue.renderSlot(_ctx.$slots, name, vue.mergeProps(slotData || {}, { key: index }))
|
|
59
59
|
])
|
|
60
60
|
};
|
|
61
61
|
}),
|
|
@@ -40,11 +40,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
40
40
|
const val = props.modelValue;
|
|
41
41
|
return val === "" || val === null || val === void 0 ? null : Number(val);
|
|
42
42
|
});
|
|
43
|
-
const inputNumberProps = vue.computed(() =>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
const inputNumberProps = vue.computed(() => {
|
|
44
|
+
var _a, _b;
|
|
45
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
46
|
+
modelValue: numberModelValue.value,
|
|
47
|
+
placeholder: props.componentProps.placeholder || props.config.placeholder || "请输入",
|
|
48
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
49
|
+
});
|
|
50
|
+
});
|
|
48
51
|
return (_ctx, _cache) => {
|
|
49
52
|
return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElInputNumber), vue.mergeProps(inputNumberProps.value, {
|
|
50
53
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
@@ -36,10 +36,13 @@ 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 inputTagProps = vue.computed(() =>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
const inputTagProps = vue.computed(() => {
|
|
40
|
+
var _a, _b;
|
|
41
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
42
|
+
modelValue: props.modelValue || [],
|
|
43
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
44
|
+
});
|
|
45
|
+
});
|
|
43
46
|
return (_ctx, _cache) => {
|
|
44
47
|
return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElInputTag), vue.mergeProps(inputTagProps.value, {
|
|
45
48
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
@@ -139,7 +139,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
139
139
|
modelValue: values.value[index],
|
|
140
140
|
"onUpdate:modelValue": ($event) => values.value[index] = $event,
|
|
141
141
|
placeholder: ((_b = (_a = config.value) == null ? void 0 : _a.placeholders) == null ? void 0 : _b[index]) || "请选择",
|
|
142
|
-
disabled: __props.disabled || index > 0 && values.value[index - 1] === void 0
|
|
142
|
+
disabled: __props.disabled || index > 0 && (values.value[index - 1] === void 0 || values.value[index - 1] === null),
|
|
143
143
|
filterable: (_d = (_c = config.value) == null ? void 0 : _c.filterable) != null ? _d : false,
|
|
144
144
|
clearable: (_f = (_e = config.value) == null ? void 0 : _e.clearable) != null ? _f : true,
|
|
145
145
|
loading: loadingList.value[index],
|
|
@@ -36,10 +36,13 @@ 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 mentionProps = vue.computed(() =>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
const mentionProps = vue.computed(() => {
|
|
40
|
+
var _a, _b;
|
|
41
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
42
|
+
modelValue: props.modelValue || "",
|
|
43
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
44
|
+
});
|
|
45
|
+
});
|
|
43
46
|
return (_ctx, _cache) => {
|
|
44
47
|
return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElMention), vue.mergeProps(mentionProps.value, {
|
|
45
48
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
@@ -36,10 +36,13 @@ 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 radioGroupProps = vue.computed(() =>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
const radioGroupProps = vue.computed(() => {
|
|
40
|
+
var _a, _b;
|
|
41
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
42
|
+
modelValue: props.modelValue,
|
|
43
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
44
|
+
});
|
|
45
|
+
});
|
|
43
46
|
const options = vue.computed(() => props.componentProps.options || props.config.options || []);
|
|
44
47
|
const isButton = vue.computed(() => props.componentProps.button || false);
|
|
45
48
|
return (_ctx, _cache) => {
|