jky-component-lib 0.0.132 → 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/style.css +13 -2
- package/dist/es/amap/style2.css +2 -13
- 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/style.css +13 -2
- package/dist/lib/amap/style2.css +2 -13
- 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
package/dist/es/amap/style.css
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/* AMap 高德地图组件样式 */
|
|
2
|
+
.jky-amap-container {
|
|
3
|
+
/* 地图容器样式 */
|
|
4
|
+
position: relative;
|
|
5
|
+
overflow: hidden;
|
|
1
6
|
|
|
2
|
-
/*
|
|
3
|
-
|
|
7
|
+
/* 隐藏高德地图的 logo 和版权信息(注意:商业使用请遵守高德地图条款) */
|
|
8
|
+
.amap-logo {
|
|
9
|
+
display: none !important;
|
|
10
|
+
}
|
|
11
|
+
.amap-copyright {
|
|
12
|
+
display: none !important;
|
|
13
|
+
}
|
|
14
|
+
}
|
package/dist/es/amap/style2.css
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
/* AMap 高德地图组件样式 */
|
|
2
|
-
.jky-amap-container {
|
|
3
|
-
/* 地图容器样式 */
|
|
4
|
-
position: relative;
|
|
5
|
-
overflow: hidden;
|
|
6
1
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
display: none !important;
|
|
10
|
-
}
|
|
11
|
-
.amap-copyright {
|
|
12
|
-
display: none !important;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
2
|
+
/* 轨迹回放组件不需要额外样式 */
|
|
3
|
+
/* 所有样式通过 TailwindCSS 工具类或外部组件控制 */
|
|
@@ -17,14 +17,18 @@ 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,
|
|
21
|
-
import {
|
|
20
|
+
import { defineComponent, computed, openBlock, createElementBlock, renderSlot, createElementVNode, createVNode, unref, withCtx, createTextVNode } from "vue";
|
|
21
|
+
import { WarningFilled } from "@element-plus/icons-vue";
|
|
22
22
|
import { ElIcon, ElButton } from "element-plus";
|
|
23
23
|
const _hoisted_1 = {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: "w-0 h-0 jky-form-item-wrapper__loading"
|
|
26
|
+
};
|
|
27
|
+
const _hoisted_2 = {
|
|
24
28
|
key: 1,
|
|
25
29
|
class: "jky-form-item-wrapper__error"
|
|
26
30
|
};
|
|
27
|
-
const
|
|
31
|
+
const _hoisted_3 = { class: "flex items-center gap-2 text-red-500 py-1" };
|
|
28
32
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
29
33
|
name: "JkyFormItemWrapper"
|
|
30
34
|
}), {
|
|
@@ -43,22 +47,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
43
47
|
emit("retry");
|
|
44
48
|
}
|
|
45
49
|
return (_ctx, _cache) => {
|
|
46
|
-
return showLoading.value ? (openBlock(),
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
renderSlot(_ctx.$slots, "loading", {}, () => [
|
|
52
|
-
_cache[0] || (_cache[0] = createElementVNode("div", { class: "skeleton-box w-full h-9 rounded bg-gray-200 animate-pulse" }, null, -1))
|
|
53
|
-
])
|
|
54
|
-
]),
|
|
55
|
-
_: 3
|
|
56
|
-
})) : showError.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
50
|
+
return showLoading.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
51
|
+
renderSlot(_ctx.$slots, "loading", {}, () => [
|
|
52
|
+
_cache[0] || (_cache[0] = createElementVNode("div", { class: "skeleton-box w-full h-9 rounded bg-gray-200 animate-pulse" }, null, -1))
|
|
53
|
+
])
|
|
54
|
+
])) : showError.value ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
57
55
|
renderSlot(_ctx.$slots, "error", {
|
|
58
56
|
error: __props.error,
|
|
59
57
|
retry: handleRetry
|
|
60
58
|
}, () => [
|
|
61
|
-
createElementVNode("div",
|
|
59
|
+
createElementVNode("div", _hoisted_3, [
|
|
62
60
|
createVNode(unref(ElIcon), { size: 14 }, {
|
|
63
61
|
default: withCtx(() => [
|
|
64
62
|
createVNode(unref(WarningFilled))
|
|
@@ -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 addInputProps = computed(() =>
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
const addInputProps = 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)
|
|
@@ -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 autocompleteProps = computed(() =>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
const autocompleteProps = 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(ElAutocomplete), mergeProps(autocompleteProps.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 cascaderProps = computed(() =>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
const cascaderProps = 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(ElCascader), mergeProps(cascaderProps.value, {
|
|
44
47
|
"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 checkboxGroupProps = computed(() =>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
const checkboxGroupProps = computed(() => {
|
|
38
|
+
var _a, _b;
|
|
39
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
40
|
+
modelValue: Array.isArray(props.modelValue) ? props.modelValue : [],
|
|
41
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
42
|
+
});
|
|
43
|
+
});
|
|
41
44
|
const options = computed(() => props.componentProps.options || props.config.options || []);
|
|
42
45
|
return (_ctx, _cache) => {
|
|
43
46
|
return openBlock(), createBlock(unref(ElCheckboxGroup), mergeProps(checkboxGroupProps.value, {
|
|
@@ -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)
|
|
@@ -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 colorPickerProps = computed(() =>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
const colorPickerProps = 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(ElColorPicker), mergeProps(colorPickerProps.value, {
|
|
43
46
|
"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 colorPickerPanelProps = computed(() =>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
const colorPickerPanelProps = 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(ElColorPickerPanel), mergeProps(colorPickerPanelProps.value, {
|
|
43
46
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
@@ -33,11 +33,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
33
33
|
const props = __props;
|
|
34
34
|
const emit = __emit;
|
|
35
35
|
const customRender = computed(() => {
|
|
36
|
+
var _a, _b;
|
|
36
37
|
if (typeof props.config.render === "function") {
|
|
37
38
|
return props.config.render({
|
|
38
39
|
model: props.modelValue,
|
|
39
40
|
field: props.config.field,
|
|
40
|
-
disabled: props.disabled,
|
|
41
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled,
|
|
41
42
|
onChange: (val) => emit("update:modelValue", val)
|
|
42
43
|
});
|
|
43
44
|
}
|
|
@@ -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 datepickerProps = computed(() =>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
const datepickerProps = 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(ElDatePicker), mergeProps(datepickerProps.value, {
|
|
47
50
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
@@ -34,12 +34,15 @@ 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 uploadProps = computed(() =>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
const uploadProps = computed(() => {
|
|
38
|
+
var _a, _b;
|
|
39
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
40
|
+
action: props.componentProps.action || "#",
|
|
41
|
+
fileList: props.componentProps.fileList || [],
|
|
42
|
+
listType: props.componentProps.listType || "text",
|
|
43
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
44
|
+
});
|
|
45
|
+
});
|
|
43
46
|
const listType = computed(() => props.componentProps.listType || "text");
|
|
44
47
|
return (_ctx, _cache) => {
|
|
45
48
|
return openBlock(), createBlock(unref(ElUpload), mergeProps(uploadProps.value, {
|
|
@@ -36,12 +36,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
36
36
|
setup(__props, { emit: __emit }) {
|
|
37
37
|
const props = __props;
|
|
38
38
|
const emit = __emit;
|
|
39
|
-
const uploadProps = computed(() =>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
const uploadProps = 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 || "picture-card",
|
|
45
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
46
|
+
});
|
|
47
|
+
});
|
|
45
48
|
const listType = computed(() => props.componentProps.listType || "picture-card");
|
|
46
49
|
return (_ctx, _cache) => {
|
|
47
50
|
return openBlock(), createBlock(unref(ElUpload), mergeProps(uploadProps.value, {
|
|
@@ -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
|
|
20
|
+
import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
|
|
21
21
|
import { ElInput } from "element-plus";
|
|
22
22
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
23
23
|
name: "JkyFormItemInput"
|
|
@@ -35,14 +35,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
35
35
|
const props = __props;
|
|
36
36
|
const emit = __emit;
|
|
37
37
|
const inputProps = computed(() => {
|
|
38
|
-
var _a;
|
|
38
|
+
var _a, _b, _c;
|
|
39
39
|
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
40
40
|
modelValue: props.modelValue,
|
|
41
41
|
placeholder: props.componentProps.placeholder || props.config.placeholder || "请输入",
|
|
42
|
-
disabled: props.disabled,
|
|
42
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled,
|
|
43
43
|
prefixIcon: props.config.prefixIcon,
|
|
44
44
|
suffixIcon: props.config.suffixIcon,
|
|
45
|
-
class: ["w-full min-w-25", (
|
|
45
|
+
class: ["w-full min-w-25", (_c = props.componentProps) == null ? void 0 : _c.class]
|
|
46
46
|
});
|
|
47
47
|
});
|
|
48
48
|
return (_ctx, _cache) => {
|
|
@@ -53,7 +53,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
53
53
|
return {
|
|
54
54
|
name,
|
|
55
55
|
fn: withCtx((slotData) => [
|
|
56
|
-
renderSlot(_ctx.$slots, name,
|
|
56
|
+
renderSlot(_ctx.$slots, name, mergeProps(slotData || {}, { key: index }))
|
|
57
57
|
])
|
|
58
58
|
};
|
|
59
59
|
}),
|
|
@@ -38,11 +38,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
38
38
|
const val = props.modelValue;
|
|
39
39
|
return val === "" || val === null || val === void 0 ? null : Number(val);
|
|
40
40
|
});
|
|
41
|
-
const inputNumberProps = computed(() =>
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
const inputNumberProps = computed(() => {
|
|
42
|
+
var _a, _b;
|
|
43
|
+
return __spreadProps(__spreadValues({}, props.componentProps), {
|
|
44
|
+
modelValue: numberModelValue.value,
|
|
45
|
+
placeholder: props.componentProps.placeholder || props.config.placeholder || "请输入",
|
|
46
|
+
disabled: (_b = (_a = props.componentProps) == null ? void 0 : _a.disabled) != null ? _b : props.disabled
|
|
47
|
+
});
|
|
48
|
+
});
|
|
46
49
|
return (_ctx, _cache) => {
|
|
47
50
|
return openBlock(), createBlock(unref(ElInputNumber), mergeProps(inputNumberProps.value, {
|
|
48
51
|
"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 inputTagProps = computed(() =>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
const inputTagProps = 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(ElInputTag), mergeProps(inputTagProps.value, {
|
|
43
46
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
@@ -137,7 +137,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
137
137
|
modelValue: values.value[index],
|
|
138
138
|
"onUpdate:modelValue": ($event) => values.value[index] = $event,
|
|
139
139
|
placeholder: ((_b = (_a = config.value) == null ? void 0 : _a.placeholders) == null ? void 0 : _b[index]) || "请选择",
|
|
140
|
-
disabled: __props.disabled || index > 0 && values.value[index - 1] === void 0
|
|
140
|
+
disabled: __props.disabled || index > 0 && (values.value[index - 1] === void 0 || values.value[index - 1] === null),
|
|
141
141
|
filterable: (_d = (_c = config.value) == null ? void 0 : _c.filterable) != null ? _d : false,
|
|
142
142
|
clearable: (_f = (_e = config.value) == null ? void 0 : _e.clearable) != null ? _f : true,
|
|
143
143
|
loading: loadingList.value[index],
|
|
@@ -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 mentionProps = computed(() =>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
const mentionProps = 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(ElMention), mergeProps(mentionProps.value, {
|
|
43
46
|
"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 radioGroupProps = computed(() =>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
const radioGroupProps = 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
|
const options = computed(() => props.componentProps.options || props.config.options || []);
|
|
42
45
|
const isButton = computed(() => props.componentProps.button || false);
|
|
43
46
|
return (_ctx, _cache) => {
|
|
@@ -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 rateProps = computed(() =>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
const rateProps = 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(ElRate), mergeProps(rateProps.value, {
|
|
43
46
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
@@ -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)
|
|
@@ -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 selectProps = computed(() =>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
const selectProps = 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
|
const options = computed(() => props.componentProps.options || props.config.options || []);
|
|
43
46
|
return (_ctx, _cache) => {
|
|
44
47
|
return openBlock(), createBlock(unref(ElSelect), mergeProps({ class: "min-w-30" }, selectProps.value, {
|
|
@@ -34,12 +34,15 @@ 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 selectV2Props = computed(() =>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
const selectV2Props = 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
|
+
options: props.componentProps.options || []
|
|
44
|
+
});
|
|
45
|
+
});
|
|
43
46
|
return (_ctx, _cache) => {
|
|
44
47
|
return openBlock(), createBlock(unref(ElSelectV2), mergeProps({ class: "min-w-30" }, selectV2Props.value, {
|
|
45
48
|
"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 sliderProps = computed(() =>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
const sliderProps = 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(ElSlider), mergeProps(sliderProps.value, {
|
|
43
46
|
"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 switchProps = computed(() =>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
const switchProps = 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(ElSwitch), mergeProps(switchProps.value, {
|
|
43
46
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event))
|
|
@@ -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))
|