ll-plus 2.3.14 → 2.3.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/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 +1 -1
- 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/table/src/config/main-table.d.ts +1 -0
- package/es/components/table/src/config/main-table.mjs.map +1 -1
- package/es/index.mjs +1 -1
- package/es/utils/props/runtime.d.ts +2 -2
- package/index.full.js +109 -12
- package/index.full.min.js +17 -17
- package/index.full.min.js.map +1 -1
- package/index.full.min.mjs +17 -17
- package/index.full.min.mjs.map +1 -1
- package/index.full.mjs +109 -13
- 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 +1 -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/table/src/config/main-table.d.ts +1 -0
- package/lib/components/table/src/config/main-table.js.map +1 -1
- package/lib/index.js +1 -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/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/table/src/config/main-table.d.ts +1 -0
- package/types/packages/utils/props/runtime.d.ts +2 -2
|
@@ -2719,8 +2719,9 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
2719
2719
|
readonly showFooter: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
2720
2720
|
readonly onClose?: (() => any) | undefined;
|
|
2721
2721
|
readonly onConfirm?: (() => any) | undefined;
|
|
2722
|
+
readonly onChangeValue?: ((value: Record<string, any>) => any) | undefined;
|
|
2722
2723
|
} & {}>;
|
|
2723
|
-
emits: ((event: "close") => void) & ((event: "confirm") => void);
|
|
2724
|
+
emits: ((event: "close") => void) & ((event: "confirm") => void) & ((event: "changeValue", value: Record<string, any>) => void);
|
|
2724
2725
|
bem: {
|
|
2725
2726
|
b: (blockSuffix?: string) => string;
|
|
2726
2727
|
e: (element?: string) => string;
|
|
@@ -2734,6 +2735,7 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
2734
2735
|
key: import("vue").Ref<number>;
|
|
2735
2736
|
handleClose: () => void;
|
|
2736
2737
|
handleAdvancedFilterConfirm: () => void;
|
|
2738
|
+
handleChange: (val: Record<string, any>) => void;
|
|
2737
2739
|
readonly LlForm: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
2738
2740
|
readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
2739
2741
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
@@ -4096,7 +4098,9 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
4096
4098
|
}>>;
|
|
4097
4099
|
readonly formColumns: any[];
|
|
4098
4100
|
readonly formData: import("ll-plus/es/index").FormData;
|
|
4101
|
+
readonly onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
|
|
4099
4102
|
} & {}>;
|
|
4103
|
+
emits: (event: "change", value: import("ll-plus/es/index").FormData) => void;
|
|
4100
4104
|
bem: {
|
|
4101
4105
|
b: (blockSuffix?: string) => string;
|
|
4102
4106
|
e: (element?: string) => string;
|
|
@@ -4157,7 +4161,9 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
4157
4161
|
readonly formData: import("ll-plus/es/index").FormData;
|
|
4158
4162
|
readonly item: any;
|
|
4159
4163
|
}, {}>;
|
|
4160
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4164
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4165
|
+
change: (value: import("ll-plus/es/index").FormData) => boolean;
|
|
4166
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4161
4167
|
readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
4162
4168
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
4163
4169
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -5243,7 +5249,9 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
5243
5249
|
gutter: number;
|
|
5244
5250
|
}, boolean>;
|
|
5245
5251
|
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
5246
|
-
}
|
|
5252
|
+
}>> & {
|
|
5253
|
+
onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
|
|
5254
|
+
}, {
|
|
5247
5255
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
5248
5256
|
layout: import("vue-types").VueTypeDef<string>;
|
|
5249
5257
|
labelCol: {
|
|
@@ -5522,6 +5530,7 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
5522
5530
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5523
5531
|
close: () => boolean;
|
|
5524
5532
|
confirm: () => boolean;
|
|
5533
|
+
changeValue: (value: Record<string, any>) => boolean;
|
|
5525
5534
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
5526
5535
|
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
5527
5536
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
@@ -6424,6 +6433,7 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
6424
6433
|
}>> & {
|
|
6425
6434
|
onClose?: (() => any) | undefined;
|
|
6426
6435
|
onConfirm?: (() => any) | undefined;
|
|
6436
|
+
onChangeValue?: ((value: Record<string, any>) => any) | undefined;
|
|
6427
6437
|
}, {
|
|
6428
6438
|
readonly filterColumns: any[];
|
|
6429
6439
|
readonly value: Record<string, any>;
|
|
@@ -11212,8 +11222,9 @@ export declare const LlAdvancedFilteringParams: import("ll-plus/es/utils").SFCWi
|
|
|
11212
11222
|
readonly showFooter: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
11213
11223
|
readonly onClose?: (() => any) | undefined;
|
|
11214
11224
|
readonly onConfirm?: (() => any) | undefined;
|
|
11225
|
+
readonly onChangeValue?: ((value: Record<string, any>) => any) | undefined;
|
|
11215
11226
|
} & {}>;
|
|
11216
|
-
emits: ((event: "close") => void) & ((event: "confirm") => void);
|
|
11227
|
+
emits: ((event: "close") => void) & ((event: "confirm") => void) & ((event: "changeValue", value: Record<string, any>) => void);
|
|
11217
11228
|
bem: {
|
|
11218
11229
|
b: (blockSuffix?: string) => string;
|
|
11219
11230
|
e: (element?: string) => string;
|
|
@@ -11227,6 +11238,7 @@ export declare const LlAdvancedFilteringParams: import("ll-plus/es/utils").SFCWi
|
|
|
11227
11238
|
key: import("vue").Ref<number>;
|
|
11228
11239
|
handleClose: () => void;
|
|
11229
11240
|
handleAdvancedFilterConfirm: () => void;
|
|
11241
|
+
handleChange: (val: Record<string, any>) => void;
|
|
11230
11242
|
readonly LlForm: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
11231
11243
|
readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
11232
11244
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
@@ -12589,7 +12601,9 @@ export declare const LlAdvancedFilteringParams: import("ll-plus/es/utils").SFCWi
|
|
|
12589
12601
|
}>>;
|
|
12590
12602
|
readonly formColumns: any[];
|
|
12591
12603
|
readonly formData: import("ll-plus/es/index").FormData;
|
|
12604
|
+
readonly onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
|
|
12592
12605
|
} & {}>;
|
|
12606
|
+
emits: (event: "change", value: import("ll-plus/es/index").FormData) => void;
|
|
12593
12607
|
bem: {
|
|
12594
12608
|
b: (blockSuffix?: string) => string;
|
|
12595
12609
|
e: (element?: string) => string;
|
|
@@ -12650,7 +12664,9 @@ export declare const LlAdvancedFilteringParams: import("ll-plus/es/utils").SFCWi
|
|
|
12650
12664
|
readonly formData: import("ll-plus/es/index").FormData;
|
|
12651
12665
|
readonly item: any;
|
|
12652
12666
|
}, {}>;
|
|
12653
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12667
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12668
|
+
change: (value: import("ll-plus/es/index").FormData) => boolean;
|
|
12669
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12654
12670
|
readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
12655
12671
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
12656
12672
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -13736,7 +13752,9 @@ export declare const LlAdvancedFilteringParams: import("ll-plus/es/utils").SFCWi
|
|
|
13736
13752
|
gutter: number;
|
|
13737
13753
|
}, boolean>;
|
|
13738
13754
|
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
13739
|
-
}
|
|
13755
|
+
}>> & {
|
|
13756
|
+
onChange?: ((value: import("ll-plus/es/index").FormData) => any) | undefined;
|
|
13757
|
+
}, {
|
|
13740
13758
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
13741
13759
|
layout: import("vue-types").VueTypeDef<string>;
|
|
13742
13760
|
labelCol: {
|
|
@@ -14015,6 +14033,7 @@ export declare const LlAdvancedFilteringParams: import("ll-plus/es/utils").SFCWi
|
|
|
14015
14033
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14016
14034
|
close: () => boolean;
|
|
14017
14035
|
confirm: () => boolean;
|
|
14036
|
+
changeValue: (value: Record<string, any>) => boolean;
|
|
14018
14037
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
14019
14038
|
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
14020
14039
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
@@ -14917,6 +14936,7 @@ export declare const LlAdvancedFilteringParams: import("ll-plus/es/utils").SFCWi
|
|
|
14917
14936
|
}>> & {
|
|
14918
14937
|
onClose?: (() => any) | undefined;
|
|
14919
14938
|
onConfirm?: (() => any) | undefined;
|
|
14939
|
+
onChangeValue?: ((value: Record<string, any>) => any) | undefined;
|
|
14920
14940
|
}, {
|
|
14921
14941
|
readonly filterColumns: any[];
|
|
14922
14942
|
readonly value: Record<string, any>;
|
|
@@ -1817,6 +1817,7 @@ export declare const advancedFilteringEmits: {
|
|
|
1817
1817
|
export declare const advancedFilteringParamsEmits: {
|
|
1818
1818
|
close: () => boolean;
|
|
1819
1819
|
confirm: () => boolean;
|
|
1820
|
+
changeValue: (value: Record<string, any>) => boolean;
|
|
1820
1821
|
};
|
|
1821
1822
|
export declare const advancedFilteringTagsEmits: {
|
|
1822
1823
|
change: (value: Record<string, any>) => boolean;
|
|
@@ -46,7 +46,8 @@ const advancedFilteringEmits = {
|
|
|
46
46
|
};
|
|
47
47
|
const advancedFilteringParamsEmits = {
|
|
48
48
|
close: () => true,
|
|
49
|
-
confirm: () => true
|
|
49
|
+
confirm: () => true,
|
|
50
|
+
changeValue: (value) => !!value
|
|
50
51
|
};
|
|
51
52
|
const advancedFilteringTagsEmits = {
|
|
52
53
|
change: (value) => !!value,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advanced-filtering.mjs","sources":["../../../../../packages/components/advanced-filtering/src/advanced-filtering.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type { FormProps as AntFormProps, TooltipProps } from 'ant-design-vue'\nimport type { FormColumn } from '@ll-plus/components'\nimport type advancedFiltering from './advanced-filtering.vue'\nimport type advancedFilteringParams from './components/advanced-filtering-params.vue'\nimport type advancedFilteringTags from './components/advanced-filtering-tags.vue'\nexport interface IAvancedFilteringTag {\n label: string\n key: string\n value: string | string[]\n showValue: string | string[]\n}\n\nexport const advancedFilteringProps = buildProps({\n filterColumns: {\n type: definePropType<FormColumn[]>(Array),\n default: () => []\n },\n value: {\n type: Object,\n default: () => ({})\n },\n formOptions: {\n type: definePropType<AntFormProps>(Object),\n default: () => ({ layout: 'vertical' })\n },\n overlayStyle: {\n type: definePropType<TooltipProps['overlayStyle']>(Object),\n default: () => ({\n width: '500px'\n })\n }\n} as const)\n\nexport const advancedFilteringParamsProps = buildProps({\n filterColumns: {\n type: definePropType<FormColumn[]>(Array),\n default: () => []\n },\n value: {\n type: Object,\n default: () => ({})\n },\n formOptions: {\n type: definePropType<AntFormProps>(Object),\n default: () => ({ layout: 'vertical' })\n },\n showFooter: {\n type: Boolean,\n default: false\n }\n} as const)\n\nexport const advancedFilteringEmits = {\n change: (value: Record<string, any>) => !!value,\n 'update:value': (value: Record<string, any>) => !!value\n}\n\nexport const advancedFilteringParamsEmits = {\n close: () => true,\n confirm: () => true\n}\n\nexport const advancedFilteringTagsEmits = {\n change: (value: Record<string, any>) => !!value,\n 'update:value': (value: Record<string, any>) => !!value\n}\n\n// props\nexport type AdvancedFilteringProps = ExtractPropTypes<\n typeof advancedFilteringProps\n>\n\nexport type AdvancedFilteringParamsProps = ExtractPropTypes<\n typeof advancedFilteringParamsProps\n>\n\n// emits\nexport type AdvancedFilteringEmits = typeof advancedFilteringEmits\n\nexport type AdvancedFilteringParamsEmits = typeof advancedFilteringParamsEmits\n\nexport type AdvancedFilteringTagsEmits = typeof advancedFilteringTagsEmits\n\n// instance\nexport type AdvancedFilteringInstance = InstanceType<typeof advancedFiltering>\n\nexport type AdvancedFilteringParamsInstance = InstanceType<\n typeof advancedFilteringParams\n>\n\nexport type AdvancedFilteringTagsInstance = InstanceType<\n typeof advancedFilteringTags\n>\n"],"names":[],"mappings":";;;;AAeO,MAAM,yBAAyB,UAAW,CAAA;AAAA,EAC/C,aAAe,EAAA;AAAA,IACb,IAAA,EAAM,eAA6B,KAAK,CAAA;AAAA,IACxC,OAAA,EAAS,MAAM,EAAC;AAAA,GAClB;AAAA,EACA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAA,EAAS,OAAO,EAAC,CAAA;AAAA,GACnB;AAAA,EACA,WAAa,EAAA;AAAA,IACX,IAAA,EAAM,eAA6B,MAAM,CAAA;AAAA,IACzC,OAAS,EAAA,OAAO,EAAE,MAAA,EAAQ,UAAW,EAAA,CAAA;AAAA,GACvC;AAAA,EACA,YAAc,EAAA;AAAA,IACZ,IAAA,EAAM,eAA6C,MAAM,CAAA;AAAA,IACzD,SAAS,OAAO;AAAA,MACd,KAAO,EAAA,OAAA;AAAA,KACT,CAAA;AAAA,GACF;AACF,CAAU,EAAA;AAEH,MAAM,+BAA+B,UAAW,CAAA;AAAA,EACrD,aAAe,EAAA;AAAA,IACb,IAAA,EAAM,eAA6B,KAAK,CAAA;AAAA,IACxC,OAAA,EAAS,MAAM,EAAC;AAAA,GAClB;AAAA,EACA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAA,EAAS,OAAO,EAAC,CAAA;AAAA,GACnB;AAAA,EACA,WAAa,EAAA;AAAA,IACX,IAAA,EAAM,eAA6B,MAAM,CAAA;AAAA,IACzC,OAAS,EAAA,OAAO,EAAE,MAAA,EAAQ,UAAW,EAAA,CAAA;AAAA,GACvC;AAAA,EACA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AACF,CAAU,EAAA;AAEH,MAAM,sBAAyB,GAAA;AAAA,EACpC,MAAQ,EAAA,CAAC,KAA+B,KAAA,CAAC,CAAC,KAAA;AAAA,EAC1C,cAAgB,EAAA,CAAC,KAA+B,KAAA,CAAC,CAAC,KAAA;AACpD,EAAA;AAEO,MAAM,4BAA+B,GAAA;AAAA,EAC1C,OAAO,MAAM,IAAA;AAAA,EACb,SAAS,MAAM,IAAA;
|
|
1
|
+
{"version":3,"file":"advanced-filtering.mjs","sources":["../../../../../packages/components/advanced-filtering/src/advanced-filtering.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type { FormProps as AntFormProps, TooltipProps } from 'ant-design-vue'\nimport type { FormColumn } from '@ll-plus/components'\nimport type advancedFiltering from './advanced-filtering.vue'\nimport type advancedFilteringParams from './components/advanced-filtering-params.vue'\nimport type advancedFilteringTags from './components/advanced-filtering-tags.vue'\nexport interface IAvancedFilteringTag {\n label: string\n key: string\n value: string | string[]\n showValue: string | string[]\n}\n\nexport const advancedFilteringProps = buildProps({\n filterColumns: {\n type: definePropType<FormColumn[]>(Array),\n default: () => []\n },\n value: {\n type: Object,\n default: () => ({})\n },\n formOptions: {\n type: definePropType<AntFormProps>(Object),\n default: () => ({ layout: 'vertical' })\n },\n overlayStyle: {\n type: definePropType<TooltipProps['overlayStyle']>(Object),\n default: () => ({\n width: '500px'\n })\n }\n} as const)\n\nexport const advancedFilteringParamsProps = buildProps({\n filterColumns: {\n type: definePropType<FormColumn[]>(Array),\n default: () => []\n },\n value: {\n type: Object,\n default: () => ({})\n },\n formOptions: {\n type: definePropType<AntFormProps>(Object),\n default: () => ({ layout: 'vertical' })\n },\n showFooter: {\n type: Boolean,\n default: false\n }\n} as const)\n\nexport const advancedFilteringEmits = {\n change: (value: Record<string, any>) => !!value,\n 'update:value': (value: Record<string, any>) => !!value\n}\n\nexport const advancedFilteringParamsEmits = {\n close: () => true,\n confirm: () => true,\n changeValue: (value: Record<string, any>) => !!value\n}\n\nexport const advancedFilteringTagsEmits = {\n change: (value: Record<string, any>) => !!value,\n 'update:value': (value: Record<string, any>) => !!value\n}\n\n// props\nexport type AdvancedFilteringProps = ExtractPropTypes<\n typeof advancedFilteringProps\n>\n\nexport type AdvancedFilteringParamsProps = ExtractPropTypes<\n typeof advancedFilteringParamsProps\n>\n\n// emits\nexport type AdvancedFilteringEmits = typeof advancedFilteringEmits\n\nexport type AdvancedFilteringParamsEmits = typeof advancedFilteringParamsEmits\n\nexport type AdvancedFilteringTagsEmits = typeof advancedFilteringTagsEmits\n\n// instance\nexport type AdvancedFilteringInstance = InstanceType<typeof advancedFiltering>\n\nexport type AdvancedFilteringParamsInstance = InstanceType<\n typeof advancedFilteringParams\n>\n\nexport type AdvancedFilteringTagsInstance = InstanceType<\n typeof advancedFilteringTags\n>\n"],"names":[],"mappings":";;;;AAeO,MAAM,yBAAyB,UAAW,CAAA;AAAA,EAC/C,aAAe,EAAA;AAAA,IACb,IAAA,EAAM,eAA6B,KAAK,CAAA;AAAA,IACxC,OAAA,EAAS,MAAM,EAAC;AAAA,GAClB;AAAA,EACA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAA,EAAS,OAAO,EAAC,CAAA;AAAA,GACnB;AAAA,EACA,WAAa,EAAA;AAAA,IACX,IAAA,EAAM,eAA6B,MAAM,CAAA;AAAA,IACzC,OAAS,EAAA,OAAO,EAAE,MAAA,EAAQ,UAAW,EAAA,CAAA;AAAA,GACvC;AAAA,EACA,YAAc,EAAA;AAAA,IACZ,IAAA,EAAM,eAA6C,MAAM,CAAA;AAAA,IACzD,SAAS,OAAO;AAAA,MACd,KAAO,EAAA,OAAA;AAAA,KACT,CAAA;AAAA,GACF;AACF,CAAU,EAAA;AAEH,MAAM,+BAA+B,UAAW,CAAA;AAAA,EACrD,aAAe,EAAA;AAAA,IACb,IAAA,EAAM,eAA6B,KAAK,CAAA;AAAA,IACxC,OAAA,EAAS,MAAM,EAAC;AAAA,GAClB;AAAA,EACA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAA,EAAS,OAAO,EAAC,CAAA;AAAA,GACnB;AAAA,EACA,WAAa,EAAA;AAAA,IACX,IAAA,EAAM,eAA6B,MAAM,CAAA;AAAA,IACzC,OAAS,EAAA,OAAO,EAAE,MAAA,EAAQ,UAAW,EAAA,CAAA;AAAA,GACvC;AAAA,EACA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AACF,CAAU,EAAA;AAEH,MAAM,sBAAyB,GAAA;AAAA,EACpC,MAAQ,EAAA,CAAC,KAA+B,KAAA,CAAC,CAAC,KAAA;AAAA,EAC1C,cAAgB,EAAA,CAAC,KAA+B,KAAA,CAAC,CAAC,KAAA;AACpD,EAAA;AAEO,MAAM,4BAA+B,GAAA;AAAA,EAC1C,OAAO,MAAM,IAAA;AAAA,EACb,SAAS,MAAM,IAAA;AAAA,EACf,WAAa,EAAA,CAAC,KAA+B,KAAA,CAAC,CAAC,KAAA;AACjD,EAAA;AAEO,MAAM,0BAA6B,GAAA;AAAA,EACxC,MAAQ,EAAA,CAAC,KAA+B,KAAA,CAAC,CAAC,KAAA;AAAA,EAC1C,cAAgB,EAAA,CAAC,KAA+B,KAAA,CAAC,CAAC,KAAA;AACpD;;;;"}
|
|
@@ -2716,8 +2716,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2716
2716
|
readonly showFooter: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
2717
2717
|
readonly onClose?: (() => any) | undefined;
|
|
2718
2718
|
readonly onConfirm?: (() => any) | undefined;
|
|
2719
|
+
readonly onChangeValue?: ((value: Record<string, any>) => any) | undefined;
|
|
2719
2720
|
} & {}>;
|
|
2720
|
-
emits: ((event: "close") => void) & ((event: "confirm") => void);
|
|
2721
|
+
emits: ((event: "close") => void) & ((event: "confirm") => void) & ((event: "changeValue", value: Record<string, any>) => void);
|
|
2721
2722
|
bem: {
|
|
2722
2723
|
b: (blockSuffix?: string) => string;
|
|
2723
2724
|
e: (element?: string) => string;
|
|
@@ -2731,6 +2732,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2731
2732
|
key: import("vue").Ref<number>;
|
|
2732
2733
|
handleClose: () => void;
|
|
2733
2734
|
handleAdvancedFilterConfirm: () => void;
|
|
2735
|
+
handleChange: (val: Record<string, any>) => void;
|
|
2734
2736
|
readonly LlForm: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
2735
2737
|
readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
2736
2738
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
@@ -4093,7 +4095,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4093
4095
|
}>>;
|
|
4094
4096
|
readonly formColumns: any[];
|
|
4095
4097
|
readonly formData: import("ll-plus/es/components").FormData;
|
|
4098
|
+
readonly onChange?: ((value: import("ll-plus/es/components").FormData) => any) | undefined;
|
|
4096
4099
|
} & {}>;
|
|
4100
|
+
emits: (event: "change", value: import("ll-plus/es/components").FormData) => void;
|
|
4097
4101
|
bem: {
|
|
4098
4102
|
b: (blockSuffix?: string) => string;
|
|
4099
4103
|
e: (element?: string) => string;
|
|
@@ -4154,7 +4158,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4154
4158
|
readonly formData: import("ll-plus/es/components").FormData;
|
|
4155
4159
|
readonly item: any;
|
|
4156
4160
|
}, {}>;
|
|
4157
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4161
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4162
|
+
change: (value: import("ll-plus/es/components").FormData) => boolean;
|
|
4163
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4158
4164
|
readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
4159
4165
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
4160
4166
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -5240,7 +5246,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5240
5246
|
gutter: number;
|
|
5241
5247
|
}, boolean>;
|
|
5242
5248
|
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
5243
|
-
}
|
|
5249
|
+
}>> & {
|
|
5250
|
+
onChange?: ((value: import("ll-plus/es/components").FormData) => any) | undefined;
|
|
5251
|
+
}, {
|
|
5244
5252
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
5245
5253
|
layout: import("vue-types").VueTypeDef<string>;
|
|
5246
5254
|
labelCol: {
|
|
@@ -5519,6 +5527,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5519
5527
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5520
5528
|
close: () => boolean;
|
|
5521
5529
|
confirm: () => boolean;
|
|
5530
|
+
changeValue: (value: Record<string, any>) => boolean;
|
|
5522
5531
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
5523
5532
|
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
5524
5533
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
@@ -6421,6 +6430,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6421
6430
|
}>> & {
|
|
6422
6431
|
onClose?: (() => any) | undefined;
|
|
6423
6432
|
onConfirm?: (() => any) | undefined;
|
|
6433
|
+
onChangeValue?: ((value: Record<string, any>) => any) | undefined;
|
|
6424
6434
|
}, {
|
|
6425
6435
|
readonly filterColumns: any[];
|
|
6426
6436
|
readonly value: Record<string, any>;
|
|
@@ -1128,8 +1128,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1128
1128
|
readonly showFooter: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1129
1129
|
readonly onClose?: (() => any) | undefined;
|
|
1130
1130
|
readonly onConfirm?: (() => any) | undefined;
|
|
1131
|
+
readonly onChangeValue?: ((value: Record<string, any>) => any) | undefined;
|
|
1131
1132
|
} & {}>;
|
|
1132
|
-
emits: ((event: "close") => void) & ((event: "confirm") => void);
|
|
1133
|
+
emits: ((event: "close") => void) & ((event: "confirm") => void) & ((event: "changeValue", value: Record<string, any>) => void);
|
|
1133
1134
|
bem: {
|
|
1134
1135
|
b: (blockSuffix?: string) => string;
|
|
1135
1136
|
e: (element?: string) => string;
|
|
@@ -1143,6 +1144,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1143
1144
|
key: import("vue").Ref<number>;
|
|
1144
1145
|
handleClose: () => void;
|
|
1145
1146
|
handleAdvancedFilterConfirm: () => void;
|
|
1147
|
+
handleChange: (val: Record<string, any>) => void;
|
|
1146
1148
|
readonly LlForm: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
1147
1149
|
readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
1148
1150
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
@@ -2505,7 +2507,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2505
2507
|
}>>;
|
|
2506
2508
|
readonly formColumns: any[];
|
|
2507
2509
|
readonly formData: import("ll-plus/es/components").FormData;
|
|
2510
|
+
readonly onChange?: ((value: import("ll-plus/es/components").FormData) => any) | undefined;
|
|
2508
2511
|
} & {}>;
|
|
2512
|
+
emits: (event: "change", value: import("ll-plus/es/components").FormData) => void;
|
|
2509
2513
|
bem: {
|
|
2510
2514
|
b: (blockSuffix?: string) => string;
|
|
2511
2515
|
e: (element?: string) => string;
|
|
@@ -2566,7 +2570,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2566
2570
|
readonly formData: import("ll-plus/es/components").FormData;
|
|
2567
2571
|
readonly item: any;
|
|
2568
2572
|
}, {}>;
|
|
2569
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2573
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2574
|
+
change: (value: import("ll-plus/es/components").FormData) => boolean;
|
|
2575
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2570
2576
|
readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
2571
2577
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
2572
2578
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -3652,7 +3658,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3652
3658
|
gutter: number;
|
|
3653
3659
|
}, boolean>;
|
|
3654
3660
|
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
3655
|
-
}
|
|
3661
|
+
}>> & {
|
|
3662
|
+
onChange?: ((value: import("ll-plus/es/components").FormData) => any) | undefined;
|
|
3663
|
+
}, {
|
|
3656
3664
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
3657
3665
|
layout: import("vue-types").VueTypeDef<string>;
|
|
3658
3666
|
labelCol: {
|
|
@@ -3931,6 +3939,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3931
3939
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3932
3940
|
close: () => boolean;
|
|
3933
3941
|
confirm: () => boolean;
|
|
3942
|
+
changeValue: (value: Record<string, any>) => boolean;
|
|
3934
3943
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
3935
3944
|
readonly filterColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
3936
3945
|
readonly value: import("ll-plus/es/utils").EpPropFinalized<ObjectConstructor, unknown, unknown, () => {}, boolean>;
|
|
@@ -4833,6 +4842,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4833
4842
|
}>> & {
|
|
4834
4843
|
onClose?: (() => any) | undefined;
|
|
4835
4844
|
onConfirm?: (() => any) | undefined;
|
|
4845
|
+
onChangeValue?: ((value: Record<string, any>) => any) | undefined;
|
|
4836
4846
|
}, {
|
|
4837
4847
|
readonly filterColumns: any[];
|
|
4838
4848
|
readonly value: Record<string, any>;
|
|
@@ -32,6 +32,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
32
|
const handleAdvancedFilterConfirm = () => {
|
|
33
33
|
emits("confirm");
|
|
34
34
|
};
|
|
35
|
+
const handleChange = (val) => {
|
|
36
|
+
emits("changeValue", val);
|
|
37
|
+
};
|
|
35
38
|
watch(
|
|
36
39
|
() => props.value,
|
|
37
40
|
() => {
|
|
@@ -68,7 +71,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
68
71
|
key: key.value,
|
|
69
72
|
"form-columns": props.filterColumns,
|
|
70
73
|
"form-options": props.formOptions,
|
|
71
|
-
"form-data": props.value
|
|
74
|
+
"form-data": props.value,
|
|
75
|
+
onChange: handleChange
|
|
72
76
|
}, null, 8, ["form-columns", "form-options", "form-data"])) : (openBlock(), createElementBlock(
|
|
73
77
|
"div",
|
|
74
78
|
{
|
package/es/components/advanced-filtering/src/components/advanced-filtering-params.vue2.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advanced-filtering-params.vue2.mjs","sources":["../../../../../../packages/components/advanced-filtering/src/components/advanced-filtering-params.vue"],"sourcesContent":["<template>\n <a-card\n title=\"高级筛选\"\n :class=\"bem.b()\"\n onselectstart=\"return false\"\n :bordered=\"false\"\n >\n <template #extra>\n <ll-icon\n icon-name=\"icon-close2\"\n :style=\"{\n cursor: 'pointer'\n }\"\n @click=\"handleClose\"\n />\n </template>\n <div :class=\"bem.m('content')\">\n <ll-form\n v-if=\"props.filterColumns.length > 0\"\n :key=\"key\"\n :form-columns=\"props.filterColumns\"\n :form-options=\"props.formOptions\"\n :form-data=\"props.value\"\n />\n <div v-else :class=\"bem.m('empty')\">\n <p>暂无数据</p>\n </div>\n </div>\n <div v-if=\"props.showFooter\" :class=\"bem.m('footer')\">\n <ll-button\n type=\"primary\"\n style=\"margin-right: 8px\"\n @click=\"handleAdvancedFilterConfirm\"\n >\n 确定\n </ll-button>\n <ll-button @click=\"handleClose\">取消</ll-button>\n </div>\n </a-card>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, watch } from 'vue'\nimport { createNamespace } from '@ll-plus/utils'\nimport { LlForm } from '@ll-plus/components'\nimport {\n advancedFilteringParamsProps,\n advancedFilteringParamsEmits\n} from '../advanced-filtering'\n\ndefineOptions({ name: 'LlAdvancedFilteringParams' })\n\nconst props = defineProps(advancedFilteringParamsProps)\n\nconst emits = defineEmits(advancedFilteringParamsEmits)\n\nconst bem = createNamespace('advanced-filtering-params')\n\nconst key = ref(0)\n\nconst handleClose = () => {\n emits('close')\n}\nconst handleAdvancedFilterConfirm = () => {\n emits('confirm')\n}\n\nwatch(\n () => props.value,\n () => {\n key.value++\n }\n)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"advanced-filtering-params.vue2.mjs","sources":["../../../../../../packages/components/advanced-filtering/src/components/advanced-filtering-params.vue"],"sourcesContent":["<template>\n <a-card\n title=\"高级筛选\"\n :class=\"bem.b()\"\n onselectstart=\"return false\"\n :bordered=\"false\"\n >\n <template #extra>\n <ll-icon\n icon-name=\"icon-close2\"\n :style=\"{\n cursor: 'pointer'\n }\"\n @click=\"handleClose\"\n />\n </template>\n <div :class=\"bem.m('content')\">\n <ll-form\n v-if=\"props.filterColumns.length > 0\"\n :key=\"key\"\n :form-columns=\"props.filterColumns\"\n :form-options=\"props.formOptions\"\n :form-data=\"props.value\"\n @change=\"handleChange\"\n />\n <div v-else :class=\"bem.m('empty')\">\n <p>暂无数据</p>\n </div>\n </div>\n <div v-if=\"props.showFooter\" :class=\"bem.m('footer')\">\n <ll-button\n type=\"primary\"\n style=\"margin-right: 8px\"\n @click=\"handleAdvancedFilterConfirm\"\n >\n 确定\n </ll-button>\n <ll-button @click=\"handleClose\">取消</ll-button>\n </div>\n </a-card>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, watch } from 'vue'\nimport { createNamespace } from '@ll-plus/utils'\nimport { LlForm } from '@ll-plus/components'\nimport {\n advancedFilteringParamsProps,\n advancedFilteringParamsEmits\n} from '../advanced-filtering'\n\ndefineOptions({ name: 'LlAdvancedFilteringParams' })\n\nconst props = defineProps(advancedFilteringParamsProps)\n\nconst emits = defineEmits(advancedFilteringParamsEmits)\n\nconst bem = createNamespace('advanced-filtering-params')\n\nconst key = ref(0)\n\nconst handleClose = () => {\n emits('close')\n}\nconst handleAdvancedFilterConfirm = () => {\n emits('confirm')\n}\n\nconst handleChange = (val: Record<string, any>) => {\n emits('changeValue', val)\n}\n\nwatch(\n () => props.value,\n () => {\n key.value++\n }\n)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAqDA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAEd,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AAEd,IAAM,MAAA,GAAA,GAAM,gBAAgB,2BAA2B,CAAA,CAAA;AAEvD,IAAM,MAAA,GAAA,GAAM,IAAI,CAAC,CAAA,CAAA;AAEjB,IAAA,MAAM,cAAc,MAAM;AACxB,MAAA,KAAA,CAAM,OAAO,CAAA,CAAA;AAAA,KACf,CAAA;AACA,IAAA,MAAM,8BAA8B,MAAM;AACxC,MAAA,KAAA,CAAM,SAAS,CAAA,CAAA;AAAA,KACjB,CAAA;AAEA,IAAM,MAAA,YAAA,GAAe,CAAC,GAA6B,KAAA;AACjD,MAAA,KAAA,CAAM,eAAe,GAAG,CAAA,CAAA;AAAA,KAC1B,CAAA;AAEA,IAAA,KAAA;AAAA,MACE,MAAM,KAAM,CAAA,KAAA;AAAA,MACZ,MAAM;AACJ,QAAI,GAAA,CAAA,KAAA,EAAA,CAAA;AAAA,OACN;AAAA,KACF,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -41,8 +41,8 @@ export declare const LlDrawer: import("ll-plus/es/utils").SFCWithInstall<import(
|
|
|
41
41
|
bem: (blockSuffix: string, element: string, modifier: string) => string;
|
|
42
42
|
is: (name?: string) => string;
|
|
43
43
|
};
|
|
44
|
-
content: import("vue").Ref<HTMLElement | undefined>;
|
|
45
44
|
hasScroll: import("vue").Ref<boolean>;
|
|
45
|
+
scrollTop: import("vue").Ref<number>;
|
|
46
46
|
symbolClass: import("vue").Ref<string>;
|
|
47
47
|
symbolComparedClass: import("vue").Ref<string>;
|
|
48
48
|
getBindValue: import("vue").ComputedRef<{
|
|
@@ -56,6 +56,7 @@ export declare const LlDrawer: import("ll-plus/es/utils").SFCWithInstall<import(
|
|
|
56
56
|
handleCancel: () => void;
|
|
57
57
|
handleConfirm: () => void;
|
|
58
58
|
handleResize: (value: boolean) => Promise<void>;
|
|
59
|
+
onScrollTop: () => Promise<void>;
|
|
59
60
|
readonly Drawer: {
|
|
60
61
|
new (...args: any[]): import("@vue/runtime-core").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
61
62
|
autofocus: {
|
|
@@ -89,12 +89,14 @@ export declare const LlSecondConfirmation: import("ll-plus/es/utils").SFCWithIns
|
|
|
89
89
|
};
|
|
90
90
|
modal: import("vue").Ref<HTMLElement | undefined>;
|
|
91
91
|
hasScroll: import("vue").Ref<boolean>;
|
|
92
|
+
scrollTop: import("vue").Ref<number>;
|
|
92
93
|
symbolClass: import("vue").Ref<string>;
|
|
93
94
|
symbolComparedClass: import("vue").Ref<string>;
|
|
94
95
|
getBindValue: import("vue").ComputedRef<import("ll-plus/es/index").IResultType>;
|
|
95
96
|
handleCancel: () => void;
|
|
96
97
|
handleOk: () => void;
|
|
97
98
|
handleResize: (value: boolean) => Promise<void>;
|
|
99
|
+
onScrollTop: () => Promise<void>;
|
|
98
100
|
readonly Modal: {
|
|
99
101
|
new (...args: any[]): import("@vue/runtime-core").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
100
102
|
prefixCls: StringConstructor;
|
package/es/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts
CHANGED
|
@@ -88,12 +88,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
88
88
|
};
|
|
89
89
|
modal: import("vue").Ref<HTMLElement | undefined>;
|
|
90
90
|
hasScroll: import("vue").Ref<boolean>;
|
|
91
|
+
scrollTop: import("vue").Ref<number>;
|
|
91
92
|
symbolClass: import("vue").Ref<string>;
|
|
92
93
|
symbolComparedClass: import("vue").Ref<string>;
|
|
93
94
|
getBindValue: import("vue").ComputedRef<import("ll-plus/es/components").IResultType>;
|
|
94
95
|
handleCancel: () => void;
|
|
95
96
|
handleOk: () => void;
|
|
96
97
|
handleResize: (value: boolean) => Promise<void>;
|
|
98
|
+
onScrollTop: () => Promise<void>;
|
|
97
99
|
readonly Modal: {
|
|
98
100
|
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
99
101
|
prefixCls: StringConstructor;
|
|
@@ -40,8 +40,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
40
|
bem: (blockSuffix: string, element: string, modifier: string) => string;
|
|
41
41
|
is: (name?: string) => string;
|
|
42
42
|
};
|
|
43
|
-
content: import("vue").Ref<HTMLElement | undefined>;
|
|
44
43
|
hasScroll: import("vue").Ref<boolean>;
|
|
44
|
+
scrollTop: import("vue").Ref<number>;
|
|
45
45
|
symbolClass: import("vue").Ref<string>;
|
|
46
46
|
symbolComparedClass: import("vue").Ref<string>;
|
|
47
47
|
getBindValue: import("vue").ComputedRef<{
|
|
@@ -55,6 +55,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
55
55
|
handleCancel: () => void;
|
|
56
56
|
handleConfirm: () => void;
|
|
57
57
|
handleResize: (value: boolean) => Promise<void>;
|
|
58
|
+
onScrollTop: () => Promise<void>;
|
|
58
59
|
readonly Drawer: {
|
|
59
60
|
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
60
61
|
autofocus: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, useAttrs, ref, computed, nextTick, watch, resolveComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot, createElementVNode, normalizeClass,
|
|
1
|
+
import { defineComponent, useAttrs, ref, computed, nextTick, watch, resolveComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot, createElementVNode, normalizeClass, createElementBlock, createCommentVNode, createVNode } from 'vue';
|
|
2
2
|
import { Drawer } from 'ant-design-vue';
|
|
3
3
|
import '../../../utils/index.mjs';
|
|
4
4
|
import { omit } from 'lodash-es';
|
|
@@ -13,13 +13,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
__name: "drawer",
|
|
14
14
|
props: drawerProps,
|
|
15
15
|
emits: drawerEmits,
|
|
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("drawer");
|
|
21
|
-
const content = ref();
|
|
22
21
|
const hasScroll = ref(false);
|
|
22
|
+
const scrollTop = ref(0);
|
|
23
23
|
const symbolClass = ref(`ll-darwer-${(/* @__PURE__ */ new Date()).getTime()}`);
|
|
24
24
|
const symbolComparedClass = ref(`model-content-${(/* @__PURE__ */ new Date()).getTime()}`);
|
|
25
25
|
const getBindValue = computed(() => ({
|
|
@@ -60,20 +60,35 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
60
60
|
const { clientHeight } = entries[0].target;
|
|
61
61
|
const scrollHeight = ele.clientHeight;
|
|
62
62
|
hasScroll.value = clientHeight > scrollHeight;
|
|
63
|
-
console.log(clientHeight, scrollHeight, hasScroll.value);
|
|
64
63
|
});
|
|
65
64
|
if (value) {
|
|
66
65
|
resizeObserver.observe(modalBody);
|
|
66
|
+
ele.addEventListener("scroll", () => {
|
|
67
|
+
scrollTop.value = ele.scrollTop;
|
|
68
|
+
});
|
|
67
69
|
} else {
|
|
68
70
|
resizeObserver.unobserve(modalBody);
|
|
71
|
+
ele.removeEventListener("scroll", () => {
|
|
72
|
+
scrollTop.value = 0;
|
|
73
|
+
});
|
|
69
74
|
}
|
|
70
75
|
};
|
|
76
|
+
const onScrollTop = async () => {
|
|
77
|
+
await nextTick();
|
|
78
|
+
if (!hasScroll.value)
|
|
79
|
+
return;
|
|
80
|
+
const ele = document.getElementsByClassName(symbolClass.value)[0];
|
|
81
|
+
ele.scrollTop = 0;
|
|
82
|
+
};
|
|
71
83
|
watch(
|
|
72
84
|
() => props.open,
|
|
73
85
|
(val) => {
|
|
74
86
|
handleResize(val);
|
|
75
87
|
}
|
|
76
88
|
);
|
|
89
|
+
__expose({
|
|
90
|
+
onScrollTop
|
|
91
|
+
});
|
|
77
92
|
return (_ctx, _cache) => {
|
|
78
93
|
const _component_ll_button = resolveComponent("ll-button");
|
|
79
94
|
return openBlock(), createBlock(unref(Drawer), mergeProps(getBindValue.value, {
|
|
@@ -95,19 +110,38 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
95
110
|
class: normalizeClass([unref(bem).e("container"), hasScroll.value ? unref(bem).is("has-scroll") : ""])
|
|
96
111
|
},
|
|
97
112
|
[
|
|
113
|
+
_ctx.$slots.step ? (openBlock(), createElementBlock(
|
|
114
|
+
"div",
|
|
115
|
+
{
|
|
116
|
+
key: 0,
|
|
117
|
+
class: normalizeClass(unref(bem).e("step"))
|
|
118
|
+
},
|
|
119
|
+
[
|
|
120
|
+
renderSlot(_ctx.$slots, "step")
|
|
121
|
+
],
|
|
122
|
+
2
|
|
123
|
+
/* CLASS */
|
|
124
|
+
)) : createCommentVNode("v-if", true),
|
|
98
125
|
createElementVNode(
|
|
99
126
|
"div",
|
|
100
127
|
{
|
|
101
|
-
ref_key: "content",
|
|
102
|
-
ref: content,
|
|
103
128
|
class: normalizeClass([unref(bem).e("content"), symbolClass.value])
|
|
104
129
|
},
|
|
105
130
|
[
|
|
106
|
-
|
|
131
|
+
hasScroll.value && scrollTop.value > 0 ? (openBlock(), createElementBlock(
|
|
132
|
+
"div",
|
|
133
|
+
{
|
|
134
|
+
key: 0,
|
|
135
|
+
class: normalizeClass(unref(bem).e("shadow"))
|
|
136
|
+
},
|
|
137
|
+
null,
|
|
138
|
+
2
|
|
139
|
+
/* CLASS */
|
|
140
|
+
)) : createCommentVNode("v-if", true),
|
|
107
141
|
createElementVNode(
|
|
108
142
|
"div",
|
|
109
143
|
{
|
|
110
|
-
class: normalizeClass([symbolComparedClass.value])
|
|
144
|
+
class: normalizeClass([symbolComparedClass.value, unref(bem).e("scroll")])
|
|
111
145
|
},
|
|
112
146
|
[
|
|
113
147
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -122,7 +156,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
122
156
|
props.showFooter ? (openBlock(), createElementBlock(
|
|
123
157
|
"div",
|
|
124
158
|
{
|
|
125
|
-
key:
|
|
159
|
+
key: 1,
|
|
126
160
|
class: normalizeClass([unref(bem).e("footer"), hasScroll.value ? unref(bem).is("has-scroll") : ""])
|
|
127
161
|
},
|
|
128
162
|
[
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.vue2.mjs","sources":["../../../../../packages/components/drawer/src/drawer.vue"],"sourcesContent":["<template>\n <Drawer\n v-bind=\"getBindValue\"\n :title=\"props.title\"\n :open=\"props.open\"\n :root-class-name=\"bem.b()\"\n @close=\"handleClose\"\n >\n <template #title>\n <slot name=\"title\" />\n </template>\n <template #extra>\n <slot name=\"extra\" />\n </template>\n <div :class=\"[bem.e('container'), hasScroll ? bem.is('has-scroll') : '']\">\n <div
|
|
1
|
+
{"version":3,"file":"drawer.vue2.mjs","sources":["../../../../../packages/components/drawer/src/drawer.vue"],"sourcesContent":["<template>\n <Drawer\n v-bind=\"getBindValue\"\n :title=\"props.title\"\n :open=\"props.open\"\n :root-class-name=\"bem.b()\"\n @close=\"handleClose\"\n >\n <template #title>\n <slot name=\"title\" />\n </template>\n <template #extra>\n <slot name=\"extra\" />\n </template>\n <div :class=\"[bem.e('container'), hasScroll ? bem.is('has-scroll') : '']\">\n <div v-if=\"$slots.step\" :class=\"bem.e('step')\">\n <slot name=\"step\" />\n </div>\n <div :class=\"[bem.e('content'), symbolClass]\">\n <div v-if=\"hasScroll && scrollTop > 0\" :class=\"bem.e('shadow')\"></div>\n <div :class=\"[symbolComparedClass, bem.e('scroll')]\">\n <slot />\n </div>\n </div>\n <div\n v-if=\"props.showFooter\"\n :class=\"[bem.e('footer'), hasScroll ? bem.is('has-scroll') : '']\"\n >\n <slot name=\"footer\">\n <div :class=\"bem.e('footer-left')\">\n <slot name=\"footer-left\" />\n </div>\n <div :class=\"bem.e('footer-right')\">\n <slot name=\"footer-right\">\n <ll-button\n v-if=\"showCancel\"\n :class=\"bem.m('cancel')\"\n :label=\"props.cancelText\"\n @click=\"handleCancel\"\n >\n </ll-button>\n <ll-button\n type=\"primary\"\n :loading=\"props.loading\"\n :label=\"props.confirmText\"\n @click=\"handleConfirm\"\n >\n </ll-button>\n </slot>\n </div>\n </slot>\n </div>\n </div>\n </Drawer>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, computed, watch, nextTick, useAttrs } from 'vue'\nimport { Drawer } from 'ant-design-vue'\nimport { createNamespace } from '@ll-plus/utils'\nimport { omit } from 'lodash-es'\nimport { drawerProps, drawerEmits, drawerOptions } from './drawer'\nimport { useSecondConfirmation } from './components/second-confirmation'\n\ndefineOptions({ name: 'LlDrawer' })\n\nconst props = defineProps(drawerProps)\n\nconst emits = defineEmits(drawerEmits)\n\nconst attrs = useAttrs()\n\nconst bem = createNamespace('drawer')\n\nconst hasScroll = ref(false)\n\nconst scrollTop = ref(0)\n\nconst symbolClass = ref(`ll-darwer-${new Date().getTime()}`)\n\nconst symbolComparedClass = ref(`model-content-${new Date().getTime()}`)\n\nconst getBindValue = computed(() => ({\n ...drawerOptions,\n ...omit({ ...attrs }, [...Object.keys(drawerProps), 'rootClassName'])\n}))\n\nconst handleClose = (): void => {\n if (props.useClose) {\n emits('close')\n } else {\n handleCancel()\n return\n }\n emits('update:open')\n}\nconst handleCancel = (): void => {\n if (props.cancelConfirm) {\n useSecondConfirmation(\n props.cancelConfirmOptions || {\n title: '温馨提示',\n message: '你有未保存的更改,确定关闭?'\n }\n ).then(async () => {\n // 点击保存按钮则关闭弹窗和抽屉\n emits('cancel')\n })\n return\n }\n emits('cancel')\n}\nconst handleConfirm = (): void => {\n emits('confirm')\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\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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"}
|
|
@@ -1396,7 +1396,9 @@ export declare const LlForm: import("ll-plus/es/utils").SFCWithInstall<import("v
|
|
|
1396
1396
|
}>>;
|
|
1397
1397
|
readonly formColumns: any[];
|
|
1398
1398
|
readonly formData: import("./src/config").FormData;
|
|
1399
|
+
readonly onChange?: ((value: import("./src/config").FormData) => any) | undefined;
|
|
1399
1400
|
} & {}>;
|
|
1401
|
+
emits: (event: "change", value: import("./src/config").FormData) => void;
|
|
1400
1402
|
bem: {
|
|
1401
1403
|
b: (blockSuffix?: string) => string;
|
|
1402
1404
|
e: (element?: string) => string;
|
|
@@ -1457,7 +1459,9 @@ export declare const LlForm: import("ll-plus/es/utils").SFCWithInstall<import("v
|
|
|
1457
1459
|
readonly formData: import("./src/config").FormData;
|
|
1458
1460
|
readonly item: any;
|
|
1459
1461
|
}, {}>;
|
|
1460
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1462
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1463
|
+
change: (value: import("./src/config").FormData) => boolean;
|
|
1464
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1461
1465
|
readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
1462
1466
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
1463
1467
|
layout: import("vue-types").VueTypeDef<string>;
|
|
@@ -2543,7 +2547,9 @@ export declare const LlForm: import("ll-plus/es/utils").SFCWithInstall<import("v
|
|
|
2543
2547
|
gutter: number;
|
|
2544
2548
|
}, boolean>;
|
|
2545
2549
|
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
2546
|
-
}
|
|
2550
|
+
}>> & {
|
|
2551
|
+
onChange?: ((value: import("./src/config").FormData) => any) | undefined;
|
|
2552
|
+
}, {
|
|
2547
2553
|
readonly formOptions: Partial<import("vue").ExtractPropTypes<{
|
|
2548
2554
|
layout: import("vue-types").VueTypeDef<string>;
|
|
2549
2555
|
labelCol: {
|
|
@@ -3,7 +3,7 @@ import FormComponent from './src/components/form-component.vue.mjs';
|
|
|
3
3
|
import Form from './src/form.vue.mjs';
|
|
4
4
|
import './src/config/index.mjs';
|
|
5
5
|
import { withInstall } from '../../utils/with-install.mjs';
|
|
6
|
-
export { formProps } from './src/config/form.mjs';
|
|
6
|
+
export { formEmits, formProps } from './src/config/form.mjs';
|
|
7
7
|
export { checkedType } from './src/config/components.mjs';
|
|
8
8
|
export { formComponentProps } from './src/config/form-component.mjs';
|
|
9
9
|
|