ll-plus 2.3.15 → 2.3.17
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/advanced-filtering/index.d.ts +26 -6
- package/es/components/advanced-filtering/src/advanced-filtering.d.ts +1 -0
- package/es/components/advanced-filtering/src/advanced-filtering.mjs +2 -1
- package/es/components/advanced-filtering/src/advanced-filtering.mjs.map +1 -1
- package/es/components/advanced-filtering/src/advanced-filtering.vue.d.ts +13 -3
- package/es/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +13 -3
- package/es/components/advanced-filtering/src/components/advanced-filtering-params.vue2.mjs +5 -1
- package/es/components/advanced-filtering/src/components/advanced-filtering-params.vue2.mjs.map +1 -1
- package/es/components/drawer/index.d.ts +2 -1
- package/es/components/drawer/src/components/second-confirmation/index.d.ts +2 -0
- package/es/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +2 -0
- package/es/components/drawer/src/drawer.vue.d.ts +2 -1
- package/es/components/drawer/src/drawer.vue2.mjs +43 -9
- package/es/components/drawer/src/drawer.vue2.mjs.map +1 -1
- package/es/components/form/index.d.ts +8 -2
- package/es/components/form/index.mjs +1 -1
- package/es/components/form/src/config/form.d.ts +6 -0
- package/es/components/form/src/config/form.mjs +7 -1
- package/es/components/form/src/config/form.mjs.map +1 -1
- package/es/components/form/src/config/index.mjs +1 -1
- package/es/components/form/src/form.vue.d.ts +8 -2
- package/es/components/form/src/form.vue2.mjs +14 -3
- package/es/components/form/src/form.vue2.mjs.map +1 -1
- package/es/components/index.mjs +2 -2
- package/es/components/key-value/index.d.ts +48 -12
- package/es/components/key-value/src/components/key-value-item.vue.d.ts +16 -4
- package/es/components/key-value/src/components/key-value-item.vue2.mjs +1 -0
- package/es/components/key-value/src/components/key-value-item.vue2.mjs.map +1 -1
- package/es/components/key-value/src/key-value.vue.d.ts +48 -12
- package/es/components/modal/index.d.ts +2 -0
- package/es/components/modal/src/modal.vue.d.ts +2 -0
- package/es/components/modal/src/modal.vue2.mjs +41 -2
- package/es/components/modal/src/modal.vue2.mjs.map +1 -1
- package/es/components/select-group/index.d.ts +18 -4
- package/es/components/select-group/index.mjs +1 -1
- package/es/components/select-group/src/select-group.d.ts +2 -1
- package/es/components/select-group/src/select-group.mjs +3 -2
- package/es/components/select-group/src/select-group.mjs.map +1 -1
- package/es/components/select-group/src/select-group.vue.d.ts +18 -4
- package/es/components/select-group/src/select-group.vue2.mjs +58 -14
- package/es/components/select-group/src/select-group.vue2.mjs.map +1 -1
- package/es/index.mjs +2 -2
- package/es/utils/props/runtime.d.ts +2 -2
- package/index.full.js +168 -25
- package/index.full.min.js +22 -22
- package/index.full.min.js.map +1 -1
- package/index.full.min.mjs +19 -19
- package/index.full.min.mjs.map +1 -1
- package/index.full.mjs +167 -26
- package/lib/components/advanced-filtering/index.d.ts +26 -6
- package/lib/components/advanced-filtering/src/advanced-filtering.d.ts +1 -0
- package/lib/components/advanced-filtering/src/advanced-filtering.js +2 -1
- package/lib/components/advanced-filtering/src/advanced-filtering.js.map +1 -1
- package/lib/components/advanced-filtering/src/advanced-filtering.vue.d.ts +13 -3
- package/lib/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +13 -3
- package/lib/components/advanced-filtering/src/components/advanced-filtering-params.vue2.js +5 -1
- package/lib/components/advanced-filtering/src/components/advanced-filtering-params.vue2.js.map +1 -1
- package/lib/components/drawer/index.d.ts +2 -1
- package/lib/components/drawer/src/components/second-confirmation/index.d.ts +2 -0
- package/lib/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +2 -0
- package/lib/components/drawer/src/drawer.vue.d.ts +2 -1
- package/lib/components/drawer/src/drawer.vue2.js +42 -8
- package/lib/components/drawer/src/drawer.vue2.js.map +1 -1
- package/lib/components/form/index.d.ts +8 -2
- package/lib/components/form/index.js +1 -0
- package/lib/components/form/index.js.map +1 -1
- package/lib/components/form/src/config/form.d.ts +6 -0
- package/lib/components/form/src/config/form.js +7 -0
- package/lib/components/form/src/config/form.js.map +1 -1
- package/lib/components/form/src/config/index.js +1 -0
- package/lib/components/form/src/config/index.js.map +1 -1
- package/lib/components/form/src/form.vue.d.ts +8 -2
- package/lib/components/form/src/form.vue2.js +12 -1
- package/lib/components/form/src/form.vue2.js.map +1 -1
- package/lib/components/index.js +2 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/key-value/index.d.ts +48 -12
- package/lib/components/key-value/src/components/key-value-item.vue.d.ts +16 -4
- package/lib/components/key-value/src/components/key-value-item.vue2.js +1 -0
- package/lib/components/key-value/src/components/key-value-item.vue2.js.map +1 -1
- package/lib/components/key-value/src/key-value.vue.d.ts +48 -12
- package/lib/components/modal/index.d.ts +2 -0
- package/lib/components/modal/src/modal.vue.d.ts +2 -0
- package/lib/components/modal/src/modal.vue2.js +40 -1
- package/lib/components/modal/src/modal.vue2.js.map +1 -1
- package/lib/components/select-group/index.d.ts +18 -4
- package/lib/components/select-group/index.js +1 -0
- package/lib/components/select-group/index.js.map +1 -1
- package/lib/components/select-group/src/select-group.d.ts +2 -1
- package/lib/components/select-group/src/select-group.js +3 -1
- package/lib/components/select-group/src/select-group.js.map +1 -1
- package/lib/components/select-group/src/select-group.vue.d.ts +18 -4
- package/lib/components/select-group/src/select-group.vue2.js +56 -12
- package/lib/components/select-group/src/select-group.vue2.js.map +1 -1
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib/utils/props/runtime.d.ts +2 -2
- package/package.json +1 -1
- package/theme-chalk/css/drawer.css +1 -1
- package/theme-chalk/css/index.css +1 -1
- package/theme-chalk/css/modal.css +1 -1
- package/theme-chalk/css/select-group.css +1 -1
- package/types/packages/components/advanced-filtering/index.d.ts +26 -6
- package/types/packages/components/advanced-filtering/src/advanced-filtering.d.ts +1 -0
- package/types/packages/components/advanced-filtering/src/advanced-filtering.vue.d.ts +13 -3
- package/types/packages/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +13 -3
- package/types/packages/components/drawer/index.d.ts +2 -1
- package/types/packages/components/drawer/src/components/second-confirmation/index.d.ts +2 -0
- package/types/packages/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +2 -0
- package/types/packages/components/drawer/src/drawer.vue.d.ts +2 -1
- package/types/packages/components/form/index.d.ts +8 -2
- package/types/packages/components/form/src/config/form.d.ts +6 -0
- package/types/packages/components/form/src/form.vue.d.ts +8 -2
- package/types/packages/components/key-value/index.d.ts +48 -12
- package/types/packages/components/key-value/src/components/key-value-item.vue.d.ts +16 -4
- package/types/packages/components/key-value/src/key-value.vue.d.ts +48 -12
- package/types/packages/components/modal/index.d.ts +2 -0
- package/types/packages/components/modal/src/modal.vue.d.ts +2 -0
- package/types/packages/components/select-group/index.d.ts +18 -4
- package/types/packages/components/select-group/src/select-group.d.ts +2 -1
- package/types/packages/components/select-group/src/select-group.vue.d.ts +18 -4
- package/types/packages/utils/props/runtime.d.ts +2 -2
|
@@ -1265,7 +1265,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1265
1265
|
gutter: number;
|
|
1266
1266
|
}, boolean>;
|
|
1267
1267
|
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
1268
|
-
}
|
|
1268
|
+
}>> & {
|
|
1269
|
+
onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
|
|
1270
|
+
}, {
|
|
1269
1271
|
props: import("@vue/shared").LooseRequired<{
|
|
1270
1272
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
1271
1273
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -1541,7 +1543,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1541
1543
|
}>>;
|
|
1542
1544
|
readonly formColumns: any[];
|
|
1543
1545
|
readonly formData: import("ll-plus/es/index").FormData;
|
|
1546
|
+
readonly onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
|
|
1544
1547
|
} & {}>;
|
|
1548
|
+
emits: (event: "change", value: import("ll-plus/es/index").FormData) => void;
|
|
1545
1549
|
bem: {
|
|
1546
1550
|
b: (blockSuffix?: string) => string;
|
|
1547
1551
|
e: (element?: string) => string;
|
|
@@ -1602,7 +1606,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1602
1606
|
readonly formData: import("ll-plus/es/index").FormData;
|
|
1603
1607
|
readonly item: any;
|
|
1604
1608
|
}, {}>;
|
|
1605
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1609
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1610
|
+
change: (value: import("ll-plus/es/index").FormData) => boolean;
|
|
1611
|
+
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
1606
1612
|
readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
1607
1613
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
1608
1614
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -2688,7 +2694,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2688
2694
|
gutter: number;
|
|
2689
2695
|
}, boolean>;
|
|
2690
2696
|
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
2691
|
-
}
|
|
2697
|
+
}>> & {
|
|
2698
|
+
onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
|
|
2699
|
+
}, {
|
|
2692
2700
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
2693
2701
|
layout: import("vue-types").VueTypeDef<string>;
|
|
2694
2702
|
labelCol: {
|
|
@@ -4056,7 +4064,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4056
4064
|
gutter: number;
|
|
4057
4065
|
}, boolean>;
|
|
4058
4066
|
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
4059
|
-
}
|
|
4067
|
+
}>> & {
|
|
4068
|
+
onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
|
|
4069
|
+
}, {
|
|
4060
4070
|
props: import("@vue/shared").LooseRequired<{
|
|
4061
4071
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
4062
4072
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -4332,7 +4342,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4332
4342
|
}>>;
|
|
4333
4343
|
readonly formColumns: any[];
|
|
4334
4344
|
readonly formData: import("ll-plus/es/index").FormData;
|
|
4345
|
+
readonly onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
|
|
4335
4346
|
} & {}>;
|
|
4347
|
+
emits: (event: "change", value: import("ll-plus/es/index").FormData) => void;
|
|
4336
4348
|
bem: {
|
|
4337
4349
|
b: (blockSuffix?: string) => string;
|
|
4338
4350
|
e: (element?: string) => string;
|
|
@@ -6185,7 +6197,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6185
6197
|
gutter: number;
|
|
6186
6198
|
}, boolean>;
|
|
6187
6199
|
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
6188
|
-
}
|
|
6200
|
+
}>> & {
|
|
6201
|
+
onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
|
|
6202
|
+
}, {
|
|
6189
6203
|
props: import("@vue/shared").LooseRequired<{
|
|
6190
6204
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
6191
6205
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -6461,7 +6475,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6461
6475
|
}>>;
|
|
6462
6476
|
readonly formColumns: any[];
|
|
6463
6477
|
readonly formData: import("ll-plus/es/index").FormData;
|
|
6478
|
+
readonly onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
|
|
6464
6479
|
} & {}>;
|
|
6480
|
+
emits: (event: "change", value: import("ll-plus/es/index").FormData) => void;
|
|
6465
6481
|
bem: {
|
|
6466
6482
|
b: (blockSuffix?: string) => string;
|
|
6467
6483
|
e: (element?: string) => string;
|
|
@@ -6522,7 +6538,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6522
6538
|
readonly formData: import("ll-plus/es/index").FormData;
|
|
6523
6539
|
readonly item: any;
|
|
6524
6540
|
}, {}>;
|
|
6525
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6541
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6542
|
+
change: (value: import("ll-plus/es/index").FormData) => boolean;
|
|
6543
|
+
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
6526
6544
|
readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
6527
6545
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
6528
6546
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -7608,7 +7626,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7608
7626
|
gutter: number;
|
|
7609
7627
|
}, boolean>;
|
|
7610
7628
|
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
7611
|
-
}
|
|
7629
|
+
}>> & {
|
|
7630
|
+
onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
|
|
7631
|
+
}, {
|
|
7612
7632
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
7613
7633
|
layout: import("vue-types").VueTypeDef<string>;
|
|
7614
7634
|
labelCol: {
|
|
@@ -8976,7 +8996,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8976
8996
|
gutter: number;
|
|
8977
8997
|
}, boolean>;
|
|
8978
8998
|
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
8979
|
-
}
|
|
8999
|
+
}>> & {
|
|
9000
|
+
onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
|
|
9001
|
+
}, {
|
|
8980
9002
|
props: import("@vue/shared").LooseRequired<{
|
|
8981
9003
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
8982
9004
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -9252,7 +9274,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9252
9274
|
}>>;
|
|
9253
9275
|
readonly formColumns: any[];
|
|
9254
9276
|
readonly formData: import("ll-plus/es/index").FormData;
|
|
9277
|
+
readonly onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
|
|
9255
9278
|
} & {}>;
|
|
9279
|
+
emits: (event: "change", value: import("ll-plus/es/index").FormData) => void;
|
|
9256
9280
|
bem: {
|
|
9257
9281
|
b: (blockSuffix?: string) => string;
|
|
9258
9282
|
e: (element?: string) => string;
|
|
@@ -11032,7 +11056,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11032
11056
|
gutter: number;
|
|
11033
11057
|
}, boolean>;
|
|
11034
11058
|
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
11035
|
-
}
|
|
11059
|
+
}>> & {
|
|
11060
|
+
onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
|
|
11061
|
+
}, {
|
|
11036
11062
|
props: import("@vue/shared").LooseRequired<{
|
|
11037
11063
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
11038
11064
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -11308,7 +11334,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11308
11334
|
}>>;
|
|
11309
11335
|
readonly formColumns: any[];
|
|
11310
11336
|
readonly formData: import("ll-plus/es/index").FormData;
|
|
11337
|
+
readonly onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
|
|
11311
11338
|
} & {}>;
|
|
11339
|
+
emits: (event: "change", value: import("ll-plus/es/index").FormData) => void;
|
|
11312
11340
|
bem: {
|
|
11313
11341
|
b: (blockSuffix?: string) => string;
|
|
11314
11342
|
e: (element?: string) => string;
|
|
@@ -11369,7 +11397,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11369
11397
|
readonly formData: import("ll-plus/es/index").FormData;
|
|
11370
11398
|
readonly item: any;
|
|
11371
11399
|
}, {}>;
|
|
11372
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11400
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11401
|
+
change: (value: import("ll-plus/es/index").FormData) => boolean;
|
|
11402
|
+
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
11373
11403
|
readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
11374
11404
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
11375
11405
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -12455,7 +12485,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12455
12485
|
gutter: number;
|
|
12456
12486
|
}, boolean>;
|
|
12457
12487
|
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
12458
|
-
}
|
|
12488
|
+
}>> & {
|
|
12489
|
+
onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
|
|
12490
|
+
}, {
|
|
12459
12491
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
12460
12492
|
layout: import("vue-types").VueTypeDef<string>;
|
|
12461
12493
|
labelCol: {
|
|
@@ -13823,7 +13855,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13823
13855
|
gutter: number;
|
|
13824
13856
|
}, boolean>;
|
|
13825
13857
|
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
13826
|
-
}
|
|
13858
|
+
}>> & {
|
|
13859
|
+
onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
|
|
13860
|
+
}, {
|
|
13827
13861
|
props: import("@vue/shared").LooseRequired<{
|
|
13828
13862
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
13829
13863
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -14099,7 +14133,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14099
14133
|
}>>;
|
|
14100
14134
|
readonly formColumns: any[];
|
|
14101
14135
|
readonly formData: import("ll-plus/es/index").FormData;
|
|
14136
|
+
readonly onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
|
|
14102
14137
|
} & {}>;
|
|
14138
|
+
emits: (event: "change", value: import("ll-plus/es/index").FormData) => void;
|
|
14103
14139
|
bem: {
|
|
14104
14140
|
b: (blockSuffix?: string) => string;
|
|
14105
14141
|
e: (element?: string) => string;
|
|
@@ -44,12 +44,14 @@ export declare const LlModal: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
44
44
|
};
|
|
45
45
|
modal: import("vue").Ref<HTMLElement | undefined>;
|
|
46
46
|
hasScroll: import("vue").Ref<boolean>;
|
|
47
|
+
scrollTop: import("vue").Ref<number>;
|
|
47
48
|
symbolClass: import("vue").Ref<string>;
|
|
48
49
|
symbolComparedClass: import("vue").Ref<string>;
|
|
49
50
|
getBindValue: import("vue").ComputedRef<import("./src/modal").IResultType>;
|
|
50
51
|
handleCancel: () => void;
|
|
51
52
|
handleOk: () => void;
|
|
52
53
|
handleResize: (value: boolean) => Promise<void>;
|
|
54
|
+
onScrollTop: () => Promise<void>;
|
|
53
55
|
readonly Modal: {
|
|
54
56
|
new (...args: any[]): import("@vue/runtime-core").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
55
57
|
prefixCls: StringConstructor;
|
|
@@ -44,12 +44,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
44
44
|
};
|
|
45
45
|
modal: import("vue").Ref<HTMLElement | undefined>;
|
|
46
46
|
hasScroll: import("vue").Ref<boolean>;
|
|
47
|
+
scrollTop: import("vue").Ref<number>;
|
|
47
48
|
symbolClass: import("vue").Ref<string>;
|
|
48
49
|
symbolComparedClass: import("vue").Ref<string>;
|
|
49
50
|
getBindValue: import("vue").ComputedRef<IResultType>;
|
|
50
51
|
handleCancel: () => void;
|
|
51
52
|
handleOk: () => void;
|
|
52
53
|
handleResize: (value: boolean) => Promise<void>;
|
|
54
|
+
onScrollTop: () => Promise<void>;
|
|
53
55
|
readonly Modal: {
|
|
54
56
|
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
55
57
|
prefixCls: StringConstructor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, useAttrs, ref, computed, nextTick, watch, openBlock, createBlock, unref, mergeProps, createSlots, withCtx,
|
|
1
|
+
import { defineComponent, useAttrs, ref, computed, nextTick, watch, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, createElementBlock, normalizeClass, renderSlot, createCommentVNode, createElementVNode, createVNode } from 'vue';
|
|
2
2
|
import { Modal } from 'ant-design-vue';
|
|
3
3
|
import '../../index.mjs';
|
|
4
4
|
import '../../../utils/index.mjs';
|
|
@@ -13,13 +13,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
__name: "modal",
|
|
14
14
|
props: modalProps,
|
|
15
15
|
emits: modalEmits,
|
|
16
|
-
setup(__props, { emit: __emit }) {
|
|
16
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
17
17
|
const props = __props;
|
|
18
18
|
const emits = __emit;
|
|
19
19
|
const attrs = useAttrs();
|
|
20
20
|
const bem = createNamespace("modal");
|
|
21
21
|
const modal = ref();
|
|
22
22
|
const hasScroll = ref(false);
|
|
23
|
+
const scrollTop = ref(0);
|
|
23
24
|
const symbolClass = ref(`ll-modal-${(/* @__PURE__ */ new Date()).getTime()}`);
|
|
24
25
|
const symbolComparedClass = ref(`model-content-${(/* @__PURE__ */ new Date()).getTime()}`);
|
|
25
26
|
const getBindValue = computed(() => {
|
|
@@ -49,16 +50,32 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
49
50
|
});
|
|
50
51
|
if (value) {
|
|
51
52
|
resizeObserver.observe(modalBody);
|
|
53
|
+
ele.addEventListener("scroll", () => {
|
|
54
|
+
scrollTop.value = ele.scrollTop;
|
|
55
|
+
});
|
|
52
56
|
} else {
|
|
53
57
|
resizeObserver.unobserve(modalBody);
|
|
58
|
+
ele.removeEventListener("scroll", () => {
|
|
59
|
+
scrollTop.value = 0;
|
|
60
|
+
});
|
|
54
61
|
}
|
|
55
62
|
};
|
|
63
|
+
const onScrollTop = async () => {
|
|
64
|
+
await nextTick();
|
|
65
|
+
if (!hasScroll.value)
|
|
66
|
+
return;
|
|
67
|
+
const ele = document.getElementsByClassName(symbolClass.value)[0];
|
|
68
|
+
ele.scrollTop = 0;
|
|
69
|
+
};
|
|
56
70
|
watch(
|
|
57
71
|
() => props.open,
|
|
58
72
|
(val) => {
|
|
59
73
|
handleResize(val);
|
|
60
74
|
}
|
|
61
75
|
);
|
|
76
|
+
__expose({
|
|
77
|
+
onScrollTop
|
|
78
|
+
});
|
|
62
79
|
return (_ctx, _cache) => {
|
|
63
80
|
return openBlock(), createBlock(unref(Modal), mergeProps(getBindValue.value, {
|
|
64
81
|
ref_key: "modal",
|
|
@@ -75,12 +92,34 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
75
92
|
onOk: handleOk
|
|
76
93
|
}), createSlots({
|
|
77
94
|
default: withCtx(() => [
|
|
95
|
+
_ctx.$slots.step ? (openBlock(), createElementBlock(
|
|
96
|
+
"div",
|
|
97
|
+
{
|
|
98
|
+
key: 0,
|
|
99
|
+
class: normalizeClass(unref(bem).e("step"))
|
|
100
|
+
},
|
|
101
|
+
[
|
|
102
|
+
renderSlot(_ctx.$slots, "step")
|
|
103
|
+
],
|
|
104
|
+
2
|
|
105
|
+
/* CLASS */
|
|
106
|
+
)) : createCommentVNode("v-if", true),
|
|
78
107
|
createElementVNode(
|
|
79
108
|
"div",
|
|
80
109
|
{
|
|
81
110
|
class: normalizeClass([unref(bem).e("container"), symbolClass.value, unref(bem).is(props.type)])
|
|
82
111
|
},
|
|
83
112
|
[
|
|
113
|
+
hasScroll.value && scrollTop.value > 0 ? (openBlock(), createElementBlock(
|
|
114
|
+
"div",
|
|
115
|
+
{
|
|
116
|
+
key: 0,
|
|
117
|
+
class: normalizeClass(unref(bem).e("shadow"))
|
|
118
|
+
},
|
|
119
|
+
null,
|
|
120
|
+
2
|
|
121
|
+
/* CLASS */
|
|
122
|
+
)) : createCommentVNode("v-if", true),
|
|
84
123
|
createElementVNode(
|
|
85
124
|
"div",
|
|
86
125
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.vue2.mjs","sources":["../../../../../packages/components/modal/src/modal.vue"],"sourcesContent":["<template>\n <Modal\n v-bind=\"getBindValue\"\n ref=\"modal\"\n :open=\"props.open\"\n :title=\"props.title\"\n :wrap-class-name=\"`${bem.b()} ${props.wrapClassName}`\"\n :class=\"[\n props.class,\n hasScroll ? bem.is('has-scroll') : '',\n bem.is(props.isConfirmModel ? 'confirm-model' : '')\n ]\"\n @cancel=\"handleCancel\"\n @ok=\"handleOk\"\n >\n <div :class=\"[bem.e('container'), symbolClass, bem.is(props.type)]\">\n <div :class=\"[symbolComparedClass]\">\n <slot />\n </div>\n </div>\n <template v-if=\"props.showFooter\" #footer>\n <slot name=\"footer\">\n <!-- 确认框 -->\n\n <ll-button\n v-if=\"props.showCancel && props.type !== 'confirm'\"\n :label=\"props.cancelText ? props.cancelText : '取消'\"\n size=\"middle\"\n @click=\"handleCancel\"\n >\n </ll-button>\n <ll-button\n type=\"primary\"\n :loading=\"props.loading\"\n size=\"middle\"\n :label=\"\n props.confirmText\n ? props.confirmText\n : props.type === 'confirm'\n ? '知道了'\n : '确认'\n \"\n @click=\"handleOk\"\n />\n </slot>\n </template>\n </Modal>\n</template>\n\n<script lang=\"ts\" setup>\nimport { useAttrs, ref, watch, nextTick, computed } from 'vue'\nimport { Modal } from 'ant-design-vue'\nimport { LlButton } from '@ll-plus/components'\nimport { createNamespace } from '@ll-plus/utils'\nimport { omit } from 'lodash-es'\nimport { modalProps, modalEmits } from './modal'\nimport type { IResultType } from './modal'\ndefineOptions({ name: 'LlModal' })\n// 1.props/ref\nconst props = defineProps(modalProps)\n// 2.emits\nconst emits = defineEmits(modalEmits)\n\nconst attrs = useAttrs()\n\nconst bem = createNamespace('modal')\n\nconst modal = ref<HTMLElement>()\n\nconst hasScroll = ref(false)\n\nconst symbolClass = ref(`ll-modal-${new Date().getTime()}`)\n\nconst symbolComparedClass = ref(`model-content-${new Date().getTime()}`)\n\nconst getBindValue = computed(() => {\n const result: IResultType = {\n ...omit({ ...attrs }, [...Object.keys(modalProps), 'wrapClassName'])\n }\n if (props.showFooter === false) {\n result.footer = null\n }\n return result\n})\n\n// 3.methods\nconst handleCancel = () => {\n emits('cancel')\n emits('update:open')\n}\nconst handleOk = () => {\n emits('ok')\n}\n\nconst handleResize = async (value: boolean) => {\n await nextTick()\n const ele = document.getElementsByClassName(symbolClass.value)[0]\n const modalBody = ele.getElementsByClassName(symbolComparedClass.value)[0]\n const resizeObserver = new ResizeObserver(entries => {\n // 处理大小变化的回调函数\n const { clientHeight } = entries[0].target\n const scrollHeight = ele.clientHeight\n hasScroll.value = clientHeight > scrollHeight\n })\n if (value) {\n resizeObserver.observe(modalBody)\n } else {\n resizeObserver.unobserve(modalBody)\n }\n}\n\n// 4.watch/computed\nwatch(\n () => props.open,\n val => {\n handleResize(val)\n }\n)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"modal.vue2.mjs","sources":["../../../../../packages/components/modal/src/modal.vue"],"sourcesContent":["<template>\n <Modal\n v-bind=\"getBindValue\"\n ref=\"modal\"\n :open=\"props.open\"\n :title=\"props.title\"\n :wrap-class-name=\"`${bem.b()} ${props.wrapClassName}`\"\n :class=\"[\n props.class,\n hasScroll ? bem.is('has-scroll') : '',\n bem.is(props.isConfirmModel ? 'confirm-model' : '')\n ]\"\n @cancel=\"handleCancel\"\n @ok=\"handleOk\"\n >\n <div v-if=\"$slots.step\" :class=\"bem.e('step')\">\n <slot name=\"step\" />\n </div>\n <div :class=\"[bem.e('container'), symbolClass, bem.is(props.type)]\">\n <div v-if=\"hasScroll && scrollTop > 0\" :class=\"bem.e('shadow')\" />\n <div :class=\"[symbolComparedClass]\">\n <slot />\n </div>\n </div>\n <template v-if=\"props.showFooter\" #footer>\n <slot name=\"footer\">\n <!-- 确认框 -->\n\n <ll-button\n v-if=\"props.showCancel && props.type !== 'confirm'\"\n :label=\"props.cancelText ? props.cancelText : '取消'\"\n size=\"middle\"\n @click=\"handleCancel\"\n >\n </ll-button>\n <ll-button\n type=\"primary\"\n :loading=\"props.loading\"\n size=\"middle\"\n :label=\"\n props.confirmText\n ? props.confirmText\n : props.type === 'confirm'\n ? '知道了'\n : '确认'\n \"\n @click=\"handleOk\"\n />\n </slot>\n </template>\n </Modal>\n</template>\n\n<script lang=\"ts\" setup>\nimport { useAttrs, ref, watch, nextTick, computed } from 'vue'\nimport { Modal } from 'ant-design-vue'\nimport { LlButton } from '@ll-plus/components'\nimport { createNamespace } from '@ll-plus/utils'\nimport { omit } from 'lodash-es'\nimport { modalProps, modalEmits } from './modal'\nimport type { IResultType } from './modal'\ndefineOptions({ name: 'LlModal' })\n// 1.props/ref\nconst props = defineProps(modalProps)\n// 2.emits\nconst emits = defineEmits(modalEmits)\n\nconst attrs = useAttrs()\n\nconst bem = createNamespace('modal')\n\nconst modal = ref<HTMLElement>()\n\nconst hasScroll = ref(false)\n\nconst scrollTop = ref(0)\n\nconst symbolClass = ref(`ll-modal-${new Date().getTime()}`)\n\nconst symbolComparedClass = ref(`model-content-${new Date().getTime()}`)\n\nconst getBindValue = computed(() => {\n const result: IResultType = {\n ...omit({ ...attrs }, [...Object.keys(modalProps), 'wrapClassName'])\n }\n if (props.showFooter === false) {\n result.footer = null\n }\n return result\n})\n\n// 3.methods\nconst handleCancel = () => {\n emits('cancel')\n emits('update:open')\n}\nconst handleOk = () => {\n emits('ok')\n}\n\nconst handleResize = async (value: boolean) => {\n await nextTick()\n const ele = document.getElementsByClassName(symbolClass.value)[0]\n const modalBody = ele.getElementsByClassName(symbolComparedClass.value)[0]\n const resizeObserver = new ResizeObserver(entries => {\n // 处理大小变化的回调函数\n const { clientHeight } = entries[0].target\n const scrollHeight = ele.clientHeight\n hasScroll.value = clientHeight > scrollHeight\n })\n if (value) {\n resizeObserver.observe(modalBody)\n ele.addEventListener('scroll', () => {\n scrollTop.value = ele.scrollTop\n })\n } else {\n resizeObserver.unobserve(modalBody)\n ele.removeEventListener('scroll', () => {\n scrollTop.value = 0\n })\n }\n}\n\nconst onScrollTop = async () => {\n await nextTick()\n if (!hasScroll.value) return\n const ele = document.getElementsByClassName(symbolClass.value)[0]\n ele.scrollTop = 0\n}\n\n// 4.watch/computed\nwatch(\n () => props.open,\n val => {\n handleResize(val)\n }\n)\n\ndefineExpose({\n onScrollTop\n})\n</script>\n"],"names":[],"mappings":"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"}
|
|
@@ -13,13 +13,26 @@ export declare const LlSelectGroup: import("ll-plus/es/utils").SFCWithInstall<im
|
|
|
13
13
|
readonly data: import("./src/select-group").SelectGroupData[];
|
|
14
14
|
readonly value?: import("ll-plus/es/utils").EpPropMergeType<readonly [ArrayConstructor, StringConstructor, NumberConstructor, BooleanConstructor, ObjectConstructor], unknown, unknown> | undefined;
|
|
15
15
|
readonly selectValue?: string | undefined;
|
|
16
|
-
readonly onChange?: ((selectV: string, value
|
|
16
|
+
readonly onChange?: ((selectV: string, value?: string | undefined) => any) | undefined;
|
|
17
17
|
readonly onOnSelectChange?: ((selectV: string, item: import("./src/select-group").SelectGroupData) => any) | undefined;
|
|
18
18
|
} & {}>;
|
|
19
|
-
emits: ((event: "change", selectV: string, value
|
|
19
|
+
emits: ((event: "change", selectV: string, value?: string | undefined) => void) & ((event: "onSelectChange", selectV: string, item: import("./src/select-group").SelectGroupData) => void);
|
|
20
20
|
typeSelectValue: import("vue").Ref<string>;
|
|
21
21
|
value: import("vue").Ref<any>;
|
|
22
22
|
selectItem: import("vue").Ref<import("./src/select-group").SelectGroupData | undefined>;
|
|
23
|
+
newList: import("vue").Ref<{
|
|
24
|
+
readonly value: string;
|
|
25
|
+
readonly name: string;
|
|
26
|
+
readonly options?: any[] | undefined;
|
|
27
|
+
readonly placeholder?: string | undefined;
|
|
28
|
+
readonly fieldNames?: object | undefined;
|
|
29
|
+
readonly list?: {
|
|
30
|
+
[x: string]: any;
|
|
31
|
+
name?: string | undefined;
|
|
32
|
+
value?: any;
|
|
33
|
+
}[] | undefined;
|
|
34
|
+
readonly showFormType?: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "select" | "input" | "range-picker" | "treeSelect", unknown> | undefined;
|
|
35
|
+
}[]>;
|
|
23
36
|
bem: {
|
|
24
37
|
b: (blockSuffix?: string) => string;
|
|
25
38
|
e: (element?: string) => string;
|
|
@@ -40,10 +53,11 @@ export declare const LlSelectGroup: import("ll-plus/es/utils").SFCWithInstall<im
|
|
|
40
53
|
bem: (blockSuffix: string, element: string, modifier: string) => string;
|
|
41
54
|
is: (name?: string) => string;
|
|
42
55
|
};
|
|
56
|
+
leftSelectWidth: import("vue").ComputedRef<string>;
|
|
43
57
|
handleSelectChange: (_: string, options: any) => void;
|
|
44
58
|
handleChange: () => void;
|
|
45
59
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
46
|
-
change: (selectV: string, value
|
|
60
|
+
change: (selectV: string, value?: string | undefined) => boolean;
|
|
47
61
|
onSelectChange: (selectV: string, item: import("./src/select-group").SelectGroupData) => boolean;
|
|
48
62
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
49
63
|
readonly selectValue: {
|
|
@@ -55,7 +69,7 @@ export declare const LlSelectGroup: import("ll-plus/es/utils").SFCWithInstall<im
|
|
|
55
69
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<readonly [ArrayConstructor, StringConstructor, NumberConstructor, BooleanConstructor, ObjectConstructor], unknown, unknown, undefined, boolean>;
|
|
56
70
|
readonly data: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/select-group").SelectGroupData[]) | (() => import("./src/select-group").SelectGroupData[]) | ((new (...args: any[]) => import("./src/select-group").SelectGroupData[]) | (() => import("./src/select-group").SelectGroupData[]))[], unknown, unknown, () => never[], boolean>;
|
|
57
71
|
}>> & {
|
|
58
|
-
onChange?: ((selectV: string, value
|
|
72
|
+
onChange?: ((selectV: string, value?: string | undefined) => any) | undefined;
|
|
59
73
|
onOnSelectChange?: ((selectV: string, item: import("./src/select-group").SelectGroupData) => any) | undefined;
|
|
60
74
|
}, {
|
|
61
75
|
readonly value: import("ll-plus/es/utils").EpPropMergeType<readonly [ArrayConstructor, StringConstructor, NumberConstructor, BooleanConstructor, ObjectConstructor], unknown, unknown>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../utils/index.mjs';
|
|
2
2
|
import SelectGroup from './src/select-group.vue.mjs';
|
|
3
|
-
export { selectGroupData, selectGroupEmits, selectGroupFormType, selectGroupProps } from './src/select-group.mjs';
|
|
3
|
+
export { LEFT_SELECT_MIN_WIDTH, selectGroupData, selectGroupEmits, selectGroupFormType, selectGroupProps } from './src/select-group.mjs';
|
|
4
4
|
import { withInstall } from '../../utils/with-install.mjs';
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
@@ -61,9 +61,10 @@ export declare const selectGroupProps: {
|
|
|
61
61
|
readonly data: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => SelectGroupData[]) | (() => SelectGroupData[]) | ((new (...args: any[]) => SelectGroupData[]) | (() => SelectGroupData[]))[], unknown, unknown, () => never[], boolean>;
|
|
62
62
|
};
|
|
63
63
|
export declare const selectGroupEmits: {
|
|
64
|
-
change: (selectV: string, value
|
|
64
|
+
change: (selectV: string, value?: string) => boolean;
|
|
65
65
|
onSelectChange: (selectV: string, item: SelectGroupData) => boolean;
|
|
66
66
|
};
|
|
67
|
+
export declare const LEFT_SELECT_MIN_WIDTH = 84;
|
|
67
68
|
export type SelectGroupProps = ExtractPropTypes<typeof selectGroupProps>;
|
|
68
69
|
export type SelectGroupData = ExtractPropTypes<typeof selectGroupData>;
|
|
69
70
|
export type SelectGroupFormType = SelectGroupData['showFormType'];
|
|
@@ -79,10 +79,11 @@ const selectGroupProps = buildProps({
|
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
const selectGroupEmits = {
|
|
82
|
-
change: (selectV, value) => !!selectV
|
|
82
|
+
change: (selectV, value) => !!selectV || !!value,
|
|
83
83
|
onSelectChange: (selectV, item) => !!selectV && !!item
|
|
84
84
|
// 左侧selectchange
|
|
85
85
|
};
|
|
86
|
+
const LEFT_SELECT_MIN_WIDTH = 84;
|
|
86
87
|
|
|
87
|
-
export { selectGroupData, selectGroupEmits, selectGroupFormType, selectGroupProps };
|
|
88
|
+
export { LEFT_SELECT_MIN_WIDTH, selectGroupData, selectGroupEmits, selectGroupFormType, selectGroupProps };
|
|
88
89
|
//# sourceMappingURL=select-group.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-group.mjs","sources":["../../../../../packages/components/select-group/src/select-group.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\n\nimport { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type SelectGroup from './select-group.vue'\n\nexport interface ISelectGroupItem {\n name?: string\n value?: any\n [key: string]: any\n}\n\nexport const selectGroupFormType = [\n 'input',\n 'select',\n 'range-picker',\n 'treeSelect'\n] as const\n\nexport const selectGroupData = buildProps({\n // buildProps和defineprops一样\n /**\n * @description 表单提示占位符\n */\n placeholder: {\n type: String\n },\n /**\n * @description 表单的字段 name\n */\n name: {\n type: String,\n required: true\n },\n /**\n * @description 右边表单的 value\n */\n value: {\n type: String,\n required: true\n },\n /**\n * @description SVG 图标的大小,size x size\n */\n showFormType: {\n type: String,\n values: selectGroupFormType\n },\n /**\n * @description 格式化属性例如tree/select\n */\n fieldNames: {\n type: definePropType<object>(Object)\n },\n /**\n * @description select的options\n */\n options: {\n type: definePropType<any[]>(Array)\n },\n /**\n * @description 左侧选择的options\n */\n list: {\n type: definePropType<ISelectGroupItem[]>(Array)\n }\n} as const)\nexport const selectGroupProps = buildProps({\n /**\n * @description 选中select中的某一项(和value对应)\n */\n selectValue: {\n type: String\n },\n /**\n * @description 右边表单的 value\n */\n value: {\n type: [Array, String, Number, Boolean, Object],\n default: undefined\n },\n /**\n * @description select的options\n */\n data: {\n type: definePropType<SelectGroupData[]>(Array),\n default: () => []\n }\n} as const)\n\nexport const selectGroupEmits = {\n change: (selectV: string, value
|
|
1
|
+
{"version":3,"file":"select-group.mjs","sources":["../../../../../packages/components/select-group/src/select-group.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\n\nimport { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type SelectGroup from './select-group.vue'\n\nexport interface ISelectGroupItem {\n name?: string\n value?: any\n [key: string]: any\n}\n\nexport const selectGroupFormType = [\n 'input',\n 'select',\n 'range-picker',\n 'treeSelect'\n] as const\n\nexport const selectGroupData = buildProps({\n // buildProps和defineprops一样\n /**\n * @description 表单提示占位符\n */\n placeholder: {\n type: String\n },\n /**\n * @description 表单的字段 name\n */\n name: {\n type: String,\n required: true\n },\n /**\n * @description 右边表单的 value\n */\n value: {\n type: String,\n required: true\n },\n /**\n * @description SVG 图标的大小,size x size\n */\n showFormType: {\n type: String,\n values: selectGroupFormType\n },\n /**\n * @description 格式化属性例如tree/select\n */\n fieldNames: {\n type: definePropType<object>(Object)\n },\n /**\n * @description select的options\n */\n options: {\n type: definePropType<any[]>(Array)\n },\n /**\n * @description 左侧选择的options\n */\n list: {\n type: definePropType<ISelectGroupItem[]>(Array)\n }\n} as const)\nexport const selectGroupProps = buildProps({\n /**\n * @description 选中select中的某一项(和value对应)\n */\n selectValue: {\n type: String\n },\n /**\n * @description 右边表单的 value\n */\n value: {\n type: [Array, String, Number, Boolean, Object],\n default: undefined\n },\n /**\n * @description select的options\n */\n data: {\n type: definePropType<SelectGroupData[]>(Array),\n default: () => []\n }\n} as const)\n\nexport const selectGroupEmits = {\n change: (selectV: string, value?: string) => !!selectV || !!value,\n onSelectChange: (selectV: string, item: SelectGroupData) =>\n !!selectV && !!item // 左侧selectchange\n}\n\nexport const LEFT_SELECT_MIN_WIDTH = 84 // 左侧select的宽度\n\n// props\nexport type SelectGroupProps = ExtractPropTypes<typeof selectGroupProps>\nexport type SelectGroupData = ExtractPropTypes<typeof selectGroupData>\nexport type SelectGroupFormType = SelectGroupData['showFormType']\n\nexport type SelectGroupEmits = typeof selectGroupEmits\n\n// instance\nexport type SelectGroupInstance = InstanceType<typeof SelectGroup>\n"],"names":[],"mappings":";;;;AAYO,MAAM,mBAAsB,GAAA;AAAA,EACjC,OAAA;AAAA,EACA,QAAA;AAAA,EACA,cAAA;AAAA,EACA,YAAA;AACF,EAAA;AAEO,MAAM,kBAAkB,UAAW,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAKxC,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,QAAU,EAAA,IAAA;AAAA,GACZ;AAAA;AAAA;AAAA;AAAA,EAIA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,QAAU,EAAA,IAAA;AAAA,GACZ;AAAA;AAAA;AAAA;AAAA,EAIA,YAAc,EAAA;AAAA,IACZ,IAAM,EAAA,MAAA;AAAA,IACN,MAAQ,EAAA,mBAAA;AAAA,GACV;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAA,EAAM,eAAuB,MAAM,CAAA;AAAA,GACrC;AAAA;AAAA;AAAA;AAAA,EAIA,OAAS,EAAA;AAAA,IACP,IAAA,EAAM,eAAsB,KAAK,CAAA;AAAA,GACnC;AAAA;AAAA;AAAA;AAAA,EAIA,IAAM,EAAA;AAAA,IACJ,IAAA,EAAM,eAAmC,KAAK,CAAA;AAAA,GAChD;AACF,CAAU,EAAA;AACH,MAAM,mBAAmB,UAAW,CAAA;AAAA;AAAA;AAAA;AAAA,EAIzC,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,KAAO,EAAA;AAAA,IACL,MAAM,CAAC,KAAA,EAAO,MAAQ,EAAA,MAAA,EAAQ,SAAS,MAAM,CAAA;AAAA,IAC7C,OAAS,EAAA,KAAA,CAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAM,EAAA;AAAA,IACJ,IAAA,EAAM,eAAkC,KAAK,CAAA;AAAA,IAC7C,OAAA,EAAS,MAAM,EAAC;AAAA,GAClB;AACF,CAAU,EAAA;AAEH,MAAM,gBAAmB,GAAA;AAAA,EAC9B,MAAA,EAAQ,CAAC,OAAiB,EAAA,KAAA,KAAmB,CAAC,CAAC,OAAA,IAAW,CAAC,CAAC,KAAA;AAAA,EAC5D,cAAA,EAAgB,CAAC,OAAiB,EAAA,IAAA,KAChC,CAAC,CAAC,OAAA,IAAW,CAAC,CAAC,IAAA;AAAA;AACnB,EAAA;AAEO,MAAM,qBAAwB,GAAA;;;;"}
|
|
@@ -13,13 +13,26 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
13
|
readonly data: SelectGroupData[];
|
|
14
14
|
readonly value?: import("ll-plus/es/utils").EpPropMergeType<readonly [ArrayConstructor, StringConstructor, NumberConstructor, BooleanConstructor, ObjectConstructor], unknown, unknown> | undefined;
|
|
15
15
|
readonly selectValue?: string | undefined;
|
|
16
|
-
readonly onChange?: ((selectV: string, value
|
|
16
|
+
readonly onChange?: ((selectV: string, value?: string | undefined) => any) | undefined;
|
|
17
17
|
readonly onOnSelectChange?: ((selectV: string, item: SelectGroupData) => any) | undefined;
|
|
18
18
|
} & {}>;
|
|
19
|
-
emits: ((event: "change", selectV: string, value
|
|
19
|
+
emits: ((event: "change", selectV: string, value?: string | undefined) => void) & ((event: "onSelectChange", selectV: string, item: SelectGroupData) => void);
|
|
20
20
|
typeSelectValue: import("vue").Ref<string>;
|
|
21
21
|
value: import("vue").Ref<any>;
|
|
22
22
|
selectItem: import("vue").Ref<SelectGroupData | undefined>;
|
|
23
|
+
newList: import("vue").Ref<{
|
|
24
|
+
readonly value: string;
|
|
25
|
+
readonly name: string;
|
|
26
|
+
readonly options?: any[] | undefined;
|
|
27
|
+
readonly placeholder?: string | undefined;
|
|
28
|
+
readonly fieldNames?: object | undefined;
|
|
29
|
+
readonly list?: {
|
|
30
|
+
[x: string]: any;
|
|
31
|
+
name?: string | undefined;
|
|
32
|
+
value?: any;
|
|
33
|
+
}[] | undefined;
|
|
34
|
+
readonly showFormType?: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "select" | "input" | "range-picker" | "treeSelect", unknown> | undefined;
|
|
35
|
+
}[]>;
|
|
23
36
|
bem: {
|
|
24
37
|
b: (blockSuffix?: string) => string;
|
|
25
38
|
e: (element?: string) => string;
|
|
@@ -40,10 +53,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
53
|
bem: (blockSuffix: string, element: string, modifier: string) => string;
|
|
41
54
|
is: (name?: string) => string;
|
|
42
55
|
};
|
|
56
|
+
leftSelectWidth: import("vue").ComputedRef<string>;
|
|
43
57
|
handleSelectChange: (_: string, options: any) => void;
|
|
44
58
|
handleChange: () => void;
|
|
45
59
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
46
|
-
change: (selectV: string, value
|
|
60
|
+
change: (selectV: string, value?: string | undefined) => boolean;
|
|
47
61
|
onSelectChange: (selectV: string, item: SelectGroupData) => boolean;
|
|
48
62
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
49
63
|
readonly selectValue: {
|
|
@@ -55,7 +69,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
55
69
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<readonly [ArrayConstructor, StringConstructor, NumberConstructor, BooleanConstructor, ObjectConstructor], unknown, unknown, undefined, boolean>;
|
|
56
70
|
readonly data: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => SelectGroupData[]) | (() => SelectGroupData[]) | ((new (...args: any[]) => SelectGroupData[]) | (() => SelectGroupData[]))[], unknown, unknown, () => never[], boolean>;
|
|
57
71
|
}>> & {
|
|
58
|
-
onChange?: ((selectV: string, value
|
|
72
|
+
onChange?: ((selectV: string, value?: string | undefined) => any) | undefined;
|
|
59
73
|
onOnSelectChange?: ((selectV: string, item: SelectGroupData) => any) | undefined;
|
|
60
74
|
}, {
|
|
61
75
|
readonly value: import("ll-plus/es/utils").EpPropMergeType<readonly [ArrayConstructor, StringConstructor, NumberConstructor, BooleanConstructor, ObjectConstructor], unknown, unknown>;
|