ll-plus 2.5.21 → 2.6.1
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 +284 -284
- package/es/components/advanced-filtering/src/advanced-filtering.vue.d.ts +142 -142
- package/es/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +142 -142
- package/es/components/breadcrumb-card/index.d.ts +1 -1
- package/es/components/breadcrumb-card/src/breadcrumb-card.vue.d.ts +1 -1
- package/es/components/cascader/index.d.ts +8 -8
- package/es/components/cascader/src/cascader.vue.d.ts +8 -8
- package/es/components/checkbox/index.d.ts +217 -217
- package/es/components/checkbox/src/checkbox-group.vue.d.ts +217 -217
- package/es/components/checkbox/src/checkbox.d.ts +56 -56
- package/es/components/drawer/index.d.ts +5 -5
- package/es/components/drawer/src/components/second-confirmation/index.d.ts +1 -1
- package/es/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +1 -1
- package/es/components/drawer/src/drawer.vue.d.ts +5 -5
- package/es/components/easy-cron/index.d.ts +95 -95
- package/es/components/easy-cron/src/components/easy-cron-inner.vue.d.ts +88 -88
- package/es/components/easy-cron/src/components/easy-cron-modal.vue.d.ts +88 -88
- package/es/components/easy-cron/src/easy-cron.vue.d.ts +95 -95
- package/es/components/form/index.d.ts +142 -142
- package/es/components/form/src/components/form-component.vue.d.ts +1 -1
- package/es/components/form/src/config/form.d.ts +56 -56
- package/es/components/form/src/form.vue.d.ts +141 -141
- package/es/components/input/index.d.ts +33 -33
- package/es/components/input/src/input.vue.d.ts +33 -33
- package/es/components/key-value/index.d.ts +678 -678
- package/es/components/key-value/src/components/key-value-item.vue.d.ts +226 -226
- package/es/components/key-value/src/key-value.vue.d.ts +678 -678
- package/es/components/modal/index.d.ts +1 -1
- package/es/components/modal/src/modal.vue.d.ts +1 -1
- package/es/components/new-drawer/index.d.ts +7 -7
- package/es/components/new-drawer/src/drawer.vue.d.ts +7 -7
- package/es/components/new-modal/index.d.ts +2 -2
- package/es/components/new-modal/src/modal.vue.d.ts +2 -2
- package/es/components/operate-icon/index.d.ts +5 -1
- package/es/components/operate-icon/src/operate-icon.d.ts +1 -0
- package/es/components/operate-icon/src/operate-icon.vue.d.ts +5 -1
- package/es/components/rich-text-editor/index.d.ts +1 -1
- package/es/components/rich-text-editor/src/rich-text-editor.vue.d.ts +1 -1
- package/es/components/select/index.d.ts +4 -4
- package/es/components/select/src/select.vue.d.ts +4 -4
- package/es/components/select-group/index.d.ts +16 -3
- package/es/components/select-group/src/select-group.d.ts +1 -1
- package/es/components/select-group/src/select-group.vue.d.ts +16 -3
- package/es/components/table/index.d.ts +6 -6
- package/es/components/table/src/components/main-table.vue.d.ts +2 -2
- package/es/components/table/src/config/table.d.ts +2 -2
- package/es/components/table/src/table.vue.d.ts +6 -6
- package/es/components/textarea/index.d.ts +5 -5
- package/es/components/textarea/src/textarea.vue.d.ts +5 -5
- package/es/components/tooltip/index.d.ts +4 -4
- package/es/components/tooltip/src/tooltip.d.ts +1 -1
- package/es/components/tooltip/src/tooltip.vue.d.ts +4 -4
- package/es/components/tree-search/index.d.ts +1 -1
- package/es/components/tree-search/src/tree-search.vue.d.ts +1 -1
- package/es/components/upload-drag/index.d.ts +2 -2
- package/es/components/upload-drag/src/upload-drag.vue.d.ts +2 -2
- package/es/packages/components/operate-icon/src/operate-icon.mjs +3 -1
- package/es/packages/components/operate-icon/src/operate-icon.mjs.map +1 -1
- package/es/packages/components/operate-icon/src/operate-icon.vue2.mjs +4 -2
- package/es/packages/components/operate-icon/src/operate-icon.vue2.mjs.map +1 -1
- package/es/packages/components/select-group/src/select-group.vue2.mjs +12 -11
- package/es/packages/components/select-group/src/select-group.vue2.mjs.map +1 -1
- package/index.full.js +19 -14
- package/index.full.min.js +2 -2
- package/index.full.min.js.map +1 -1
- package/index.full.min.mjs +15 -15
- package/index.full.min.mjs.map +1 -1
- package/index.full.mjs +19 -14
- package/lib/components/advanced-filtering/index.d.ts +284 -284
- package/lib/components/advanced-filtering/src/advanced-filtering.vue.d.ts +142 -142
- package/lib/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +142 -142
- package/lib/components/breadcrumb-card/index.d.ts +1 -1
- package/lib/components/breadcrumb-card/src/breadcrumb-card.vue.d.ts +1 -1
- package/lib/components/cascader/index.d.ts +8 -8
- package/lib/components/cascader/src/cascader.vue.d.ts +8 -8
- package/lib/components/checkbox/index.d.ts +217 -217
- package/lib/components/checkbox/src/checkbox-group.vue.d.ts +217 -217
- package/lib/components/checkbox/src/checkbox.d.ts +56 -56
- package/lib/components/drawer/index.d.ts +5 -5
- package/lib/components/drawer/src/components/second-confirmation/index.d.ts +1 -1
- package/lib/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +1 -1
- package/lib/components/drawer/src/drawer.vue.d.ts +5 -5
- package/lib/components/easy-cron/index.d.ts +95 -95
- package/lib/components/easy-cron/src/components/easy-cron-inner.vue.d.ts +88 -88
- package/lib/components/easy-cron/src/components/easy-cron-modal.vue.d.ts +88 -88
- package/lib/components/easy-cron/src/easy-cron.vue.d.ts +95 -95
- package/lib/components/form/index.d.ts +142 -142
- package/lib/components/form/src/components/form-component.vue.d.ts +1 -1
- package/lib/components/form/src/config/form.d.ts +56 -56
- package/lib/components/form/src/form.vue.d.ts +141 -141
- package/lib/components/input/index.d.ts +33 -33
- package/lib/components/input/src/input.vue.d.ts +33 -33
- package/lib/components/key-value/index.d.ts +678 -678
- package/lib/components/key-value/src/components/key-value-item.vue.d.ts +226 -226
- package/lib/components/key-value/src/key-value.vue.d.ts +678 -678
- package/lib/components/modal/index.d.ts +1 -1
- package/lib/components/modal/src/modal.vue.d.ts +1 -1
- package/lib/components/new-drawer/index.d.ts +7 -7
- package/lib/components/new-drawer/src/drawer.vue.d.ts +7 -7
- package/lib/components/new-modal/index.d.ts +2 -2
- package/lib/components/new-modal/src/modal.vue.d.ts +2 -2
- package/lib/components/operate-icon/index.d.ts +5 -1
- package/lib/components/operate-icon/src/operate-icon.d.ts +1 -0
- package/lib/components/operate-icon/src/operate-icon.vue.d.ts +5 -1
- package/lib/components/rich-text-editor/index.d.ts +1 -1
- package/lib/components/rich-text-editor/src/rich-text-editor.vue.d.ts +1 -1
- package/lib/components/select/index.d.ts +4 -4
- package/lib/components/select/src/select.vue.d.ts +4 -4
- package/lib/components/select-group/index.d.ts +16 -3
- package/lib/components/select-group/src/select-group.d.ts +1 -1
- package/lib/components/select-group/src/select-group.vue.d.ts +16 -3
- package/lib/components/table/index.d.ts +6 -6
- package/lib/components/table/src/components/main-table.vue.d.ts +2 -2
- package/lib/components/table/src/config/table.d.ts +2 -2
- package/lib/components/table/src/table.vue.d.ts +6 -6
- package/lib/components/textarea/index.d.ts +5 -5
- package/lib/components/textarea/src/textarea.vue.d.ts +5 -5
- package/lib/components/tooltip/index.d.ts +4 -4
- package/lib/components/tooltip/src/tooltip.d.ts +1 -1
- package/lib/components/tooltip/src/tooltip.vue.d.ts +4 -4
- package/lib/components/tree-search/index.d.ts +1 -1
- package/lib/components/tree-search/src/tree-search.vue.d.ts +1 -1
- package/lib/components/upload-drag/index.d.ts +2 -2
- package/lib/components/upload-drag/src/upload-drag.vue.d.ts +2 -2
- package/lib/packages/components/operate-icon/src/operate-icon.js +3 -1
- package/lib/packages/components/operate-icon/src/operate-icon.js.map +1 -1
- package/lib/packages/components/operate-icon/src/operate-icon.vue2.js +4 -2
- package/lib/packages/components/operate-icon/src/operate-icon.vue2.js.map +1 -1
- package/lib/packages/components/select-group/src/select-group.vue2.js +12 -11
- package/lib/packages/components/select-group/src/select-group.vue2.js.map +1 -1
- package/package.json +1 -1
- package/theme-chalk/css/form.css +1 -1
- package/theme-chalk/css/index.css +1 -1
- package/types/packages/components/advanced-filtering/index.d.ts +284 -284
- package/types/packages/components/advanced-filtering/src/advanced-filtering.vue.d.ts +142 -142
- package/types/packages/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +142 -142
- package/types/packages/components/breadcrumb-card/index.d.ts +1 -1
- package/types/packages/components/breadcrumb-card/src/breadcrumb-card.vue.d.ts +1 -1
- package/types/packages/components/cascader/index.d.ts +8 -8
- package/types/packages/components/cascader/src/cascader.vue.d.ts +8 -8
- package/types/packages/components/checkbox/index.d.ts +217 -217
- package/types/packages/components/checkbox/src/checkbox-group.vue.d.ts +217 -217
- package/types/packages/components/checkbox/src/checkbox.d.ts +56 -56
- package/types/packages/components/drawer/index.d.ts +5 -5
- package/types/packages/components/drawer/src/components/second-confirmation/index.d.ts +1 -1
- package/types/packages/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +1 -1
- package/types/packages/components/drawer/src/drawer.vue.d.ts +5 -5
- package/types/packages/components/easy-cron/index.d.ts +95 -95
- package/types/packages/components/easy-cron/src/components/easy-cron-inner.vue.d.ts +88 -88
- package/types/packages/components/easy-cron/src/components/easy-cron-modal.vue.d.ts +88 -88
- package/types/packages/components/easy-cron/src/easy-cron.vue.d.ts +95 -95
- package/types/packages/components/form/index.d.ts +142 -142
- package/types/packages/components/form/src/components/form-component.vue.d.ts +1 -1
- package/types/packages/components/form/src/config/form.d.ts +56 -56
- package/types/packages/components/form/src/form.vue.d.ts +141 -141
- package/types/packages/components/input/index.d.ts +33 -33
- package/types/packages/components/input/src/input.vue.d.ts +33 -33
- package/types/packages/components/key-value/index.d.ts +678 -678
- package/types/packages/components/key-value/src/components/key-value-item.vue.d.ts +226 -226
- package/types/packages/components/key-value/src/key-value.vue.d.ts +678 -678
- package/types/packages/components/modal/index.d.ts +1 -1
- package/types/packages/components/modal/src/modal.vue.d.ts +1 -1
- package/types/packages/components/new-drawer/index.d.ts +7 -7
- package/types/packages/components/new-drawer/src/drawer.vue.d.ts +7 -7
- package/types/packages/components/new-modal/index.d.ts +2 -2
- package/types/packages/components/new-modal/src/modal.vue.d.ts +2 -2
- package/types/packages/components/operate-icon/index.d.ts +5 -1
- package/types/packages/components/operate-icon/src/operate-icon.d.ts +1 -0
- package/types/packages/components/operate-icon/src/operate-icon.vue.d.ts +5 -1
- package/types/packages/components/rich-text-editor/index.d.ts +1 -1
- package/types/packages/components/rich-text-editor/src/rich-text-editor.vue.d.ts +1 -1
- package/types/packages/components/select/index.d.ts +4 -4
- package/types/packages/components/select/src/select.vue.d.ts +4 -4
- package/types/packages/components/select-group/index.d.ts +16 -3
- package/types/packages/components/select-group/src/select-group.d.ts +1 -1
- package/types/packages/components/select-group/src/select-group.vue.d.ts +16 -3
- package/types/packages/components/table/index.d.ts +6 -6
- package/types/packages/components/table/src/components/main-table.vue.d.ts +2 -2
- package/types/packages/components/table/src/config/table.d.ts +2 -2
- package/types/packages/components/table/src/table.vue.d.ts +6 -6
- package/types/packages/components/textarea/index.d.ts +5 -5
- package/types/packages/components/textarea/src/textarea.vue.d.ts +5 -5
- package/types/packages/components/tooltip/index.d.ts +4 -4
- package/types/packages/components/tooltip/src/tooltip.d.ts +1 -1
- package/types/packages/components/tooltip/src/tooltip.vue.d.ts +4 -4
- package/types/packages/components/tree-search/index.d.ts +1 -1
- package/types/packages/components/tree-search/src/tree-search.vue.d.ts +1 -1
- package/types/packages/components/upload-drag/index.d.ts +2 -2
- package/types/packages/components/upload-drag/src/upload-drag.vue.d.ts +2 -2
|
@@ -9,10 +9,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
9
|
readonly menuSwitchOptions: import("./config").IMenuSwitchOptions;
|
|
10
10
|
} & {}) | (() => import("./config").TableHeaderSearchProps))[], unknown, unknown, () => import("ll-plus/es/utils").Mutable<{}>, boolean>;
|
|
11
11
|
readonly tableProps: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => {
|
|
12
|
-
readonly scroll: any;
|
|
13
12
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
14
13
|
readonly dataSource: any[];
|
|
15
14
|
readonly contentType: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "card" | "table", unknown>;
|
|
15
|
+
readonly scroll: any;
|
|
16
16
|
readonly operateWidth: number;
|
|
17
17
|
readonly settingKey: string;
|
|
18
18
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -29,10 +29,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
29
|
readonly resizeColumn?: Function | undefined;
|
|
30
30
|
readonly dragChange?: Function | undefined;
|
|
31
31
|
}) | (() => import("./config").MainTableProps) | ((new (...args: any[]) => {
|
|
32
|
-
readonly scroll: any;
|
|
33
32
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
34
33
|
readonly dataSource: any[];
|
|
35
34
|
readonly contentType: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "card" | "table", unknown>;
|
|
35
|
+
readonly scroll: any;
|
|
36
36
|
readonly operateWidth: number;
|
|
37
37
|
readonly settingKey: string;
|
|
38
38
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -271,10 +271,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
271
271
|
};
|
|
272
272
|
}, {
|
|
273
273
|
props: import("@vue/shared").LooseRequired<{
|
|
274
|
-
readonly scroll: any;
|
|
275
274
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
276
275
|
readonly dataSource: any[];
|
|
277
276
|
readonly contentType: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "card" | "table", unknown>;
|
|
277
|
+
readonly scroll: any;
|
|
278
278
|
readonly operateWidth: number;
|
|
279
279
|
readonly settingKey: string;
|
|
280
280
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -478,10 +478,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
478
478
|
}>> & {
|
|
479
479
|
onHandleChangeDataSource?: ((dataSource: any[]) => any) | undefined;
|
|
480
480
|
}, {
|
|
481
|
-
readonly scroll: any;
|
|
482
481
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
483
482
|
readonly dataSource: any[];
|
|
484
483
|
readonly contentType: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "card" | "table", unknown>;
|
|
484
|
+
readonly scroll: any;
|
|
485
485
|
readonly operateWidth: number;
|
|
486
486
|
readonly settingKey: string;
|
|
487
487
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -573,10 +573,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
573
573
|
readonly menuSwitchOptions: import("./config").IMenuSwitchOptions;
|
|
574
574
|
} & {}) | (() => import("./config").TableHeaderSearchProps))[], unknown, unknown, () => import("ll-plus/es/utils").Mutable<{}>, boolean>;
|
|
575
575
|
readonly tableProps: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => {
|
|
576
|
-
readonly scroll: any;
|
|
577
576
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
578
577
|
readonly dataSource: any[];
|
|
579
578
|
readonly contentType: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "card" | "table", unknown>;
|
|
579
|
+
readonly scroll: any;
|
|
580
580
|
readonly operateWidth: number;
|
|
581
581
|
readonly settingKey: string;
|
|
582
582
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -593,10 +593,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
593
593
|
readonly resizeColumn?: Function | undefined;
|
|
594
594
|
readonly dragChange?: Function | undefined;
|
|
595
595
|
}) | (() => import("./config").MainTableProps) | ((new (...args: any[]) => {
|
|
596
|
-
readonly scroll: any;
|
|
597
596
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
598
597
|
readonly dataSource: any[];
|
|
599
598
|
readonly contentType: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "card" | "table", unknown>;
|
|
599
|
+
readonly scroll: any;
|
|
600
600
|
readonly operateWidth: number;
|
|
601
601
|
readonly settingKey: string;
|
|
602
602
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -45,8 +45,8 @@ export declare const LlTextarea: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
45
45
|
};
|
|
46
46
|
name: StringConstructor;
|
|
47
47
|
type: {
|
|
48
|
-
type: import("vue").PropType<"number" | "month" | "
|
|
49
|
-
default: "number" | "month" | "
|
|
48
|
+
type: import("vue").PropType<"number" | "month" | "color" | "hidden" | "search" | "date" | "url" | "email" | "time" | "week" | "text" | "submit" | "button" | "reset" | "checkbox" | "radio" | "image" | "range" | "datetime-local" | "file" | "password" | "tel">;
|
|
49
|
+
default: "number" | "month" | "color" | "hidden" | "search" | "date" | "url" | "email" | "time" | "week" | "text" | "submit" | "button" | "reset" | "checkbox" | "radio" | "image" | "range" | "datetime-local" | "file" | "password" | "tel";
|
|
50
50
|
};
|
|
51
51
|
onFocus: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").FocusEventHandler>;
|
|
52
52
|
onBlur: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").FocusEventHandler>;
|
|
@@ -144,8 +144,8 @@ export declare const LlTextarea: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
144
144
|
};
|
|
145
145
|
name: StringConstructor;
|
|
146
146
|
type: {
|
|
147
|
-
type: import("vue").PropType<"number" | "month" | "
|
|
148
|
-
default: "number" | "month" | "
|
|
147
|
+
type: import("vue").PropType<"number" | "month" | "color" | "hidden" | "search" | "date" | "url" | "email" | "time" | "week" | "text" | "submit" | "button" | "reset" | "checkbox" | "radio" | "image" | "range" | "datetime-local" | "file" | "password" | "tel">;
|
|
148
|
+
default: "number" | "month" | "color" | "hidden" | "search" | "date" | "url" | "email" | "time" | "week" | "text" | "submit" | "button" | "reset" | "checkbox" | "radio" | "image" | "range" | "datetime-local" | "file" | "password" | "tel";
|
|
149
149
|
};
|
|
150
150
|
onFocus: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").FocusEventHandler>;
|
|
151
151
|
onBlur: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").FocusEventHandler>;
|
|
@@ -213,7 +213,7 @@ export declare const LlTextarea: import("ll-plus/es/utils").SFCWithInstall<impor
|
|
|
213
213
|
};
|
|
214
214
|
}>>, {
|
|
215
215
|
value: string | number;
|
|
216
|
-
type: "number" | "month" | "
|
|
216
|
+
type: "number" | "month" | "color" | "hidden" | "search" | "date" | "url" | "email" | "time" | "week" | "text" | "submit" | "button" | "reset" | "checkbox" | "radio" | "image" | "range" | "datetime-local" | "file" | "password" | "tel";
|
|
217
217
|
focused: boolean;
|
|
218
218
|
hidden: boolean;
|
|
219
219
|
disabled: boolean;
|
|
@@ -44,8 +44,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
44
44
|
};
|
|
45
45
|
name: StringConstructor;
|
|
46
46
|
type: {
|
|
47
|
-
type: import("vue").PropType<"number" | "month" | "
|
|
48
|
-
default: "number" | "month" | "
|
|
47
|
+
type: import("vue").PropType<"number" | "month" | "color" | "hidden" | "search" | "date" | "url" | "email" | "time" | "week" | "text" | "submit" | "button" | "reset" | "checkbox" | "radio" | "image" | "range" | "datetime-local" | "file" | "password" | "tel">;
|
|
48
|
+
default: "number" | "month" | "color" | "hidden" | "search" | "date" | "url" | "email" | "time" | "week" | "text" | "submit" | "button" | "reset" | "checkbox" | "radio" | "image" | "range" | "datetime-local" | "file" | "password" | "tel";
|
|
49
49
|
};
|
|
50
50
|
onFocus: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").FocusEventHandler>;
|
|
51
51
|
onBlur: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").FocusEventHandler>;
|
|
@@ -143,8 +143,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
143
143
|
};
|
|
144
144
|
name: StringConstructor;
|
|
145
145
|
type: {
|
|
146
|
-
type: import("vue").PropType<"number" | "month" | "
|
|
147
|
-
default: "number" | "month" | "
|
|
146
|
+
type: import("vue").PropType<"number" | "month" | "color" | "hidden" | "search" | "date" | "url" | "email" | "time" | "week" | "text" | "submit" | "button" | "reset" | "checkbox" | "radio" | "image" | "range" | "datetime-local" | "file" | "password" | "tel">;
|
|
147
|
+
default: "number" | "month" | "color" | "hidden" | "search" | "date" | "url" | "email" | "time" | "week" | "text" | "submit" | "button" | "reset" | "checkbox" | "radio" | "image" | "range" | "datetime-local" | "file" | "password" | "tel";
|
|
148
148
|
};
|
|
149
149
|
onFocus: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").FocusEventHandler>;
|
|
150
150
|
onBlur: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").FocusEventHandler>;
|
|
@@ -212,7 +212,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
212
212
|
};
|
|
213
213
|
}>>, {
|
|
214
214
|
value: string | number;
|
|
215
|
-
type: "number" | "month" | "
|
|
215
|
+
type: "number" | "month" | "color" | "hidden" | "search" | "date" | "url" | "email" | "time" | "week" | "text" | "submit" | "button" | "reset" | "checkbox" | "radio" | "image" | "range" | "datetime-local" | "file" | "password" | "tel";
|
|
216
216
|
focused: boolean;
|
|
217
217
|
hidden: boolean;
|
|
218
218
|
disabled: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Tooltip from './src/tooltip.vue';
|
|
2
2
|
export declare const LlTooltip: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
3
3
|
readonly tip: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "提示", boolean>;
|
|
4
|
-
readonly placement: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
4
|
+
readonly placement: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom", unknown, "top", boolean>;
|
|
5
5
|
readonly maxWidth: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
|
|
6
6
|
readonly tipEllipsis: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
7
7
|
readonly tipEllipsisLine: import("ll-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
|
|
@@ -21,7 +21,7 @@ export declare const LlTooltip: import("ll-plus/es/utils").SFCWithInstall<import
|
|
|
21
21
|
readonly width: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
|
|
22
22
|
}, {
|
|
23
23
|
props: import("@vue/shared").LooseRequired<{
|
|
24
|
-
readonly placement: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "
|
|
24
|
+
readonly placement: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom", unknown>;
|
|
25
25
|
readonly maxWidth: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>;
|
|
26
26
|
readonly width: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>;
|
|
27
27
|
readonly tip: string;
|
|
@@ -65,7 +65,7 @@ export declare const LlTooltip: import("ll-plus/es/utils").SFCWithInstall<import
|
|
|
65
65
|
}>;
|
|
66
66
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
67
67
|
readonly tip: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "提示", boolean>;
|
|
68
|
-
readonly placement: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
68
|
+
readonly placement: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom", unknown, "top", boolean>;
|
|
69
69
|
readonly maxWidth: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
|
|
70
70
|
readonly tipEllipsis: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
71
71
|
readonly tipEllipsisLine: import("ll-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
|
|
@@ -84,7 +84,7 @@ export declare const LlTooltip: import("ll-plus/es/utils").SFCWithInstall<import
|
|
|
84
84
|
readonly ellipsis: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
85
85
|
readonly width: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
|
|
86
86
|
}>>, {
|
|
87
|
-
readonly placement: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "
|
|
87
|
+
readonly placement: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom", unknown>;
|
|
88
88
|
readonly maxWidth: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>;
|
|
89
89
|
readonly width: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>;
|
|
90
90
|
readonly tip: string;
|
|
@@ -3,7 +3,7 @@ import type Tooltip from './tooltip.vue';
|
|
|
3
3
|
export declare const placement: readonly ["top", "left", "right", "bottom", "topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"];
|
|
4
4
|
export declare const tooltipProps: {
|
|
5
5
|
readonly tip: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "提示", boolean>;
|
|
6
|
-
readonly placement: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
6
|
+
readonly placement: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom", unknown, "top", boolean>;
|
|
7
7
|
readonly maxWidth: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
|
|
8
8
|
readonly tipEllipsis: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
9
9
|
readonly tipEllipsisLine: import("ll-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
readonly tip: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "提示", boolean>;
|
|
3
|
-
readonly placement: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
3
|
+
readonly placement: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom", unknown, "top", boolean>;
|
|
4
4
|
readonly maxWidth: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
|
|
5
5
|
readonly tipEllipsis: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
6
6
|
readonly tipEllipsisLine: import("ll-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
|
|
@@ -20,7 +20,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
readonly width: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
|
|
21
21
|
}, {
|
|
22
22
|
props: import("@vue/shared").LooseRequired<{
|
|
23
|
-
readonly placement: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "
|
|
23
|
+
readonly placement: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom", unknown>;
|
|
24
24
|
readonly maxWidth: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>;
|
|
25
25
|
readonly width: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>;
|
|
26
26
|
readonly tip: string;
|
|
@@ -64,7 +64,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
64
64
|
}>;
|
|
65
65
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
66
66
|
readonly tip: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "提示", boolean>;
|
|
67
|
-
readonly placement: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
67
|
+
readonly placement: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom", unknown, "top", boolean>;
|
|
68
68
|
readonly maxWidth: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
|
|
69
69
|
readonly tipEllipsis: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
70
70
|
readonly tipEllipsisLine: import("ll-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
|
|
@@ -83,7 +83,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
83
83
|
readonly ellipsis: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
84
84
|
readonly width: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
|
|
85
85
|
}>>, {
|
|
86
|
-
readonly placement: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "
|
|
86
|
+
readonly placement: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "left" | "right" | "top" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom", unknown>;
|
|
87
87
|
readonly maxWidth: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>;
|
|
88
88
|
readonly width: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>;
|
|
89
89
|
readonly tip: string;
|
|
@@ -103,7 +103,7 @@ export declare const LlTreeSearch: import("ll-plus/es/utils").SFCWithInstall<imp
|
|
|
103
103
|
readonly onCancel?: (() => any) | undefined;
|
|
104
104
|
readonly onClickAdd?: (() => any) | undefined;
|
|
105
105
|
} & {}>;
|
|
106
|
-
emits: ((event: "
|
|
106
|
+
emits: ((event: "close") => void) & ((event: "select", selectedKeys: string[], e: Event) => void) & ((event: "ok") => void) & ((event: "cancel") => void) & ((event: "expand", expandedKeys: string[], data: any) => void) & ((event: "clickAdd") => void);
|
|
107
107
|
isCollapseMenu: import("vue").Ref<boolean>;
|
|
108
108
|
newExpandedKeys: import("vue").Ref<string[]>;
|
|
109
109
|
bem: {
|
|
@@ -102,7 +102,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
102
102
|
readonly onCancel?: (() => any) | undefined;
|
|
103
103
|
readonly onClickAdd?: (() => any) | undefined;
|
|
104
104
|
} & {}>;
|
|
105
|
-
emits: ((event: "
|
|
105
|
+
emits: ((event: "close") => void) & ((event: "select", selectedKeys: string[], e: Event) => void) & ((event: "ok") => void) & ((event: "cancel") => void) & ((event: "expand", expandedKeys: string[], data: any) => void) & ((event: "clickAdd") => void);
|
|
106
106
|
isCollapseMenu: import("vue").Ref<boolean>;
|
|
107
107
|
newExpandedKeys: import("vue").Ref<string[]>;
|
|
108
108
|
bem: {
|
|
@@ -39,7 +39,7 @@ export declare const LlUploadDrag: import("ll-plus/es/utils").SFCWithInstall<imp
|
|
|
39
39
|
readonly onCancel?: ((...args: any[]) => any) | undefined;
|
|
40
40
|
readonly onCustomRequest?: ((...args: any[]) => any) | undefined;
|
|
41
41
|
} & {}>;
|
|
42
|
-
emits: (event: "
|
|
42
|
+
emits: (event: "update:value" | "confirm" | "customRequest" | "cancel", ...args: any[]) => void;
|
|
43
43
|
bem: {
|
|
44
44
|
b: (blockSuffix?: string) => string;
|
|
45
45
|
e: (element?: string) => string;
|
|
@@ -61,7 +61,7 @@ export declare const LlUploadDrag: import("ll-plus/es/utils").SFCWithInstall<imp
|
|
|
61
61
|
handleDragReject: () => void;
|
|
62
62
|
handleClickCancelBtn: () => void;
|
|
63
63
|
handleClickOkBtn: () => void;
|
|
64
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
64
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "confirm" | "customRequest" | "cancel")[], "update:value" | "confirm" | "customRequest" | "cancel", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
65
65
|
value: {
|
|
66
66
|
type: ArrayConstructor;
|
|
67
67
|
default: () => never[];
|
|
@@ -39,7 +39,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
39
39
|
readonly onCancel?: ((...args: any[]) => any) | undefined;
|
|
40
40
|
readonly onCustomRequest?: ((...args: any[]) => any) | undefined;
|
|
41
41
|
} & {}>;
|
|
42
|
-
emits: (event: "
|
|
42
|
+
emits: (event: "update:value" | "confirm" | "customRequest" | "cancel", ...args: any[]) => void;
|
|
43
43
|
bem: {
|
|
44
44
|
b: (blockSuffix?: string) => string;
|
|
45
45
|
e: (element?: string) => string;
|
|
@@ -61,7 +61,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
61
61
|
handleDragReject: () => void;
|
|
62
62
|
handleClickCancelBtn: () => void;
|
|
63
63
|
handleClickOkBtn: () => void;
|
|
64
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
64
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "confirm" | "customRequest" | "cancel")[], "update:value" | "confirm" | "customRequest" | "cancel", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
65
65
|
value: {
|
|
66
66
|
type: ArrayConstructor;
|
|
67
67
|
default: () => never[];
|
|
@@ -62,7 +62,9 @@ const operateIconEmits = {
|
|
|
62
62
|
delete: (v, data) => v || data,
|
|
63
63
|
// 点击删除
|
|
64
64
|
"update:dropdownOpen": (bool) => lodashUnified.isBoolean(bool),
|
|
65
|
-
"update:value": (bool) => lodashUnified.isBoolean(bool)
|
|
65
|
+
"update:value": (bool) => lodashUnified.isBoolean(bool),
|
|
66
|
+
onClickMoreButton: (v, data) => v || data
|
|
67
|
+
// 点击更新按钮
|
|
66
68
|
};
|
|
67
69
|
|
|
68
70
|
exports.operateIconEmits = operateIconEmits;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operate-icon.js","sources":["../../../../../../packages/components/operate-icon/src/operate-icon.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport { isBoolean } from 'lodash-unified'\nimport { iconTypes } from '@ll-plus/components'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type OperateIcon from './operate-icon.vue'\nimport type { IconBaseProps } from '@ll-plus/components'\n\nexport const operateIconProps = buildProps({\n /**\n * @description 监听dropdown是否打开和关闭\n */\n dropdownOpen: {\n type: Boolean,\n default: false\n },\n /**\n * @description 是否显示dropdown\n */\n showDropdown: {\n type: Boolean,\n default: false\n },\n /**\n * @description icon列表\n */\n list: {\n type: definePropType<IconBaseProps[]>(Array)\n },\n /**\n * @description 是否禁用\n */\n disabled: {\n type: Boolean,\n default: false\n },\n /**\n * @description 显示多少个icon,其余在弹窗中显示\n */\n showIconLimit: {\n type: Number,\n default: 3\n },\n /**\n * @description 点击按钮传递的数据\n */\n data: {\n type: definePropType<any>(undefined)\n },\n /**\n * @description 默认icon(edit和delete)的颜色\n */\n iconType: {\n type: String,\n values: iconTypes\n }\n} as const)\n\nexport const operateIconEmits = {\n edit: (v: Event, data: any) => v || data, // 点击编辑\n delete: (v: Event, data: any) => v || data, // 点击删除\n 'update:dropdownOpen': (bool: boolean) => isBoolean(bool),\n 'update:value': (bool: boolean) => isBoolean(bool)
|
|
1
|
+
{"version":3,"file":"operate-icon.js","sources":["../../../../../../packages/components/operate-icon/src/operate-icon.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport { isBoolean } from 'lodash-unified'\nimport { iconTypes } from '@ll-plus/components'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type OperateIcon from './operate-icon.vue'\nimport type { IconBaseProps } from '@ll-plus/components'\n\nexport const operateIconProps = buildProps({\n /**\n * @description 监听dropdown是否打开和关闭\n */\n dropdownOpen: {\n type: Boolean,\n default: false\n },\n /**\n * @description 是否显示dropdown\n */\n showDropdown: {\n type: Boolean,\n default: false\n },\n /**\n * @description icon列表\n */\n list: {\n type: definePropType<IconBaseProps[]>(Array)\n },\n /**\n * @description 是否禁用\n */\n disabled: {\n type: Boolean,\n default: false\n },\n /**\n * @description 显示多少个icon,其余在弹窗中显示\n */\n showIconLimit: {\n type: Number,\n default: 3\n },\n /**\n * @description 点击按钮传递的数据\n */\n data: {\n type: definePropType<any>(undefined)\n },\n /**\n * @description 默认icon(edit和delete)的颜色\n */\n iconType: {\n type: String,\n values: iconTypes\n }\n} as const)\n\nexport const operateIconEmits = {\n edit: (v: Event, data: any) => v || data, // 点击编辑\n delete: (v: Event, data: any) => v || data, // 点击删除\n 'update:dropdownOpen': (bool: boolean) => isBoolean(bool),\n 'update:value': (bool: boolean) => isBoolean(bool),\n onClickMoreButton: (v: Event, data: any) => v || data // 点击更新按钮\n}\n\n// props\nexport type OperateIconProps = ExtractPropTypes<typeof operateIconProps>\n\n// emits\nexport type OperateIconEmits = typeof operateIconEmits\n\n// instance\nexport type OperateIconInstance = InstanceType<typeof OperateIcon>\n"],"names":["buildProps","definePropType","iconTypes","isBoolean"],"mappings":";;;;;;;;;AASO,MAAM,mBAAmBA,kBAAW,CAAA;AAAA;AAAA;AAAA;AAAA,EAIzC,YAAc,EAAA;AAAA,IACZ,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,YAAc,EAAA;AAAA,IACZ,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAM,EAAA;AAAA,IACJ,IAAA,EAAMC,uBAAgC,KAAK,CAAA;AAAA,GAC7C;AAAA;AAAA;AAAA;AAAA,EAIA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,aAAe,EAAA;AAAA,IACb,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,CAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAM,EAAA;AAAA,IACJ,IAAA,EAAMA,uBAAoB,KAAS,CAAA,CAAA;AAAA,GACrC;AAAA;AAAA;AAAA;AAAA,EAIA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,MAAA;AAAA,IACN,MAAQ,EAAAC,kBAAA;AAAA,GACV;AACF,CAAU,EAAA;AAEH,MAAM,gBAAmB,GAAA;AAAA,EAC9B,IAAM,EAAA,CAAC,CAAU,EAAA,IAAA,KAAc,CAAK,IAAA,IAAA;AAAA;AAAA,EACpC,MAAQ,EAAA,CAAC,CAAU,EAAA,IAAA,KAAc,CAAK,IAAA,IAAA;AAAA;AAAA,EACtC,qBAAuB,EAAA,CAAC,IAAkB,KAAAC,uBAAA,CAAU,IAAI,CAAA;AAAA,EACxD,cAAgB,EAAA,CAAC,IAAkB,KAAAA,uBAAA,CAAU,IAAI,CAAA;AAAA,EACjD,iBAAmB,EAAA,CAAC,CAAU,EAAA,IAAA,KAAc,CAAK,IAAA,IAAA;AAAA;AACnD;;;;;"}
|
|
@@ -55,6 +55,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
55
55
|
const isHasDropdown = props.showDropdown && modalIconList.value.length;
|
|
56
56
|
return `${bem.b()} ${isHasDropdown ? bem.m("has-dropdown") : ""}`;
|
|
57
57
|
});
|
|
58
|
+
const handleClickMoreButton = (e, data) => emits("onClickMoreButton", e, data);
|
|
58
59
|
const marginButtonClass = (index, length) => {
|
|
59
60
|
return index < length ? "margin-button-container" : "";
|
|
60
61
|
};
|
|
@@ -166,8 +167,9 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
166
167
|
"icon-type": showIconList.value[0].iconType,
|
|
167
168
|
data: _ctx.data,
|
|
168
169
|
"icon-name": "icon-more",
|
|
169
|
-
class: vue.normalizeClass(vue.unref(bem).e("icon-more"))
|
|
170
|
-
|
|
170
|
+
class: vue.normalizeClass(vue.unref(bem).e("icon-more")),
|
|
171
|
+
"on-click": (e) => handleClickMoreButton(e, _ctx.data)
|
|
172
|
+
}, null, 8, ["is-show-container", "icon-type", "data", "class", "on-click"])
|
|
171
173
|
],
|
|
172
174
|
34
|
|
173
175
|
/* CLASS, NEED_HYDRATION */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operate-icon.vue2.js","sources":["../../../../../../packages/components/operate-icon/src/operate-icon.vue"],"sourcesContent":["<template>\n <div :class=\"operateIconClass\">\n <!-- 显示的icon -->\n <ll-icon-base\n v-for=\"(item, index) in showIconList\"\n v-bind=\"item\"\n :key=\"item.iconName\"\n :data=\"data\"\n :class=\"bem.e(marginButtonClass(index, showIconList.length - 1))\"\n />\n <!-- 下拉提示的icon -->\n <a-dropdown\n v-if=\"showDropdown && modalIconList.length\"\n :overlay-class-name=\"bem.e('dropdown')\"\n :open=\"dropdownOpen\"\n @open-change=\"handleDropdownOpenChange\"\n >\n <div\n :class=\"bem.e('dropdown-container')\"\n @mouseenter=\"handleIconMouseenter\"\n >\n <ll-icon-base\n :is-show-tooltip=\"false\"\n :is-show-container=\"showIconList[0].isShowContainer\"\n :icon-type=\"showIconList[0].iconType\"\n :data=\"data\"\n icon-name=\"icon-more\"\n :class=\"bem.e('icon-more')\"\n />\n </div>\n <template #overlay>\n <a-menu>\n <slot>\n <a-menu-item\n v-for=\"item in modalIconList\"\n :key=\"item.iconName\"\n @click=\"handleDropdownParentClick\"\n >\n <ll-icon-base v-bind=\"item\" :data=\"data\" />\n </a-menu-item>\n </slot>\n </a-menu>\n </template>\n </a-dropdown>\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { ref, computed, watch } from 'vue'\n\nimport { createNamespace } from '@ll-plus/utils'\n\nimport { IconBaseProps, LlIconBase } from '@ll-plus/components'\nimport { operateIconProps, operateIconEmits } from './operate-icon'\n\n// 1.defineOptions\ndefineOptions({\n name: 'LlOperateIcon'\n})\n\n// 2.props/emits\nconst props = defineProps(operateIconProps)\nconst emits = defineEmits(operateIconEmits)\n\n// 3.ref/const\nconst showIconList = ref<IconBaseProps[]>([]) // 显示的icon列表\nconst modalIconList = ref<IconBaseProps[]>([]) // 弹窗的icon列表\nconst dropdownOpen = ref(false) // 下拉菜单的open\nconst defualtList = ref([\n // 默认的icon列表\n {\n iconType: computed(() => props.iconType || 'primary'), // default默认为灰色\n isShowContainer: false, // 是否显示icon容器\n iconName: 'icon-edit',\n tooltipTitle: '编辑',\n disabled: props.disabled,\n onClick: (e: Event, data: any) => {\n emits('edit', e, data)\n }\n },\n {\n iconType: computed(() => props.iconType || 'primary'), // default默认为灰色\n isShowContainer: false, // 是否显示icon容器\n iconName: 'icon-delete',\n tooltipTitle: '删除',\n disabled: props.disabled,\n onClick: (e: Event, data: any) => {\n emits('delete', e, data)\n }\n }\n])\nconst bem = createNamespace('operate-icon')\nconst operateIconClass = computed(() => {\n const isHasDropdown = props.showDropdown && modalIconList.value.length\n return `${bem.b()} ${isHasDropdown ? bem.m('has-dropdown') : ''}`\n})\n\n// 4.methods\nconst marginButtonClass = (index, length) => {\n return index < length ? 'margin-button-container' : ''\n}\n// 下拉菜单open\nconst handleDropdownOpenChange = (open: boolean) => {\n if (!open) {\n dropdownOpen.value = false\n emits('update:dropdownOpen', false)\n }\n}\nconst handleDropdownParentClick = () => (dropdownOpen.value = false)\n// icon鼠标悬浮\nconst handleIconMouseenter = () => {\n dropdownOpen.value = true\n emits('update:dropdownOpen', true)\n}\n\n// 5.watch\nwatch(\n () => [props.list, props.showDropdown],\n (data: any) => {\n const [newList, showDropdown] = data\n const list = newList ? newList : defualtList.value\n const length = list.length\n if (length >= props.showIconLimit && showDropdown) {\n showIconList.value = list.slice(\n 0,\n props.showIconLimit - 1\n ) as IconBaseProps[]\n // 默认modal里面要icon后面跟文字\n modalIconList.value = list\n .slice(props.showIconLimit - 1)\n .map((item: any) => ({ ...item, isShowTitle: true }))\n } else {\n showIconList.value = list as IconBaseProps[]\n }\n },\n { immediate: true, deep: true }\n)\n</script>\n"],"names":["ref","computed","createNamespace","watch"],"mappings":";;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"operate-icon.vue2.js","sources":["../../../../../../packages/components/operate-icon/src/operate-icon.vue"],"sourcesContent":["<template>\n <div :class=\"operateIconClass\">\n <!-- 显示的icon -->\n <ll-icon-base\n v-for=\"(item, index) in showIconList\"\n v-bind=\"item\"\n :key=\"item.iconName\"\n :data=\"data\"\n :class=\"bem.e(marginButtonClass(index, showIconList.length - 1))\"\n />\n <!-- 下拉提示的icon -->\n <a-dropdown\n v-if=\"showDropdown && modalIconList.length\"\n :overlay-class-name=\"bem.e('dropdown')\"\n :open=\"dropdownOpen\"\n @open-change=\"handleDropdownOpenChange\"\n >\n <div\n :class=\"bem.e('dropdown-container')\"\n @mouseenter=\"handleIconMouseenter\"\n >\n <ll-icon-base\n :is-show-tooltip=\"false\"\n :is-show-container=\"showIconList[0].isShowContainer\"\n :icon-type=\"showIconList[0].iconType\"\n :data=\"data\"\n icon-name=\"icon-more\"\n :class=\"bem.e('icon-more')\"\n :on-click=\"e => handleClickMoreButton(e, data)\"\n />\n </div>\n <template #overlay>\n <a-menu>\n <slot>\n <a-menu-item\n v-for=\"item in modalIconList\"\n :key=\"item.iconName\"\n @click=\"handleDropdownParentClick\"\n >\n <ll-icon-base v-bind=\"item\" :data=\"data\" />\n </a-menu-item>\n </slot>\n </a-menu>\n </template>\n </a-dropdown>\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { ref, computed, watch } from 'vue'\n\nimport { createNamespace } from '@ll-plus/utils'\n\nimport { IconBaseProps, LlIconBase } from '@ll-plus/components'\nimport { operateIconProps, operateIconEmits } from './operate-icon'\n\n// 1.defineOptions\ndefineOptions({\n name: 'LlOperateIcon'\n})\n\n// 2.props/emits\nconst props = defineProps(operateIconProps)\nconst emits = defineEmits(operateIconEmits)\n\n// 3.ref/const\nconst showIconList = ref<IconBaseProps[]>([]) // 显示的icon列表\nconst modalIconList = ref<IconBaseProps[]>([]) // 弹窗的icon列表\nconst dropdownOpen = ref(false) // 下拉菜单的open\nconst defualtList = ref([\n // 默认的icon列表\n {\n iconType: computed(() => props.iconType || 'primary'), // default默认为灰色\n isShowContainer: false, // 是否显示icon容器\n iconName: 'icon-edit',\n tooltipTitle: '编辑',\n disabled: props.disabled,\n onClick: (e: Event, data: any) => {\n emits('edit', e, data)\n }\n },\n {\n iconType: computed(() => props.iconType || 'primary'), // default默认为灰色\n isShowContainer: false, // 是否显示icon容器\n iconName: 'icon-delete',\n tooltipTitle: '删除',\n disabled: props.disabled,\n onClick: (e: Event, data: any) => {\n emits('delete', e, data)\n }\n }\n])\nconst bem = createNamespace('operate-icon')\nconst operateIconClass = computed(() => {\n const isHasDropdown = props.showDropdown && modalIconList.value.length\n return `${bem.b()} ${isHasDropdown ? bem.m('has-dropdown') : ''}`\n})\n\n// 4.methods\n// 点击更多按钮\nconst handleClickMoreButton = (e: Event, data: any) =>\n emits('onClickMoreButton', e, data)\nconst marginButtonClass = (index, length) => {\n return index < length ? 'margin-button-container' : ''\n}\n// 下拉菜单open\nconst handleDropdownOpenChange = (open: boolean) => {\n if (!open) {\n dropdownOpen.value = false\n emits('update:dropdownOpen', false)\n }\n}\nconst handleDropdownParentClick = () => (dropdownOpen.value = false)\n// icon鼠标悬浮\nconst handleIconMouseenter = () => {\n dropdownOpen.value = true\n emits('update:dropdownOpen', true)\n}\n\n// 5.watch\nwatch(\n () => [props.list, props.showDropdown],\n (data: any) => {\n const [newList, showDropdown] = data\n const list = newList ? newList : defualtList.value\n const length = list.length\n if (length >= props.showIconLimit && showDropdown) {\n showIconList.value = list.slice(\n 0,\n props.showIconLimit - 1\n ) as IconBaseProps[]\n // 默认modal里面要icon后面跟文字\n modalIconList.value = list\n .slice(props.showIconLimit - 1)\n .map((item: any) => ({ ...item, isShowTitle: true }))\n } else {\n showIconList.value = list as IconBaseProps[]\n }\n },\n { immediate: true, deep: true }\n)\n</script>\n"],"names":["ref","computed","createNamespace","watch"],"mappings":";;;;;;;;;;;;;;;;;;;;AA6DA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AAGd,IAAM,MAAA,YAAA,GAAeA,OAAqB,CAAA,EAAE,CAAA,CAAA;AAC5C,IAAM,MAAA,aAAA,GAAgBA,OAAqB,CAAA,EAAE,CAAA,CAAA;AAC7C,IAAM,MAAA,YAAA,GAAeA,QAAI,KAAK,CAAA,CAAA;AAC9B,IAAA,MAAM,cAAcA,OAAI,CAAA;AAAA;AAAA,MAEtB;AAAA,QACE,QAAU,EAAAC,YAAA,CAAS,MAAM,KAAA,CAAM,YAAY,SAAS,CAAA;AAAA;AAAA,QACpD,eAAiB,EAAA,KAAA;AAAA;AAAA,QACjB,QAAU,EAAA,WAAA;AAAA,QACV,YAAc,EAAA,cAAA;AAAA,QACd,UAAU,KAAM,CAAA,QAAA;AAAA,QAChB,OAAA,EAAS,CAAC,CAAA,EAAU,IAAc,KAAA;AAChC,UAAM,KAAA,CAAA,MAAA,EAAQ,GAAG,IAAI,CAAA,CAAA;AAAA,SACvB;AAAA,OACF;AAAA,MACA;AAAA,QACE,QAAU,EAAAA,YAAA,CAAS,MAAM,KAAA,CAAM,YAAY,SAAS,CAAA;AAAA;AAAA,QACpD,eAAiB,EAAA,KAAA;AAAA;AAAA,QACjB,QAAU,EAAA,aAAA;AAAA,QACV,YAAc,EAAA,cAAA;AAAA,QACd,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CAAA;AAGA,IAAAE,SAAA;AAAA,MACE,MAAM,CAAC,KAAM,CAAA,IAAA,EAAM,MAAM,YAAY,CAAA;AAAA,MACrC,CAAC,IAAc,KAAA;AACb,QAAM,MAAA,CAAC,OAAS,EAAA,YAAY,CAAI,GAAA,IAAA,CAAA;AAChC,QAAM,MAAA,IAAA,GAAO,OAAU,GAAA,OAAA,GAAU,WAAY,CAAA,KAAA,CAAA;AAC7C,QAAA,MAAM,SAAS,IAAK,CAAA,MAAA,CAAA;AACpB,QAAI,IAAA,MAAA,IAAU,KAAM,CAAA,aAAA,IAAiB,YAAc,EAAA;AACjD,UAAA,YAAA,CAAa,QAAQ,IAAK,CAAA,KAAA;AAAA,YACxB,CAAA;AAAA,YACA,MAAM,aAAgB,GAAA,CAAA;AAAA,WACxB,CAAA;AAEA,UAAA,aAAA,CAAc,KAAQ,GAAA,IAAA,CACnB,KAAM,CAAA,KAAA,CAAM,gBAAgB,CAAC,CAAA,CAC7B,GAAI,CAAA,CAAC,UAAe,EAAE,GAAG,IAAM,EAAA,WAAA,EAAa,MAAO,CAAA,CAAA,CAAA;AAAA,SACjD,MAAA;AACL,UAAA,YAAA,CAAa,KAAQ,GAAA,IAAA,CAAA;AAAA,SACvB;AAAA,OACF;AAAA,MACA,EAAE,SAAA,EAAW,IAAM,EAAA,IAAA,EAAM,IAAK,EAAA;AAAA,KAChC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -19,12 +19,14 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
19
19
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
20
20
|
const props = __props;
|
|
21
21
|
const emits = __emit;
|
|
22
|
-
const
|
|
22
|
+
const selectType = vue.ref();
|
|
23
23
|
const value = vue.ref("");
|
|
24
|
-
const selectItem = vue.ref();
|
|
25
24
|
const newList = vue.ref([]);
|
|
26
25
|
const bem = createNamespace.createNamespace("select-group");
|
|
27
26
|
const bemContainer = createNamespace.createNamespace("select-group-container");
|
|
27
|
+
const selectItem = vue.computed(() => {
|
|
28
|
+
return newList.value.find((e) => e.value === selectType.value);
|
|
29
|
+
});
|
|
28
30
|
const leftSelectWidth = vue.computed(() => {
|
|
29
31
|
const names = newList.value.map((item) => item.name.length);
|
|
30
32
|
const maxNameLength = Math.max(...names);
|
|
@@ -44,7 +46,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
44
46
|
} else if (formType === "select") {
|
|
45
47
|
value.value = item.noFirstAddAll ? void 0 : -1;
|
|
46
48
|
}
|
|
47
|
-
|
|
49
|
+
selectType.value = _;
|
|
48
50
|
emits("onSelectChange", _, item);
|
|
49
51
|
};
|
|
50
52
|
const handleChange = () => {
|
|
@@ -55,7 +57,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
55
57
|
);
|
|
56
58
|
};
|
|
57
59
|
const setSelectGroup = (selectValue, currentValue) => {
|
|
58
|
-
|
|
60
|
+
selectType.value = selectValue;
|
|
59
61
|
value.value = currentValue;
|
|
60
62
|
};
|
|
61
63
|
vue.watch(
|
|
@@ -88,7 +90,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
88
90
|
});
|
|
89
91
|
newList.value = list;
|
|
90
92
|
if (newList.value.length && !props.selectValue) {
|
|
91
|
-
|
|
93
|
+
selectType.value = newList.value[0].value;
|
|
92
94
|
}
|
|
93
95
|
}
|
|
94
96
|
},
|
|
@@ -100,10 +102,9 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
100
102
|
vue.watch(
|
|
101
103
|
() => [props.value, props.selectValue],
|
|
102
104
|
([currentValue, selectValue]) => {
|
|
103
|
-
|
|
104
|
-
if (
|
|
105
|
-
const find = newList.value.find((e) => e.value ===
|
|
106
|
-
selectItem.value = find;
|
|
105
|
+
selectType.value = selectValue ? selectValue : newList.value.length ? newList.value[0].value : "";
|
|
106
|
+
if (selectType.value) {
|
|
107
|
+
const find = newList.value.find((e) => e.value === selectType.value);
|
|
107
108
|
if (find && find.showFormType === "select" && !find.noFirstAddAll) {
|
|
108
109
|
value.value = !advancedFiltering.hasValue(currentValue) ? -1 : currentValue;
|
|
109
110
|
} else {
|
|
@@ -140,8 +141,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
140
141
|
default: vue.withCtx(() => [
|
|
141
142
|
vue.createCommentVNode(" \u5DE6\u4FA7select "),
|
|
142
143
|
vue.createVNode(_component_a_select, {
|
|
143
|
-
value:
|
|
144
|
-
"onUpdate:value": _cache[0] || (_cache[0] = ($event) =>
|
|
144
|
+
value: selectType.value,
|
|
145
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => selectType.value = $event),
|
|
145
146
|
class: "select-group-left-select-container",
|
|
146
147
|
style: vue.normalizeStyle({ minWidth: leftSelectWidth.value }),
|
|
147
148
|
onChange: handleSelectChange
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-group.vue2.js","sources":["../../../../../../packages/components/select-group/src/select-group.vue"],"sourcesContent":["<template>\n <div :class=\"bem.b()\">\n <div :class=\"bemContainer.b()\">\n <a-input-group compact>\n <!-- 左侧select -->\n <a-select\n v-model:value=\"typeSelectValue\"\n class=\"select-group-left-select-container\"\n :style=\"{ minWidth: leftSelectWidth }\"\n @change=\"handleSelectChange\"\n >\n <a-select-option\n v-for=\"item in newList\"\n :key=\"item.name\"\n :value=\"item.value\"\n :item=\"item\"\n >\n {{ item.name }}\n </a-select-option>\n </a-select>\n <!-- 右侧组合表单 -->\n <!-- input输入框 -->\n <template\n v-if=\"\n !selectItem?.showFormType || selectItem?.showFormType === 'input'\n \"\n >\n <a-input\n v-model:value=\"value\"\n :class=\"bem.e('right-input')\"\n :placeholder=\"selectItem?.placeholder\"\n @press-enter=\"handleChange\"\n >\n <template #suffix>\n <ll-icon :icon-name=\"`icon-search`\" @click=\"handleChange\" />\n </template>\n </a-input>\n </template>\n <!-- select下拉框 -->\n <template v-else-if=\"selectItem?.showFormType === 'select'\">\n <a-select\n v-model:value=\"value\"\n :class=\"bem.e('right-select')\"\n popup-class-name=\"select-group-right-select\"\n :options=\"selectItem?.options\"\n :placeholder=\"selectItem?.placeholder\"\n :field-names=\"selectItem?.fieldNames\"\n @change=\"handleChange\"\n >\n <a-select-option\n v-for=\"item in selectItem.list\"\n :key=\"item.value\"\n :value=\"item.value\"\n >\n {{ item.name }}\n </a-select-option>\n </a-select>\n </template>\n <!-- 日期选择 -->\n <template v-else-if=\"selectItem?.showFormType === 'range-picker'\">\n <a-range-picker\n v-model:value=\"value\"\n :class=\"bem.e('right-range-picker')\"\n @change=\"handleChange\"\n />\n </template>\n <!-- 树选择 -->\n <template v-else-if=\"selectItem?.showFormType === 'treeSelect'\">\n <a-tree-select\n v-model:value=\"value\"\n :class=\"bem.e('right-tree-select')\"\n :field-names=\"selectItem.fieldNames\"\n :placeholder=\"selectItem?.placeholder\"\n :tree-data=\"selectItem.list\"\n @select=\"handleChange\"\n ></a-tree-select>\n </template>\n <template v-else>\n <slot name=\"extra\" v-bind=\"selectItem\" />\n </template>\n </a-input-group>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { ref, computed, watch } from 'vue'\nimport { has } from 'lodash-es'\n\nimport { selectGroupProps, selectGroupEmits } from './select-group'\nimport { createNamespace } from '@ll-plus/utils'\nimport { hasValue } from '../../advanced-filtering'\nimport { LEFT_SELECT_MIN_WIDTH } from './select-group'\n\nimport type { SelectGroupData } from './select-group'\n\n// 1.defineOptions\ndefineOptions({ name: 'LlSelectGroup' })\n\n// 1.props/emits\nconst props = defineProps(selectGroupProps)\nconst emits = defineEmits(selectGroupEmits)\n\n// 3.ref/const\nconst typeSelectValue = ref('1') // selectinput组合select的值\nconst value = ref<any>('') // 左边的value\nconst selectItem = ref<SelectGroupData>() // 选中表单的类型\nconst newList = ref<SelectGroupData[]>([]) // 处理后的数据,比如select的类型前面加个全部\nconst bem = createNamespace('select-group')\nconst bemContainer = createNamespace('select-group-container')\n\n// 动态计算左边文字最长的宽度\nconst leftSelectWidth = computed(() => {\n const names = newList.value.map(item => item.name.length)\n const maxNameLength = Math.max(...names)\n if (maxNameLength <= 3) {\n return LEFT_SELECT_MIN_WIDTH + 'px'\n }\n const width = LEFT_SELECT_MIN_WIDTH + (maxNameLength - 3) * 14\n return width + 'px'\n})\n\n// 4.methods\n// 第一个select的change\nconst handleSelectChange = (_: string, options: any) => {\n const item = options.item\n const formType = item.showFormType\n // 如果\n if (!formType || formType === 'input' || formType === 'treeSelect') {\n value.value = ''\n } else if (formType === 'range-picker') {\n value.value = [undefined, undefined]\n } else if (formType === 'select') {\n value.value = item.noFirstAddAll ? undefined : -1\n }\n selectItem.value = options.item\n emits('onSelectChange', _, item)\n}\n// 整合处理change\nconst handleChange = () => {\n // 过滤-1的下拉全部\n emits(\n 'change',\n selectItem.value?.value as string,\n value.value === -1 ? null : value.value\n )\n}\nconst setSelectGroup = (selectValue: string, currentValue: any) => {\n typeSelectValue.value = selectValue\n value.value = currentValue\n}\n\n// 5.watch\n// 已第一个为标准\nwatch(\n () => props.data as SelectGroupData[],\n newData => {\n let list: SelectGroupData[] = []\n if (newData && newData.length) {\n list = newData.map(item => {\n const newItem = { ...item }\n if (newItem.showFormType === 'select') {\n if (has(newItem, 'options') && !newItem.noFirstAddAll) {\n newItem.options = [\n {\n label: '全部',\n value: -1\n },\n ...newItem.options!\n ]\n } else if (has(newItem, 'list') && !newItem.noFirstAddAll) {\n newItem.list = [\n {\n name: '全部',\n value: -1\n },\n ...newItem.list!\n ]\n }\n }\n return newItem\n })\n\n newList.value = list\n if (newList.value.length && !props.selectValue) {\n typeSelectValue.value = newList.value[0].value\n }\n }\n },\n {\n deep: true,\n immediate: true\n }\n)\n\nwatch(\n () => [props.value, props.selectValue] as [any, string],\n ([currentValue, selectValue]) => {\n typeSelectValue.value =\n selectValue || newList.value.length ? newList.value[0].value : ''\n if (typeSelectValue.value) {\n const find = newList.value.find(e => e.value === typeSelectValue.value)\n selectItem.value = find\n if (find && find.showFormType === 'select' && !find.noFirstAddAll) {\n value.value = !hasValue(currentValue) ? -1 : currentValue\n } else {\n value.value = currentValue\n }\n }\n },\n {\n immediate: true\n }\n)\n\ndefineExpose({ setSelectGroup })\n</script>\n"],"names":["ref","createNamespace","computed","LEFT_SELECT_MIN_WIDTH","watch","has","hasValue"],"mappings":";;;;;;;;;;;;;;;;;;;AAoGA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AAGd,IAAM,MAAA,eAAA,GAAkBA,QAAI,GAAG,CAAA,CAAA;AAC/B,IAAM,MAAA,KAAA,GAAQA,QAAS,EAAE,CAAA,CAAA;AACzB,IAAA,MAAM,aAAaA,OAAqB,EAAA,CAAA;AACxC,IAAM,MAAA,OAAA,GAAUA,OAAuB,CAAA,EAAE,CAAA,CAAA;AACzC,IAAM,MAAA,GAAA,GAAMC,gCAAgB,cAAc,CAAA,CAAA;AAC1C,IAAM,MAAA,YAAA,GAAeA,gCAAgB,wBAAwB,CAAA,CAAA;AAG7D,IAAM,MAAA,eAAA,GAAkBC,aAAS,MAAM;AACrC,MAAA,MAAM,QAAQ,OAAQ,CAAA,KAAA,CAAM,IAAI,CAAQ,IAAA,KAAA,IAAA,CAAK,KAAK,MAAM,CAAA,CAAA;AACxD,MAAA,MAAM,aAAgB,GAAA,IAAA,CAAK,GAAI,CAAA,GAAG,KAAK,CAAA,CAAA;AACvC,MAAA,IAAI,iBAAiB,CAAG,EAAA;AACtB,QAAA,OAAOC,iCAAwB,GAAA,IAAA,CAAA;AAAA,OACjC;AACA,MAAM,MAAA,KAAA,GAAQA,iCAAyB,GAAA,CAAA,aAAA,GAAgB,CAAK,IAAA,EAAA,CAAA;AAC5D,MAAA,OAAO,KAAQ,GAAA,IAAA,CAAA;AAAA,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MAAM,CAAC,KAAM,CAAA,KAAA,EAAO,MAAM,WAAW,CAAA;AAAA,MACrC,CAAC,CAAC,YAAc,EAAA,WAAW,CAAM,KAAA;AAC/B,QAAgB,eAAA,CAAA,KAAA,GACd,eAAe,OAAQ,CAAA,KAAA,CAAM,SAAS,OAAQ,CAAA,KAAA,CAAM,CAAC,CAAA,CAAE,KAAQ,GAAA,EAAA,CAAA;AACjE,QAAA,IAAI,gBAAgB,KAAO,EAAA;AACzB,UAAM,MAAA,IAAA,GAAO,QAAQ,KAAM,CAAA,IAAA,CAAK,OAAK,CAAE,CAAA,KAAA,KAAU,gBAAgB,KAAK,CAAA,CAAA;AACtE,UAAA,UAAA,CAAW,KAAQ,GAAA,IAAA,CAAA;AACnB,UAAA,IAAI,QAAQ,IAAK,CAAA,YAAA,KAAiB,QAAY,IAAA,CAAC,KAAK,aAAe,EAAA;AACjE,YAAA,KAAA,CAAM,KAAQ,GAAA,CAACE,0BAAS,CAAA,YAAY,IAAI,CAAK,CAAA,GAAA,YAAA,CAAA;AAAA,WACxC,MAAA;AACL,YAAA,KAAA,CAAM,KAAQ,GAAA,YAAA,CAAA;AAAA,WAChB;AAAA,SACF;AAAA,OACF;AAAA,MACA;AAAA,QACE,SAAW,EAAA,IAAA;AAAA,OACb;AAAA,KACF,CAAA;AAEA,IAAa,QAAA,CAAA,EAAE,gBAAgB,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"select-group.vue2.js","sources":["../../../../../../packages/components/select-group/src/select-group.vue"],"sourcesContent":["<template>\n <div :class=\"bem.b()\">\n <div :class=\"bemContainer.b()\">\n <a-input-group compact>\n <!-- 左侧select -->\n <a-select\n v-model:value=\"selectType\"\n class=\"select-group-left-select-container\"\n :style=\"{ minWidth: leftSelectWidth }\"\n @change=\"handleSelectChange\"\n >\n <a-select-option\n v-for=\"item in newList\"\n :key=\"item.name\"\n :value=\"item.value\"\n :item=\"item\"\n >\n {{ item.name }}\n </a-select-option>\n </a-select>\n <!-- 右侧组合表单 -->\n <!-- input输入框 -->\n <template\n v-if=\"\n !selectItem?.showFormType || selectItem?.showFormType === 'input'\n \"\n >\n <a-input\n v-model:value=\"value\"\n :class=\"bem.e('right-input')\"\n :placeholder=\"selectItem?.placeholder\"\n @press-enter=\"handleChange\"\n >\n <template #suffix>\n <ll-icon :icon-name=\"`icon-search`\" @click=\"handleChange\" />\n </template>\n </a-input>\n </template>\n <!-- select下拉框 -->\n <template v-else-if=\"selectItem?.showFormType === 'select'\">\n <a-select\n v-model:value=\"value\"\n :class=\"bem.e('right-select')\"\n popup-class-name=\"select-group-right-select\"\n :options=\"selectItem?.options\"\n :placeholder=\"selectItem?.placeholder\"\n :field-names=\"selectItem?.fieldNames\"\n @change=\"handleChange\"\n >\n <a-select-option\n v-for=\"item in selectItem.list\"\n :key=\"item.value\"\n :value=\"item.value\"\n >\n {{ item.name }}\n </a-select-option>\n </a-select>\n </template>\n <!-- 日期选择 -->\n <template v-else-if=\"selectItem?.showFormType === 'range-picker'\">\n <a-range-picker\n v-model:value=\"value\"\n :class=\"bem.e('right-range-picker')\"\n @change=\"handleChange\"\n />\n </template>\n <!-- 树选择 -->\n <template v-else-if=\"selectItem?.showFormType === 'treeSelect'\">\n <a-tree-select\n v-model:value=\"value\"\n :class=\"bem.e('right-tree-select')\"\n :field-names=\"selectItem.fieldNames\"\n :placeholder=\"selectItem?.placeholder\"\n :tree-data=\"selectItem.list\"\n @select=\"handleChange\"\n ></a-tree-select>\n </template>\n <template v-else>\n <slot name=\"extra\" v-bind=\"selectItem\" />\n </template>\n </a-input-group>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { ref, computed, watch } from 'vue'\nimport { has } from 'lodash-es'\n\nimport { selectGroupProps, selectGroupEmits } from './select-group'\nimport { createNamespace } from '@ll-plus/utils'\nimport { hasValue } from '../../advanced-filtering'\nimport { LEFT_SELECT_MIN_WIDTH } from './select-group'\n\nimport type { SelectGroupData } from './select-group'\n\n// 1.defineOptions\ndefineOptions({ name: 'LlSelectGroup' })\n\n// 1.props/emits\nconst props = defineProps(selectGroupProps)\nconst emits = defineEmits(selectGroupEmits)\n\n// 3.ref/const\nconst selectType = ref() // selectinput组合select的值\nconst value = ref<any>('') // 左边的value\n// const selectItem = ref<SelectGroupData>() // 选中表单的类型\nconst newList = ref<SelectGroupData[]>([]) // 处理后的数据,比如select的类型前面加个全部\nconst bem = createNamespace('select-group')\nconst bemContainer = createNamespace('select-group-container')\n\nconst selectItem = computed(() => {\n return newList.value.find(e => e.value === selectType.value)\n})\n\n// 动态计算左边文字最长的宽度\nconst leftSelectWidth = computed(() => {\n const names = newList.value.map(item => item.name.length)\n const maxNameLength = Math.max(...names)\n if (maxNameLength <= 3) {\n return LEFT_SELECT_MIN_WIDTH + 'px'\n }\n const width = LEFT_SELECT_MIN_WIDTH + (maxNameLength - 3) * 14\n return width + 'px'\n})\n\n// 4.methods\n// 第一个select的change\nconst handleSelectChange = (_: string, options: any) => {\n const item = options.item\n const formType = item.showFormType\n // 如果\n if (!formType || formType === 'input' || formType === 'treeSelect') {\n value.value = ''\n } else if (formType === 'range-picker') {\n value.value = [undefined, undefined]\n } else if (formType === 'select') {\n value.value = item.noFirstAddAll ? undefined : -1\n }\n // selectItem.value = options.item\n selectType.value = _\n // console.log({ item }, selectItem.value)\n\n emits('onSelectChange', _, item)\n}\n// 整合处理change\nconst handleChange = () => {\n // 过滤-1的下拉全部\n emits(\n 'change',\n selectItem.value?.value as string,\n value.value === -1 ? null : value.value\n )\n}\nconst setSelectGroup = (selectValue: string, currentValue: any) => {\n selectType.value = selectValue\n value.value = currentValue\n}\n\n// 5.watch\n// 已第一个为标准\nwatch(\n () => props.data as SelectGroupData[],\n newData => {\n let list: SelectGroupData[] = []\n if (newData && newData.length) {\n list = newData.map(item => {\n const newItem = { ...item }\n if (newItem.showFormType === 'select') {\n if (has(newItem, 'options') && !newItem.noFirstAddAll) {\n newItem.options = [\n {\n label: '全部',\n value: -1\n },\n ...newItem.options!\n ]\n } else if (has(newItem, 'list') && !newItem.noFirstAddAll) {\n newItem.list = [\n {\n name: '全部',\n value: -1\n },\n ...newItem.list!\n ]\n }\n }\n return newItem\n })\n\n newList.value = list\n if (newList.value.length && !props.selectValue) {\n selectType.value = newList.value[0].value\n }\n }\n },\n {\n deep: true,\n immediate: true\n }\n)\n\nwatch(\n () => [props.value, props.selectValue] as [any, string],\n ([currentValue, selectValue]) => {\n selectType.value = selectValue\n ? selectValue\n : newList.value.length\n ? newList.value[0].value\n : ''\n if (selectType.value) {\n const find = newList.value.find(e => e.value === selectType.value)\n // selectItem.value = find\n if (find && find.showFormType === 'select' && !find.noFirstAddAll) {\n value.value = !hasValue(currentValue) ? -1 : currentValue\n } else {\n value.value = currentValue\n }\n }\n },\n {\n immediate: true\n }\n)\n\ndefineExpose({ setSelectGroup })\n</script>\n"],"names":["ref","createNamespace","computed","LEFT_SELECT_MIN_WIDTH","watch","has","hasValue"],"mappings":";;;;;;;;;;;;;;;;;;;AAoGA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AAGd,IAAA,MAAM,aAAaA,OAAI,EAAA,CAAA;AACvB,IAAM,MAAA,KAAA,GAAQA,QAAS,EAAE,CAAA,CAAA;AAEzB,IAAM,MAAA,OAAA,GAAUA,OAAuB,CAAA,EAAE,CAAA,CAAA;AACzC,IAAM,MAAA,GAAA,GAAMC,gCAAgB,cAAc,CAAA,CAAA;AAC1C,IAAM,MAAA,YAAA,GAAeA,gCAAgB,wBAAwB,CAAA,CAAA;AAE7D,IAAM,MAAA,UAAA,GAAaC,aAAS,MAAM;AAChC,MAA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GAAA,YAAA,CAAA;AAAA,WAChB;AAAA,SACF;AAAA,OACF;AAAA,MACA;AAAA,QACE,SAAW,EAAA,IAAA;AAAA,OACb;AAAA,KACF,CAAA;AAEA,IAAa,QAAA,CAAA,EAAE,gBAAgB,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
package/theme-chalk/css/form.css
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
--color-primary-hover
|
|
3
3
|
);--menu-button-icon-hover-bg:rgba(0, 0, 0, 0.06);--collect-icon-color:#faad14;--header-icon-color:rgba(0, 0, 0, 0.65);--setting-bg-color:#f4f5f7;--setting-modal-bg-color:#fff;--default-icon:rgba(0, 0, 0, 0.45);--default-icon-hover:var(--color-primary-hover);--default-icon-hover-bg:rgba(0, 0, 0, 0.06);--default-icon-active:var(--color-primary-active);--default-icon-disable:rgba(0, 0, 0, 0.25);--primary-icon:var(--color-primary);--primary-icon-hover:var(--color-primary-hover);--primary-icon-active:var(--color-primary-active);--primary-icon-disabled:rgba(0, 0, 0, 0.25);--scroll-color:rgba(0, 0, 0, 0.25);--detail-descriptions-label-bg-color:#fafafa;--card-ribbon-bg-color:#e1f0ff;--card-ribbon-corner-bg-color:#5597dd;--help-des-bg-color:#fff4de;--blue-tag-bg-color:rgba(17, 135, 255, 0.1);--orange-tag-bg-color:rgba(250, 173, 20, 0.1);--green-tag-bg-color:rgba(82, 196, 26, 0.1);--success-status-bg-color:rgba(82, 196, 26, 0.08);--failure-status-bg-color:rgba(255, 77, 79, 0.08);--font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue","Helvetica, Arial","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"}.technology-blue{--color-primary-bg:#f0f9ff;--color-primary-bg-hover:#b5e4ff;--color-primary-border:#8cd1ff;--color-primary-border-hover:#63bcff;--color-primary-hover:#3ba3ff;--color-primary:#1187ff;--color-primary-active:#0467d9;--color-primary-text-hover:#3ba3ff;--color-primary-text:#1187ff;--color-primary-text-active:#0467d9;--color-info:#1187ff}.cyan-blue{--color-primary-bg:#f0f9ff;--color-primary-bg-hover:#ebfaf8;--color-primary-border:#dfedec;--color-primary-border-hover:#afe0de;--color-primary-hover:#83d4d2;--color-primary:#5bc5c7;--color-primary-active:#429ca1;--color-primary-text-hover:#83d4d2;--color-primary-text:#5bc5c7;--color-primary-text-active:#429ca1;--color-info:#5bc5c7;--main-bg-color:#f4f7fd}.dark{--color-primary-bg:#111d2c;--color-primary-bg-hover:#102945;--color-primary-border:#13375b;--color-primary-border-hover:#13487e;--color-primary-hover:#3795e8;--color-primary:#1176dc;--color-primary-active:#125fad;--color-primary-text-hover:#3795e8;--color-primary-text:#1176dc;--color-primary-text-active:#125fad;--dark-color-primary:#1187ff;--color-success:#49aa19;--color-warning:#d89614;--color-error:#dc4446;--color-info:#1176dc;--color-text-base:#fff;--color-text:rgba(255, 255, 255);--color-text-secondary:rgba(255, 255, 255, 0.75);--color-text-tertiary:rgba(255, 255, 255, 0.45);--color-text-quaternary:rgba(255, 255, 255, 0.25);--color-border:#424242;--color-border-secondary:#303030;--color-split:rgba(255, 255, 255, 0.12);--color-fill:rgba(255, 255, 255, 0.18);--color-fill-secondary:rgba(255, 255, 255, 0.12);--color-fill-tertiary:rgba(255, 255, 255, 0.08);--color-fill-quaternary:rgba(255, 255, 255, 0.04);--color-bg-base:#000;--color-bg-container:#141414;--color-bg-elevated:#1f1f1f;--color-bg-layout:#000;--color-bg-spotlight:#424242;--color-bg-mask:rgba(0, 0, 0, 0.45);--control-item-bg-hover:rgba(255, 255, 255, 0.15);--control-outline:rgba(238, 38, 56, 0.11);--main-bg-color:transparent;--submenu-bg-color:#141414;--menu-search-bg-color:#000;--menu-border-color:#303030;--menu-button-icon-hover:var(
|
|
4
4
|
--color-primary-hover
|
|
5
|
-
);--menu-button-icon-hover-bg:rgba(255, 255, 255, 0.15);--collect-icon-color:var(--default-icon);--header-icon-color:rgba(255, 255, 255, 0.75);--setting-bg-color:#1f1f1f;--setting-modal-bg-color:#1f1f1f;--default-icon:rgba(255, 255, 255, 0.75);--default-icon-disable:rgba(255, 255, 255, 0.25);--scroll-color:rgba(255, 255, 255, 0.25);--detail-descriptions-label-bg-color:rgba(255, 255, 255, 0.04)//type=detail下的LlDescriptions的label背景颜色}.ant-menu-submenu.ant-menu-submenu-popup .ant-menu-submenu.ant-menu-submenu-vertical.ll-menu-sub .ant-menu-submenu-title{display:flex;align-items:center;justify-content:space-between;width:100%}.ant-menu-submenu.ant-menu-submenu-popup .ant-menu-submenu.ant-menu-submenu-vertical.ll-menu-sub .ant-menu-submenu-title .ll-icon{margin-left:20px}.ant-dropdown .ant-dropdown-menu .ant-dropdown-menu-item{margin-bottom:4px}.ant-dropdown .ant-dropdown-menu :last-child{margin-bottom:0!important}.ant-select:hover .ant-select-selector{border-color:var(--color-primary-hover)!important}.ant-select-dropdown .ant-cascader-menu-item-active,.ant-select-dropdown .ant-select-item-option-selected{color:var(--color-primary)!important}.ant-select-dropdown .ant-cascader-menu .ant-cascader-menu-item{margin-bottom:4px}.ant-select-dropdown .ant-cascader-menu :last-child{margin-bottom:0!important}.rc-virtual-list-holder-inner .ant-select-item{margin-bottom:4px}.rc-virtual-list-holder-inner :last-child{margin-bottom:0!important}.ant-picker-dropdown .ant-picker-cell-selected .ant-picker-cell-inner{background-color:var(--color-primary)!important}.ll-form{width:100%}.ll-form .ant-form .ant-form-item-explain{padding-left:6px;box-sizing:border-box}.ll-form .ant-form .ant-form-item-explain .ant-form-item-explain-error{height:22px!important;line-height:22px;font-size:12px}.ll-form .ant-form .ant-form-item{margin-bottom:22px}.ll-form .ant-form .ant-form-item .ant-form-item-label{line-height:1.286!important}.ll-form .ant-form .ant-form-item .ant-form-item-label>label{height:auto}.ll-form .ant-form .ant-form-item .ant-form-item-label>label::after{display:none}.ll-form .ant-form .ant-form-item .ant-form-item-control-input{min-height:auto}.ll-form .ant-form .ant-form-item.is-label-top .ant-form-item-label{padding-bottom:8px}.ll-form .ant-form .ant-form-item.is-label-left .ant-form-item-label{display:inline-flex;align-items:center;padding-bottom:0;margin-right:20px;flex-direction:row-reverse}.ll-form .ant-form .ant-form-item.is-label-left .ant-form-item-label-left{flex-direction:row}.ll-form .ant-form .ant-form-item.is-label-left .ant-form-item-label{max-height:36px}.ll-form .ant-form .ant-select-single:not(.ant-select-customize-input) .ant-select-selector{padding:0 11px}.ll-form .ant-form .ant-select-single .ant-select-selector .ant-select-selection-search{inset-inline:11px 26px}.ll-form .ant-form textarea.ant-input{height:100px}.ll-form .ant-form .ll-input-number .ant-input-number-wrapper{display:flex}.ll-form .ant-form .ll-input-number .ant-input-number-wrapper .ant-input-number{flex:1}.ll-form .ant-form .ll-input-number .ant-input-number-wrapper .ant-input-number-group-addon{display:flex;align-items:center;justify-content:center;width:40px}.ll-form .ant-form .ll-input-number .ant-input-number-wrapper .ant-input-number-group-addon .unit{line-height:.6;color:var(--color-text-secondary)}.ll-form__tooltip-wrapper{margin-left:8px;display:flex;align-items:center}.ll-form__tooltip{padding-bottom:5px!important}
|
|
5
|
+
);--menu-button-icon-hover-bg:rgba(255, 255, 255, 0.15);--collect-icon-color:var(--default-icon);--header-icon-color:rgba(255, 255, 255, 0.75);--setting-bg-color:#1f1f1f;--setting-modal-bg-color:#1f1f1f;--default-icon:rgba(255, 255, 255, 0.75);--default-icon-disable:rgba(255, 255, 255, 0.25);--scroll-color:rgba(255, 255, 255, 0.25);--detail-descriptions-label-bg-color:rgba(255, 255, 255, 0.04)//type=detail下的LlDescriptions的label背景颜色}.ant-menu-submenu.ant-menu-submenu-popup .ant-menu-submenu.ant-menu-submenu-vertical.ll-menu-sub .ant-menu-submenu-title{display:flex;align-items:center;justify-content:space-between;width:100%}.ant-menu-submenu.ant-menu-submenu-popup .ant-menu-submenu.ant-menu-submenu-vertical.ll-menu-sub .ant-menu-submenu-title .ll-icon{margin-left:20px}.ant-dropdown .ant-dropdown-menu .ant-dropdown-menu-item{margin-bottom:4px}.ant-dropdown .ant-dropdown-menu :last-child{margin-bottom:0!important}.ant-select:hover .ant-select-selector{border-color:var(--color-primary-hover)!important}.ant-select-dropdown .ant-cascader-menu-item-active,.ant-select-dropdown .ant-select-item-option-selected{color:var(--color-primary)!important}.ant-select-dropdown .ant-cascader-menu .ant-cascader-menu-item{margin-bottom:4px}.ant-select-dropdown .ant-cascader-menu :last-child{margin-bottom:0!important}.rc-virtual-list-holder-inner .ant-select-item{margin-bottom:4px}.rc-virtual-list-holder-inner :last-child{margin-bottom:0!important}.ant-picker-dropdown .ant-picker-cell-selected .ant-picker-cell-inner{background-color:var(--color-primary)!important}.ll-form{width:100%}.ll-form .ant-form .ant-form-item-explain{padding-left:6px;box-sizing:border-box}.ll-form .ant-form .ant-form-item-explain .ant-form-item-explain-error{height:22px!important;line-height:22px;font-size:12px}.ll-form .ant-form .ant-form-item{margin-bottom:22px;padding:0 3px}.ll-form .ant-form .ant-form-item .ant-form-item-label{line-height:1.286!important}.ll-form .ant-form .ant-form-item .ant-form-item-label>label{height:auto}.ll-form .ant-form .ant-form-item .ant-form-item-label>label::after{display:none}.ll-form .ant-form .ant-form-item .ant-form-item-control-input{min-height:auto}.ll-form .ant-form .ant-form-item.is-label-top .ant-form-item-label{padding-bottom:8px}.ll-form .ant-form .ant-form-item.is-label-left .ant-form-item-label{display:inline-flex;align-items:center;padding-bottom:0;margin-right:20px;flex-direction:row-reverse}.ll-form .ant-form .ant-form-item.is-label-left .ant-form-item-label-left{flex-direction:row}.ll-form .ant-form .ant-form-item.is-label-left .ant-form-item-label{max-height:36px}.ll-form .ant-form .ant-select-single:not(.ant-select-customize-input) .ant-select-selector{padding:0 11px}.ll-form .ant-form .ant-select-single .ant-select-selector .ant-select-selection-search{inset-inline:11px 26px}.ll-form .ant-form textarea.ant-input{height:100px}.ll-form .ant-form .ll-input-number .ant-input-number-wrapper{display:flex}.ll-form .ant-form .ll-input-number .ant-input-number-wrapper .ant-input-number{flex:1}.ll-form .ant-form .ll-input-number .ant-input-number-wrapper .ant-input-number-group-addon{display:flex;align-items:center;justify-content:center;width:40px}.ll-form .ant-form .ll-input-number .ant-input-number-wrapper .ant-input-number-group-addon .unit{line-height:.6;color:var(--color-text-secondary)}.ll-form__tooltip-wrapper{margin-left:8px;display:flex;align-items:center}.ll-form__tooltip{padding-bottom:5px!important}
|