ll-plus 2.1.2 → 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.
Files changed (93) hide show
  1. package/es/component.mjs +2 -0
  2. package/es/component.mjs.map +1 -1
  3. package/es/components/icon-picker/index.d.ts +146 -0
  4. package/es/components/icon-picker/index.mjs +13 -0
  5. package/es/components/icon-picker/index.mjs.map +1 -0
  6. package/es/components/icon-picker/src/components/modal.vue.d.ts +70 -0
  7. package/es/components/icon-picker/src/components/modal.vue.mjs +8 -0
  8. package/es/components/icon-picker/src/components/modal.vue.mjs.map +1 -0
  9. package/es/components/icon-picker/src/components/modal.vue2.mjs +158 -0
  10. package/es/components/icon-picker/src/components/modal.vue2.mjs.map +1 -0
  11. package/es/components/icon-picker/src/components/search.vue.d.ts +30 -0
  12. package/es/components/icon-picker/src/components/search.vue.mjs +8 -0
  13. package/es/components/icon-picker/src/components/search.vue.mjs.map +1 -0
  14. package/es/components/icon-picker/src/components/search.vue2.mjs +58 -0
  15. package/es/components/icon-picker/src/components/search.vue2.mjs.map +1 -0
  16. package/es/components/icon-picker/src/config/icon-picker.d.ts +20 -0
  17. package/es/components/icon-picker/src/config/icon-picker.mjs +23 -0
  18. package/es/components/icon-picker/src/config/icon-picker.mjs.map +1 -0
  19. package/es/components/icon-picker/src/config/index.d.ts +3 -0
  20. package/es/components/icon-picker/src/config/index.mjs +6 -0
  21. package/es/components/icon-picker/src/config/index.mjs.map +1 -0
  22. package/es/components/icon-picker/src/config/modal.d.ts +24 -0
  23. package/es/components/icon-picker/src/config/modal.mjs +30 -0
  24. package/es/components/icon-picker/src/config/modal.mjs.map +1 -0
  25. package/es/components/icon-picker/src/config/search.d.ts +15 -0
  26. package/es/components/icon-picker/src/config/search.mjs +19 -0
  27. package/es/components/icon-picker/src/config/search.mjs.map +1 -0
  28. package/es/components/icon-picker/src/icon-picker.vue.d.ts +139 -0
  29. package/es/components/icon-picker/src/icon-picker.vue.mjs +8 -0
  30. package/es/components/icon-picker/src/icon-picker.vue.mjs.map +1 -0
  31. package/es/components/icon-picker/src/icon-picker.vue2.mjs +59 -0
  32. package/es/components/icon-picker/src/icon-picker.vue2.mjs.map +1 -0
  33. package/es/components/index.d.ts +1 -0
  34. package/es/components/index.mjs +4 -0
  35. package/es/components/index.mjs.map +1 -1
  36. package/es/index.mjs +4 -0
  37. package/es/index.mjs.map +1 -1
  38. package/index.full.js +358 -40
  39. package/index.full.min.js +17 -17
  40. package/index.full.min.js.map +1 -1
  41. package/index.full.min.mjs +20 -20
  42. package/index.full.min.mjs.map +1 -1
  43. package/index.full.mjs +353 -41
  44. package/lib/component.js +50 -48
  45. package/lib/component.js.map +1 -1
  46. package/lib/components/icon-picker/index.d.ts +146 -0
  47. package/lib/components/icon-picker/index.js +23 -0
  48. package/lib/components/icon-picker/index.js.map +1 -0
  49. package/lib/components/icon-picker/src/components/modal.vue.d.ts +70 -0
  50. package/lib/components/icon-picker/src/components/modal.vue.js +12 -0
  51. package/lib/components/icon-picker/src/components/modal.vue.js.map +1 -0
  52. package/lib/components/icon-picker/src/components/modal.vue2.js +162 -0
  53. package/lib/components/icon-picker/src/components/modal.vue2.js.map +1 -0
  54. package/lib/components/icon-picker/src/components/search.vue.d.ts +30 -0
  55. package/lib/components/icon-picker/src/components/search.vue.js +12 -0
  56. package/lib/components/icon-picker/src/components/search.vue.js.map +1 -0
  57. package/lib/components/icon-picker/src/components/search.vue2.js +62 -0
  58. package/lib/components/icon-picker/src/components/search.vue2.js.map +1 -0
  59. package/lib/components/icon-picker/src/config/icon-picker.d.ts +20 -0
  60. package/lib/components/icon-picker/src/config/icon-picker.js +25 -0
  61. package/lib/components/icon-picker/src/config/icon-picker.js.map +1 -0
  62. package/lib/components/icon-picker/src/config/index.d.ts +3 -0
  63. package/lib/components/icon-picker/src/config/index.js +14 -0
  64. package/lib/components/icon-picker/src/config/index.js.map +1 -0
  65. package/lib/components/icon-picker/src/config/modal.d.ts +24 -0
  66. package/lib/components/icon-picker/src/config/modal.js +33 -0
  67. package/lib/components/icon-picker/src/config/modal.js.map +1 -0
  68. package/lib/components/icon-picker/src/config/search.d.ts +15 -0
  69. package/lib/components/icon-picker/src/config/search.js +22 -0
  70. package/lib/components/icon-picker/src/config/search.js.map +1 -0
  71. package/lib/components/icon-picker/src/icon-picker.vue.d.ts +139 -0
  72. package/lib/components/icon-picker/src/icon-picker.vue.js +12 -0
  73. package/lib/components/icon-picker/src/icon-picker.vue.js.map +1 -0
  74. package/lib/components/icon-picker/src/icon-picker.vue2.js +63 -0
  75. package/lib/components/icon-picker/src/icon-picker.vue2.js.map +1 -0
  76. package/lib/components/index.d.ts +1 -0
  77. package/lib/components/index.js +60 -50
  78. package/lib/components/index.js.map +1 -1
  79. package/lib/index.js +60 -50
  80. package/lib/index.js.map +1 -1
  81. package/package.json +1 -1
  82. package/theme-chalk/css/button.css +1 -1
  83. package/theme-chalk/css/icon-picker.css +1 -0
  84. package/theme-chalk/css/index.css +1 -1
  85. package/types/packages/components/icon-picker/index.d.ts +146 -0
  86. package/types/packages/components/icon-picker/src/components/modal.vue.d.ts +70 -0
  87. package/types/packages/components/icon-picker/src/components/search.vue.d.ts +30 -0
  88. package/types/packages/components/icon-picker/src/config/icon-picker.d.ts +20 -0
  89. package/types/packages/components/icon-picker/src/config/index.d.ts +3 -0
  90. package/types/packages/components/icon-picker/src/config/modal.d.ts +24 -0
  91. package/types/packages/components/icon-picker/src/config/search.d.ts +15 -0
  92. package/types/packages/components/icon-picker/src/icon-picker.vue.d.ts +139 -0
  93. package/types/packages/components/index.d.ts +1 -0
@@ -0,0 +1,24 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ import type Modal from '../components/modal.vue';
3
+ import type { IconPickerItem } from './icon-picker';
4
+ export declare const iconPickerModalProps: {
5
+ readonly value: {
6
+ readonly type: import("vue").PropType<string>;
7
+ readonly required: false;
8
+ readonly validator: ((val: unknown) => boolean) | undefined;
9
+ __epPropKey: true;
10
+ };
11
+ readonly visible: {
12
+ readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
13
+ readonly required: false;
14
+ readonly validator: ((val: unknown) => boolean) | undefined;
15
+ __epPropKey: true;
16
+ };
17
+ readonly data: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => IconPickerItem[]) | (() => IconPickerItem[]) | ((new (...args: any[]) => IconPickerItem[]) | (() => IconPickerItem[]))[], unknown, unknown, () => never[], boolean>;
18
+ };
19
+ export type IconPickerModalProps = ExtractPropTypes<typeof iconPickerModalProps>;
20
+ export declare const iconPickerModalEmits: {
21
+ 'update:visible': () => boolean;
22
+ changeIconValue: (value: string) => string;
23
+ };
24
+ export type IconPickerModalInstance = InstanceType<typeof Modal>;
@@ -0,0 +1,30 @@
1
+ import '../../../../utils/index.mjs';
2
+ import { buildProps, definePropType } from '../../../../utils/props/runtime.mjs';
3
+
4
+ "use strict";
5
+ const iconPickerModalProps = buildProps({
6
+ // buildProps和defineprops一样
7
+ /**
8
+ * @description icon的value
9
+ */
10
+ value: {
11
+ type: String
12
+ },
13
+ /**
14
+ * @description modal的visible
15
+ */
16
+ visible: {
17
+ type: Boolean
18
+ },
19
+ data: {
20
+ type: definePropType(Array),
21
+ default: () => []
22
+ }
23
+ });
24
+ const iconPickerModalEmits = {
25
+ "update:visible": () => true,
26
+ changeIconValue: (value) => value
27
+ };
28
+
29
+ export { iconPickerModalEmits, iconPickerModalProps };
30
+ //# sourceMappingURL=modal.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modal.mjs","sources":["../../../../../../packages/components/icon-picker/src/config/modal.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type Modal from '../components/modal.vue'\nimport type { IconPickerItem } from './icon-picker'\n\nexport const iconPickerModalProps = buildProps({\n // buildProps和defineprops一样\n /**\n * @description icon的value\n */\n value: {\n type: String\n },\n /**\n * @description modal的visible\n */\n visible: {\n type: Boolean\n },\n data: {\n type: definePropType<IconPickerItem[]>(Array),\n default: () => []\n }\n} as const)\n\n// props\nexport type IconPickerModalProps = ExtractPropTypes<typeof iconPickerModalProps> // ExtractPropTypes和defineCpmponent类似\n\n// emits\nexport const iconPickerModalEmits = {\n 'update:visible': () => true,\n changeIconValue: (value: string) => value\n}\n\n// instance\nexport type IconPickerModalInstance = InstanceType<typeof Modal>\n"],"names":[],"mappings":";;;;AAMO,MAAM,uBAAuB,UAAW,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAK7C,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,OAAS,EAAA;AAAA,IACP,IAAM,EAAA,OAAA;AAAA,GACR;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,IAAA,EAAM,eAAiC,KAAK,CAAA;AAAA,IAC5C,OAAA,EAAS,MAAM,EAAC;AAAA,GAClB;AACF,CAAU,EAAA;AAMH,MAAM,oBAAuB,GAAA;AAAA,EAClC,kBAAkB,MAAM,IAAA;AAAA,EACxB,eAAA,EAAiB,CAAC,KAAkB,KAAA,KAAA;AACtC;;;;"}
@@ -0,0 +1,15 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ import type Search from '../components/search.vue';
3
+ export declare const iconPickerSearchProps: {
4
+ readonly value: {
5
+ readonly type: import("vue").PropType<string>;
6
+ readonly required: false;
7
+ readonly validator: ((val: unknown) => boolean) | undefined;
8
+ __epPropKey: true;
9
+ };
10
+ };
11
+ export type IconPickerSearchProps = ExtractPropTypes<typeof iconPickerSearchProps>;
12
+ export declare const iconPickerSearchEmits: {
13
+ handleModalVisible: (bool: boolean) => boolean;
14
+ };
15
+ export type IconPickerSearchInstance = InstanceType<typeof Search>;
@@ -0,0 +1,19 @@
1
+ import '../../../../utils/index.mjs';
2
+ import { buildProps } from '../../../../utils/props/runtime.mjs';
3
+
4
+ "use strict";
5
+ const iconPickerSearchProps = buildProps({
6
+ // buildProps和defineprops一样
7
+ /**
8
+ * @description icon的value
9
+ */
10
+ value: {
11
+ type: String
12
+ }
13
+ });
14
+ const iconPickerSearchEmits = {
15
+ handleModalVisible: (bool) => !!bool
16
+ };
17
+
18
+ export { iconPickerSearchEmits, iconPickerSearchProps };
19
+ //# sourceMappingURL=search.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search.mjs","sources":["../../../../../../packages/components/icon-picker/src/config/search.ts"],"sourcesContent":["import { buildProps } from '@ll-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type Search from '../components/search.vue'\n\nexport const iconPickerSearchProps = buildProps({\n // buildProps和defineprops一样\n /**\n * @description icon的value\n */\n value: {\n type: String\n }\n} as const)\n\n// props\nexport type IconPickerSearchProps = ExtractPropTypes<\n typeof iconPickerSearchProps\n> // ExtractPropTypes和defineCpmponent类似\n\n// emits\nexport const iconPickerSearchEmits = {\n handleModalVisible: (bool: boolean) => !!bool\n}\n\n// instance\nexport type IconPickerSearchInstance = InstanceType<typeof Search>\n"],"names":[],"mappings":";;;;AAKO,MAAM,wBAAwB,UAAW,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAK9C,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,GACR;AACF,CAAU,EAAA;AAQH,MAAM,qBAAwB,GAAA;AAAA,EACnC,kBAAoB,EAAA,CAAC,IAAkB,KAAA,CAAC,CAAC,IAAA;AAC3C;;;;"}
@@ -0,0 +1,139 @@
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
+ readonly iconList: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./config/icon-picker").IconPickerItem[]) | (() => import("./config/icon-picker").IconPickerItem[]) | ((new (...args: any[]) => import("./config/icon-picker").IconPickerItem[]) | (() => import("./config/icon-picker").IconPickerItem[]))[], unknown, unknown, () => never[], boolean>;
9
+ }, {
10
+ props: import("@vue/shared").LooseRequired<{
11
+ readonly iconList: import("./config/icon-picker").IconPickerItem[];
12
+ readonly value?: string | undefined;
13
+ } & {}>;
14
+ attrs: {
15
+ [x: string]: unknown;
16
+ };
17
+ iconValue: import("vue").Ref<string>;
18
+ visible: import("vue").Ref<boolean>;
19
+ bem: {
20
+ b: (blockSuffix?: string) => string;
21
+ e: (element?: string) => string;
22
+ m: (modifier?: string) => string;
23
+ be: (blockSuffix?: string, element?: string) => string;
24
+ em: (element: string, modifier: string) => string;
25
+ bm: (blockSuffix: string, modifier: string) => string;
26
+ bem: (blockSuffix: string, element: string, modifier: string) => string;
27
+ is: (name?: string) => string;
28
+ };
29
+ handleModalVisible: (bool: boolean) => boolean;
30
+ handleChangeValue: (value: string) => string;
31
+ search: import("vue").DefineComponent<{
32
+ readonly value: {
33
+ readonly type: import("vue").PropType<string>;
34
+ readonly required: false;
35
+ readonly validator: ((val: unknown) => boolean) | undefined;
36
+ __epPropKey: true;
37
+ };
38
+ }, {
39
+ props: import("@vue/shared").LooseRequired<{
40
+ readonly value?: string | undefined;
41
+ readonly onHandleModalVisible?: ((bool: boolean) => any) | undefined;
42
+ } & {}>;
43
+ emits: (event: "handleModalVisible", bool: boolean) => void;
44
+ attrs: {
45
+ [x: string]: unknown;
46
+ };
47
+ handleCloseModalVisible: () => void;
48
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
49
+ handleModalVisible: (bool: boolean) => boolean;
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
+ }>> & {
58
+ onHandleModalVisible?: ((bool: boolean) => any) | undefined;
59
+ }, {}, {}>;
60
+ modal: import("vue").DefineComponent<{
61
+ readonly value: {
62
+ readonly type: import("vue").PropType<string>;
63
+ readonly required: false;
64
+ readonly validator: ((val: unknown) => boolean) | undefined;
65
+ __epPropKey: true;
66
+ };
67
+ readonly visible: {
68
+ readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
69
+ readonly required: false;
70
+ readonly validator: ((val: unknown) => boolean) | undefined;
71
+ __epPropKey: true;
72
+ };
73
+ readonly data: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./config/icon-picker").IconPickerItem[]) | (() => import("./config/icon-picker").IconPickerItem[]) | ((new (...args: any[]) => import("./config/icon-picker").IconPickerItem[]) | (() => import("./config/icon-picker").IconPickerItem[]))[], unknown, unknown, () => never[], boolean>;
74
+ }, {
75
+ props: import("@vue/shared").LooseRequired<{
76
+ readonly data: import("./config/icon-picker").IconPickerItem[];
77
+ readonly value?: string | undefined;
78
+ readonly visible?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
79
+ readonly "onUpdate:visible"?: (() => any) | undefined;
80
+ readonly onChangeIconValue?: ((value: string) => any) | undefined;
81
+ } & {}>;
82
+ emits: ((event: "update:visible") => void) & ((event: "changeIconValue", value: string) => void);
83
+ searchIconValue: import("vue").Ref<string>;
84
+ selectIcon: import("vue").Ref<string>;
85
+ iconList: import("vue").Ref<{
86
+ icon_id?: string | undefined;
87
+ name?: string | undefined;
88
+ font_class?: string | undefined;
89
+ unicode?: string | undefined;
90
+ unicode_decimal?: string | undefined;
91
+ }[]>;
92
+ bem: {
93
+ b: (blockSuffix?: string) => string;
94
+ e: (element?: string) => string;
95
+ m: (modifier?: string) => string;
96
+ be: (blockSuffix?: string, element?: string) => string;
97
+ em: (element: string, modifier: string) => string;
98
+ bm: (blockSuffix: string, modifier: string) => string;
99
+ bem: (blockSuffix: string, element: string, modifier: string) => string;
100
+ is: (name?: string) => string;
101
+ };
102
+ handleOk: () => void;
103
+ handleCancel: () => void;
104
+ handleSelectIcon: (icon: import("./config/icon-picker").IconPickerItem) => string;
105
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
106
+ 'update:visible': () => boolean;
107
+ changeIconValue: (value: string) => string;
108
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
109
+ readonly value: {
110
+ readonly type: import("vue").PropType<string>;
111
+ readonly required: false;
112
+ readonly validator: ((val: unknown) => boolean) | undefined;
113
+ __epPropKey: true;
114
+ };
115
+ readonly visible: {
116
+ readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
117
+ readonly required: false;
118
+ readonly validator: ((val: unknown) => boolean) | undefined;
119
+ __epPropKey: true;
120
+ };
121
+ readonly data: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./config/icon-picker").IconPickerItem[]) | (() => import("./config/icon-picker").IconPickerItem[]) | ((new (...args: any[]) => import("./config/icon-picker").IconPickerItem[]) | (() => import("./config/icon-picker").IconPickerItem[]))[], unknown, unknown, () => never[], boolean>;
122
+ }>> & {
123
+ "onUpdate:visible"?: (() => any) | undefined;
124
+ onChangeIconValue?: ((value: string) => any) | undefined;
125
+ }, {
126
+ readonly data: import("./config/icon-picker").IconPickerItem[];
127
+ }, {}>;
128
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
129
+ readonly value: {
130
+ readonly type: import("vue").PropType<string>;
131
+ readonly required: false;
132
+ readonly validator: ((val: unknown) => boolean) | undefined;
133
+ __epPropKey: true;
134
+ };
135
+ readonly iconList: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./config/icon-picker").IconPickerItem[]) | (() => import("./config/icon-picker").IconPickerItem[]) | ((new (...args: any[]) => import("./config/icon-picker").IconPickerItem[]) | (() => import("./config/icon-picker").IconPickerItem[]))[], unknown, unknown, () => never[], boolean>;
136
+ }>>, {
137
+ readonly iconList: import("./config/icon-picker").IconPickerItem[];
138
+ }, {}>;
139
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import _sfc_main from './icon-picker.vue2.mjs';
2
+ import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
3
+
4
+ "use strict";
5
+ var IconPicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "icon-picker.vue"]]);
6
+
7
+ export { IconPicker as default };
8
+ //# sourceMappingURL=icon-picker.vue.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-picker.vue.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,59 @@
1
+ import { defineComponent, useAttrs, ref, watch, openBlock, createElementBlock, normalizeClass, unref, createCommentVNode, createVNode, mergeProps } from 'vue';
2
+ import '../../../utils/index.mjs';
3
+ import search from './components/search.vue.mjs';
4
+ import modal from './components/modal.vue.mjs';
5
+ import { iconPickerProps } from './config/icon-picker.mjs';
6
+ import { createNamespace } from '../../../utils/create-namespace.mjs';
7
+
8
+ "use strict";
9
+ var _sfc_main = /* @__PURE__ */ defineComponent({
10
+ ...{
11
+ name: "LlIconPicker"
12
+ },
13
+ __name: "icon-picker",
14
+ props: iconPickerProps,
15
+ setup(__props) {
16
+ const props = __props;
17
+ const attrs = useAttrs();
18
+ const iconValue = ref("");
19
+ const visible = ref(false);
20
+ const bem = createNamespace("icon-picker");
21
+ const handleModalVisible = (bool) => visible.value = bool;
22
+ const handleChangeValue = (value) => iconValue.value = value;
23
+ watch(
24
+ () => props.value,
25
+ (newValue) => {
26
+ if (newValue)
27
+ iconValue.value = newValue;
28
+ }
29
+ );
30
+ return (_ctx, _cache) => {
31
+ return openBlock(), createElementBlock(
32
+ "div",
33
+ {
34
+ class: normalizeClass(unref(bem).b())
35
+ },
36
+ [
37
+ createCommentVNode(" input\u7EC4\u5408 "),
38
+ createVNode(search, mergeProps(unref(attrs), {
39
+ value: iconValue.value,
40
+ onHandleModalVisible: handleModalVisible
41
+ }), null, 16, ["value"]),
42
+ createCommentVNode(" icon\u5F39\u7A97 "),
43
+ createVNode(modal, {
44
+ visible: visible.value,
45
+ "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => visible.value = $event),
46
+ value: iconValue.value,
47
+ data: _ctx.iconList,
48
+ onChangeIconValue: handleChangeValue
49
+ }, null, 8, ["visible", "value", "data"])
50
+ ],
51
+ 2
52
+ /* CLASS */
53
+ );
54
+ };
55
+ }
56
+ });
57
+
58
+ export { _sfc_main as default };
59
+ //# sourceMappingURL=icon-picker.vue2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-picker.vue2.mjs","sources":["../../../../../packages/components/icon-picker/src/icon-picker.vue"],"sourcesContent":["<template>\n <div :class=\"bem.b()\">\n <!-- input组合 -->\n <search\n v-bind=\"attrs\"\n :value=\"iconValue\"\n @handle-modal-visible=\"handleModalVisible\"\n />\n <!-- icon弹窗 -->\n <modal\n v-model:visible=\"visible\"\n :value=\"iconValue\"\n :data=\"iconList\"\n @change-icon-value=\"handleChangeValue\"\n />\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { useAttrs, ref, watch } from 'vue'\n\nimport { createNamespace } from '@ll-plus/utils'\n\nimport search from './components/search.vue'\nimport modal from './components/modal.vue'\n\nimport { iconPickerProps } from './config/icon-picker'\n\n// 1.defineOptions\ndefineOptions({\n name: 'LlIconPicker'\n})\n\n// 2.props\nconst props = defineProps(iconPickerProps)\n// 3.hooks\nconst attrs = useAttrs() // 传递给input的额外属性\n\n// 4.ref/const\nconst iconValue = ref('')\nconst visible = ref(false)\nconst bem = createNamespace('icon-picker')\n\n// 5.methods\nconst handleModalVisible = (bool: boolean) => (visible.value = bool)\nconst handleChangeValue = (value: string) => (iconValue.value = value)\n\n// 6.watch\nwatch(\n () => props.value,\n newValue => {\n if (newValue) iconValue.value = newValue\n }\n)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAiCA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAEd,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAGvB,IAAM,MAAA,SAAA,GAAY,IAAI,EAAE,CAAA,CAAA;AACxB,IAAM,MAAA,OAAA,GAAU,IAAI,KAAK,CAAA,CAAA;AACzB,IAAM,MAAA,GAAA,GAAM,gBAAgB,aAAa,CAAA,CAAA;AAGzC,IAAA,MAAM,kBAAqB,GAAA,CAAC,IAAmB,KAAA,OAAA,CAAQ,KAAQ,GAAA,IAAA,CAAA;AAC/D,IAAA,MAAM,iBAAoB,GAAA,CAAC,KAAmB,KAAA,SAAA,CAAU,KAAQ,GAAA,KAAA,CAAA;AAGhE,IAAA,KAAA;AAAA,MACE,MAAM,KAAM,CAAA,KAAA;AAAA,MACZ,CAAY,QAAA,KAAA;AACV,QAAI,IAAA,QAAA;AAAU,UAAA,SAAA,CAAU,KAAQ,GAAA,QAAA,CAAA;AAAA,OAClC;AAAA,KACF,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -16,6 +16,7 @@ export * from './form';
16
16
  export * from './form-item';
17
17
  export * from './icon';
18
18
  export * from './icon-base';
19
+ export * from './icon-picker';
19
20
  export * from './input';
20
21
  export * from './input-number';
21
22
  export * from './modal';
@@ -14,6 +14,7 @@ export { LlForm } from './form/index.mjs';
14
14
  export { LlFormItem } from './form-item/index.mjs';
15
15
  export { LlIcon } from './icon/index.mjs';
16
16
  export { LlIconBase } from './icon-base/index.mjs';
17
+ export { LlIconPicker } from './icon-picker/index.mjs';
17
18
  export { LlInput } from './input/index.mjs';
18
19
  export { LlInputNumber } from './input-number/index.mjs';
19
20
  export { LlModal } from './modal/index.mjs';
@@ -50,6 +51,9 @@ export { formProps } from './form/src/config/form.mjs';
50
51
  export { checkedType } from './form/src/config/components.mjs';
51
52
  export { iconProps } from './icon/src/icon.mjs';
52
53
  export { iconBaseProps, iconTypes } from './icon-base/src/icon-base.mjs';
54
+ export { iconPickerProps } from './icon-picker/src/config/icon-picker.mjs';
55
+ export { iconPickerModalEmits, iconPickerModalProps } from './icon-picker/src/config/modal.mjs';
56
+ export { iconPickerSearchEmits, iconPickerSearchProps } from './icon-picker/src/config/search.mjs';
53
57
  export { inputProps } from './input/src/input.mjs';
54
58
  export { inputNumberEmits, inputNumberProps } from './input-number/src/input-number.mjs';
55
59
  export { modalEmits, modalProps } from './modal/src/modal.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/es/index.mjs CHANGED
@@ -31,6 +31,10 @@ export { iconProps } from './components/icon/src/icon.mjs';
31
31
  export { LlIcon } from './components/icon/index.mjs';
32
32
  export { iconBaseProps, iconTypes } from './components/icon-base/src/icon-base.mjs';
33
33
  export { LlIconBase } from './components/icon-base/index.mjs';
34
+ export { iconPickerProps } from './components/icon-picker/src/config/icon-picker.mjs';
35
+ export { iconPickerModalEmits, iconPickerModalProps } from './components/icon-picker/src/config/modal.mjs';
36
+ export { iconPickerSearchEmits, iconPickerSearchProps } from './components/icon-picker/src/config/search.mjs';
37
+ export { LlIconPicker } from './components/icon-picker/index.mjs';
34
38
  export { inputProps } from './components/input/src/input.mjs';
35
39
  export { LlInput } from './components/input/index.mjs';
36
40
  export { inputNumberEmits, inputNumberProps } from './components/input-number/src/input-number.mjs';
package/es/index.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../packages/ll-plus/index.ts"],"sourcesContent":["import installer from './defaults'\n// 按需导入 import {ZIcon} from 'll-plus'\nexport * from '@ll-plus/components/index'\n\nexport const install = installer.install\nexport default installer\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIO,MAAM,UAAU,SAAU,CAAA;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../packages/ll-plus/index.ts"],"sourcesContent":["import installer from './defaults'\n// 按需导入 import {ZIcon} from 'll-plus'\nexport * from '@ll-plus/components/index'\n\nexport const install = installer.install\nexport default installer\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIO,MAAM,UAAU,SAAU,CAAA;;;;"}