@wx-design/components 1.1.22 → 1.1.23
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/core/Select/index.vue.d.ts +5 -0
- package/es/core/Table/components/CellEditors/Select.d.ts +1 -1
- package/es/index.mjs +7 -4
- package/lib/core/Select/index.vue.d.ts +5 -0
- package/lib/core/Table/components/CellEditors/Select.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/types/select/index.d.ts +2 -0
|
@@ -5,6 +5,7 @@ declare function __VLS_template(): {
|
|
|
5
5
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SabSelectProps>, {
|
|
6
6
|
labelKey: string;
|
|
7
7
|
valueKey: string;
|
|
8
|
+
disabledKey: string;
|
|
8
9
|
selectType: string;
|
|
9
10
|
clearable: boolean;
|
|
10
11
|
filterable: boolean;
|
|
@@ -12,9 +13,11 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
12
13
|
"update:modelValue": (value: any) => void;
|
|
13
14
|
focus: (value: any) => void;
|
|
14
15
|
blur: (value: any) => void;
|
|
16
|
+
loadmore: (value: any, pagination: any) => void;
|
|
15
17
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SabSelectProps>, {
|
|
16
18
|
labelKey: string;
|
|
17
19
|
valueKey: string;
|
|
20
|
+
disabledKey: string;
|
|
18
21
|
selectType: string;
|
|
19
22
|
clearable: boolean;
|
|
20
23
|
filterable: boolean;
|
|
@@ -22,9 +25,11 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
22
25
|
onFocus?: ((value: any) => any) | undefined;
|
|
23
26
|
onBlur?: ((value: any) => any) | undefined;
|
|
24
27
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
28
|
+
onLoadmore?: ((value: any, pagination: any) => any) | undefined;
|
|
25
29
|
}, {
|
|
26
30
|
labelKey: string;
|
|
27
31
|
valueKey: string;
|
|
32
|
+
disabledKey: string;
|
|
28
33
|
clearable: boolean;
|
|
29
34
|
filterable: boolean;
|
|
30
35
|
selectType: "v1" | "v2";
|
|
@@ -56,8 +56,8 @@ declare const SabCellEditSelect: import("vue").DefineComponent<{
|
|
|
56
56
|
modelValue: string | number | unknown[];
|
|
57
57
|
labelKey: string;
|
|
58
58
|
valueKey: string;
|
|
59
|
-
remote: boolean;
|
|
60
59
|
disabledKey: string;
|
|
60
|
+
remote: boolean;
|
|
61
61
|
revalidateOnFocus: boolean;
|
|
62
62
|
}, {}>;
|
|
63
63
|
export default SabCellEditSelect;
|
package/es/index.mjs
CHANGED
|
@@ -42480,6 +42480,7 @@ const Pv = /* @__PURE__ */ st({
|
|
|
42480
42480
|
remoteMethod: {},
|
|
42481
42481
|
labelKey: { default: "label" },
|
|
42482
42482
|
valueKey: { default: "value" },
|
|
42483
|
+
disabledKey: { default: "disabled" },
|
|
42483
42484
|
modelValue: {},
|
|
42484
42485
|
labelInValue: { type: Boolean },
|
|
42485
42486
|
options: {},
|
|
@@ -42492,7 +42493,7 @@ const Pv = /* @__PURE__ */ st({
|
|
|
42492
42493
|
autoSelectFirstOption: { type: Boolean },
|
|
42493
42494
|
pagination: {}
|
|
42494
42495
|
},
|
|
42495
|
-
emits: ["update:modelValue", "focus", "blur"],
|
|
42496
|
+
emits: ["update:modelValue", "focus", "blur", "loadmore"],
|
|
42496
42497
|
setup(e, { emit: t }) {
|
|
42497
42498
|
const n = t, o = e, s = Me([]);
|
|
42498
42499
|
at(
|
|
@@ -42535,7 +42536,7 @@ const Pv = /* @__PURE__ */ st({
|
|
|
42535
42536
|
), p = Di(
|
|
42536
42537
|
() => {
|
|
42537
42538
|
if (o.enableLoadmore)
|
|
42538
|
-
return l.current++, u(c.value, l.current);
|
|
42539
|
+
return l.current++, n("loadmore", c.value, l.current), u(c.value, l.current);
|
|
42539
42540
|
},
|
|
42540
42541
|
500,
|
|
42541
42542
|
{
|
|
@@ -42634,13 +42635,14 @@ const Pv = /* @__PURE__ */ st({
|
|
|
42634
42635
|
(wo(!0), Ur(Bu, null, Ou(s.value, (H) => (wo(), ms(Rn(Sf), {
|
|
42635
42636
|
key: H[h.valueKey],
|
|
42636
42637
|
label: H[h.labelKey],
|
|
42637
|
-
value: H[h.valueKey]
|
|
42638
|
+
value: H[h.valueKey],
|
|
42639
|
+
disabled: H[h.disabledKey]
|
|
42638
42640
|
}, {
|
|
42639
42641
|
default: Gn(() => [
|
|
42640
42642
|
Do(h.$slots, "default", { item: H })
|
|
42641
42643
|
]),
|
|
42642
42644
|
_: 2
|
|
42643
|
-
}, 1032, ["label", "value"]))), 128))
|
|
42645
|
+
}, 1032, ["label", "value", "disabled"]))), 128))
|
|
42644
42646
|
];
|
|
42645
42647
|
}),
|
|
42646
42648
|
_: 3
|
|
@@ -42651,6 +42653,7 @@ const Pv = /* @__PURE__ */ st({
|
|
|
42651
42653
|
props: {
|
|
42652
42654
|
value: h.valueKey,
|
|
42653
42655
|
label: h.labelKey,
|
|
42656
|
+
disabled: h.disabledKey,
|
|
42654
42657
|
...h.$attrs.props || {}
|
|
42655
42658
|
},
|
|
42656
42659
|
options: s.value,
|
|
@@ -5,6 +5,7 @@ declare function __VLS_template(): {
|
|
|
5
5
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SabSelectProps>, {
|
|
6
6
|
labelKey: string;
|
|
7
7
|
valueKey: string;
|
|
8
|
+
disabledKey: string;
|
|
8
9
|
selectType: string;
|
|
9
10
|
clearable: boolean;
|
|
10
11
|
filterable: boolean;
|
|
@@ -12,9 +13,11 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
12
13
|
"update:modelValue": (value: any) => void;
|
|
13
14
|
focus: (value: any) => void;
|
|
14
15
|
blur: (value: any) => void;
|
|
16
|
+
loadmore: (value: any, pagination: any) => void;
|
|
15
17
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SabSelectProps>, {
|
|
16
18
|
labelKey: string;
|
|
17
19
|
valueKey: string;
|
|
20
|
+
disabledKey: string;
|
|
18
21
|
selectType: string;
|
|
19
22
|
clearable: boolean;
|
|
20
23
|
filterable: boolean;
|
|
@@ -22,9 +25,11 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
22
25
|
onFocus?: ((value: any) => any) | undefined;
|
|
23
26
|
onBlur?: ((value: any) => any) | undefined;
|
|
24
27
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
28
|
+
onLoadmore?: ((value: any, pagination: any) => any) | undefined;
|
|
25
29
|
}, {
|
|
26
30
|
labelKey: string;
|
|
27
31
|
valueKey: string;
|
|
32
|
+
disabledKey: string;
|
|
28
33
|
clearable: boolean;
|
|
29
34
|
filterable: boolean;
|
|
30
35
|
selectType: "v1" | "v2";
|
|
@@ -56,8 +56,8 @@ declare const SabCellEditSelect: import("vue").DefineComponent<{
|
|
|
56
56
|
modelValue: string | number | unknown[];
|
|
57
57
|
labelKey: string;
|
|
58
58
|
valueKey: string;
|
|
59
|
-
remote: boolean;
|
|
60
59
|
disabledKey: string;
|
|
60
|
+
remote: boolean;
|
|
61
61
|
revalidateOnFocus: boolean;
|
|
62
62
|
}, {}>;
|
|
63
63
|
export default SabCellEditSelect;
|