@vipl520/dk-ui 1.0.45 → 1.0.46

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. package/dist/attributes.json +16 -0
  2. package/dist/index.css +1 -1
  3. package/dist/index.js +1359 -525
  4. package/dist/index.min.js +4 -4
  5. package/dist/index.min.js.map +1 -1
  6. package/dist/index.min.mjs +4 -4
  7. package/dist/index.min.mjs.map +1 -1
  8. package/dist/index.mjs +1356 -526
  9. package/dist/tags.json +14 -0
  10. package/dist/uniicons.ttf +0 -0
  11. package/dist/web-types.json +69 -1
  12. package/es/dialog/src/dialog.vue2.mjs +1 -1
  13. package/es/dialog/src/dialog.vue2.mjs.map +1 -1
  14. package/es/form/index.d.ts +3 -15
  15. package/es/form/src/form.vue.d.ts +2 -10
  16. package/es/form/src/form.vue2.mjs +1 -0
  17. package/es/form/src/form.vue2.mjs.map +1 -1
  18. package/es/form/src/props.d.ts +1 -5
  19. package/es/form/src/props.mjs +1 -5
  20. package/es/form/src/props.mjs.map +1 -1
  21. package/es/index.d.ts +2 -0
  22. package/es/index.mjs +8 -2
  23. package/es/index.mjs.map +1 -1
  24. package/es/index.scss +2 -0
  25. package/es/page-diy/src/config/rule/min/common/DkMinTitle.d.ts +1 -0
  26. package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs +2 -1
  27. package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs.map +1 -1
  28. package/es/page-diy/src/config/rule/min/common/index.d.ts +2 -0
  29. package/es/page-diy/src/config/rule/min/index.d.ts +2 -0
  30. package/es/table/src/components/FieldRender.vue2.mjs +1 -1
  31. package/es/table/src/components/FieldRender.vue2.mjs.map +1 -1
  32. package/es/uni-icon/index.d.ts +174 -0
  33. package/es/uni-icon/index.mjs +8 -0
  34. package/es/uni-icon/index.mjs.map +1 -0
  35. package/es/uni-icon/src/props.d.ts +24 -0
  36. package/es/uni-icon/src/props.mjs +25 -0
  37. package/es/uni-icon/src/props.mjs.map +1 -0
  38. package/es/uni-icon/src/uni-icon.vue.d.ts +57 -0
  39. package/es/uni-icon/src/uni-icon.vue.mjs +7 -0
  40. package/es/uni-icon/src/uni-icon.vue.mjs.map +1 -0
  41. package/es/uni-icon/src/uni-icon.vue2.mjs +43 -0
  42. package/es/uni-icon/src/uni-icon.vue2.mjs.map +1 -0
  43. package/es/uni-icon/style/index.css +1 -0
  44. package/es/uni-icon/style/index.scss +17 -0
  45. package/es/uni-icon/style/uniicons.css +1 -0
  46. package/es/uni-icon/style/uniicons.scss +663 -0
  47. package/es/uni-icon/style/uniicons_file_vue.d.ts +4 -0
  48. package/es/uni-icon/style/uniicons_file_vue.mjs +649 -0
  49. package/es/uni-icon/style/uniicons_file_vue.mjs.map +1 -0
  50. package/es/uni-icon-input/index.d.ts +17 -0
  51. package/es/uni-icon-input/index.mjs +8 -0
  52. package/es/uni-icon-input/index.mjs.map +1 -0
  53. package/es/uni-icon-input/src/props.d.ts +11 -0
  54. package/es/uni-icon-input/src/props.mjs +11 -0
  55. package/es/uni-icon-input/src/props.mjs.map +1 -0
  56. package/es/uni-icon-input/src/uni-icon-input.vue.d.ts +16 -0
  57. package/es/uni-icon-input/src/uni-icon-input.vue.mjs +7 -0
  58. package/es/uni-icon-input/src/uni-icon-input.vue.mjs.map +1 -0
  59. package/es/uni-icon-input/src/uni-icon-input.vue2.mjs +112 -0
  60. package/es/uni-icon-input/src/uni-icon-input.vue2.mjs.map +1 -0
  61. package/es/uni-icon-input/style/index.css +1 -0
  62. package/es/uni-icon-input/style/index.scss +13 -0
  63. package/lib/dialog/src/dialog.vue2.js +1 -1
  64. package/lib/dialog/src/dialog.vue2.js.map +1 -1
  65. package/lib/form/index.d.ts +3 -15
  66. package/lib/form/src/form.vue.d.ts +2 -10
  67. package/lib/form/src/form.vue2.js +1 -0
  68. package/lib/form/src/form.vue2.js.map +1 -1
  69. package/lib/form/src/props.d.ts +1 -5
  70. package/lib/form/src/props.js +1 -5
  71. package/lib/form/src/props.js.map +1 -1
  72. package/lib/index.d.ts +2 -0
  73. package/lib/index.js +13 -3
  74. package/lib/index.js.map +1 -1
  75. package/lib/index.scss +2 -0
  76. package/lib/page-diy/src/config/rule/min/common/DkMinTitle.d.ts +1 -0
  77. package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js +2 -1
  78. package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js.map +1 -1
  79. package/lib/page-diy/src/config/rule/min/common/index.d.ts +2 -0
  80. package/lib/page-diy/src/config/rule/min/index.d.ts +2 -0
  81. package/lib/table/src/components/FieldRender.vue2.js +1 -1
  82. package/lib/table/src/components/FieldRender.vue2.js.map +1 -1
  83. package/lib/uni-icon/index.d.ts +174 -0
  84. package/lib/uni-icon/index.js +14 -0
  85. package/lib/uni-icon/index.js.map +1 -0
  86. package/lib/uni-icon/src/props.d.ts +24 -0
  87. package/lib/uni-icon/src/props.js +27 -0
  88. package/lib/uni-icon/src/props.js.map +1 -0
  89. package/lib/uni-icon/src/uni-icon.vue.d.ts +57 -0
  90. package/lib/uni-icon/src/uni-icon.vue.js +11 -0
  91. package/lib/uni-icon/src/uni-icon.vue.js.map +1 -0
  92. package/lib/uni-icon/src/uni-icon.vue2.js +47 -0
  93. package/lib/uni-icon/src/uni-icon.vue2.js.map +1 -0
  94. package/lib/uni-icon/style/index.css +1 -0
  95. package/lib/uni-icon/style/index.scss +17 -0
  96. package/lib/uni-icon/style/uniicons.css +1 -0
  97. package/lib/uni-icon/style/uniicons.scss +663 -0
  98. package/lib/uni-icon/style/uniicons_file_vue.d.ts +4 -0
  99. package/lib/uni-icon/style/uniicons_file_vue.js +651 -0
  100. package/lib/uni-icon/style/uniicons_file_vue.js.map +1 -0
  101. package/lib/uni-icon-input/index.d.ts +17 -0
  102. package/lib/uni-icon-input/index.js +14 -0
  103. package/lib/uni-icon-input/index.js.map +1 -0
  104. package/lib/uni-icon-input/src/props.d.ts +11 -0
  105. package/lib/uni-icon-input/src/props.js +13 -0
  106. package/lib/uni-icon-input/src/props.js.map +1 -0
  107. package/lib/uni-icon-input/src/uni-icon-input.vue.d.ts +16 -0
  108. package/lib/uni-icon-input/src/uni-icon-input.vue.js +11 -0
  109. package/lib/uni-icon-input/src/uni-icon-input.vue.js.map +1 -0
  110. package/lib/uni-icon-input/src/uni-icon-input.vue2.js +116 -0
  111. package/lib/uni-icon-input/src/uni-icon-input.vue2.js.map +1 -0
  112. package/lib/uni-icon-input/style/index.css +1 -0
  113. package/lib/uni-icon-input/style/index.scss +13 -0
  114. package/package.json +2 -1
@@ -0,0 +1,174 @@
1
+ export declare const UniIcon: import("@vipl520/utils").WithInstall<{
2
+ new (...args: any[]): {
3
+ $: import("vue").ComponentInternalInstance;
4
+ $data: {};
5
+ $props: {
6
+ type?: string | undefined;
7
+ color?: string | undefined;
8
+ size?: string | number | undefined;
9
+ fontFamily?: string | undefined;
10
+ customPrefix?: string | undefined;
11
+ style?: unknown;
12
+ key?: string | number | symbol | undefined;
13
+ ref?: import("vue").VNodeRef | undefined;
14
+ ref_for?: boolean | undefined;
15
+ ref_key?: string | undefined;
16
+ onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
17
+ [key: string]: any;
18
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
19
+ [key: string]: any;
20
+ }>) => void)[] | undefined;
21
+ onVnodeMounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
22
+ [key: string]: any;
23
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
24
+ [key: string]: any;
25
+ }>) => void)[] | undefined;
26
+ onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
27
+ [key: string]: any;
28
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
29
+ [key: string]: any;
30
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
31
+ [key: string]: any;
32
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
33
+ [key: string]: any;
34
+ }>) => void)[] | undefined;
35
+ onVnodeUpdated?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
36
+ [key: string]: any;
37
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
38
+ [key: string]: any;
39
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
40
+ [key: string]: any;
41
+ }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
42
+ [key: string]: any;
43
+ }>) => void)[] | undefined;
44
+ onVnodeBeforeUnmount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
45
+ [key: string]: any;
46
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
47
+ [key: string]: any;
48
+ }>) => void)[] | undefined;
49
+ onVnodeUnmounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
50
+ [key: string]: any;
51
+ }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
52
+ [key: string]: any;
53
+ }>) => void)[] | undefined;
54
+ class?: unknown;
55
+ };
56
+ $attrs: {
57
+ [x: string]: unknown;
58
+ };
59
+ $refs: {
60
+ [x: string]: unknown;
61
+ };
62
+ $slots: Readonly<{
63
+ [name: string]: import("vue").Slot<any> | undefined;
64
+ }>;
65
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
66
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
67
+ $emit: (event: string, ...args: any[]) => void;
68
+ $el: any;
69
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
70
+ type: {
71
+ type: StringConstructor;
72
+ default: string;
73
+ };
74
+ color: {
75
+ type: StringConstructor;
76
+ default: string;
77
+ };
78
+ size: {
79
+ type: (StringConstructor | NumberConstructor)[];
80
+ default: number;
81
+ };
82
+ customPrefix: {
83
+ type: StringConstructor;
84
+ default: string;
85
+ };
86
+ fontFamily: {
87
+ type: StringConstructor;
88
+ default: string;
89
+ };
90
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
91
+ type: string;
92
+ color: string;
93
+ size: string | number;
94
+ fontFamily: string;
95
+ customPrefix: string;
96
+ }, {}, string, {}> & {
97
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
98
+ created?: ((() => void) | (() => void)[]) | undefined;
99
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
100
+ mounted?: ((() => void) | (() => void)[]) | undefined;
101
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
102
+ updated?: ((() => void) | (() => void)[]) | undefined;
103
+ activated?: ((() => void) | (() => void)[]) | undefined;
104
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
105
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
106
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
107
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
108
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
109
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
110
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
111
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
112
+ };
113
+ $forceUpdate: () => void;
114
+ $nextTick: typeof import("vue").nextTick;
115
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
116
+ } & Readonly<import("vue").ExtractPropTypes<{
117
+ type: {
118
+ type: StringConstructor;
119
+ default: string;
120
+ };
121
+ color: {
122
+ type: StringConstructor;
123
+ default: string;
124
+ };
125
+ size: {
126
+ type: (StringConstructor | NumberConstructor)[];
127
+ default: number;
128
+ };
129
+ customPrefix: {
130
+ type: StringConstructor;
131
+ default: string;
132
+ };
133
+ fontFamily: {
134
+ type: StringConstructor;
135
+ default: string;
136
+ };
137
+ }>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
138
+ __isFragment?: undefined;
139
+ __isTeleport?: undefined;
140
+ __isSuspense?: undefined;
141
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
142
+ type: {
143
+ type: StringConstructor;
144
+ default: string;
145
+ };
146
+ color: {
147
+ type: StringConstructor;
148
+ default: string;
149
+ };
150
+ size: {
151
+ type: (StringConstructor | NumberConstructor)[];
152
+ default: number;
153
+ };
154
+ customPrefix: {
155
+ type: StringConstructor;
156
+ default: string;
157
+ };
158
+ fontFamily: {
159
+ type: StringConstructor;
160
+ default: string;
161
+ };
162
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
163
+ type: string;
164
+ color: string;
165
+ size: string | number;
166
+ fontFamily: string;
167
+ customPrefix: string;
168
+ }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
169
+ $slots: {
170
+ default?(_: {}): any;
171
+ };
172
+ })>;
173
+ export default UniIcon;
174
+ export * from './src/props';
@@ -0,0 +1,8 @@
1
+ import { withInstall } from '@vipl520/utils';
2
+ import _UniIcon from './src/uni-icon.vue.mjs';
3
+ export { uniIconProps } from './src/props.mjs';
4
+
5
+ const UniIcon = withInstall(_UniIcon);
6
+
7
+ export { UniIcon, UniIcon as default };
8
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../src/uni-icon/index.ts"],"sourcesContent":["import { withInstall } from '@vipl520/utils'\nimport _UniIcon from './src/uni-icon.vue'\n\nexport const UniIcon = withInstall(_UniIcon)\nexport default UniIcon\n\nexport * from './src/props'\n"],"names":[],"mappings":";;;;AAGa,MAAA,OAAA,GAAU,YAAY,QAAQ;;;;"}
@@ -0,0 +1,24 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ export declare const uniIconProps: {
3
+ type: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ };
7
+ color: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ size: {
12
+ type: (StringConstructor | NumberConstructor)[];
13
+ default: number;
14
+ };
15
+ customPrefix: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ fontFamily: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ };
24
+ export type UniIconProps = ExtractPropTypes<typeof uniIconProps>;
@@ -0,0 +1,25 @@
1
+ const uniIconProps = {
2
+ type: {
3
+ type: String,
4
+ default: ""
5
+ },
6
+ color: {
7
+ type: String,
8
+ default: "#333333"
9
+ },
10
+ size: {
11
+ type: [Number, String],
12
+ default: 16
13
+ },
14
+ customPrefix: {
15
+ type: String,
16
+ default: ""
17
+ },
18
+ fontFamily: {
19
+ type: String,
20
+ default: ""
21
+ }
22
+ };
23
+
24
+ export { uniIconProps };
25
+ //# sourceMappingURL=props.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.mjs","sources":["../../../src/uni-icon/src/props.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\n\nexport const uniIconProps = {\n type: {\n type: String,\n default: '',\n },\n color: {\n type: String,\n default: '#333333',\n },\n size: {\n type: [Number, String],\n default: 16,\n },\n customPrefix: {\n type: String,\n default: '',\n },\n fontFamily: {\n type: String,\n default: '',\n },\n}\n\nexport type UniIconProps = ExtractPropTypes<typeof uniIconProps>\n"],"names":[],"mappings":"AAEO,MAAM,YAAe,GAAA;AAAA,EAC1B,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EACA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,SAAA;AAAA,GACX;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,IAAA,EAAM,CAAC,MAAA,EAAQ,MAAM,CAAA;AAAA,IACrB,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EACA,YAAc,EAAA;AAAA,IACZ,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EACA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AACF;;;;"}
@@ -0,0 +1,57 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ type: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ color: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ size: {
11
+ type: (StringConstructor | NumberConstructor)[];
12
+ default: number;
13
+ };
14
+ customPrefix: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ fontFamily: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
23
+ type: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ color: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
31
+ size: {
32
+ type: (StringConstructor | NumberConstructor)[];
33
+ default: number;
34
+ };
35
+ customPrefix: {
36
+ type: StringConstructor;
37
+ default: string;
38
+ };
39
+ fontFamily: {
40
+ type: StringConstructor;
41
+ default: string;
42
+ };
43
+ }>>, {
44
+ type: string;
45
+ color: string;
46
+ size: string | number;
47
+ fontFamily: string;
48
+ customPrefix: string;
49
+ }, {}>, {
50
+ default?(_: {}): any;
51
+ }>;
52
+ export default _default;
53
+ type __VLS_WithTemplateSlots<T, S> = T & {
54
+ new (): {
55
+ $slots: S;
56
+ };
57
+ };
@@ -0,0 +1,7 @@
1
+ import _sfc_main from './uni-icon.vue2.mjs';
2
+ import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
3
+
4
+ var _UniIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\uni-icon\\src\\uni-icon.vue"]]);
5
+
6
+ export { _UniIcon as default };
7
+ //# sourceMappingURL=uni-icon.vue.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uni-icon.vue.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -0,0 +1,43 @@
1
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeStyle, normalizeClass, renderSlot } from 'vue';
2
+ import { uniIconProps } from './props.mjs';
3
+
4
+ const __default__ = defineComponent({
5
+ name: "DkUniIcon"
6
+ });
7
+ var _sfc_main = /* @__PURE__ */ defineComponent({
8
+ ...__default__,
9
+ props: uniIconProps,
10
+ setup(__props) {
11
+ const props = __props;
12
+ const getVal = (val) => {
13
+ const reg = /^[0-9]*$/g;
14
+ return typeof val === "number" || reg.test(val) ? val + "px" : val;
15
+ };
16
+ const iconSize = computed(() => {
17
+ return getVal(props.size);
18
+ });
19
+ const styleObj = computed(() => {
20
+ if (props.fontFamily !== "") {
21
+ return `color: ${props.color}; font-size: ${iconSize.value}; font-family: ${props.fontFamily};`;
22
+ }
23
+ return `color: ${props.color}; font-size: ${iconSize.value};`;
24
+ });
25
+ return (_ctx, _cache) => {
26
+ return openBlock(), createElementBlock(
27
+ "em",
28
+ {
29
+ style: normalizeStyle(styleObj.value),
30
+ class: normalizeClass(["dk-uni-icon", ["uniui-" + _ctx.type, _ctx.customPrefix, _ctx.customPrefix ? _ctx.type : ""]])
31
+ },
32
+ [
33
+ renderSlot(_ctx.$slots, "default")
34
+ ],
35
+ 6
36
+ /* CLASS, STYLE */
37
+ );
38
+ };
39
+ }
40
+ });
41
+
42
+ export { _sfc_main as default };
43
+ //# sourceMappingURL=uni-icon.vue2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uni-icon.vue2.mjs","sources":["../../../src/uni-icon/src/uni-icon.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { defineComponent as __MACROS_defineComponent } from \"vue\";\nexport default /*#__PURE__*/ __MACROS_defineComponent({\n name: 'DkUniIcon',\n});\n</script>\n<template>\n <em :style=\"styleObj\" class=\"dk-uni-icon\" :class=\"['uniui-' + type, customPrefix, customPrefix ? type : '']\">\n <slot></slot>\n </em>\n</template>\n<script setup lang=\"ts\">\nimport { computed } from 'vue'\nimport { uniIconProps } from './props'\n\nconst getVal = (val: any) => {\n const reg = /^[0-9]*$/g\n return typeof val === 'number' || reg.test(val) ? val + 'px' : val\n}\n\n\n\nconst props = defineProps(uniIconProps)\nconst iconSize = computed(() => {\n return getVal(props.size)\n})\nconst styleObj = computed(() => {\n if (props.fontFamily !== '') {\n return `color: ${props.color}; font-size: ${iconSize.value}; font-family: ${props.fontFamily};`\n }\n return `color: ${props.color}; font-size: ${iconSize.value};`\n})\n</script>\n\n<!--<style scoped>-->\n<!--@import url('../style/uniicons.css');-->\n\n<!--@font-face {-->\n<!-- font-family: uniicons;-->\n<!-- src: url('../style/uniicons.ttf');-->\n<!--}-->\n<!--</style>-->\n"],"names":["__MACROS_defineComponent"],"mappings":";;;AAEA,MAA6B,cAAAA,eAAyB,CAAA;AAAA,EACpD,IAAM,EAAA,WAAA;AACR,CAAC,CAAA,CAAA;;;;;;AAWD,IAAM,MAAA,MAAA,GAAS,CAAC,GAAa,KAAA;AAC3B,MAAA,MAAM,GAAM,GAAA,WAAA,CAAA;AACZ,MAAO,OAAA,OAAO,QAAQ,QAAY,IAAA,GAAA,CAAI,KAAK,GAAG,CAAA,GAAI,MAAM,IAAO,GAAA,GAAA,CAAA;AAAA,KACjE,CAAA;AAKA,IAAM,MAAA,QAAA,GAAW,SAAS,MAAM;AAC9B,MAAO,OAAA,MAAA,CAAO,MAAM,IAAI,CAAA,CAAA;AAAA,KACzB,CAAA,CAAA;AACD,IAAM,MAAA,QAAA,GAAW,SAAS,MAAM;AAC9B,MAAI,IAAA,KAAA,CAAM,eAAe,EAAI,EAAA;AAC3B,QAAO,OAAA,CAAA,OAAA,EAAU,MAAM,KAAK,CAAA,aAAA,EAAgB,SAAS,KAAK,CAAA,eAAA,EAAkB,MAAM,UAAU,CAAA,CAAA,CAAA,CAAA;AAAA,OAC9F;AACA,MAAA,OAAO,CAAU,OAAA,EAAA,KAAA,CAAM,KAAK,CAAA,aAAA,EAAgB,SAAS,KAAK,CAAA,CAAA,CAAA,CAAA;AAAA,KAC3D,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1 @@
1
+ .uniui-cart-filled:before{content:"\e6d0"}.uniui-gift-filled:before{content:"\e6c4"}.uniui-color:before{content:"\e6cf"}.uniui-wallet:before{content:"\e6b1"}.uniui-settings-filled:before{content:"\e6ce"}.uniui-auth-filled:before{content:"\e6cc"}.uniui-shop-filled:before{content:"\e6cd"}.uniui-staff-filled:before{content:"\e6cb"}.uniui-vip-filled:before{content:"\e6c6"}.uniui-plus-filled:before{content:"\e6c7"}.uniui-folder-add-filled:before{content:"\e6c8"}.uniui-color-filled:before{content:"\e6c9"}.uniui-tune-filled:before{content:"\e6ca"}.uniui-calendar-filled:before{content:"\e6c0"}.uniui-notification-filled:before{content:"\e6c1"}.uniui-wallet-filled:before{content:"\e6c2"}.uniui-medal-filled:before{content:"\e6c3"}.uniui-fire-filled:before{content:"\e6c5"}.uniui-refreshempty:before{content:"\e6bf"}.uniui-location-filled:before{content:"\e6af"}.uniui-person-filled:before{content:"\e69d"}.uniui-personadd-filled:before{content:"\e698"}.uniui-arrowthinleft:before{content:"\e6d2"}.uniui-arrowthinup:before{content:"\e6d3"}.uniui-arrowthindown:before{content:"\e6d4"}.uniui-back:before{content:"\e6b9"}.uniui-forward:before{content:"\e6ba"}.uniui-arrow-right:before{content:"\e6bb"}.uniui-arrow-left:before{content:"\e6bc"}.uniui-arrow-up:before{content:"\e6bd"}.uniui-arrow-down:before{content:"\e6be"}.uniui-arrowthinright:before{content:"\e6d1"}.uniui-down:before{content:"\e6b8"}.uniui-bottom:before{content:"\e6b8"}.uniui-arrowright:before{content:"\e6d5"}.uniui-right:before{content:"\e6b5"}.uniui-up:before{content:"\e6b6"}.uniui-top:before{content:"\e6b6"}.uniui-left:before{content:"\e6b7"}.uniui-arrowup:before{content:"\e6d6"}.uniui-eye:before{content:"\e651"}.uniui-eye-filled:before{content:"\e66a"}.uniui-eye-slash:before{content:"\e6b3"}.uniui-eye-slash-filled:before{content:"\e6b4"}.uniui-info-filled:before{content:"\e649"}.uniui-reload:before{content:"\e6b2"}.uniui-micoff-filled:before{content:"\e6b0"}.uniui-map-pin-ellipse:before{content:"\e6ac"}.uniui-map-pin:before{content:"\e6ad"}.uniui-location:before{content:"\e6ae"}.uniui-starhalf:before{content:"\e683"}.uniui-star:before{content:"\e688"}.uniui-star-filled:before{content:"\e68f"}.uniui-calendar:before{content:"\e6a0"}.uniui-fire:before{content:"\e6a1"}.uniui-medal:before{content:"\e6a2"}.uniui-font:before{content:"\e6a3"}.uniui-gift:before{content:"\e6a4"}.uniui-link:before{content:"\e6a5"}.uniui-notification:before{content:"\e6a6"}.uniui-staff:before{content:"\e6a7"}.uniui-vip:before{content:"\e6a8"}.uniui-folder-add:before{content:"\e6a9"}.uniui-tune:before{content:"\e6aa"}.uniui-auth:before{content:"\e6ab"}.uniui-person:before{content:"\e699"}.uniui-email-filled:before{content:"\e69a"}.uniui-phone-filled:before{content:"\e69b"}.uniui-phone:before{content:"\e69c"}.uniui-email:before{content:"\e69e"}.uniui-personadd:before{content:"\e69f"}.uniui-chatboxes-filled:before{content:"\e692"}.uniui-contact:before{content:"\e693"}.uniui-chatbubble-filled:before{content:"\e694"}.uniui-contact-filled:before{content:"\e695"}.uniui-chatboxes:before{content:"\e696"}.uniui-chatbubble:before{content:"\e697"}.uniui-upload-filled:before{content:"\e68e"}.uniui-upload:before{content:"\e690"}.uniui-weixin:before{content:"\e691"}.uniui-compose:before{content:"\e67f"}.uniui-qq:before{content:"\e680"}.uniui-download-filled:before{content:"\e681"}.uniui-pyq:before{content:"\e682"}.uniui-sound:before{content:"\e684"}.uniui-trash-filled:before{content:"\e685"}.uniui-sound-filled:before{content:"\e686"}.uniui-trash:before{content:"\e687"}.uniui-videocam-filled:before{content:"\e689"}.uniui-spinner-cycle:before{content:"\e68a"}.uniui-weibo:before{content:"\e68b"}.uniui-videocam:before{content:"\e68c"}.uniui-download:before{content:"\e68d"}.uniui-help:before{content:"\e679"}.uniui-navigate-filled:before{content:"\e67a"}.uniui-plusempty:before{content:"\e67b"}.uniui-smallcircle:before{content:"\e67c"}.uniui-minus-filled:before{content:"\e67d"}.uniui-micoff:before{content:"\e67e"}.uniui-closeempty:before{content:"\e66c"}.uniui-clear:before{content:"\e66d"}.uniui-navigate:before{content:"\e66e"}.uniui-minus:before{content:"\e66f"}.uniui-image:before{content:"\e670"}.uniui-mic:before{content:"\e671"}.uniui-paperplane:before{content:"\e672"}.uniui-close:before{content:"\e673"}.uniui-help-filled:before{content:"\e674"}.uniui-paperplane-filled:before{content:"\e675"}.uniui-plus:before{content:"\e676"}.uniui-mic-filled:before{content:"\e677"}.uniui-image-filled:before{content:"\e678"}.uniui-locked-filled:before{content:"\e668"}.uniui-info:before{content:"\e669"}.uniui-locked:before{content:"\e66b"}.uniui-camera-filled:before{content:"\e658"}.uniui-chat-filled:before{content:"\e659"}.uniui-camera:before{content:"\e65a"}.uniui-circle:before{content:"\e65b"}.uniui-checkmarkempty:before{content:"\e65c"}.uniui-chat:before{content:"\e65d"}.uniui-circle-filled:before{content:"\e65e"}.uniui-flag:before{content:"\e65f"}.uniui-flag-filled:before{content:"\e660"}.uniui-gear-filled:before{content:"\e661"}.uniui-home:before{content:"\e662"}.uniui-home-filled:before{content:"\e663"}.uniui-gear:before{content:"\e664"}.uniui-smallcircle-filled:before{content:"\e665"}.uniui-map-filled:before{content:"\e666"}.uniui-map:before{content:"\e667"}.uniui-refresh-filled:before{content:"\e656"}.uniui-refresh:before{content:"\e657"}.uniui-cloud-upload:before{content:"\e645"}.uniui-cloud-download-filled:before{content:"\e646"}.uniui-cloud-download:before{content:"\e647"}.uniui-cloud-upload-filled:before{content:"\e648"}.uniui-redo:before{content:"\e64a"}.uniui-images-filled:before{content:"\e64b"}.uniui-undo-filled:before{content:"\e64c"}.uniui-more:before{content:"\e64d"}.uniui-more-filled:before{content:"\e64e"}.uniui-undo:before{content:"\e64f"}.uniui-images:before{content:"\e650"}.uniui-paperclip:before{content:"\e652"}.uniui-settings:before{content:"\e653"}.uniui-search:before{content:"\e654"}.uniui-redo-filled:before{content:"\e655"}.uniui-list:before{content:"\e644"}.uniui-mail-open-filled:before{content:"\e63a"}.uniui-hand-down-filled:before{content:"\e63c"}.uniui-hand-down:before{content:"\e63d"}.uniui-hand-up-filled:before{content:"\e63e"}.uniui-hand-up:before{content:"\e63f"}.uniui-heart-filled:before{content:"\e641"}.uniui-mail-open:before{content:"\e643"}.uniui-heart:before{content:"\e639"}.uniui-loop:before{content:"\e633"}.uniui-pulldown:before{content:"\e632"}.uniui-scan:before{content:"\e62a"}.uniui-bars:before{content:"\e627"}.uniui-checkbox:before{content:"\e62b"}.uniui-checkbox-filled:before{content:"\e62c"}.uniui-shop:before{content:"\e62f"}.uniui-headphones:before{content:"\e630"}.uniui-cart:before{content:"\e631"}@font-face{font-family:uniicons;src:url(uniicons.ttf)}.dk-uni-icon{font-family:uniicons;text-decoration:none;text-align:center;font-style:normal}
@@ -0,0 +1,17 @@
1
+ /* stylelint-disable */
2
+ //@import url('../style/uniicons.css');
3
+ @import './uniicons.scss';
4
+
5
+
6
+ @font-face {
7
+ font-family: uniicons;
8
+ src: url('../style/uniicons.ttf');
9
+ }
10
+
11
+ .dk-uni-icon {
12
+ font-family: uniicons;
13
+ text-decoration: none;
14
+ text-align: center;
15
+ font-style: normal;
16
+ }
17
+ /* stylelint-enable */
@@ -0,0 +1 @@
1
+ .uniui-cart-filled:before{content:"\e6d0"}.uniui-gift-filled:before{content:"\e6c4"}.uniui-color:before{content:"\e6cf"}.uniui-wallet:before{content:"\e6b1"}.uniui-settings-filled:before{content:"\e6ce"}.uniui-auth-filled:before{content:"\e6cc"}.uniui-shop-filled:before{content:"\e6cd"}.uniui-staff-filled:before{content:"\e6cb"}.uniui-vip-filled:before{content:"\e6c6"}.uniui-plus-filled:before{content:"\e6c7"}.uniui-folder-add-filled:before{content:"\e6c8"}.uniui-color-filled:before{content:"\e6c9"}.uniui-tune-filled:before{content:"\e6ca"}.uniui-calendar-filled:before{content:"\e6c0"}.uniui-notification-filled:before{content:"\e6c1"}.uniui-wallet-filled:before{content:"\e6c2"}.uniui-medal-filled:before{content:"\e6c3"}.uniui-fire-filled:before{content:"\e6c5"}.uniui-refreshempty:before{content:"\e6bf"}.uniui-location-filled:before{content:"\e6af"}.uniui-person-filled:before{content:"\e69d"}.uniui-personadd-filled:before{content:"\e698"}.uniui-arrowthinleft:before{content:"\e6d2"}.uniui-arrowthinup:before{content:"\e6d3"}.uniui-arrowthindown:before{content:"\e6d4"}.uniui-back:before{content:"\e6b9"}.uniui-forward:before{content:"\e6ba"}.uniui-arrow-right:before{content:"\e6bb"}.uniui-arrow-left:before{content:"\e6bc"}.uniui-arrow-up:before{content:"\e6bd"}.uniui-arrow-down:before{content:"\e6be"}.uniui-arrowthinright:before{content:"\e6d1"}.uniui-down:before{content:"\e6b8"}.uniui-bottom:before{content:"\e6b8"}.uniui-arrowright:before{content:"\e6d5"}.uniui-right:before{content:"\e6b5"}.uniui-up:before{content:"\e6b6"}.uniui-top:before{content:"\e6b6"}.uniui-left:before{content:"\e6b7"}.uniui-arrowup:before{content:"\e6d6"}.uniui-eye:before{content:"\e651"}.uniui-eye-filled:before{content:"\e66a"}.uniui-eye-slash:before{content:"\e6b3"}.uniui-eye-slash-filled:before{content:"\e6b4"}.uniui-info-filled:before{content:"\e649"}.uniui-reload:before{content:"\e6b2"}.uniui-micoff-filled:before{content:"\e6b0"}.uniui-map-pin-ellipse:before{content:"\e6ac"}.uniui-map-pin:before{content:"\e6ad"}.uniui-location:before{content:"\e6ae"}.uniui-starhalf:before{content:"\e683"}.uniui-star:before{content:"\e688"}.uniui-star-filled:before{content:"\e68f"}.uniui-calendar:before{content:"\e6a0"}.uniui-fire:before{content:"\e6a1"}.uniui-medal:before{content:"\e6a2"}.uniui-font:before{content:"\e6a3"}.uniui-gift:before{content:"\e6a4"}.uniui-link:before{content:"\e6a5"}.uniui-notification:before{content:"\e6a6"}.uniui-staff:before{content:"\e6a7"}.uniui-vip:before{content:"\e6a8"}.uniui-folder-add:before{content:"\e6a9"}.uniui-tune:before{content:"\e6aa"}.uniui-auth:before{content:"\e6ab"}.uniui-person:before{content:"\e699"}.uniui-email-filled:before{content:"\e69a"}.uniui-phone-filled:before{content:"\e69b"}.uniui-phone:before{content:"\e69c"}.uniui-email:before{content:"\e69e"}.uniui-personadd:before{content:"\e69f"}.uniui-chatboxes-filled:before{content:"\e692"}.uniui-contact:before{content:"\e693"}.uniui-chatbubble-filled:before{content:"\e694"}.uniui-contact-filled:before{content:"\e695"}.uniui-chatboxes:before{content:"\e696"}.uniui-chatbubble:before{content:"\e697"}.uniui-upload-filled:before{content:"\e68e"}.uniui-upload:before{content:"\e690"}.uniui-weixin:before{content:"\e691"}.uniui-compose:before{content:"\e67f"}.uniui-qq:before{content:"\e680"}.uniui-download-filled:before{content:"\e681"}.uniui-pyq:before{content:"\e682"}.uniui-sound:before{content:"\e684"}.uniui-trash-filled:before{content:"\e685"}.uniui-sound-filled:before{content:"\e686"}.uniui-trash:before{content:"\e687"}.uniui-videocam-filled:before{content:"\e689"}.uniui-spinner-cycle:before{content:"\e68a"}.uniui-weibo:before{content:"\e68b"}.uniui-videocam:before{content:"\e68c"}.uniui-download:before{content:"\e68d"}.uniui-help:before{content:"\e679"}.uniui-navigate-filled:before{content:"\e67a"}.uniui-plusempty:before{content:"\e67b"}.uniui-smallcircle:before{content:"\e67c"}.uniui-minus-filled:before{content:"\e67d"}.uniui-micoff:before{content:"\e67e"}.uniui-closeempty:before{content:"\e66c"}.uniui-clear:before{content:"\e66d"}.uniui-navigate:before{content:"\e66e"}.uniui-minus:before{content:"\e66f"}.uniui-image:before{content:"\e670"}.uniui-mic:before{content:"\e671"}.uniui-paperplane:before{content:"\e672"}.uniui-close:before{content:"\e673"}.uniui-help-filled:before{content:"\e674"}.uniui-paperplane-filled:before{content:"\e675"}.uniui-plus:before{content:"\e676"}.uniui-mic-filled:before{content:"\e677"}.uniui-image-filled:before{content:"\e678"}.uniui-locked-filled:before{content:"\e668"}.uniui-info:before{content:"\e669"}.uniui-locked:before{content:"\e66b"}.uniui-camera-filled:before{content:"\e658"}.uniui-chat-filled:before{content:"\e659"}.uniui-camera:before{content:"\e65a"}.uniui-circle:before{content:"\e65b"}.uniui-checkmarkempty:before{content:"\e65c"}.uniui-chat:before{content:"\e65d"}.uniui-circle-filled:before{content:"\e65e"}.uniui-flag:before{content:"\e65f"}.uniui-flag-filled:before{content:"\e660"}.uniui-gear-filled:before{content:"\e661"}.uniui-home:before{content:"\e662"}.uniui-home-filled:before{content:"\e663"}.uniui-gear:before{content:"\e664"}.uniui-smallcircle-filled:before{content:"\e665"}.uniui-map-filled:before{content:"\e666"}.uniui-map:before{content:"\e667"}.uniui-refresh-filled:before{content:"\e656"}.uniui-refresh:before{content:"\e657"}.uniui-cloud-upload:before{content:"\e645"}.uniui-cloud-download-filled:before{content:"\e646"}.uniui-cloud-download:before{content:"\e647"}.uniui-cloud-upload-filled:before{content:"\e648"}.uniui-redo:before{content:"\e64a"}.uniui-images-filled:before{content:"\e64b"}.uniui-undo-filled:before{content:"\e64c"}.uniui-more:before{content:"\e64d"}.uniui-more-filled:before{content:"\e64e"}.uniui-undo:before{content:"\e64f"}.uniui-images:before{content:"\e650"}.uniui-paperclip:before{content:"\e652"}.uniui-settings:before{content:"\e653"}.uniui-search:before{content:"\e654"}.uniui-redo-filled:before{content:"\e655"}.uniui-list:before{content:"\e644"}.uniui-mail-open-filled:before{content:"\e63a"}.uniui-hand-down-filled:before{content:"\e63c"}.uniui-hand-down:before{content:"\e63d"}.uniui-hand-up-filled:before{content:"\e63e"}.uniui-hand-up:before{content:"\e63f"}.uniui-heart-filled:before{content:"\e641"}.uniui-mail-open:before{content:"\e643"}.uniui-heart:before{content:"\e639"}.uniui-loop:before{content:"\e633"}.uniui-pulldown:before{content:"\e632"}.uniui-scan:before{content:"\e62a"}.uniui-bars:before{content:"\e627"}.uniui-checkbox:before{content:"\e62b"}.uniui-checkbox-filled:before{content:"\e62c"}.uniui-shop:before{content:"\e62f"}.uniui-headphones:before{content:"\e630"}.uniui-cart:before{content:"\e631"}