ll-plus 2.1.3 → 2.1.4
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/component.mjs +2 -0
- package/es/component.mjs.map +1 -1
- package/es/components/icon-picker/index.d.ts +146 -0
- package/es/components/icon-picker/index.mjs +13 -0
- package/es/components/icon-picker/index.mjs.map +1 -0
- package/es/components/icon-picker/src/components/modal.vue.d.ts +70 -0
- package/es/components/icon-picker/src/components/modal.vue.mjs +8 -0
- package/es/components/icon-picker/src/components/modal.vue.mjs.map +1 -0
- package/es/components/icon-picker/src/components/modal.vue2.mjs +158 -0
- package/es/components/icon-picker/src/components/modal.vue2.mjs.map +1 -0
- package/es/components/icon-picker/src/components/search.vue.d.ts +30 -0
- package/es/components/icon-picker/src/components/search.vue.mjs +8 -0
- package/es/components/icon-picker/src/components/search.vue.mjs.map +1 -0
- package/es/components/icon-picker/src/components/search.vue2.mjs +58 -0
- package/es/components/icon-picker/src/components/search.vue2.mjs.map +1 -0
- package/es/components/icon-picker/src/config/icon-picker.d.ts +20 -0
- package/es/components/icon-picker/src/config/icon-picker.mjs +23 -0
- package/es/components/icon-picker/src/config/icon-picker.mjs.map +1 -0
- package/es/components/icon-picker/src/config/index.d.ts +3 -0
- package/es/components/icon-picker/src/config/index.mjs +6 -0
- package/es/components/icon-picker/src/config/index.mjs.map +1 -0
- package/es/components/icon-picker/src/config/modal.d.ts +24 -0
- package/es/components/icon-picker/src/config/modal.mjs +30 -0
- package/es/components/icon-picker/src/config/modal.mjs.map +1 -0
- package/es/components/icon-picker/src/config/search.d.ts +15 -0
- package/es/components/icon-picker/src/config/search.mjs +19 -0
- package/es/components/icon-picker/src/config/search.mjs.map +1 -0
- package/es/components/icon-picker/src/icon-picker.vue.d.ts +139 -0
- package/es/components/icon-picker/src/icon-picker.vue.mjs +8 -0
- package/es/components/icon-picker/src/icon-picker.vue.mjs.map +1 -0
- package/es/components/icon-picker/src/icon-picker.vue2.mjs +59 -0
- package/es/components/icon-picker/src/icon-picker.vue2.mjs.map +1 -0
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +4 -0
- package/es/components/index.mjs.map +1 -1
- package/es/index.mjs +4 -0
- package/es/index.mjs.map +1 -1
- package/index.full.js +358 -40
- package/index.full.min.js +17 -17
- package/index.full.min.js.map +1 -1
- package/index.full.min.mjs +20 -20
- package/index.full.min.mjs.map +1 -1
- package/index.full.mjs +353 -41
- package/lib/component.js +50 -48
- package/lib/component.js.map +1 -1
- package/lib/components/icon-picker/index.d.ts +146 -0
- package/lib/components/icon-picker/index.js +23 -0
- package/lib/components/icon-picker/index.js.map +1 -0
- package/lib/components/icon-picker/src/components/modal.vue.d.ts +70 -0
- package/lib/components/icon-picker/src/components/modal.vue.js +12 -0
- package/lib/components/icon-picker/src/components/modal.vue.js.map +1 -0
- package/lib/components/icon-picker/src/components/modal.vue2.js +162 -0
- package/lib/components/icon-picker/src/components/modal.vue2.js.map +1 -0
- package/lib/components/icon-picker/src/components/search.vue.d.ts +30 -0
- package/lib/components/icon-picker/src/components/search.vue.js +12 -0
- package/lib/components/icon-picker/src/components/search.vue.js.map +1 -0
- package/lib/components/icon-picker/src/components/search.vue2.js +62 -0
- package/lib/components/icon-picker/src/components/search.vue2.js.map +1 -0
- package/lib/components/icon-picker/src/config/icon-picker.d.ts +20 -0
- package/lib/components/icon-picker/src/config/icon-picker.js +25 -0
- package/lib/components/icon-picker/src/config/icon-picker.js.map +1 -0
- package/lib/components/icon-picker/src/config/index.d.ts +3 -0
- package/lib/components/icon-picker/src/config/index.js +14 -0
- package/lib/components/icon-picker/src/config/index.js.map +1 -0
- package/lib/components/icon-picker/src/config/modal.d.ts +24 -0
- package/lib/components/icon-picker/src/config/modal.js +33 -0
- package/lib/components/icon-picker/src/config/modal.js.map +1 -0
- package/lib/components/icon-picker/src/config/search.d.ts +15 -0
- package/lib/components/icon-picker/src/config/search.js +22 -0
- package/lib/components/icon-picker/src/config/search.js.map +1 -0
- package/lib/components/icon-picker/src/icon-picker.vue.d.ts +139 -0
- package/lib/components/icon-picker/src/icon-picker.vue.js +12 -0
- package/lib/components/icon-picker/src/icon-picker.vue.js.map +1 -0
- package/lib/components/icon-picker/src/icon-picker.vue2.js +63 -0
- package/lib/components/icon-picker/src/icon-picker.vue2.js.map +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +60 -50
- package/lib/components/index.js.map +1 -1
- package/lib/index.js +60 -50
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/theme-chalk/css/icon-picker.css +1 -0
- package/theme-chalk/css/index.css +1 -1
- package/types/packages/components/icon-picker/index.d.ts +146 -0
- package/types/packages/components/icon-picker/src/components/modal.vue.d.ts +70 -0
- package/types/packages/components/icon-picker/src/components/search.vue.d.ts +30 -0
- package/types/packages/components/icon-picker/src/config/icon-picker.d.ts +20 -0
- package/types/packages/components/icon-picker/src/config/index.d.ts +3 -0
- package/types/packages/components/icon-picker/src/config/modal.d.ts +24 -0
- package/types/packages/components/icon-picker/src/config/search.d.ts +15 -0
- package/types/packages/components/icon-picker/src/icon-picker.vue.d.ts +139 -0
- package/types/packages/components/index.d.ts +1 -0
package/es/component.mjs
CHANGED
|
@@ -15,6 +15,7 @@ import { LlForm } from './components/form/index.mjs';
|
|
|
15
15
|
import { LlFormItem } from './components/form-item/index.mjs';
|
|
16
16
|
import { LlIcon } from './components/icon/index.mjs';
|
|
17
17
|
import { LlIconBase } from './components/icon-base/index.mjs';
|
|
18
|
+
import { LlIconPicker } from './components/icon-picker/index.mjs';
|
|
18
19
|
import { LlInput } from './components/input/index.mjs';
|
|
19
20
|
import { LlInputNumber } from './components/input-number/index.mjs';
|
|
20
21
|
import { LlModal } from './components/modal/index.mjs';
|
|
@@ -59,6 +60,7 @@ var Components = [
|
|
|
59
60
|
LlFormItem,
|
|
60
61
|
LlIcon,
|
|
61
62
|
LlIconBase,
|
|
63
|
+
LlIconPicker,
|
|
62
64
|
LlInput,
|
|
63
65
|
LlInputNumber,
|
|
64
66
|
LlModal,
|
package/es/component.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.mjs","sources":["../../packages/ll-plus/component.ts"],"sourcesContent":["import type { Plugin } from 'vue'\n\nimport {\n LlAdvancedFiltering,\n LlAdvancedFilteringParams,\n LlAdvancedFilteringTags,\n LlAvatar,\n LlButton,\n LlCascader,\n LlCheckbox,\n LlCheckboxGroup,\n LlConfigProvider,\n LlDatePicker,\n LlDateRange,\n LlDescriptions,\n LlDescriptionsItem,\n LlDrawer,\n LlEmpty,\n LlForm,\n LlFormItem,\n LlIcon,\n LlIconBase,\n LlInput,\n LlInputNumber,\n LlModal,\n LlOperateIcon,\n LlRadio,\n LlRadioButton,\n LlRadioGroup,\n LlSecondConfirmation,\n LlSegmented,\n LlSelect,\n LlSelectOption,\n LlSelectOptGroup,\n LlSelectGroup,\n LlSpace,\n LlSteps,\n LlSwitch,\n LlTable,\n LlTabsSimple,\n LlTextarea,\n LlTimePicker,\n LlTimeRange,\n LlTooltip,\n LlTreeSearch,\n LlTree,\n LlDropdown,\n LlUploadDrag\n} from '@ll-plus/components/index'\n\nexport default [\n LlAdvancedFiltering,\n LlAdvancedFilteringParams,\n LlAdvancedFilteringTags,\n LlAvatar,\n LlButton,\n LlCascader,\n LlCheckbox,\n LlCheckboxGroup,\n LlConfigProvider,\n LlDatePicker,\n LlDateRange,\n LlDescriptions,\n LlDescriptionsItem,\n LlDrawer,\n LlEmpty,\n LlForm,\n LlFormItem,\n LlIcon,\n LlIconBase,\n LlInput,\n LlInputNumber,\n LlModal,\n LlOperateIcon,\n LlRadio,\n LlRadioButton,\n LlRadioGroup,\n LlSecondConfirmation,\n LlSegmented,\n LlSelect,\n LlSelectOption,\n LlSelectOptGroup,\n LlSelectGroup,\n LlSpace,\n LlSteps,\n LlSwitch,\n LlTable,\n LlTabsSimple,\n LlTextarea,\n LlTimePicker,\n LlTimeRange,\n LlTooltip,\n LlTreeSearch,\n LlTree,\n LlDropdown,\n LlUploadDrag\n] as Plugin[]\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"component.mjs","sources":["../../packages/ll-plus/component.ts"],"sourcesContent":["import type { Plugin } from 'vue'\n\nimport {\n LlAdvancedFiltering,\n LlAdvancedFilteringParams,\n LlAdvancedFilteringTags,\n LlAvatar,\n LlButton,\n LlCascader,\n LlCheckbox,\n LlCheckboxGroup,\n LlConfigProvider,\n LlDatePicker,\n LlDateRange,\n LlDescriptions,\n LlDescriptionsItem,\n LlDrawer,\n LlEmpty,\n LlForm,\n LlFormItem,\n LlIcon,\n LlIconBase,\n LlIconPicker,\n LlInput,\n LlInputNumber,\n LlModal,\n LlOperateIcon,\n LlRadio,\n LlRadioButton,\n LlRadioGroup,\n LlSecondConfirmation,\n LlSegmented,\n LlSelect,\n LlSelectOption,\n LlSelectOptGroup,\n LlSelectGroup,\n LlSpace,\n LlSteps,\n LlSwitch,\n LlTable,\n LlTabsSimple,\n LlTextarea,\n LlTimePicker,\n LlTimeRange,\n LlTooltip,\n LlTreeSearch,\n LlTree,\n LlDropdown,\n LlUploadDrag\n} from '@ll-plus/components/index'\n\nexport default [\n LlAdvancedFiltering,\n LlAdvancedFilteringParams,\n LlAdvancedFilteringTags,\n LlAvatar,\n LlButton,\n LlCascader,\n LlCheckbox,\n LlCheckboxGroup,\n LlConfigProvider,\n LlDatePicker,\n LlDateRange,\n LlDescriptions,\n LlDescriptionsItem,\n LlDrawer,\n LlEmpty,\n LlForm,\n LlFormItem,\n LlIcon,\n LlIconBase,\n LlIconPicker,\n LlInput,\n LlInputNumber,\n LlModal,\n LlOperateIcon,\n LlRadio,\n LlRadioButton,\n LlRadioGroup,\n LlSecondConfirmation,\n LlSegmented,\n LlSelect,\n LlSelectOption,\n LlSelectOptGroup,\n LlSelectGroup,\n LlSpace,\n LlSteps,\n LlSwitch,\n LlTable,\n LlTabsSimple,\n LlTextarea,\n LlTimePicker,\n LlTimeRange,\n LlTooltip,\n LlTreeSearch,\n LlTree,\n LlDropdown,\n LlUploadDrag\n] as Plugin[]\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDA,iBAAe;AAAA,EACb,mBAAA;AAAA,EACA,yBAAA;AAAA,EACA,uBAAA;AAAA,EACA,QAAA;AAAA,EACA,QAAA;AAAA,EACA,UAAA;AAAA,EACA,UAAA;AAAA,EACA,eAAA;AAAA,EACA,gBAAA;AAAA,EACA,YAAA;AAAA,EACA,WAAA;AAAA,EACA,cAAA;AAAA,EACA,kBAAA;AAAA,EACA,QAAA;AAAA,EACA,OAAA;AAAA,EACA,MAAA;AAAA,EACA,UAAA;AAAA,EACA,MAAA;AAAA,EACA,UAAA;AAAA,EACA,YAAA;AAAA,EACA,OAAA;AAAA,EACA,aAAA;AAAA,EACA,OAAA;AAAA,EACA,aAAA;AAAA,EACA,OAAA;AAAA,EACA,aAAA;AAAA,EACA,YAAA;AAAA,EACA,oBAAA;AAAA,EACA,WAAA;AAAA,EACA,QAAA;AAAA,EACA,cAAA;AAAA,EACA,gBAAA;AAAA,EACA,aAAA;AAAA,EACA,OAAA;AAAA,EACA,OAAA;AAAA,EACA,QAAA;AAAA,EACA,OAAA;AAAA,EACA,YAAA;AAAA,EACA,UAAA;AAAA,EACA,YAAA;AAAA,EACA,WAAA;AAAA,EACA,SAAA;AAAA,EACA,YAAA;AAAA,EACA,MAAA;AAAA,EACA,UAAA;AAAA,EACA,YAAA;AACF,CAAA;;;;"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import IconPicker from './src/icon-picker.vue';
|
|
2
|
+
export declare const LlIconPicker: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
3
|
+
readonly value: {
|
|
4
|
+
readonly type: import("vue").PropType<string>;
|
|
5
|
+
readonly required: false;
|
|
6
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
7
|
+
__epPropKey: true;
|
|
8
|
+
};
|
|
9
|
+
readonly iconList: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/config").IconPickerItem[]) | (() => import("./src/config").IconPickerItem[]) | ((new (...args: any[]) => import("./src/config").IconPickerItem[]) | (() => import("./src/config").IconPickerItem[]))[], unknown, unknown, () => never[], boolean>;
|
|
10
|
+
}, {
|
|
11
|
+
props: import("@vue/shared").LooseRequired<{
|
|
12
|
+
readonly iconList: import("./src/config").IconPickerItem[];
|
|
13
|
+
readonly value?: string | undefined;
|
|
14
|
+
} & {}>;
|
|
15
|
+
attrs: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
};
|
|
18
|
+
iconValue: import("vue").Ref<string>;
|
|
19
|
+
visible: import("vue").Ref<boolean>;
|
|
20
|
+
bem: {
|
|
21
|
+
b: (blockSuffix?: string) => string;
|
|
22
|
+
e: (element?: string) => string;
|
|
23
|
+
m: (modifier?: string) => string;
|
|
24
|
+
be: (blockSuffix?: string, element?: string) => string;
|
|
25
|
+
em: (element: string, modifier: string) => string;
|
|
26
|
+
bm: (blockSuffix: string, modifier: string) => string;
|
|
27
|
+
bem: (blockSuffix: string, element: string, modifier: string) => string;
|
|
28
|
+
is: (name?: string) => string;
|
|
29
|
+
};
|
|
30
|
+
handleModalVisible: (bool: boolean) => boolean;
|
|
31
|
+
handleChangeValue: (value: string) => string;
|
|
32
|
+
search: import("vue").DefineComponent<{
|
|
33
|
+
readonly value: {
|
|
34
|
+
readonly type: import("vue").PropType<string>;
|
|
35
|
+
readonly required: false;
|
|
36
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
37
|
+
__epPropKey: true;
|
|
38
|
+
};
|
|
39
|
+
}, {
|
|
40
|
+
props: import("@vue/shared").LooseRequired<{
|
|
41
|
+
readonly value?: string | undefined;
|
|
42
|
+
readonly onHandleModalVisible?: ((bool: boolean) => any) | undefined;
|
|
43
|
+
} & {}>;
|
|
44
|
+
emits: (event: "handleModalVisible", bool: boolean) => void;
|
|
45
|
+
attrs: {
|
|
46
|
+
[x: string]: unknown;
|
|
47
|
+
};
|
|
48
|
+
handleCloseModalVisible: () => void;
|
|
49
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
50
|
+
handleModalVisible: (bool: boolean) => boolean;
|
|
51
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
52
|
+
readonly value: {
|
|
53
|
+
readonly type: import("vue").PropType<string>;
|
|
54
|
+
readonly required: false;
|
|
55
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
56
|
+
__epPropKey: true;
|
|
57
|
+
};
|
|
58
|
+
}>> & {
|
|
59
|
+
onHandleModalVisible?: ((bool: boolean) => any) | undefined;
|
|
60
|
+
}, {}, {}>;
|
|
61
|
+
modal: import("vue").DefineComponent<{
|
|
62
|
+
readonly value: {
|
|
63
|
+
readonly type: import("vue").PropType<string>;
|
|
64
|
+
readonly required: false;
|
|
65
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
66
|
+
__epPropKey: true;
|
|
67
|
+
};
|
|
68
|
+
readonly visible: {
|
|
69
|
+
readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
|
|
70
|
+
readonly required: false;
|
|
71
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
72
|
+
__epPropKey: true;
|
|
73
|
+
};
|
|
74
|
+
readonly data: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/config").IconPickerItem[]) | (() => import("./src/config").IconPickerItem[]) | ((new (...args: any[]) => import("./src/config").IconPickerItem[]) | (() => import("./src/config").IconPickerItem[]))[], unknown, unknown, () => never[], boolean>;
|
|
75
|
+
}, {
|
|
76
|
+
props: import("@vue/shared").LooseRequired<{
|
|
77
|
+
readonly data: import("./src/config").IconPickerItem[];
|
|
78
|
+
readonly value?: string | undefined;
|
|
79
|
+
readonly visible?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
80
|
+
readonly "onUpdate:visible"?: (() => any) | undefined;
|
|
81
|
+
readonly onChangeIconValue?: ((value: string) => any) | undefined;
|
|
82
|
+
} & {}>;
|
|
83
|
+
emits: ((event: "update:visible") => void) & ((event: "changeIconValue", value: string) => void);
|
|
84
|
+
searchIconValue: import("vue").Ref<string>;
|
|
85
|
+
selectIcon: import("vue").Ref<string>;
|
|
86
|
+
iconList: import("vue").Ref<{
|
|
87
|
+
icon_id?: string | undefined;
|
|
88
|
+
name?: string | undefined;
|
|
89
|
+
font_class?: string | undefined;
|
|
90
|
+
unicode?: string | undefined;
|
|
91
|
+
unicode_decimal?: string | undefined;
|
|
92
|
+
}[]>;
|
|
93
|
+
bem: {
|
|
94
|
+
b: (blockSuffix?: string) => string;
|
|
95
|
+
e: (element?: string) => string;
|
|
96
|
+
m: (modifier?: string) => string;
|
|
97
|
+
be: (blockSuffix?: string, element?: string) => string;
|
|
98
|
+
em: (element: string, modifier: string) => string;
|
|
99
|
+
bm: (blockSuffix: string, modifier: string) => string;
|
|
100
|
+
bem: (blockSuffix: string, element: string, modifier: string) => string;
|
|
101
|
+
is: (name?: string) => string;
|
|
102
|
+
};
|
|
103
|
+
handleOk: () => void;
|
|
104
|
+
handleCancel: () => void;
|
|
105
|
+
handleSelectIcon: (icon: import("./src/config").IconPickerItem) => string;
|
|
106
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
107
|
+
'update:visible': () => boolean;
|
|
108
|
+
changeIconValue: (value: string) => string;
|
|
109
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
110
|
+
readonly value: {
|
|
111
|
+
readonly type: import("vue").PropType<string>;
|
|
112
|
+
readonly required: false;
|
|
113
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
114
|
+
__epPropKey: true;
|
|
115
|
+
};
|
|
116
|
+
readonly visible: {
|
|
117
|
+
readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
|
|
118
|
+
readonly required: false;
|
|
119
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
120
|
+
__epPropKey: true;
|
|
121
|
+
};
|
|
122
|
+
readonly data: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/config").IconPickerItem[]) | (() => import("./src/config").IconPickerItem[]) | ((new (...args: any[]) => import("./src/config").IconPickerItem[]) | (() => import("./src/config").IconPickerItem[]))[], unknown, unknown, () => never[], boolean>;
|
|
123
|
+
}>> & {
|
|
124
|
+
"onUpdate:visible"?: (() => any) | undefined;
|
|
125
|
+
onChangeIconValue?: ((value: string) => any) | undefined;
|
|
126
|
+
}, {
|
|
127
|
+
readonly data: import("./src/config").IconPickerItem[];
|
|
128
|
+
}, {}>;
|
|
129
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
130
|
+
readonly value: {
|
|
131
|
+
readonly type: import("vue").PropType<string>;
|
|
132
|
+
readonly required: false;
|
|
133
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
134
|
+
__epPropKey: true;
|
|
135
|
+
};
|
|
136
|
+
readonly iconList: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/config").IconPickerItem[]) | (() => import("./src/config").IconPickerItem[]) | ((new (...args: any[]) => import("./src/config").IconPickerItem[]) | (() => import("./src/config").IconPickerItem[]))[], unknown, unknown, () => never[], boolean>;
|
|
137
|
+
}>>, {
|
|
138
|
+
readonly iconList: import("./src/config").IconPickerItem[];
|
|
139
|
+
}, {}>>;
|
|
140
|
+
export default LlIconPicker;
|
|
141
|
+
export * from './src/config';
|
|
142
|
+
declare module 'vue' {
|
|
143
|
+
interface GlobalComponents {
|
|
144
|
+
LlIconPicker: typeof IconPicker;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import '../../utils/index.mjs';
|
|
2
|
+
import IconPicker from './src/icon-picker.vue.mjs';
|
|
3
|
+
import './src/config/index.mjs';
|
|
4
|
+
import { withInstall } from '../../utils/with-install.mjs';
|
|
5
|
+
export { iconPickerProps } from './src/config/icon-picker.mjs';
|
|
6
|
+
export { iconPickerModalEmits, iconPickerModalProps } from './src/config/modal.mjs';
|
|
7
|
+
export { iconPickerSearchEmits, iconPickerSearchProps } from './src/config/search.mjs';
|
|
8
|
+
|
|
9
|
+
"use strict";
|
|
10
|
+
const LlIconPicker = withInstall(IconPicker);
|
|
11
|
+
|
|
12
|
+
export { LlIconPicker, LlIconPicker as default };
|
|
13
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../packages/components/icon-picker/index.ts"],"sourcesContent":["import { withInstall } from '@ll-plus/utils'\n\nimport IconPicker from './src/icon-picker.vue'\n\nexport const LlIconPicker = withInstall(IconPicker)\nexport default LlIconPicker\nexport * from './src/config'\n\n// 把ZIcon组件类型合并带全局组件中 到时候使用时有提示\ndeclare module 'vue' {\n export interface GlobalComponents {\n LlIconPicker: typeof IconPicker\n }\n}\n"],"names":[],"mappings":";;;;;;;;;AAIa,MAAA,YAAA,GAAe,YAAY,UAAU;;;;"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { IconPickerItem } from '../config';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
readonly value: {
|
|
4
|
+
readonly type: import("vue").PropType<string>;
|
|
5
|
+
readonly required: false;
|
|
6
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
7
|
+
__epPropKey: true;
|
|
8
|
+
};
|
|
9
|
+
readonly visible: {
|
|
10
|
+
readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
|
|
11
|
+
readonly required: false;
|
|
12
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
13
|
+
__epPropKey: true;
|
|
14
|
+
};
|
|
15
|
+
readonly data: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => IconPickerItem[]) | (() => IconPickerItem[]) | ((new (...args: any[]) => IconPickerItem[]) | (() => IconPickerItem[]))[], unknown, unknown, () => never[], boolean>;
|
|
16
|
+
}, {
|
|
17
|
+
props: import("@vue/shared").LooseRequired<{
|
|
18
|
+
readonly data: IconPickerItem[];
|
|
19
|
+
readonly value?: string | undefined;
|
|
20
|
+
readonly visible?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
21
|
+
readonly "onUpdate:visible"?: (() => any) | undefined;
|
|
22
|
+
readonly onChangeIconValue?: ((value: string) => any) | undefined;
|
|
23
|
+
} & {}>;
|
|
24
|
+
emits: ((event: "update:visible") => void) & ((event: "changeIconValue", value: string) => void);
|
|
25
|
+
searchIconValue: import("vue").Ref<string>;
|
|
26
|
+
selectIcon: import("vue").Ref<string>;
|
|
27
|
+
iconList: import("vue").Ref<{
|
|
28
|
+
icon_id?: string | undefined;
|
|
29
|
+
name?: string | undefined;
|
|
30
|
+
font_class?: string | undefined;
|
|
31
|
+
unicode?: string | undefined;
|
|
32
|
+
unicode_decimal?: string | undefined;
|
|
33
|
+
}[]>;
|
|
34
|
+
bem: {
|
|
35
|
+
b: (blockSuffix?: string) => string;
|
|
36
|
+
e: (element?: string) => string;
|
|
37
|
+
m: (modifier?: string) => string;
|
|
38
|
+
be: (blockSuffix?: string, element?: string) => string;
|
|
39
|
+
em: (element: string, modifier: string) => string;
|
|
40
|
+
bm: (blockSuffix: string, modifier: string) => string;
|
|
41
|
+
bem: (blockSuffix: string, element: string, modifier: string) => string;
|
|
42
|
+
is: (name?: string) => string;
|
|
43
|
+
};
|
|
44
|
+
handleOk: () => void;
|
|
45
|
+
handleCancel: () => void;
|
|
46
|
+
handleSelectIcon: (icon: IconPickerItem) => string;
|
|
47
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
48
|
+
'update:visible': () => boolean;
|
|
49
|
+
changeIconValue: (value: string) => string;
|
|
50
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
51
|
+
readonly value: {
|
|
52
|
+
readonly type: import("vue").PropType<string>;
|
|
53
|
+
readonly required: false;
|
|
54
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
55
|
+
__epPropKey: true;
|
|
56
|
+
};
|
|
57
|
+
readonly visible: {
|
|
58
|
+
readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
|
|
59
|
+
readonly required: false;
|
|
60
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
61
|
+
__epPropKey: true;
|
|
62
|
+
};
|
|
63
|
+
readonly data: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => IconPickerItem[]) | (() => IconPickerItem[]) | ((new (...args: any[]) => IconPickerItem[]) | (() => IconPickerItem[]))[], unknown, unknown, () => never[], boolean>;
|
|
64
|
+
}>> & {
|
|
65
|
+
"onUpdate:visible"?: (() => any) | undefined;
|
|
66
|
+
onChangeIconValue?: ((value: string) => any) | undefined;
|
|
67
|
+
}, {
|
|
68
|
+
readonly data: IconPickerItem[];
|
|
69
|
+
}, {}>;
|
|
70
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import _sfc_main from './modal.vue2.mjs';
|
|
2
|
+
import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.mjs';
|
|
3
|
+
|
|
4
|
+
"use strict";
|
|
5
|
+
var modal = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "modal.vue"]]);
|
|
6
|
+
|
|
7
|
+
export { modal as default };
|
|
8
|
+
//# sourceMappingURL=modal.vue.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.vue.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, unref, createVNode, createElementBlock, Fragment, renderList } from 'vue';
|
|
2
|
+
import '../../../../utils/index.mjs';
|
|
3
|
+
import '../config/index.mjs';
|
|
4
|
+
import { iconPickerModalProps, iconPickerModalEmits } from '../config/modal.mjs';
|
|
5
|
+
import { createNamespace } from '../../../../utils/create-namespace.mjs';
|
|
6
|
+
|
|
7
|
+
"use strict";
|
|
8
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
...{
|
|
10
|
+
name: "LlIconPickerModal"
|
|
11
|
+
},
|
|
12
|
+
__name: "modal",
|
|
13
|
+
props: iconPickerModalProps,
|
|
14
|
+
emits: iconPickerModalEmits,
|
|
15
|
+
setup(__props, { emit: __emit }) {
|
|
16
|
+
const props = __props;
|
|
17
|
+
const emits = __emit;
|
|
18
|
+
const searchIconValue = ref("");
|
|
19
|
+
const selectIcon = ref("");
|
|
20
|
+
const iconList = ref([]);
|
|
21
|
+
const bem = createNamespace("icon-picker-modal");
|
|
22
|
+
const handleOk = () => {
|
|
23
|
+
emits("changeIconValue", selectIcon.value);
|
|
24
|
+
emits("update:visible");
|
|
25
|
+
};
|
|
26
|
+
const handleCancel = () => emits("update:visible");
|
|
27
|
+
const handleSelectIcon = (icon) => selectIcon.value = icon?.font_class;
|
|
28
|
+
watch(
|
|
29
|
+
() => props.visible,
|
|
30
|
+
(newVisible) => {
|
|
31
|
+
if (newVisible)
|
|
32
|
+
searchIconValue.value = "";
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
watch(
|
|
36
|
+
() => props.value,
|
|
37
|
+
(newV) => {
|
|
38
|
+
if (newV)
|
|
39
|
+
selectIcon.value = newV;
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
watch(
|
|
43
|
+
() => props.data,
|
|
44
|
+
(newData) => {
|
|
45
|
+
iconList.value = [...newData];
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
immediate: true
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
watch(searchIconValue, () => {
|
|
52
|
+
iconList.value = props.data.filter(
|
|
53
|
+
(ele) => ~ele.font_class.indexOf(searchIconValue.value)
|
|
54
|
+
);
|
|
55
|
+
});
|
|
56
|
+
return (_ctx, _cache) => {
|
|
57
|
+
const _component_ll_icon = resolveComponent("ll-icon");
|
|
58
|
+
const _component_a_input = resolveComponent("a-input");
|
|
59
|
+
const _component_a_button = resolveComponent("a-button");
|
|
60
|
+
const _component_a_space = resolveComponent("a-space");
|
|
61
|
+
const _component_ll_modal = resolveComponent("ll-modal");
|
|
62
|
+
return openBlock(), createBlock(_component_ll_modal, {
|
|
63
|
+
open: _ctx.visible,
|
|
64
|
+
title: "\u56FE\u6807\u9009\u62E9",
|
|
65
|
+
class: "icon-picker-modal-wrapper",
|
|
66
|
+
width: "776px",
|
|
67
|
+
keyboard: false,
|
|
68
|
+
"mask-closable": false,
|
|
69
|
+
onOk: handleOk,
|
|
70
|
+
onCancel: handleCancel
|
|
71
|
+
}, {
|
|
72
|
+
default: withCtx(() => [
|
|
73
|
+
createElementVNode(
|
|
74
|
+
"div",
|
|
75
|
+
{
|
|
76
|
+
class: normalizeClass(unref(bem).b())
|
|
77
|
+
},
|
|
78
|
+
[
|
|
79
|
+
createElementVNode(
|
|
80
|
+
"div",
|
|
81
|
+
{
|
|
82
|
+
class: normalizeClass(unref(bem).e("input-container"))
|
|
83
|
+
},
|
|
84
|
+
[
|
|
85
|
+
createVNode(_component_a_input, {
|
|
86
|
+
value: searchIconValue.value,
|
|
87
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => searchIconValue.value = $event),
|
|
88
|
+
class: normalizeClass(unref(bem).e("input")),
|
|
89
|
+
"allow-clear": "",
|
|
90
|
+
placeholder: "\u641C\u7D22..."
|
|
91
|
+
}, {
|
|
92
|
+
prefix: withCtx(() => [
|
|
93
|
+
createVNode(_component_ll_icon, { "icon-name": "icon-search" })
|
|
94
|
+
]),
|
|
95
|
+
_: 1
|
|
96
|
+
/* STABLE */
|
|
97
|
+
}, 8, ["value", "class"])
|
|
98
|
+
],
|
|
99
|
+
2
|
|
100
|
+
/* CLASS */
|
|
101
|
+
),
|
|
102
|
+
createElementVNode(
|
|
103
|
+
"div",
|
|
104
|
+
{
|
|
105
|
+
class: normalizeClass(unref(bem).e("list"))
|
|
106
|
+
},
|
|
107
|
+
[
|
|
108
|
+
createVNode(_component_a_space, {
|
|
109
|
+
size: [16, 16],
|
|
110
|
+
wrap: "",
|
|
111
|
+
class: normalizeClass(unref(bem).e("space"))
|
|
112
|
+
}, {
|
|
113
|
+
default: withCtx(() => [
|
|
114
|
+
(openBlock(true), createElementBlock(
|
|
115
|
+
Fragment,
|
|
116
|
+
null,
|
|
117
|
+
renderList(iconList.value, (item) => {
|
|
118
|
+
return openBlock(), createBlock(_component_a_button, {
|
|
119
|
+
key: item.icon_id,
|
|
120
|
+
type: selectIcon.value === item.font_class ? "primary" : "default",
|
|
121
|
+
class: normalizeClass(unref(bem).e("button")),
|
|
122
|
+
onClick: ($event) => handleSelectIcon(item)
|
|
123
|
+
}, {
|
|
124
|
+
icon: withCtx(() => [
|
|
125
|
+
createVNode(_component_ll_icon, {
|
|
126
|
+
"icon-name": "icon-" + item.font_class,
|
|
127
|
+
style: { "font-size": "28px" }
|
|
128
|
+
}, null, 8, ["icon-name"])
|
|
129
|
+
]),
|
|
130
|
+
_: 2
|
|
131
|
+
/* DYNAMIC */
|
|
132
|
+
}, 1032, ["type", "class", "onClick"]);
|
|
133
|
+
}),
|
|
134
|
+
128
|
|
135
|
+
/* KEYED_FRAGMENT */
|
|
136
|
+
))
|
|
137
|
+
]),
|
|
138
|
+
_: 1
|
|
139
|
+
/* STABLE */
|
|
140
|
+
}, 8, ["class"])
|
|
141
|
+
],
|
|
142
|
+
2
|
|
143
|
+
/* CLASS */
|
|
144
|
+
)
|
|
145
|
+
],
|
|
146
|
+
2
|
|
147
|
+
/* CLASS */
|
|
148
|
+
)
|
|
149
|
+
]),
|
|
150
|
+
_: 1
|
|
151
|
+
/* STABLE */
|
|
152
|
+
}, 8, ["open"]);
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
export { _sfc_main as default };
|
|
158
|
+
//# sourceMappingURL=modal.vue2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.vue2.mjs","sources":["../../../../../../packages/components/icon-picker/src/components/modal.vue"],"sourcesContent":["<template>\n <ll-modal\n :open=\"visible\"\n :title=\"'图标选择'\"\n class=\"icon-picker-modal-wrapper\"\n width=\"776px\"\n :keyboard=\"false\"\n :mask-closable=\"false\"\n @ok=\"handleOk\"\n @cancel=\"handleCancel\"\n >\n <div :class=\"bem.b()\">\n <div :class=\"bem.e('input-container')\">\n <a-input\n v-model:value=\"searchIconValue\"\n :class=\"bem.e('input')\"\n allow-clear\n placeholder=\"搜索...\"\n >\n <template #prefix>\n <ll-icon icon-name=\"icon-search\" />\n </template>\n </a-input>\n </div>\n <div :class=\"bem.e('list')\">\n <a-space :size=\"[16, 16]\" wrap :class=\"bem.e('space')\">\n <a-button\n v-for=\"item in iconList\"\n :key=\"item.icon_id\"\n :type=\"selectIcon === item.font_class ? 'primary' : 'default'\"\n :class=\"bem.e('button')\"\n @click=\"handleSelectIcon(item)\"\n >\n <template #icon>\n <ll-icon\n :icon-name=\"'icon-' + item.font_class\"\n style=\"font-size: 28px\"\n />\n </template>\n </a-button>\n </a-space>\n </div>\n </div>\n </ll-modal>\n</template>\n<script lang=\"ts\" setup>\nimport { ref, watch } from 'vue'\n\nimport { createNamespace } from '@ll-plus/utils'\nimport { iconPickerModalProps, iconPickerModalEmits } from '../config'\n\nimport type { IconPickerItem } from '../config'\n\ndefineOptions({\n name: 'LlIconPickerModal'\n})\n\nconst props = defineProps(iconPickerModalProps)\nconst emits = defineEmits(iconPickerModalEmits)\n\nconst searchIconValue = ref('')\nconst selectIcon = ref('')\nconst iconList = ref<IconPickerItem[]>([])\nconst bem = createNamespace('icon-picker-modal')\n\nconst handleOk = () => {\n emits('changeIconValue', selectIcon.value)\n emits('update:visible')\n}\nconst handleCancel = () => emits('update:visible')\nconst handleSelectIcon = (icon: IconPickerItem) =>\n (selectIcon.value = icon?.font_class as string)\n\n// 监听选择的icon\nwatch(\n () => props.visible,\n newVisible => {\n if (newVisible) searchIconValue.value = ''\n }\n)\nwatch(\n () => props.value,\n newV => {\n if (newV) selectIcon.value = newV\n }\n)\nwatch(\n () => props.data,\n newData => {\n iconList.value = [...newData]\n },\n {\n immediate: true\n }\n)\nwatch(searchIconValue, () => {\n iconList.value = props.data.filter(\n ele => ~ele.font_class!.indexOf(searchIconValue.value)\n )\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAyDA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AAEd,IAAM,MAAA,eAAA,GAAkB,IAAI,EAAE,CAAA,CAAA;AAC9B,IAAM,MAAA,UAAA,GAAa,IAAI,EAAE,CAAA,CAAA;AACzB,IAAM,MAAA,QAAA,GAAW,GAAsB,CAAA,EAAE,CAAA,CAAA;AACzC,IAAM,MAAA,GAAA,GAAM,gBAAgB,mBAAmB,CAAA,CAAA;AAE/C,IAAA,MAAM,WAAW,MAAM;AACrB,MAAM,KAAA,CAAA,iBAAA,EAAmB,WAAW,KAAK,CAAA,CAAA;AACzC,MAAA,KAAA,CAAM,gBAAgB,CAAA,CAAA;AAAA,KACxB,CAAA;AACA,IAAM,MAAA,YAAA,GAAe,MAAM,KAAA,CAAM,gBAAgB,CAAA,CAAA;AACjD,IAAA,MAAM,gBAAmB,GAAA,CAAC,IACvB,KAAA,UAAA,CAAW,QAAQ,IAAM,EAAA,UAAA,CAAA;AAG5B,IAAA,KAAA;AAAA,MACE,MAAM,KAAM,CAAA,OAAA;AAAA,MACZ,CAAc,UAAA,KAAA;AACZ,QAAI,IAAA,UAAA;AAAY,UAAA,eAAA,CAAgB,KAAQ,GAAA,EAAA,CAAA;AAAA,OAC1C;AAAA,KACF,CAAA;AACA,IAAA,KAAA;AAAA,MACE,MAAM,KAAM,CAAA,KAAA;AAAA,MACZ,CAAQ,IAAA,KAAA;AACN,QAAI,IAAA,IAAA;AAAM,UAAA,UAAA,CAAW,KAAQ,GAAA,IAAA,CAAA;AAAA,OAC/B;AAAA,KACF,CAAA;AACA,IAAA,KAAA;AAAA,MACE,MAAM,KAAM,CAAA,IAAA;AAAA,MACZ,CAAW,OAAA,KAAA;AACT,QAAS,QAAA,CAAA,KAAA,GAAQ,CAAC,GAAG,OAAO,CAAA,CAAA;AAAA,OAC9B;AAAA,MACA;AAAA,QACE,SAAW,EAAA,IAAA;AAAA,OACb;AAAA,KACF,CAAA;AACA,IAAA,KAAA,CAAM,iBAAiB,MAAM;AAC3B,MAAS,QAAA,CAAA,KAAA,GAAQ,MAAM,IAAK,CAAA,MAAA;AAAA,QAC1B,SAAO,CAAC,GAAA,CAAI,UAAY,CAAA,OAAA,CAAQ,gBAAgB,KAAK,CAAA;AAAA,OACvD,CAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
readonly value: {
|
|
3
|
+
readonly type: import("vue").PropType<string>;
|
|
4
|
+
readonly required: false;
|
|
5
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
6
|
+
__epPropKey: true;
|
|
7
|
+
};
|
|
8
|
+
}, {
|
|
9
|
+
props: import("@vue/shared").LooseRequired<{
|
|
10
|
+
readonly value?: string | undefined;
|
|
11
|
+
readonly onHandleModalVisible?: ((bool: boolean) => any) | undefined;
|
|
12
|
+
} & {}>;
|
|
13
|
+
emits: (event: "handleModalVisible", bool: boolean) => void;
|
|
14
|
+
attrs: {
|
|
15
|
+
[x: string]: unknown;
|
|
16
|
+
};
|
|
17
|
+
handleCloseModalVisible: () => void;
|
|
18
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
handleModalVisible: (bool: boolean) => boolean;
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
readonly value: {
|
|
22
|
+
readonly type: import("vue").PropType<string>;
|
|
23
|
+
readonly required: false;
|
|
24
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
25
|
+
__epPropKey: true;
|
|
26
|
+
};
|
|
27
|
+
}>> & {
|
|
28
|
+
onHandleModalVisible?: ((bool: boolean) => any) | undefined;
|
|
29
|
+
}, {}, {}>;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import _sfc_main from './search.vue2.mjs';
|
|
2
|
+
import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.mjs';
|
|
3
|
+
|
|
4
|
+
"use strict";
|
|
5
|
+
var search = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "search.vue"]]);
|
|
6
|
+
|
|
7
|
+
export { search as default };
|
|
8
|
+
//# sourceMappingURL=search.vue.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.vue.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { defineComponent, useAttrs, resolveComponent, openBlock, createBlock, withCtx, createVNode, mergeProps, unref, renderSlot, createTextVNode } from 'vue';
|
|
2
|
+
import '../config/index.mjs';
|
|
3
|
+
import { iconPickerSearchProps, iconPickerSearchEmits } from '../config/search.mjs';
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
...{
|
|
8
|
+
name: "LlIconPickerSearch"
|
|
9
|
+
},
|
|
10
|
+
__name: "search",
|
|
11
|
+
props: iconPickerSearchProps,
|
|
12
|
+
emits: iconPickerSearchEmits,
|
|
13
|
+
setup(__props, { emit: __emit }) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const emits = __emit;
|
|
16
|
+
const attrs = useAttrs();
|
|
17
|
+
const handleCloseModalVisible = () => emits("handleModalVisible", true);
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
const _component_ll_icon = resolveComponent("ll-icon");
|
|
20
|
+
const _component_a_input = resolveComponent("a-input");
|
|
21
|
+
const _component_a_button = resolveComponent("a-button");
|
|
22
|
+
const _component_a_input_group = resolveComponent("a-input-group");
|
|
23
|
+
return openBlock(), createBlock(_component_a_input_group, { compact: "" }, {
|
|
24
|
+
default: withCtx(() => [
|
|
25
|
+
createVNode(_component_a_input, mergeProps({
|
|
26
|
+
value: props.value,
|
|
27
|
+
readonly: ""
|
|
28
|
+
}, unref(attrs), { style: { "width": "calc(100% - 60px)" } }), {
|
|
29
|
+
suffix: withCtx(() => [
|
|
30
|
+
createVNode(_component_ll_icon, {
|
|
31
|
+
"icon-name": "icon-" + _ctx.value
|
|
32
|
+
}, null, 8, ["icon-name"])
|
|
33
|
+
]),
|
|
34
|
+
_: 1
|
|
35
|
+
/* STABLE */
|
|
36
|
+
}, 16, ["value"]),
|
|
37
|
+
renderSlot(_ctx.$slots, "rightButton", {}, () => [
|
|
38
|
+
createVNode(_component_a_button, {
|
|
39
|
+
type: "primary",
|
|
40
|
+
onClick: handleCloseModalVisible
|
|
41
|
+
}, {
|
|
42
|
+
default: withCtx(() => [
|
|
43
|
+
createTextVNode("\u56FE\u6807")
|
|
44
|
+
]),
|
|
45
|
+
_: 1
|
|
46
|
+
/* STABLE */
|
|
47
|
+
})
|
|
48
|
+
])
|
|
49
|
+
]),
|
|
50
|
+
_: 3
|
|
51
|
+
/* FORWARDED */
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
export { _sfc_main as default };
|
|
58
|
+
//# sourceMappingURL=search.vue2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.vue2.mjs","sources":["../../../../../../packages/components/icon-picker/src/components/search.vue"],"sourcesContent":["<template>\n <a-input-group compact>\n <a-input\n :value=\"props.value\"\n readonly\n v-bind=\"attrs\"\n style=\"width: calc(100% - 60px)\"\n >\n <template #suffix>\n <ll-icon :icon-name=\"'icon-' + value\" />\n </template>\n </a-input>\n\n <slot name=\"rightButton\">\n <a-button type=\"primary\" @click=\"handleCloseModalVisible\">图标</a-button>\n </slot>\n </a-input-group>\n</template>\n<script lang=\"ts\" setup>\nimport { useAttrs } from 'vue'\n\nimport { iconPickerSearchProps, iconPickerSearchEmits } from '../config'\n\ndefineOptions({\n name: 'LlIconPickerSearch'\n})\n\nconst props = defineProps(iconPickerSearchProps)\nconst emits = defineEmits(iconPickerSearchEmits)\n\nconst attrs = useAttrs()\n\nconst handleCloseModalVisible = () => emits('handleModalVisible', true)\n</script>\n<style lang=\"less\" scoped></style>\n"],"names":[],"mappings":";;;;;;;;;;;;;AA2BA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AAEd,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAEvB,IAAA,MAAM,uBAA0B,GAAA,MAAM,KAAM,CAAA,oBAAA,EAAsB,IAAI,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ExtractPropTypes } from 'vue';
|
|
2
|
+
import type IconPicker from '../icon-picker.vue';
|
|
3
|
+
export interface IconPickerItem {
|
|
4
|
+
icon_id?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
font_class?: string;
|
|
7
|
+
unicode?: string;
|
|
8
|
+
unicode_decimal?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const iconPickerProps: {
|
|
11
|
+
readonly value: {
|
|
12
|
+
readonly type: import("vue").PropType<string>;
|
|
13
|
+
readonly required: false;
|
|
14
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
15
|
+
__epPropKey: true;
|
|
16
|
+
};
|
|
17
|
+
readonly iconList: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => IconPickerItem[]) | (() => IconPickerItem[]) | ((new (...args: any[]) => IconPickerItem[]) | (() => IconPickerItem[]))[], unknown, unknown, () => never[], boolean>;
|
|
18
|
+
};
|
|
19
|
+
export type IconPickerProps = ExtractPropTypes<typeof iconPickerProps>;
|
|
20
|
+
export type IconPickerInstance = InstanceType<typeof IconPicker>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import '../../../../utils/index.mjs';
|
|
2
|
+
import { buildProps, definePropType } from '../../../../utils/props/runtime.mjs';
|
|
3
|
+
|
|
4
|
+
"use strict";
|
|
5
|
+
const iconPickerProps = buildProps({
|
|
6
|
+
// buildProps和defineprops一样
|
|
7
|
+
/**
|
|
8
|
+
* @description 选中的icon
|
|
9
|
+
*/
|
|
10
|
+
value: {
|
|
11
|
+
type: String
|
|
12
|
+
},
|
|
13
|
+
/**
|
|
14
|
+
* @description 模态框的icon列表
|
|
15
|
+
*/
|
|
16
|
+
iconList: {
|
|
17
|
+
type: definePropType(Array),
|
|
18
|
+
default: () => []
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
export { iconPickerProps };
|
|
23
|
+
//# sourceMappingURL=icon-picker.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-picker.mjs","sources":["../../../../../../packages/components/icon-picker/src/config/icon-picker.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type IconPicker from '../icon-picker.vue'\n\nexport interface IconPickerItem {\n icon_id?: string\n name?: string\n font_class?: string\n unicode?: string\n unicode_decimal?: string\n}\n\nexport const iconPickerProps = buildProps({\n // buildProps和defineprops一样\n /**\n * @description 选中的icon\n */\n value: {\n type: String\n },\n /**\n * @description 模态框的icon列表\n */\n iconList: {\n type: definePropType<IconPickerItem[]>(Array),\n default: () => []\n }\n} as const)\n\n// props\nexport type IconPickerProps = ExtractPropTypes<typeof iconPickerProps> // ExtractPropTypes和defineCpmponent类似\n\n// instance\nexport type IconPickerInstance = InstanceType<typeof IconPicker>\n"],"names":[],"mappings":";;;;AAaO,MAAM,kBAAkB,UAAW,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAKxC,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,QAAU,EAAA;AAAA,IACR,IAAA,EAAM,eAAiC,KAAK,CAAA;AAAA,IAC5C,OAAA,EAAS,MAAM,EAAC;AAAA,GAClB;AACF,CAAU;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|