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 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
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 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
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 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
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 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
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 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
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 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
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 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
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 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
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 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
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 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
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 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
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 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
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 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
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 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
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 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
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 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
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 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
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 @@ export declare const LlKeyValue: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
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;
|
|
@@ -1181,7 +1181,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1181
1181
|
gutter: number;
|
|
1182
1182
|
}, boolean>;
|
|
1183
1183
|
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
1184
|
-
}
|
|
1184
|
+
}>> & {
|
|
1185
|
+
onChange?: ((value: import("ll-plus/es/components").FormData) => any) | undefined;
|
|
1186
|
+
}, {
|
|
1185
1187
|
props: import("@vue/shared").LooseRequired<{
|
|
1186
1188
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
1187
1189
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -1457,7 +1459,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1457
1459
|
}>>;
|
|
1458
1460
|
readonly formColumns: any[];
|
|
1459
1461
|
readonly formData: import("ll-plus/es/components").FormData;
|
|
1462
|
+
readonly onChange?: ((value: import("ll-plus/es/components").FormData) => any) | undefined;
|
|
1460
1463
|
} & {}>;
|
|
1464
|
+
emits: (event: "change", value: import("ll-plus/es/components").FormData) => void;
|
|
1461
1465
|
bem: {
|
|
1462
1466
|
b: (blockSuffix?: string) => string;
|
|
1463
1467
|
e: (element?: string) => string;
|
|
@@ -1518,7 +1522,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1518
1522
|
readonly formData: import("ll-plus/es/components").FormData;
|
|
1519
1523
|
readonly item: any;
|
|
1520
1524
|
}, {}>;
|
|
1521
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1525
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1526
|
+
change: (value: import("ll-plus/es/components").FormData) => boolean;
|
|
1527
|
+
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
1522
1528
|
readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
1523
1529
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
1524
1530
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -2604,7 +2610,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2604
2610
|
gutter: number;
|
|
2605
2611
|
}, boolean>;
|
|
2606
2612
|
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
2607
|
-
}
|
|
2613
|
+
}>> & {
|
|
2614
|
+
onChange?: ((value: import("ll-plus/es/components").FormData) => any) | undefined;
|
|
2615
|
+
}, {
|
|
2608
2616
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
2609
2617
|
layout: import("vue-types").VueTypeDef<string>;
|
|
2610
2618
|
labelCol: {
|
|
@@ -3972,7 +3980,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3972
3980
|
gutter: number;
|
|
3973
3981
|
}, boolean>;
|
|
3974
3982
|
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
3975
|
-
}
|
|
3983
|
+
}>> & {
|
|
3984
|
+
onChange?: ((value: import("ll-plus/es/components").FormData) => any) | undefined;
|
|
3985
|
+
}, {
|
|
3976
3986
|
props: import("@vue/shared").LooseRequired<{
|
|
3977
3987
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
3978
3988
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -4248,7 +4258,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4248
4258
|
}>>;
|
|
4249
4259
|
readonly formColumns: any[];
|
|
4250
4260
|
readonly formData: import("ll-plus/es/components").FormData;
|
|
4261
|
+
readonly onChange?: ((value: import("ll-plus/es/components").FormData) => any) | undefined;
|
|
4251
4262
|
} & {}>;
|
|
4263
|
+
emits: (event: "change", value: import("ll-plus/es/components").FormData) => void;
|
|
4252
4264
|
bem: {
|
|
4253
4265
|
b: (blockSuffix?: string) => string;
|
|
4254
4266
|
e: (element?: string) => string;
|
|
@@ -121,6 +121,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
121
121
|
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => innerValue.value["key"] = $event),
|
|
122
122
|
options: props.keyTypes,
|
|
123
123
|
disabled: getKeyDisabled.value,
|
|
124
|
+
style: { "width": "100%" },
|
|
124
125
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
125
126
|
"allow-clear": "",
|
|
126
127
|
onChange: handleChange
|
|
@@ -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 v-if=\"props.keyValueType !== 'single'\" :class=\"bem.m('left')\">\n <ll-form-item\n :label=\"attrs['key-label']\"\n :label-col=\"{\n span: 24\n }\"\n :rules=\"getKeyType.rules || []\"\n name=\"key\"\n >\n <slot name=\"key\">\n <ll-select\n v-if=\"!isEmpty(props.keyTypes)\"\n v-model:value=\"innerValue['key']\"\n :options=\"props.keyTypes\"\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 >\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=\"props.keyValueType !== '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 :rules=\"getValueType.rules || []\"\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 :get-popup-container=\"(trigger: Element) => trigger.parentNode\"\n destroy-tooltip-on-hide\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, nextTick } from 'vue'\nimport { isEmpty } from 'lodash-es'\nimport { createNamespace } from '@ll-plus/utils'\nimport type { FormInstance } from '@ll-plus/components'\nimport {\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 form = ref<FormInstance | null>()\n\nconst getKeyType = computed<FormColumn>(() => {\n const option = props.keyType\n return option\n})\nconst getValueType = computed<FormColumn>(() => {\n let option = props.valueType\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'] = null\n}\n\nconst validate = async () => {\n return await form.value?.validate()\n}\n\nconst resetFields = async () => {\n return await form.value?.resetFields()\n}\n\nwatch(\n innerValue,\n async val => {\n await nextTick().then(() => {\n try {\n emits('update:value', val)\n emits('change')\n } catch (error) {\n console.error(error)\n }\n })\n },\n {\n deep: true\n }\n)\n\ndefineExpose({\n validate,\n resetFields\n})\n</script>\n\n<style scoped></style>\n"],"names":["useAttrs","createNamespace","ref","computed","isEmpty","watch","nextTick"],"mappings":";;;;;;;;;;;;;;;;;;;;
|
|
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 v-if=\"props.keyValueType !== 'single'\" :class=\"bem.m('left')\">\n <ll-form-item\n :label=\"attrs['key-label']\"\n :label-col=\"{\n span: 24\n }\"\n :rules=\"getKeyType.rules || []\"\n name=\"key\"\n >\n <slot name=\"key\">\n <ll-select\n v-if=\"!isEmpty(props.keyTypes)\"\n v-model:value=\"innerValue['key']\"\n :options=\"props.keyTypes\"\n :disabled=\"getKeyDisabled\"\n style=\"width: 100%\"\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 >\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=\"props.keyValueType !== '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 :rules=\"getValueType.rules || []\"\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 :get-popup-container=\"(trigger: Element) => trigger.parentNode\"\n destroy-tooltip-on-hide\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, nextTick } from 'vue'\nimport { isEmpty } from 'lodash-es'\nimport { createNamespace } from '@ll-plus/utils'\nimport type { FormInstance } from '@ll-plus/components'\nimport {\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 form = ref<FormInstance | null>()\n\nconst getKeyType = computed<FormColumn>(() => {\n const option = props.keyType\n return option\n})\nconst getValueType = computed<FormColumn>(() => {\n let option = props.valueType\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'] = null\n}\n\nconst validate = async () => {\n return await form.value?.validate()\n}\n\nconst resetFields = async () => {\n return await form.value?.resetFields()\n}\n\nwatch(\n innerValue,\n async val => {\n await nextTick().then(() => {\n try {\n emits('update:value', val)\n emits('change')\n } catch (error) {\n console.error(error)\n }\n })\n },\n {\n deep: true\n }\n)\n\ndefineExpose({\n validate,\n resetFields\n})\n</script>\n\n<style scoped></style>\n"],"names":["useAttrs","createNamespace","ref","computed","isEmpty","watch","nextTick"],"mappings":";;;;;;;;;;;;;;;;;;;;AAoJA,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,IAAA,MAAM,OAAOA,OAAyB,EAAA,CAAA;AAEtC,IAAM,MAAA,UAAA,GAAaC,aAAqB,MAAM;AAC5C,MAAA,MAAM,SAAS,KAAM,CAAA,OAAA,CAAA;AACrB,MAAO,OAAA,MAAA,CAAA;AAAA,KACR,CAAA,CAAA;AACD,IAAM,MAAA,YAAA,GAAeA,aAAqB,MAAM;AAC9C,MAAA,IAAI,SAAS,KAAM,CAAA,SAAA,CAAA;AACnB,MAAI,IAAA,UAAA,CAAW,MAAM,KAAK,CAAA,IAAK,CAACC,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,GAAiBD,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,IAAA,CAAA;AAAA,KAC9B,CAAA;AAEA,IAAA,MAAM,WAAW,YAAY;AAC3B,MAAO,OAAA,MAAM,IAAK,CAAA,KAAA,EAAO,QAAS,EAAA,CAAA;AAAA,KACpC,CAAA;AAEA,IAAA,MAAM,cAAc,YAAY;AAC9B,MAAO,OAAA,MAAM,IAAK,CAAA,KAAA,EAAO,WAAY,EAAA,CAAA;AAAA,KACvC,CAAA;AAEA,IAAAE,SAAA;AAAA,MACE,UAAA;AAAA,MACA,OAAM,GAAO,KAAA;AACX,QAAM,MAAAC,YAAA,EAAW,CAAA,IAAA,CAAK,MAAM;AAC1B,UAAI,IAAA;AACF,YAAA,KAAA,CAAM,gBAAgB,GAAG,CAAA,CAAA;AACzB,YAAA,KAAA,CAAM,QAAQ,CAAA,CAAA;AAAA,mBACP,KAAO,EAAA;AACd,YAAA,OAAA,CAAQ,MAAM,KAAK,CAAA,CAAA;AAAA,WACrB;AAAA,SACD,CAAA,CAAA;AAAA,OACH;AAAA,MACA;AAAA,QACE,IAAM,EAAA,IAAA;AAAA,OACR;AAAA,KACF,CAAA;AAEA,IAAa,QAAA,CAAA;AAAA,MACX,QAAA;AAAA,MACA,WAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -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;
|
|
@@ -17,13 +17,14 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
17
17
|
__name: "modal",
|
|
18
18
|
props: modal.modalProps,
|
|
19
19
|
emits: modal.modalEmits,
|
|
20
|
-
setup(__props, { emit: __emit }) {
|
|
20
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
21
21
|
const props = __props;
|
|
22
22
|
const emits = __emit;
|
|
23
23
|
const attrs = vue.useAttrs();
|
|
24
24
|
const bem = createNamespace.createNamespace("modal");
|
|
25
25
|
const modal$1 = vue.ref();
|
|
26
26
|
const hasScroll = vue.ref(false);
|
|
27
|
+
const scrollTop = vue.ref(0);
|
|
27
28
|
const symbolClass = vue.ref(`ll-modal-${(/* @__PURE__ */ new Date()).getTime()}`);
|
|
28
29
|
const symbolComparedClass = vue.ref(`model-content-${(/* @__PURE__ */ new Date()).getTime()}`);
|
|
29
30
|
const getBindValue = vue.computed(() => {
|
|
@@ -53,16 +54,32 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
53
54
|
});
|
|
54
55
|
if (value) {
|
|
55
56
|
resizeObserver.observe(modalBody);
|
|
57
|
+
ele.addEventListener("scroll", () => {
|
|
58
|
+
scrollTop.value = ele.scrollTop;
|
|
59
|
+
});
|
|
56
60
|
} else {
|
|
57
61
|
resizeObserver.unobserve(modalBody);
|
|
62
|
+
ele.removeEventListener("scroll", () => {
|
|
63
|
+
scrollTop.value = 0;
|
|
64
|
+
});
|
|
58
65
|
}
|
|
59
66
|
};
|
|
67
|
+
const onScrollTop = async () => {
|
|
68
|
+
await vue.nextTick();
|
|
69
|
+
if (!hasScroll.value)
|
|
70
|
+
return;
|
|
71
|
+
const ele = document.getElementsByClassName(symbolClass.value)[0];
|
|
72
|
+
ele.scrollTop = 0;
|
|
73
|
+
};
|
|
60
74
|
vue.watch(
|
|
61
75
|
() => props.open,
|
|
62
76
|
(val) => {
|
|
63
77
|
handleResize(val);
|
|
64
78
|
}
|
|
65
79
|
);
|
|
80
|
+
__expose({
|
|
81
|
+
onScrollTop
|
|
82
|
+
});
|
|
66
83
|
return (_ctx, _cache) => {
|
|
67
84
|
return vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Modal), vue.mergeProps(getBindValue.value, {
|
|
68
85
|
ref_key: "modal",
|
|
@@ -79,12 +96,34 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
79
96
|
onOk: handleOk
|
|
80
97
|
}), vue.createSlots({
|
|
81
98
|
default: vue.withCtx(() => [
|
|
99
|
+
_ctx.$slots.step ? (vue.openBlock(), vue.createElementBlock(
|
|
100
|
+
"div",
|
|
101
|
+
{
|
|
102
|
+
key: 0,
|
|
103
|
+
class: vue.normalizeClass(vue.unref(bem).e("step"))
|
|
104
|
+
},
|
|
105
|
+
[
|
|
106
|
+
vue.renderSlot(_ctx.$slots, "step")
|
|
107
|
+
],
|
|
108
|
+
2
|
|
109
|
+
/* CLASS */
|
|
110
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
82
111
|
vue.createElementVNode(
|
|
83
112
|
"div",
|
|
84
113
|
{
|
|
85
114
|
class: vue.normalizeClass([vue.unref(bem).e("container"), symbolClass.value, vue.unref(bem).is(props.type)])
|
|
86
115
|
},
|
|
87
116
|
[
|
|
117
|
+
hasScroll.value && scrollTop.value > 0 ? (vue.openBlock(), vue.createElementBlock(
|
|
118
|
+
"div",
|
|
119
|
+
{
|
|
120
|
+
key: 0,
|
|
121
|
+
class: vue.normalizeClass(vue.unref(bem).e("shadow"))
|
|
122
|
+
},
|
|
123
|
+
null,
|
|
124
|
+
2
|
|
125
|
+
/* CLASS */
|
|
126
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
88
127
|
vue.createElementVNode(
|
|
89
128
|
"div",
|
|
90
129
|
{
|