ll-plus 2.2.15 → 2.2.16
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/es/components/key-value/index.d.ts +93 -6
- package/es/components/key-value/src/components/key-value-item.vue.d.ts +69 -1
- package/es/components/key-value/src/components/key-value-item.vue2.mjs +14 -5
- package/es/components/key-value/src/components/key-value-item.vue2.mjs.map +1 -1
- package/es/components/key-value/src/config/key-value-item.d.ts +31 -1
- package/es/components/key-value/src/config/key-value-item.mjs +16 -0
- package/es/components/key-value/src/config/key-value-item.mjs.map +1 -1
- package/es/components/key-value/src/config/key-value.d.ts +12 -1
- package/es/components/key-value/src/config/key-value.mjs +20 -2
- package/es/components/key-value/src/config/key-value.mjs.map +1 -1
- package/es/components/key-value/src/key-value.vue.d.ts +112 -24
- package/es/components/key-value/src/key-value.vue2.mjs +22 -7
- package/es/components/key-value/src/key-value.vue2.mjs.map +1 -1
- package/index.full.js +72 -14
- package/index.full.min.js +18 -18
- package/index.full.min.js.map +1 -1
- package/index.full.min.mjs +15 -15
- package/index.full.min.mjs.map +1 -1
- package/index.full.mjs +72 -14
- package/lib/components/key-value/index.d.ts +93 -6
- package/lib/components/key-value/src/components/key-value-item.vue.d.ts +69 -1
- package/lib/components/key-value/src/components/key-value-item.vue2.js +14 -5
- package/lib/components/key-value/src/components/key-value-item.vue2.js.map +1 -1
- package/lib/components/key-value/src/config/key-value-item.d.ts +31 -1
- package/lib/components/key-value/src/config/key-value-item.js +16 -0
- package/lib/components/key-value/src/config/key-value-item.js.map +1 -1
- package/lib/components/key-value/src/config/key-value.d.ts +12 -1
- package/lib/components/key-value/src/config/key-value.js +20 -2
- package/lib/components/key-value/src/config/key-value.js.map +1 -1
- package/lib/components/key-value/src/key-value.vue.d.ts +112 -24
- package/lib/components/key-value/src/key-value.vue2.js +22 -7
- package/lib/components/key-value/src/key-value.vue2.js.map +1 -1
- package/package.json +1 -1
- package/types/packages/components/key-value/index.d.ts +93 -6
- package/types/packages/components/key-value/src/components/key-value-item.vue.d.ts +69 -1
- package/types/packages/components/key-value/src/config/key-value-item.d.ts +31 -1
- package/types/packages/components/key-value/src/config/key-value.d.ts +12 -1
- package/types/packages/components/key-value/src/key-value.vue.d.ts +112 -24
package/index.full.mjs
CHANGED
|
@@ -58041,7 +58041,8 @@ const LlInputNumber = withInstall(InputNumber);
|
|
|
58041
58041
|
|
|
58042
58042
|
const getKeyValueItem = () => ({
|
|
58043
58043
|
key: null,
|
|
58044
|
-
value: null
|
|
58044
|
+
value: null,
|
|
58045
|
+
_timestamp: +/* @__PURE__ */ new Date()
|
|
58045
58046
|
});
|
|
58046
58047
|
const keyValueProps = buildProps({
|
|
58047
58048
|
value: {
|
|
@@ -58089,11 +58090,28 @@ const keyValueProps = buildProps({
|
|
|
58089
58090
|
type: "input",
|
|
58090
58091
|
placeholder: "\u8BF7\u8F93\u5165key"
|
|
58091
58092
|
})
|
|
58093
|
+
},
|
|
58094
|
+
disabledValue: {
|
|
58095
|
+
type: definePropType(Array),
|
|
58096
|
+
default: () => []
|
|
58097
|
+
},
|
|
58098
|
+
disabledKey: {
|
|
58099
|
+
type: definePropType(Array),
|
|
58100
|
+
default: () => []
|
|
58101
|
+
},
|
|
58102
|
+
disabledDelete: {
|
|
58103
|
+
type: definePropType(Array),
|
|
58104
|
+
default: () => []
|
|
58105
|
+
},
|
|
58106
|
+
disabledAdd: {
|
|
58107
|
+
type: Boolean,
|
|
58108
|
+
default: false
|
|
58092
58109
|
}
|
|
58093
58110
|
});
|
|
58094
58111
|
const keyValueEmits = {
|
|
58095
58112
|
change: (value) => !!value,
|
|
58096
|
-
add: () =>
|
|
58113
|
+
add: (params) => !!params,
|
|
58114
|
+
delete: (index) => typeof index === "number",
|
|
58097
58115
|
"update:value": (value) => !!value
|
|
58098
58116
|
};
|
|
58099
58117
|
|
|
@@ -58123,6 +58141,18 @@ const formColumns = [
|
|
|
58123
58141
|
}
|
|
58124
58142
|
];
|
|
58125
58143
|
const keyValueItemProps = buildProps({
|
|
58144
|
+
disabled: {
|
|
58145
|
+
type: Boolean
|
|
58146
|
+
},
|
|
58147
|
+
disabledValue: {
|
|
58148
|
+
type: definePropType(Array)
|
|
58149
|
+
},
|
|
58150
|
+
disabledKey: {
|
|
58151
|
+
type: definePropType(Array)
|
|
58152
|
+
},
|
|
58153
|
+
disabledDelete: {
|
|
58154
|
+
type: definePropType(Array)
|
|
58155
|
+
},
|
|
58126
58156
|
value: {
|
|
58127
58157
|
type: definePropType(Object),
|
|
58128
58158
|
default: () => ({
|
|
@@ -58130,6 +58160,10 @@ const keyValueItemProps = buildProps({
|
|
|
58130
58160
|
value: ""
|
|
58131
58161
|
})
|
|
58132
58162
|
},
|
|
58163
|
+
idx: {
|
|
58164
|
+
type: Number,
|
|
58165
|
+
required: true
|
|
58166
|
+
},
|
|
58133
58167
|
keyValueTypeDict: {
|
|
58134
58168
|
type: Object,
|
|
58135
58169
|
default: () => ({})
|
|
@@ -58177,6 +58211,15 @@ var _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
58177
58211
|
}
|
|
58178
58212
|
return option;
|
|
58179
58213
|
});
|
|
58214
|
+
const getKeyDisabled = computed(() => {
|
|
58215
|
+
return props.disabledKey?.includes(props.idx) || props.disabled || getKeyType.value?.disabled;
|
|
58216
|
+
});
|
|
58217
|
+
const getValueDisabled = computed(() => {
|
|
58218
|
+
return props.disabledValue?.includes(props.idx) || props.disabled || getValueType.value?.disabled;
|
|
58219
|
+
});
|
|
58220
|
+
const getDeleteDisabled = computed(() => {
|
|
58221
|
+
return props.disabledDelete?.includes(props.idx) || props.disabled;
|
|
58222
|
+
});
|
|
58180
58223
|
const handleDelete = () => {
|
|
58181
58224
|
emits("delete");
|
|
58182
58225
|
};
|
|
@@ -58236,16 +58279,16 @@ var _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
58236
58279
|
value: innerValue.value["key"],
|
|
58237
58280
|
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => innerValue.value["key"] = $event),
|
|
58238
58281
|
options: unref(attrs)["key-types"],
|
|
58239
|
-
disabled:
|
|
58282
|
+
disabled: getKeyDisabled.value,
|
|
58240
58283
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
58241
58284
|
"allow-clear": "",
|
|
58242
58285
|
onChange: handleChange
|
|
58243
58286
|
}, null, 8, ["value", "options", "disabled"])) : (openBlock(), createBlock(resolveDynamicComponent(`ll-${getKeyType.value.type}`), mergeProps({
|
|
58244
58287
|
key: 1,
|
|
58245
58288
|
value: innerValue.value["key"],
|
|
58246
|
-
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => innerValue.value["key"] = $event)
|
|
58247
|
-
disabled: unref(attrs).disabled
|
|
58289
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => innerValue.value["key"] = $event)
|
|
58248
58290
|
}, getKeyType.value, {
|
|
58291
|
+
disabled: getKeyDisabled.value,
|
|
58249
58292
|
style: { "width": "100%" },
|
|
58250
58293
|
onChange: handleChange
|
|
58251
58294
|
}), createSlots({
|
|
@@ -58306,7 +58349,7 @@ var _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
58306
58349
|
(openBlock(), createBlock(resolveDynamicComponent(`ll-${getValueType.value.type}`), mergeProps({
|
|
58307
58350
|
value: innerValue.value["value"],
|
|
58308
58351
|
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => innerValue.value["value"] = $event),
|
|
58309
|
-
disabled:
|
|
58352
|
+
disabled: getValueDisabled.value,
|
|
58310
58353
|
style: { "width": "100%" }
|
|
58311
58354
|
}, getValueType.value), createSlots({
|
|
58312
58355
|
_: 2
|
|
@@ -58351,7 +58394,7 @@ var _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
58351
58394
|
[
|
|
58352
58395
|
createVNode(_component_ll_button, {
|
|
58353
58396
|
type: "link",
|
|
58354
|
-
disabled:
|
|
58397
|
+
disabled: getDeleteDisabled.value
|
|
58355
58398
|
}, {
|
|
58356
58399
|
default: withCtx(() => [
|
|
58357
58400
|
renderSlot(_ctx.$slots, "delete-icon", {}, () => [
|
|
@@ -58408,14 +58451,24 @@ var _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
58408
58451
|
});
|
|
58409
58452
|
const handleAddItem = () => {
|
|
58410
58453
|
innerValue.value.push(getKeyValueItem());
|
|
58411
|
-
emits("add"
|
|
58454
|
+
emits("add", {
|
|
58455
|
+
index: innerValue.value.length - 1,
|
|
58456
|
+
item: innerValue.value[innerValue.value.length - 1],
|
|
58457
|
+
value: innerValue.value
|
|
58458
|
+
});
|
|
58459
|
+
handleChange();
|
|
58412
58460
|
};
|
|
58413
58461
|
const handleDelete = (idx) => {
|
|
58414
58462
|
innerValue.value.splice(idx, 1);
|
|
58463
|
+
emits("delete", idx);
|
|
58464
|
+
handleChange();
|
|
58415
58465
|
};
|
|
58416
58466
|
const handleChange = () => {
|
|
58417
|
-
|
|
58418
|
-
|
|
58467
|
+
const arr = innerValue.value.map((e) => {
|
|
58468
|
+
return { key: e.key, value: e.value };
|
|
58469
|
+
});
|
|
58470
|
+
emits("change", arr);
|
|
58471
|
+
emits("update:value", arr);
|
|
58419
58472
|
};
|
|
58420
58473
|
watch(
|
|
58421
58474
|
() => props.value,
|
|
@@ -58423,7 +58476,8 @@ var _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
58423
58476
|
innerValue.value = n && n.length > 0 ? n : [{ key: null, value: null }];
|
|
58424
58477
|
},
|
|
58425
58478
|
{
|
|
58426
|
-
immediate: true
|
|
58479
|
+
immediate: true,
|
|
58480
|
+
deep: true
|
|
58427
58481
|
}
|
|
58428
58482
|
);
|
|
58429
58483
|
return (_ctx, _cache) => {
|
|
@@ -58445,11 +58499,12 @@ var _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
58445
58499
|
null,
|
|
58446
58500
|
renderList(innerValue.value, (_item, idx) => {
|
|
58447
58501
|
return openBlock(), createBlock(keyValueItem, {
|
|
58448
|
-
key: idx,
|
|
58502
|
+
key: idx + +/* @__PURE__ */ new Date(),
|
|
58449
58503
|
ref_for: true,
|
|
58450
58504
|
ref: (el) => keyValueItems.value[idx] = el,
|
|
58451
58505
|
value: innerValue.value[idx],
|
|
58452
58506
|
"onUpdate:value": ($event) => innerValue.value[idx] = $event,
|
|
58507
|
+
idx,
|
|
58453
58508
|
"key-label": props.keyLabel,
|
|
58454
58509
|
"value-label": props.valueLabel,
|
|
58455
58510
|
"key-value-type-dict": keyValueTypeDict.value,
|
|
@@ -58459,6 +58514,9 @@ var _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
58459
58514
|
"key-types": props.keyTypes,
|
|
58460
58515
|
"value-type": props.valueType,
|
|
58461
58516
|
disabled: props.disabled,
|
|
58517
|
+
"disabled-value": props.disabledValue,
|
|
58518
|
+
"disabled-key": props.disabledKey,
|
|
58519
|
+
"disabled-delete": props.disabledDelete,
|
|
58462
58520
|
onDelete: ($event) => handleDelete(idx),
|
|
58463
58521
|
onChange: handleChange
|
|
58464
58522
|
}, createSlots({
|
|
@@ -58473,7 +58531,7 @@ var _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
58473
58531
|
])
|
|
58474
58532
|
};
|
|
58475
58533
|
})
|
|
58476
|
-
]), 1032, ["value", "onUpdate:value", "key-label", "value-label", "key-value-type-dict", "show-delete", "key-value-type", "key-type", "key-types", "value-type", "disabled", "onDelete"]);
|
|
58534
|
+
]), 1032, ["value", "onUpdate:value", "idx", "key-label", "value-label", "key-value-type-dict", "show-delete", "key-value-type", "key-type", "key-types", "value-type", "disabled", "disabled-value", "disabled-key", "disabled-delete", "onDelete"]);
|
|
58477
58535
|
}),
|
|
58478
58536
|
128
|
|
58479
58537
|
/* KEYED_FRAGMENT */
|
|
@@ -58481,7 +58539,7 @@ var _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
58481
58539
|
createVNode(_component_ll_button, {
|
|
58482
58540
|
class: normalizeClass(unref(bem).e("add")),
|
|
58483
58541
|
loading: _ctx.loading,
|
|
58484
|
-
disabled: props.disabled,
|
|
58542
|
+
disabled: props.disabled || props.disabledAdd,
|
|
58485
58543
|
onClick: handleAddItem
|
|
58486
58544
|
}, {
|
|
58487
58545
|
default: withCtx(() => [
|
|
@@ -35,6 +35,10 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
35
35
|
type: string;
|
|
36
36
|
placeholder: string;
|
|
37
37
|
}, boolean>;
|
|
38
|
+
readonly disabledValue: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => number[]) | (() => number[]) | ((new (...args: any[]) => number[]) | (() => number[]))[], unknown, unknown, () => never[], boolean>;
|
|
39
|
+
readonly disabledKey: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => number[]) | (() => number[]) | ((new (...args: any[]) => number[]) | (() => number[]))[], unknown, unknown, () => never[], boolean>;
|
|
40
|
+
readonly disabledDelete: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => number[]) | (() => number[]) | ((new (...args: any[]) => number[]) | (() => number[]))[], unknown, unknown, () => never[], boolean>;
|
|
41
|
+
readonly disabledAdd: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
38
42
|
}, {
|
|
39
43
|
props: import("@vue/shared").LooseRequired<{
|
|
40
44
|
readonly value: import("./src/config").KeyValueItem[];
|
|
@@ -47,11 +51,16 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
47
51
|
readonly keyType: any;
|
|
48
52
|
readonly keyTypes: import("./src/config").KeyType[];
|
|
49
53
|
readonly valueType: any;
|
|
54
|
+
readonly disabledValue: number[];
|
|
55
|
+
readonly disabledKey: number[];
|
|
56
|
+
readonly disabledDelete: number[];
|
|
57
|
+
readonly disabledAdd: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
50
58
|
readonly onChange?: ((value: import("./src/config").KeyValueItem[]) => any) | undefined;
|
|
51
59
|
readonly "onUpdate:value"?: ((value: import("./src/config").KeyValueItem[]) => any) | undefined;
|
|
52
|
-
readonly
|
|
60
|
+
readonly onDelete?: ((index: number) => any) | undefined;
|
|
61
|
+
readonly onAdd?: ((params: import("./src/config").KeyValueAddEmits) => any) | undefined;
|
|
53
62
|
} & {}>;
|
|
54
|
-
emits: ((event: "add") => void) & ((event: "change", value: import("./src/config").KeyValueItem[]) => void) & ((event: "update:value", value: import("./src/config").KeyValueItem[]) => void);
|
|
63
|
+
emits: ((event: "delete", index: number) => void) & ((event: "add", params: import("./src/config").KeyValueAddEmits) => void) & ((event: "change", value: import("./src/config").KeyValueItem[]) => void) & ((event: "update:value", value: import("./src/config").KeyValueItem[]) => void);
|
|
55
64
|
bem: {
|
|
56
65
|
b: (blockSuffix?: string) => string;
|
|
57
66
|
e: (element?: string) => string;
|
|
@@ -63,7 +72,7 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
63
72
|
is: (name?: string) => string;
|
|
64
73
|
};
|
|
65
74
|
innerValue: import("vue").Ref<{
|
|
66
|
-
key:
|
|
75
|
+
key: any;
|
|
67
76
|
value: any;
|
|
68
77
|
}[]>;
|
|
69
78
|
keyValueItems: import("vue").Ref<any[]>;
|
|
@@ -72,17 +81,52 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
72
81
|
handleDelete: (idx: number) => void;
|
|
73
82
|
handleChange: () => void;
|
|
74
83
|
keyValueItem: import("vue").DefineComponent<{
|
|
84
|
+
readonly disabled: {
|
|
85
|
+
readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
|
|
86
|
+
readonly required: false;
|
|
87
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
88
|
+
__epPropKey: true;
|
|
89
|
+
};
|
|
90
|
+
readonly disabledValue: {
|
|
91
|
+
readonly type: import("vue").PropType<number[]>;
|
|
92
|
+
readonly required: false;
|
|
93
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
94
|
+
__epPropKey: true;
|
|
95
|
+
};
|
|
96
|
+
readonly disabledKey: {
|
|
97
|
+
readonly type: import("vue").PropType<number[]>;
|
|
98
|
+
readonly required: false;
|
|
99
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
100
|
+
__epPropKey: true;
|
|
101
|
+
};
|
|
102
|
+
readonly disabledDelete: {
|
|
103
|
+
readonly type: import("vue").PropType<number[]>;
|
|
104
|
+
readonly required: false;
|
|
105
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
106
|
+
__epPropKey: true;
|
|
107
|
+
};
|
|
75
108
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/config").KeyValueItem) | (() => import("./src/config").KeyValueItem) | ((new (...args: any[]) => import("./src/config").KeyValueItem) | (() => import("./src/config").KeyValueItem))[], unknown, unknown, () => {
|
|
76
109
|
key: string;
|
|
77
110
|
value: string;
|
|
78
111
|
}, boolean>;
|
|
112
|
+
readonly idx: {
|
|
113
|
+
readonly type: import("vue").PropType<number>;
|
|
114
|
+
readonly required: true;
|
|
115
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
116
|
+
__epPropKey: true;
|
|
117
|
+
};
|
|
79
118
|
readonly keyValueTypeDict: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
80
119
|
readonly showDelete: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
81
120
|
}, {
|
|
82
121
|
props: import("@vue/shared").LooseRequired<{
|
|
83
122
|
readonly value: import("./src/config").KeyValueItem;
|
|
123
|
+
readonly idx: number;
|
|
84
124
|
readonly keyValueTypeDict: Record<string, any>;
|
|
85
125
|
readonly showDelete: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
126
|
+
readonly disabled?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
127
|
+
readonly disabledValue?: number[] | undefined;
|
|
128
|
+
readonly disabledKey?: number[] | undefined;
|
|
129
|
+
readonly disabledDelete?: number[] | undefined;
|
|
86
130
|
readonly onChange?: (() => any) | undefined;
|
|
87
131
|
readonly "onUpdate:value"?: ((value: import("./src/config").KeyValueItem) => any) | undefined;
|
|
88
132
|
readonly onDelete?: (() => any) | undefined;
|
|
@@ -102,11 +146,14 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
102
146
|
is: (name?: string) => string;
|
|
103
147
|
};
|
|
104
148
|
innerValue: import("vue").Ref<{
|
|
105
|
-
key:
|
|
149
|
+
key: any;
|
|
106
150
|
value: any;
|
|
107
151
|
}>;
|
|
108
152
|
getKeyType: import("vue").ComputedRef<any>;
|
|
109
153
|
getValueType: import("vue").ComputedRef<any>;
|
|
154
|
+
getKeyDisabled: import("vue").ComputedRef<any>;
|
|
155
|
+
getValueDisabled: import("vue").ComputedRef<any>;
|
|
156
|
+
getDeleteDisabled: import("vue").ComputedRef<import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined>;
|
|
110
157
|
handleDelete: () => void;
|
|
111
158
|
handleChange: () => void;
|
|
112
159
|
readonly isEmpty: {
|
|
@@ -354,10 +401,40 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
354
401
|
change: () => boolean;
|
|
355
402
|
'update:value': (value: import("./src/config").KeyValueItem) => boolean;
|
|
356
403
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
404
|
+
readonly disabled: {
|
|
405
|
+
readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
|
|
406
|
+
readonly required: false;
|
|
407
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
408
|
+
__epPropKey: true;
|
|
409
|
+
};
|
|
410
|
+
readonly disabledValue: {
|
|
411
|
+
readonly type: import("vue").PropType<number[]>;
|
|
412
|
+
readonly required: false;
|
|
413
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
414
|
+
__epPropKey: true;
|
|
415
|
+
};
|
|
416
|
+
readonly disabledKey: {
|
|
417
|
+
readonly type: import("vue").PropType<number[]>;
|
|
418
|
+
readonly required: false;
|
|
419
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
420
|
+
__epPropKey: true;
|
|
421
|
+
};
|
|
422
|
+
readonly disabledDelete: {
|
|
423
|
+
readonly type: import("vue").PropType<number[]>;
|
|
424
|
+
readonly required: false;
|
|
425
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
426
|
+
__epPropKey: true;
|
|
427
|
+
};
|
|
357
428
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/config").KeyValueItem) | (() => import("./src/config").KeyValueItem) | ((new (...args: any[]) => import("./src/config").KeyValueItem) | (() => import("./src/config").KeyValueItem))[], unknown, unknown, () => {
|
|
358
429
|
key: string;
|
|
359
430
|
value: string;
|
|
360
431
|
}, boolean>;
|
|
432
|
+
readonly idx: {
|
|
433
|
+
readonly type: import("vue").PropType<number>;
|
|
434
|
+
readonly required: true;
|
|
435
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
436
|
+
__epPropKey: true;
|
|
437
|
+
};
|
|
361
438
|
readonly keyValueTypeDict: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
362
439
|
readonly showDelete: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
363
440
|
}>> & {
|
|
@@ -371,7 +448,8 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
371
448
|
}, {}>;
|
|
372
449
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
373
450
|
change: (value: import("./src/config").KeyValueItem[]) => boolean;
|
|
374
|
-
add: () => boolean;
|
|
451
|
+
add: (params: import("./src/config").KeyValueAddEmits) => boolean;
|
|
452
|
+
delete: (index: number) => boolean;
|
|
375
453
|
'update:value': (value: import("./src/config").KeyValueItem[]) => boolean;
|
|
376
454
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
377
455
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/config").KeyValueItem[]) | (() => import("./src/config").KeyValueItem[]) | ((new (...args: any[]) => import("./src/config").KeyValueItem[]) | (() => import("./src/config").KeyValueItem[]))[], unknown, unknown, () => {
|
|
@@ -409,10 +487,15 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
409
487
|
type: string;
|
|
410
488
|
placeholder: string;
|
|
411
489
|
}, boolean>;
|
|
490
|
+
readonly disabledValue: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => number[]) | (() => number[]) | ((new (...args: any[]) => number[]) | (() => number[]))[], unknown, unknown, () => never[], boolean>;
|
|
491
|
+
readonly disabledKey: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => number[]) | (() => number[]) | ((new (...args: any[]) => number[]) | (() => number[]))[], unknown, unknown, () => never[], boolean>;
|
|
492
|
+
readonly disabledDelete: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => number[]) | (() => number[]) | ((new (...args: any[]) => number[]) | (() => number[]))[], unknown, unknown, () => never[], boolean>;
|
|
493
|
+
readonly disabledAdd: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
412
494
|
}>> & {
|
|
413
495
|
onChange?: ((value: import("./src/config").KeyValueItem[]) => any) | undefined;
|
|
414
496
|
"onUpdate:value"?: ((value: import("./src/config").KeyValueItem[]) => any) | undefined;
|
|
415
|
-
|
|
497
|
+
onDelete?: ((index: number) => any) | undefined;
|
|
498
|
+
onAdd?: ((params: import("./src/config").KeyValueAddEmits) => any) | undefined;
|
|
416
499
|
}, {
|
|
417
500
|
readonly value: import("./src/config").KeyValueItem[];
|
|
418
501
|
readonly disabled: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -424,6 +507,10 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
424
507
|
readonly keyType: any;
|
|
425
508
|
readonly keyTypes: import("./src/config").KeyType[];
|
|
426
509
|
readonly valueType: any;
|
|
510
|
+
readonly disabledValue: number[];
|
|
511
|
+
readonly disabledKey: number[];
|
|
512
|
+
readonly disabledDelete: number[];
|
|
513
|
+
readonly disabledAdd: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
427
514
|
}, {}>>;
|
|
428
515
|
export default LlKeyValue;
|
|
429
516
|
export * from './src/config';
|
|
@@ -1,15 +1,50 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
readonly disabled: {
|
|
3
|
+
readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
|
|
4
|
+
readonly required: false;
|
|
5
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
6
|
+
__epPropKey: true;
|
|
7
|
+
};
|
|
8
|
+
readonly disabledValue: {
|
|
9
|
+
readonly type: import("vue").PropType<number[]>;
|
|
10
|
+
readonly required: false;
|
|
11
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
12
|
+
__epPropKey: true;
|
|
13
|
+
};
|
|
14
|
+
readonly disabledKey: {
|
|
15
|
+
readonly type: import("vue").PropType<number[]>;
|
|
16
|
+
readonly required: false;
|
|
17
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
18
|
+
__epPropKey: true;
|
|
19
|
+
};
|
|
20
|
+
readonly disabledDelete: {
|
|
21
|
+
readonly type: import("vue").PropType<number[]>;
|
|
22
|
+
readonly required: false;
|
|
23
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
24
|
+
__epPropKey: true;
|
|
25
|
+
};
|
|
2
26
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("ll-plus/es/components").KeyValueItem) | (() => import("ll-plus/es/components").KeyValueItem) | ((new (...args: any[]) => import("ll-plus/es/components").KeyValueItem) | (() => import("ll-plus/es/components").KeyValueItem))[], unknown, unknown, () => {
|
|
3
27
|
key: string;
|
|
4
28
|
value: string;
|
|
5
29
|
}, boolean>;
|
|
30
|
+
readonly idx: {
|
|
31
|
+
readonly type: import("vue").PropType<number>;
|
|
32
|
+
readonly required: true;
|
|
33
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
34
|
+
__epPropKey: true;
|
|
35
|
+
};
|
|
6
36
|
readonly keyValueTypeDict: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
7
37
|
readonly showDelete: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
8
38
|
}, {
|
|
9
39
|
props: import("@vue/shared").LooseRequired<{
|
|
10
40
|
readonly value: import("ll-plus/es/components").KeyValueItem;
|
|
41
|
+
readonly idx: number;
|
|
11
42
|
readonly keyValueTypeDict: Record<string, any>;
|
|
12
43
|
readonly showDelete: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
44
|
+
readonly disabled?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
45
|
+
readonly disabledValue?: number[] | undefined;
|
|
46
|
+
readonly disabledKey?: number[] | undefined;
|
|
47
|
+
readonly disabledDelete?: number[] | undefined;
|
|
13
48
|
readonly onChange?: (() => any) | undefined;
|
|
14
49
|
readonly "onUpdate:value"?: ((value: import("ll-plus/es/components").KeyValueItem) => any) | undefined;
|
|
15
50
|
readonly onDelete?: (() => any) | undefined;
|
|
@@ -29,11 +64,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
64
|
is: (name?: string) => string;
|
|
30
65
|
};
|
|
31
66
|
innerValue: import("vue").Ref<{
|
|
32
|
-
key:
|
|
67
|
+
key: any;
|
|
33
68
|
value: any;
|
|
34
69
|
}>;
|
|
35
70
|
getKeyType: import("vue").ComputedRef<any>;
|
|
36
71
|
getValueType: import("vue").ComputedRef<any>;
|
|
72
|
+
getKeyDisabled: import("vue").ComputedRef<any>;
|
|
73
|
+
getValueDisabled: import("vue").ComputedRef<any>;
|
|
74
|
+
getDeleteDisabled: import("vue").ComputedRef<import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined>;
|
|
37
75
|
handleDelete: () => void;
|
|
38
76
|
handleChange: () => void;
|
|
39
77
|
readonly isEmpty: {
|
|
@@ -281,10 +319,40 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
281
319
|
change: () => boolean;
|
|
282
320
|
'update:value': (value: import("ll-plus/es/components").KeyValueItem) => boolean;
|
|
283
321
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
322
|
+
readonly disabled: {
|
|
323
|
+
readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
|
|
324
|
+
readonly required: false;
|
|
325
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
326
|
+
__epPropKey: true;
|
|
327
|
+
};
|
|
328
|
+
readonly disabledValue: {
|
|
329
|
+
readonly type: import("vue").PropType<number[]>;
|
|
330
|
+
readonly required: false;
|
|
331
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
332
|
+
__epPropKey: true;
|
|
333
|
+
};
|
|
334
|
+
readonly disabledKey: {
|
|
335
|
+
readonly type: import("vue").PropType<number[]>;
|
|
336
|
+
readonly required: false;
|
|
337
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
338
|
+
__epPropKey: true;
|
|
339
|
+
};
|
|
340
|
+
readonly disabledDelete: {
|
|
341
|
+
readonly type: import("vue").PropType<number[]>;
|
|
342
|
+
readonly required: false;
|
|
343
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
344
|
+
__epPropKey: true;
|
|
345
|
+
};
|
|
284
346
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("ll-plus/es/components").KeyValueItem) | (() => import("ll-plus/es/components").KeyValueItem) | ((new (...args: any[]) => import("ll-plus/es/components").KeyValueItem) | (() => import("ll-plus/es/components").KeyValueItem))[], unknown, unknown, () => {
|
|
285
347
|
key: string;
|
|
286
348
|
value: string;
|
|
287
349
|
}, boolean>;
|
|
350
|
+
readonly idx: {
|
|
351
|
+
readonly type: import("vue").PropType<number>;
|
|
352
|
+
readonly required: true;
|
|
353
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
354
|
+
__epPropKey: true;
|
|
355
|
+
};
|
|
288
356
|
readonly keyValueTypeDict: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
289
357
|
readonly showDelete: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
290
358
|
}>> & {
|
|
@@ -42,6 +42,15 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
42
42
|
}
|
|
43
43
|
return option;
|
|
44
44
|
});
|
|
45
|
+
const getKeyDisabled = vue.computed(() => {
|
|
46
|
+
return props.disabledKey?.includes(props.idx) || props.disabled || getKeyType.value?.disabled;
|
|
47
|
+
});
|
|
48
|
+
const getValueDisabled = vue.computed(() => {
|
|
49
|
+
return props.disabledValue?.includes(props.idx) || props.disabled || getValueType.value?.disabled;
|
|
50
|
+
});
|
|
51
|
+
const getDeleteDisabled = vue.computed(() => {
|
|
52
|
+
return props.disabledDelete?.includes(props.idx) || props.disabled;
|
|
53
|
+
});
|
|
45
54
|
const handleDelete = () => {
|
|
46
55
|
emits("delete");
|
|
47
56
|
};
|
|
@@ -101,16 +110,16 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
101
110
|
value: innerValue.value["key"],
|
|
102
111
|
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => innerValue.value["key"] = $event),
|
|
103
112
|
options: vue.unref(attrs)["key-types"],
|
|
104
|
-
disabled:
|
|
113
|
+
disabled: getKeyDisabled.value,
|
|
105
114
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
106
115
|
"allow-clear": "",
|
|
107
116
|
onChange: handleChange
|
|
108
117
|
}, null, 8, ["value", "options", "disabled"])) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(`ll-${getKeyType.value.type}`), vue.mergeProps({
|
|
109
118
|
key: 1,
|
|
110
119
|
value: innerValue.value["key"],
|
|
111
|
-
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => innerValue.value["key"] = $event)
|
|
112
|
-
disabled: vue.unref(attrs).disabled
|
|
120
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => innerValue.value["key"] = $event)
|
|
113
121
|
}, getKeyType.value, {
|
|
122
|
+
disabled: getKeyDisabled.value,
|
|
114
123
|
style: { "width": "100%" },
|
|
115
124
|
onChange: handleChange
|
|
116
125
|
}), vue.createSlots({
|
|
@@ -171,7 +180,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
171
180
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(`ll-${getValueType.value.type}`), vue.mergeProps({
|
|
172
181
|
value: innerValue.value["value"],
|
|
173
182
|
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => innerValue.value["value"] = $event),
|
|
174
|
-
disabled:
|
|
183
|
+
disabled: getValueDisabled.value,
|
|
175
184
|
style: { "width": "100%" }
|
|
176
185
|
}, getValueType.value), vue.createSlots({
|
|
177
186
|
_: 2
|
|
@@ -216,7 +225,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
216
225
|
[
|
|
217
226
|
vue.createVNode(_component_ll_button, {
|
|
218
227
|
type: "link",
|
|
219
|
-
disabled:
|
|
228
|
+
disabled: getDeleteDisabled.value
|
|
220
229
|
}, {
|
|
221
230
|
default: vue.withCtx(() => [
|
|
222
231
|
vue.renderSlot(_ctx.$slots, "delete-icon", {}, () => [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"key-value-item.vue2.js","sources":["../../../../../../packages/components/key-value/src/components/key-value-item.vue"],"sourcesContent":["<template>\n <ll-form\n ref=\"form\"\n :form-columns=\"formColumns\"\n :form-data=\"props.value\"\n :form-options=\"formOptions\"\n >\n <template #formItem=\"{ item }\">\n <template v-if=\"item.key === 'other'\">\n <div :class=\"bem.e('item')\">\n <div\n v-if=\"attrs['key-value-type'] !== 'single'\"\n :class=\"bem.m('left')\"\n >\n <ll-form-item\n :label=\"attrs['key-label']\"\n :label-col=\"{\n span: 24\n }\"\n :rules=\"getKeyType.role\"\n name=\"key\"\n >\n <slot name=\"key\">\n <ll-select\n v-if=\"!isEmpty(attrs['key-types'])\"\n v-model:value=\"innerValue['key']\"\n :options=\"attrs['key-types']\"\n :disabled=\"
|
|
1
|
+
{"version":3,"file":"key-value-item.vue2.js","sources":["../../../../../../packages/components/key-value/src/components/key-value-item.vue"],"sourcesContent":["<template>\n <ll-form\n ref=\"form\"\n :form-columns=\"formColumns\"\n :form-data=\"props.value\"\n :form-options=\"formOptions\"\n >\n <template #formItem=\"{ item }\">\n <template v-if=\"item.key === 'other'\">\n <div :class=\"bem.e('item')\">\n <div\n v-if=\"attrs['key-value-type'] !== 'single'\"\n :class=\"bem.m('left')\"\n >\n <ll-form-item\n :label=\"attrs['key-label']\"\n :label-col=\"{\n span: 24\n }\"\n :rules=\"getKeyType.role\"\n name=\"key\"\n >\n <slot name=\"key\">\n <ll-select\n v-if=\"!isEmpty(attrs['key-types'])\"\n v-model:value=\"innerValue['key']\"\n :options=\"attrs['key-types']\"\n :disabled=\"getKeyDisabled\"\n placeholder=\"请选择\"\n allow-clear\n @change=\"handleChange\"\n />\n <component\n :is=\"`ll-${getKeyType.type}`\"\n v-else\n v-model:value=\"innerValue['key']\"\n v-bind=\"getKeyType\"\n :disabled=\"getKeyDisabled\"\n style=\"width: 100%\"\n @change=\"handleChange\"\n >\n <template\n v-for=\"_item in Object.keys($slots)\"\n :key=\"_item\"\n #[_item]=\"data\"\n >\n <slot\n :name=\"_item\"\n v-bind=\"data || {}\"\n content=\"key\"\n ></slot>\n </template>\n </component>\n </slot>\n </ll-form-item>\n </div>\n\n <div\n v-if=\"attrs['key-value-type'] !== 'single'\"\n :class=\"bem.m('separator')\"\n :style=\"{\n 'margin-top':\n !!attrs['key-label'] || !!attrs['value-label'] ? '26px' : '0px'\n }\"\n >\n <slot name=\"separator\">~</slot>\n </div>\n\n <div :class=\"bem.m('right')\">\n <ll-form-item\n :label=\"attrs['value-label']\"\n :label-col=\"{\n span: 24\n }\"\n :rule=\"getValueType.rule || {}\"\n name=\"value\"\n >\n <slot name=\"value-warapper\" v-bind=\"getValueType\">\n <component\n :is=\"`ll-${getValueType.type}`\"\n v-model:value=\"innerValue['value']\"\n :disabled=\"getValueDisabled\"\n style=\"width: 100%\"\n v-bind=\"getValueType\"\n >\n <template\n v-for=\"_item in Object.keys($slots)\"\n :key=\"_item\"\n #[_item]=\"data\"\n >\n <slot\n :name=\"_item\"\n v-bind=\"data || {}\"\n content=\"value\"\n ></slot>\n </template>\n </component>\n </slot>\n </ll-form-item>\n </div>\n\n <a-popconfirm\n title=\"你确定要移除?\"\n ok-text=\"确认\"\n cancel-text=\"取消\"\n placement=\"topRight\"\n :overlay-class-name=\"bem.m('popconfirm')\"\n @confirm=\"handleDelete\"\n >\n <div\n v-if=\"props.showDelete\"\n :class=\"bem.m('delete')\"\n :style=\"{\n 'margin-top':\n !!attrs['key-label'] || !!attrs['value-label']\n ? '26px'\n : '0px'\n }\"\n >\n <ll-button type=\"link\" :disabled=\"getDeleteDisabled\">\n <slot name=\"delete-icon\">\n <ll-icon icon-name=\"icon-remove\" class=\"delete\" />\n </slot>\n </ll-button>\n </div>\n </a-popconfirm>\n </div>\n </template>\n </template>\n </ll-form>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, computed, useAttrs, watch } from 'vue'\nimport { isEmpty } from 'lodash-es'\nimport { createNamespace } from '@ll-plus/utils'\nimport {\n typeRules,\n keyValueItemProps,\n keyValueItemEmits,\n formColumns,\n formOptions\n} from '../config'\nimport { type FormColumn } from '@ll-plus/components'\n\ndefineOptions({\n name: 'LlKeyValueItem'\n})\n\nconst props = defineProps(keyValueItemProps)\nconst emits = defineEmits(keyValueItemEmits)\n\nconst attrs = useAttrs()\nconst bem = createNamespace('key-value')\nconst innerValue = ref(props.value)\n\nconst getKeyType = computed<FormColumn>(() => {\n const option = attrs['key-type'] || {\n type: 'input',\n placeholder: '请输入',\n rule: typeRules || []\n }\n return option\n})\nconst getValueType = computed<FormColumn>(() => {\n let option = attrs['value-type'] || {\n type: 'input',\n placeholder: '请输入',\n rule: []\n }\n if (innerValue.value['key'] && !isEmpty(props.keyValueTypeDict)) {\n option = props.keyValueTypeDict[innerValue.value['key']]\n }\n return option\n})\n\nconst getKeyDisabled = computed(() => {\n return (\n props.disabledKey?.includes(props.idx) ||\n props.disabled ||\n getKeyType.value?.disabled\n )\n})\n\nconst getValueDisabled = computed(() => {\n return (\n props.disabledValue?.includes(props.idx) ||\n props.disabled ||\n getValueType.value?.disabled\n )\n})\n\nconst getDeleteDisabled = computed(() => {\n return props.disabledDelete?.includes(props.idx) || props.disabled\n})\n\nconst handleDelete = () => {\n emits('delete')\n}\n\nconst handleChange = () => {\n innerValue.value['value'] = ''\n}\n\nwatch(\n innerValue,\n val => {\n emits('update:value', val)\n emits('change')\n },\n {\n deep: true\n }\n)\n</script>\n\n<style scoped></style>\n"],"names":["useAttrs","createNamespace","ref","computed","typeRules","isEmpty","watch"],"mappings":";;;;;;;;;;;;;;;;;;;;AAqJA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AAEd,IAAA,MAAM,QAAQA,YAAS,EAAA,CAAA;AACvB,IAAM,MAAA,GAAA,GAAMC,gCAAgB,WAAW,CAAA,CAAA;AACvC,IAAM,MAAA,UAAA,GAAaC,OAAI,CAAA,KAAA,CAAM,KAAK,CAAA,CAAA;AAElC,IAAM,MAAA,UAAA,GAAaC,aAAqB,MAAM;AAC5C,MAAM,MAAA,MAAA,GAAS,KAAM,CAAA,UAAU,CAAK,IAAA;AAAA,QAClC,IAAM,EAAA,OAAA;AAAA,QACN,WAAa,EAAA,oBAAA;AAAA,QACb,IAAA,EAAMC,0BAAa,EAAC;AAAA,OACtB,CAAA;AACA,MAAO,OAAA,MAAA,CAAA;AAAA,KACR,CAAA,CAAA;AACD,IAAM,MAAA,YAAA,GAAeD,aAAqB,MAAM;AAC9C,MAAI,IAAA,MAAA,GAAS,KAAM,CAAA,YAAY,CAAK,IAAA;AAAA,QAClC,IAAM,EAAA,OAAA;AAAA,QACN,WAAa,EAAA,oBAAA;AAAA,QACb,MAAM,EAAC;AAAA,OACT,CAAA;AACA,MAAI,IAAA,UAAA,CAAW,MAAM,KAAK,CAAA,IAAK,CAACE,gBAAQ,CAAA,KAAA,CAAM,gBAAgB,CAAG,EAAA;AAC/D,QAAA,MAAA,GAAS,KAAM,CAAA,gBAAA,CAAiB,UAAW,CAAA,KAAA,CAAM,KAAK,CAAC,CAAA,CAAA;AAAA,OACzD;AACA,MAAO,OAAA,MAAA,CAAA;AAAA,KACR,CAAA,CAAA;AAED,IAAM,MAAA,cAAA,GAAiBF,aAAS,MAAM;AACpC,MACE,OAAA,KAAA,CAAM,aAAa,QAAS,CAAA,KAAA,CAAM,GAAG,CACrC,IAAA,KAAA,CAAM,QACN,IAAA,UAAA,CAAW,KAAO,EAAA,QAAA,CAAA;AAAA,KAErB,CAAA,CAAA;AAED,IAAM,MAAA,gBAAA,GAAmBA,aAAS,MAAM;AACtC,MACE,OAAA,KAAA,CAAM,eAAe,QAAS,CAAA,KAAA,CAAM,GAAG,CACvC,IAAA,KAAA,CAAM,QACN,IAAA,YAAA,CAAa,KAAO,EAAA,QAAA,CAAA;AAAA,KAEvB,CAAA,CAAA;AAED,IAAM,MAAA,iBAAA,GAAoBA,aAAS,MAAM;AACvC,MAAA,OAAO,MAAM,cAAgB,EAAA,QAAA,CAAS,KAAM,CAAA,GAAG,KAAK,KAAM,CAAA,QAAA,CAAA;AAAA,KAC3D,CAAA,CAAA;AAED,IAAA,MAAM,eAAe,MAAM;AACzB,MAAA,KAAA,CAAM,QAAQ,CAAA,CAAA;AAAA,KAChB,CAAA;AAEA,IAAA,MAAM,eAAe,MAAM;AACzB,MAAW,UAAA,CAAA,KAAA,CAAM,OAAO,CAAI,GAAA,EAAA,CAAA;AAAA,KAC9B,CAAA;AAEA,IAAAG,SAAA;AAAA,MACE,UAAA;AAAA,MACA,CAAO,GAAA,KAAA;AACL,QAAA,KAAA,CAAM,gBAAgB,GAAG,CAAA,CAAA;AACzB,QAAA,KAAA,CAAM,QAAQ,CAAA,CAAA;AAAA,OAChB;AAAA,MACA;AAAA,QACE,IAAM,EAAA,IAAA;AAAA,OACR;AAAA,KACF,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -234,14 +234,44 @@ export declare const formColumns: {
|
|
|
234
234
|
};
|
|
235
235
|
}[];
|
|
236
236
|
export interface KeyValueItem {
|
|
237
|
-
key:
|
|
237
|
+
key: any | null;
|
|
238
238
|
value: any | null;
|
|
239
239
|
}
|
|
240
240
|
export declare const keyValueItemProps: {
|
|
241
|
+
readonly disabled: {
|
|
242
|
+
readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
|
|
243
|
+
readonly required: false;
|
|
244
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
245
|
+
__epPropKey: true;
|
|
246
|
+
};
|
|
247
|
+
readonly disabledValue: {
|
|
248
|
+
readonly type: import("vue").PropType<number[]>;
|
|
249
|
+
readonly required: false;
|
|
250
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
251
|
+
__epPropKey: true;
|
|
252
|
+
};
|
|
253
|
+
readonly disabledKey: {
|
|
254
|
+
readonly type: import("vue").PropType<number[]>;
|
|
255
|
+
readonly required: false;
|
|
256
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
257
|
+
__epPropKey: true;
|
|
258
|
+
};
|
|
259
|
+
readonly disabledDelete: {
|
|
260
|
+
readonly type: import("vue").PropType<number[]>;
|
|
261
|
+
readonly required: false;
|
|
262
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
263
|
+
__epPropKey: true;
|
|
264
|
+
};
|
|
241
265
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => KeyValueItem) | (() => KeyValueItem) | ((new (...args: any[]) => KeyValueItem) | (() => KeyValueItem))[], unknown, unknown, () => {
|
|
242
266
|
key: string;
|
|
243
267
|
value: string;
|
|
244
268
|
}, boolean>;
|
|
269
|
+
readonly idx: {
|
|
270
|
+
readonly type: import("vue").PropType<number>;
|
|
271
|
+
readonly required: true;
|
|
272
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
273
|
+
__epPropKey: true;
|
|
274
|
+
};
|
|
245
275
|
readonly keyValueTypeDict: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
246
276
|
readonly showDelete: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
247
277
|
};
|