ll-plus 1.0.0 → 1.0.3

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 (255) hide show
  1. package/es/_virtual/_plugin-vue_export-helper.mjs +10 -0
  2. package/es/_virtual/_plugin-vue_export-helper.mjs.map +1 -0
  3. package/es/component.mjs +8 -0
  4. package/es/component.mjs.map +1 -0
  5. package/es/components/icon/index.d.ts +55 -10
  6. package/es/components/icon/index.mjs +10 -0
  7. package/es/components/icon/index.mjs.map +1 -0
  8. package/es/components/icon/src/icon.d.ts +27 -3
  9. package/es/components/icon/src/icon.mjs +34 -0
  10. package/es/components/icon/src/icon.mjs.map +1 -0
  11. package/es/components/icon/src/icon.vue.d.ts +56 -10
  12. package/es/components/icon/src/icon.vue.mjs +8 -0
  13. package/es/components/icon/src/icon.vue.mjs.map +1 -0
  14. package/es/components/icon/src/icon.vue2.mjs +59 -0
  15. package/es/components/icon/src/icon.vue2.mjs.map +1 -0
  16. package/es/components/index.d.ts +1 -0
  17. package/es/components/index.mjs +7 -0
  18. package/es/components/index.mjs.map +1 -0
  19. package/es/components/table/index.d.ts +592 -0
  20. package/es/components/table/index.mjs +10 -0
  21. package/es/components/table/index.mjs.map +1 -0
  22. package/es/components/table/src/components/header-search.vue.d.ts +110 -0
  23. package/es/components/table/src/components/header-search.vue.mjs +8 -0
  24. package/es/components/table/src/components/header-search.vue.mjs.map +1 -0
  25. package/es/components/table/src/components/header-search.vue2.mjs +125 -0
  26. package/es/components/table/src/components/header-search.vue2.mjs.map +1 -0
  27. package/es/components/table/src/components/main-table.vue.d.ts +254 -0
  28. package/es/components/table/src/components/main-table.vue.mjs +8 -0
  29. package/es/components/table/src/components/main-table.vue.mjs.map +1 -0
  30. package/es/components/table/src/components/main-table.vue2.mjs +549 -0
  31. package/es/components/table/src/components/main-table.vue2.mjs.map +1 -0
  32. package/es/components/table/src/components/pagination.vue.d.ts +65 -0
  33. package/es/components/table/src/components/pagination.vue.mjs +8 -0
  34. package/es/components/table/src/components/pagination.vue.mjs.map +1 -0
  35. package/es/components/table/src/components/pagination.vue2.mjs +37 -0
  36. package/es/components/table/src/components/pagination.vue2.mjs.map +1 -0
  37. package/es/components/table/src/table.d.ts +148 -0
  38. package/es/components/table/src/table.mjs +196 -0
  39. package/es/components/table/src/table.mjs.map +1 -0
  40. package/es/components/table/src/table.vue.d.ts +586 -0
  41. package/es/components/table/src/table.vue.mjs +8 -0
  42. package/es/components/table/src/table.vue.mjs.map +1 -0
  43. package/es/components/table/src/table.vue2.mjs +134 -0
  44. package/es/components/table/src/table.vue2.mjs.map +1 -0
  45. package/es/defaults.d.ts +4 -0
  46. package/es/defaults.mjs +8 -0
  47. package/es/defaults.mjs.map +1 -0
  48. package/es/index.d.ts +4 -6
  49. package/es/index.mjs +12 -0
  50. package/es/index.mjs.map +1 -0
  51. package/es/ll-plus/defaults.d.ts +4 -0
  52. package/es/ll-plus/index.d.ts +4 -0
  53. package/es/ll-plus/make-installer.d.ts +4 -0
  54. package/es/locale/index.d.ts +10 -0
  55. package/es/locale/index.mjs +6 -0
  56. package/es/locale/index.mjs.map +1 -0
  57. package/es/locale/lang/en_US.d.ts +144 -0
  58. package/es/locale/lang/en_US.mjs +147 -0
  59. package/es/locale/lang/en_US.mjs.map +1 -0
  60. package/es/locale/lang/zh_CN.d.ts +169 -0
  61. package/es/locale/lang/zh_CN.mjs +172 -0
  62. package/es/locale/lang/zh_CN.mjs.map +1 -0
  63. package/es/locale/lang/zh_TW.d.ts +125 -0
  64. package/es/locale/lang/zh_TW.mjs +128 -0
  65. package/es/locale/lang/zh_TW.mjs.map +1 -0
  66. package/es/make-installer.d.ts +4 -0
  67. package/es/make-installer.mjs +12 -0
  68. package/es/make-installer.mjs.map +1 -0
  69. package/es/utils/add-unit.mjs +7 -0
  70. package/es/utils/add-unit.mjs.map +1 -0
  71. package/es/utils/create-namespace.mjs +40 -0
  72. package/es/utils/create-namespace.mjs.map +1 -0
  73. package/es/utils/index.d.ts +2 -1
  74. package/es/utils/index.mjs +8 -0
  75. package/es/utils/index.mjs.map +1 -0
  76. package/es/utils/props/index.d.ts +3 -0
  77. package/es/utils/props/index.mjs +6 -0
  78. package/es/utils/props/index.mjs.map +1 -0
  79. package/es/utils/props/runtime.d.ts +29 -0
  80. package/es/utils/props/runtime.mjs +53 -0
  81. package/es/utils/props/runtime.mjs.map +1 -0
  82. package/es/utils/props/types.d.ts +120 -0
  83. package/es/utils/props/types.mjs +2 -0
  84. package/es/utils/props/types.mjs.map +1 -0
  85. package/es/utils/props/util.d.ts +8 -0
  86. package/es/utils/props/util.mjs +2 -0
  87. package/es/utils/props/util.mjs.map +1 -0
  88. package/es/utils/types.d.ts +10 -0
  89. package/es/utils/types.mjs +30 -0
  90. package/es/utils/types.mjs.map +1 -0
  91. package/es/utils/with-install.mjs +10 -0
  92. package/es/utils/with-install.mjs.map +1 -0
  93. package/global.d.ts +11 -0
  94. package/index.full.js +8305 -0
  95. package/index.full.min.js +25 -0
  96. package/index.full.min.js.map +1 -0
  97. package/index.full.min.mjs +25 -0
  98. package/index.full.min.mjs.map +1 -0
  99. package/index.full.mjs +8288 -0
  100. package/lib/_virtual/_plugin-vue_export-helper.js +14 -0
  101. package/lib/_virtual/_plugin-vue_export-helper.js.map +1 -0
  102. package/lib/component.js +12 -0
  103. package/lib/component.js.map +1 -0
  104. package/lib/components/icon/index.d.ts +55 -10
  105. package/lib/components/icon/index.js +8 -31
  106. package/lib/components/icon/index.js.map +1 -0
  107. package/lib/components/icon/src/icon.d.ts +27 -3
  108. package/lib/components/icon/src/icon.js +36 -0
  109. package/lib/components/icon/src/icon.js.map +1 -0
  110. package/lib/components/icon/src/icon.vue.d.ts +56 -10
  111. package/lib/components/icon/src/icon.vue.js +12 -0
  112. package/lib/components/icon/src/icon.vue.js.map +1 -0
  113. package/lib/components/icon/src/icon.vue2.js +63 -0
  114. package/lib/components/icon/src/icon.vue2.js.map +1 -0
  115. package/lib/components/index.d.ts +1 -0
  116. package/lib/components/index.js +15 -8
  117. package/lib/components/index.js.map +1 -0
  118. package/lib/components/table/index.d.ts +592 -0
  119. package/lib/components/table/index.js +21 -0
  120. package/lib/components/table/index.js.map +1 -0
  121. package/lib/components/table/src/components/header-search.vue.d.ts +110 -0
  122. package/lib/components/table/src/components/header-search.vue.js +12 -0
  123. package/lib/components/table/src/components/header-search.vue.js.map +1 -0
  124. package/lib/components/table/src/components/header-search.vue2.js +129 -0
  125. package/lib/components/table/src/components/header-search.vue2.js.map +1 -0
  126. package/lib/components/table/src/components/main-table.vue.d.ts +254 -0
  127. package/lib/components/table/src/components/main-table.vue.js +12 -0
  128. package/lib/components/table/src/components/main-table.vue.js.map +1 -0
  129. package/lib/components/table/src/components/main-table.vue2.js +553 -0
  130. package/lib/components/table/src/components/main-table.vue2.js.map +1 -0
  131. package/lib/components/table/src/components/pagination.vue.d.ts +65 -0
  132. package/lib/components/table/src/components/pagination.vue.js +12 -0
  133. package/lib/components/table/src/components/pagination.vue.js.map +1 -0
  134. package/lib/components/table/src/components/pagination.vue2.js +41 -0
  135. package/lib/components/table/src/components/pagination.vue2.js.map +1 -0
  136. package/lib/components/table/src/table.d.ts +148 -0
  137. package/lib/components/table/src/table.js +203 -0
  138. package/lib/components/table/src/table.js.map +1 -0
  139. package/lib/components/table/src/table.vue.d.ts +586 -0
  140. package/lib/components/table/src/table.vue.js +12 -0
  141. package/lib/components/table/src/table.vue.js.map +1 -0
  142. package/lib/components/table/src/table.vue2.js +138 -0
  143. package/lib/components/table/src/table.vue2.js.map +1 -0
  144. package/lib/defaults.d.ts +4 -0
  145. package/lib/defaults.js +12 -0
  146. package/lib/defaults.js.map +1 -0
  147. package/lib/index.d.ts +4 -6
  148. package/lib/index.js +20 -15
  149. package/lib/index.js.map +1 -0
  150. package/lib/ll-plus/component.d.ts +3 -0
  151. package/lib/ll-plus/defaults.d.ts +4 -0
  152. package/lib/ll-plus/index.d.ts +4 -0
  153. package/lib/ll-plus/make-installer.d.ts +4 -0
  154. package/lib/locale/index.d.ts +10 -0
  155. package/lib/locale/index.js +12 -0
  156. package/lib/locale/index.js.map +1 -0
  157. package/lib/locale/lang/en_US.d.ts +144 -0
  158. package/lib/locale/lang/en_US.js +151 -0
  159. package/lib/locale/lang/en_US.js.map +1 -0
  160. package/lib/locale/lang/zh_CN.d.ts +169 -0
  161. package/lib/locale/lang/zh_CN.js +176 -0
  162. package/lib/locale/lang/zh_CN.js.map +1 -0
  163. package/lib/locale/lang/zh_TW.d.ts +125 -0
  164. package/lib/locale/lang/zh_TW.js +132 -0
  165. package/lib/locale/lang/zh_TW.js.map +1 -0
  166. package/lib/make-installer.d.ts +4 -0
  167. package/lib/make-installer.js +14 -0
  168. package/lib/make-installer.js.map +1 -0
  169. package/lib/utils/add-unit.js +9 -0
  170. package/lib/utils/add-unit.js.map +1 -0
  171. package/lib/utils/create-namespace.js +34 -34
  172. package/lib/utils/create-namespace.js.map +1 -0
  173. package/lib/utils/index.d.ts +2 -1
  174. package/lib/utils/index.js +18 -18
  175. package/lib/utils/index.js.map +1 -0
  176. package/lib/utils/props/index.d.ts +3 -0
  177. package/lib/utils/props/index.js +14 -0
  178. package/lib/utils/props/index.js.map +1 -0
  179. package/lib/utils/props/runtime.d.ts +29 -0
  180. package/lib/utils/props/runtime.js +59 -0
  181. package/lib/utils/props/runtime.js.map +1 -0
  182. package/lib/utils/props/types.d.ts +120 -0
  183. package/lib/utils/props/types.js +4 -0
  184. package/lib/utils/props/types.js.map +1 -0
  185. package/lib/utils/props/util.d.ts +8 -0
  186. package/lib/utils/props/util.js +4 -0
  187. package/lib/utils/props/util.js.map +1 -0
  188. package/lib/utils/types.d.ts +10 -0
  189. package/lib/utils/types.js +70 -0
  190. package/lib/utils/types.js.map +1 -0
  191. package/lib/utils/with-install.js +8 -6
  192. package/lib/utils/with-install.js.map +1 -0
  193. package/package.json +37 -3
  194. package/theme-chalk/css/icon.css +1 -1
  195. package/theme-chalk/css/index.css +5 -1
  196. package/theme-chalk/css/table.css +5 -0
  197. package/theme-chalk/fonts/iconfont.js +1 -0
  198. package/theme-chalk/fonts/iconfont.json +1262 -0
  199. package/types/packages/component.d.ts +3 -0
  200. package/types/packages/components/icon/index.d.ts +79 -0
  201. package/types/packages/components/icon/src/icon.d.ts +30 -0
  202. package/types/packages/components/icon/src/icon.vue.d.ts +73 -0
  203. package/types/packages/components/index.d.ts +2 -0
  204. package/types/packages/components/table/index.d.ts +592 -0
  205. package/types/packages/components/table/src/components/header-search.vue.d.ts +110 -0
  206. package/types/packages/components/table/src/components/main-table.vue.d.ts +254 -0
  207. package/types/packages/components/table/src/components/pagination.vue.d.ts +65 -0
  208. package/types/packages/components/table/src/table.d.ts +148 -0
  209. package/types/packages/components/table/src/table.vue.d.ts +586 -0
  210. package/types/packages/defaults.d.ts +4 -0
  211. package/types/packages/index.d.ts +4 -0
  212. package/types/packages/ll-plus/component.d.ts +3 -0
  213. package/types/packages/ll-plus/defaults.d.ts +4 -0
  214. package/types/packages/ll-plus/index.d.ts +4 -0
  215. package/types/packages/ll-plus/make-installer.d.ts +4 -0
  216. package/types/packages/locale/index.d.ts +10 -0
  217. package/types/packages/locale/lang/en_US.d.ts +144 -0
  218. package/types/packages/locale/lang/zh_CN.d.ts +169 -0
  219. package/types/packages/locale/lang/zh_TW.d.ts +125 -0
  220. package/types/packages/make-installer.d.ts +4 -0
  221. package/types/{utils → packages/utils}/index.d.ts +2 -1
  222. package/types/packages/utils/props/index.d.ts +3 -0
  223. package/types/packages/utils/props/runtime.d.ts +29 -0
  224. package/types/packages/utils/props/types.d.ts +120 -0
  225. package/types/packages/utils/props/util.d.ts +8 -0
  226. package/types/packages/utils/types.d.ts +10 -0
  227. package/types/tsconfig.web.tsbuildinfo +1 -0
  228. package/entry/types/index.d.ts +0 -6
  229. package/es/components/icon/index.js +0 -33
  230. package/es/components/index.js +0 -1
  231. package/es/components.js +0 -5
  232. package/es/index.js +0 -11
  233. package/es/utils/add-util.js +0 -3
  234. package/es/utils/create-namespace.js +0 -38
  235. package/es/utils/index.js +0 -3
  236. package/es/utils/with-install.js +0 -6
  237. package/index.esm.js +0 -91
  238. package/index.js +0 -101
  239. package/lib/components.js +0 -9
  240. package/lib/utils/add-util.js +0 -7
  241. package/theme-chalk/fonts/iconfont.ttf +0 -0
  242. package/theme-chalk/fonts/iconfont.woff +0 -0
  243. package/theme-chalk/fonts/iconfont.woff2 +0 -0
  244. package/types/components/icon/index.d.ts +0 -34
  245. package/types/components/icon/src/icon.d.ts +0 -6
  246. package/types/components/icon/src/icon.vue.d.ts +0 -27
  247. package/types/components/index.d.ts +0 -1
  248. /package/{entry/types/components.d.ts → es/component.d.ts} +0 -0
  249. /package/es/{components.d.ts → ll-plus/component.d.ts} +0 -0
  250. /package/es/utils/{add-util.d.ts → add-unit.d.ts} +0 -0
  251. /package/lib/{components.d.ts → component.d.ts} +0 -0
  252. /package/lib/utils/{add-util.d.ts → add-unit.d.ts} +0 -0
  253. /package/types/{utils/add-util.d.ts → packages/utils/add-unit.d.ts} +0 -0
  254. /package/types/{utils → packages/utils}/create-namespace.d.ts +0 -0
  255. /package/types/{utils → packages/utils}/with-install.d.ts +0 -0
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var _export_sfc = (sfc, props) => {
6
+ const target = sfc.__vccOpts || sfc;
7
+ for (const [key, val] of props) {
8
+ target[key] = val;
9
+ }
10
+ return target;
11
+ };
12
+
13
+ exports.default = _export_sfc;
14
+ //# sourceMappingURL=_plugin-vue_export-helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_plugin-vue_export-helper.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ require('./components/index.js');
6
+ var index = require('./components/icon/index.js');
7
+
8
+ "use strict";
9
+ var Components = [index.LlIcon];
10
+
11
+ exports.default = Components;
12
+ //# sourceMappingURL=component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.js","sources":["../../packages/ll-plus/component.ts"],"sourcesContent":["import type { Plugin } from 'vue'\n\nimport { LlIcon } from '@ll-plus/components/index'\n\nexport default [LlIcon] as Plugin[]\n"],"names":["LlIcon"],"mappings":";;;;;;;;AAIA,iBAAe,CAACA,YAAM,CAAA;;;;"}
@@ -1,12 +1,39 @@
1
1
  import Icon from './src/icon.vue';
2
2
  export declare const LlIcon: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
3
- readonly size: import("vue").PropType<string | number>;
4
- readonly color: StringConstructor;
3
+ readonly iconName: {
4
+ readonly type: import("vue").PropType<string>;
5
+ readonly required: false;
6
+ readonly validator: ((val: unknown) => boolean) | undefined;
7
+ __epPropKey: true;
8
+ };
9
+ readonly className: {
10
+ readonly type: import("vue").PropType<string>;
11
+ readonly required: false;
12
+ readonly validator: ((val: unknown) => boolean) | undefined;
13
+ __epPropKey: true;
14
+ };
15
+ readonly color: {
16
+ readonly type: import("vue").PropType<string>;
17
+ readonly required: false;
18
+ readonly validator: ((val: unknown) => boolean) | undefined;
19
+ __epPropKey: true;
20
+ };
21
+ readonly size: {
22
+ readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
23
+ readonly required: false;
24
+ readonly validator: ((val: unknown) => boolean) | undefined;
25
+ __epPropKey: true;
26
+ };
5
27
  }, {
6
28
  props: import("@vue/shared").LooseRequired<{
7
- readonly size?: string | number;
8
- readonly color?: string;
29
+ readonly size?: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown> | undefined;
30
+ readonly iconName?: string | undefined;
31
+ readonly className?: string | undefined;
32
+ readonly color?: string | undefined;
9
33
  } & {}>;
34
+ iconName: import("vue").ComputedRef<string>;
35
+ svgClass: import("vue").ComputedRef<string>;
36
+ style: import("vue").ComputedRef<import("vue").CSSProperties>;
10
37
  bem: {
11
38
  b: (blockSuffix?: string) => string;
12
39
  e: (element?: string) => string;
@@ -17,13 +44,31 @@ export declare const LlIcon: import("ll-plus/es/utils").SFCWithInstall<import("v
17
44
  bem: (blockSuffix: string, element: string, modifier: string) => string;
18
45
  is: (name?: string) => string;
19
46
  };
20
- style: import("vue").ComputedRef<{
21
- 'font-size'?: string;
22
- color?: string;
23
- }>;
24
47
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
25
- readonly size: import("vue").PropType<string | number>;
26
- readonly color: StringConstructor;
48
+ readonly iconName: {
49
+ readonly type: import("vue").PropType<string>;
50
+ readonly required: false;
51
+ readonly validator: ((val: unknown) => boolean) | undefined;
52
+ __epPropKey: true;
53
+ };
54
+ readonly className: {
55
+ readonly type: import("vue").PropType<string>;
56
+ readonly required: false;
57
+ readonly validator: ((val: unknown) => boolean) | undefined;
58
+ __epPropKey: true;
59
+ };
60
+ readonly color: {
61
+ readonly type: import("vue").PropType<string>;
62
+ readonly required: false;
63
+ readonly validator: ((val: unknown) => boolean) | undefined;
64
+ __epPropKey: true;
65
+ };
66
+ readonly size: {
67
+ readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
68
+ readonly required: false;
69
+ readonly validator: ((val: unknown) => boolean) | undefined;
70
+ __epPropKey: true;
71
+ };
27
72
  }>>, {}, {}>>;
28
73
  export default LlIcon;
29
74
  export * from './src/icon';
@@ -2,38 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var utils = require('ll-plus/lib/utils');
6
- var vue = require('vue');
5
+ require('../../utils/index.js');
6
+ var icon$1 = require('./src/icon.vue.js');
7
+ var icon = require('./src/icon.js');
8
+ var withInstall = require('../../utils/with-install.js');
7
9
 
8
- const iconProps = {
9
- size: [Number, String],
10
- color: String
11
- };
12
-
13
- var script = vue.defineComponent(Object.assign({
14
- name: 'LlIcon'
15
- }, { __name: 'icon', props: iconProps, setup(__props) {
16
- const props = __props;
17
- const bem = utils.createNamespace('icon');
18
- const style = vue.computed(() => {
19
- if (!props.color && !props.size)
20
- return {};
21
- return Object.assign(Object.assign({}, (props.color ? { color: props.color } : {})), (props.size ? { 'font-size': utils.addUnit(props.size) } : {}));
22
- });
23
- return (_ctx, _cache) => {
24
- return (vue.openBlock(), vue.createElementBlock("i", {
25
- class: vue.normalizeClass(vue.unref(bem).b()),
26
- style: vue.normalizeStyle(style.value)
27
- }, [
28
- vue.renderSlot(_ctx.$slots, "default")
29
- ], 6));
30
- };
31
- } }));
32
-
33
- script.__file = "packages/components/icon/src/icon.vue";
34
-
35
- const LlIcon = utils.withInstall(script);
10
+ "use strict";
11
+ const LlIcon = withInstall.withInstall(icon$1.default);
36
12
 
13
+ exports.iconProps = icon.iconProps;
37
14
  exports.LlIcon = LlIcon;
38
15
  exports.default = LlIcon;
39
- exports.iconProps = iconProps;
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../packages/components/icon/index.ts"],"sourcesContent":["import { withInstall } from '@ll-plus/utils'\n\nimport Icon from './src/icon.vue'\n\nexport const LlIcon = withInstall(Icon)\nexport default LlIcon\nexport * from './src/icon'\n\n// 把ZIcon组件类型合并带全局组件中 到时候使用时有提示\ndeclare module 'vue' {\n export interface GlobalComponents {\n LlIcon: typeof Icon\n }\n}\n"],"names":["withInstall","Icon"],"mappings":";;;;;;;;;;AAIa,MAAA,MAAA,GAASA,wBAAYC,cAAI;;;;;;"}
@@ -1,6 +1,30 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
1
+ import type { ExtractPropTypes } from 'vue';
2
+ import type Icon from './icon.vue';
2
3
  export declare const iconProps: {
3
- readonly size: PropType<string | number>;
4
- readonly color: StringConstructor;
4
+ readonly iconName: {
5
+ readonly type: import("vue").PropType<string>;
6
+ readonly required: false;
7
+ readonly validator: ((val: unknown) => boolean) | undefined;
8
+ __epPropKey: true;
9
+ };
10
+ readonly className: {
11
+ readonly type: import("vue").PropType<string>;
12
+ readonly required: false;
13
+ readonly validator: ((val: unknown) => boolean) | undefined;
14
+ __epPropKey: true;
15
+ };
16
+ readonly color: {
17
+ readonly type: import("vue").PropType<string>;
18
+ readonly required: false;
19
+ readonly validator: ((val: unknown) => boolean) | undefined;
20
+ __epPropKey: true;
21
+ };
22
+ readonly size: {
23
+ readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
24
+ readonly required: false;
25
+ readonly validator: ((val: unknown) => boolean) | undefined;
26
+ __epPropKey: true;
27
+ };
5
28
  };
6
29
  export type IconProps = ExtractPropTypes<typeof iconProps>;
30
+ export type IconInstance = InstanceType<typeof Icon>;
@@ -0,0 +1,36 @@
1
+ 'use strict';
2
+
3
+ require('../../../utils/index.js');
4
+ var runtime = require('../../../utils/props/runtime.js');
5
+
6
+ "use strict";
7
+ const iconProps = runtime.buildProps({
8
+ // buildProps和defineprops一样
9
+ /**
10
+ * @description icon的类型
11
+ */
12
+ iconName: {
13
+ type: String
14
+ },
15
+ /**
16
+ * @description icon的className
17
+ */
18
+ className: {
19
+ type: String
20
+ },
21
+ /**
22
+ * @description svg 的 fill 颜色
23
+ */
24
+ color: {
25
+ type: String
26
+ },
27
+ /**
28
+ * @description SVG 图标的大小,size x size
29
+ */
30
+ size: {
31
+ type: runtime.definePropType([Number, String])
32
+ }
33
+ });
34
+
35
+ exports.iconProps = iconProps;
36
+ //# sourceMappingURL=icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.js","sources":["../../../../../packages/components/icon/src/icon.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\n\nimport { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type Icon from './icon.vue'\n\nexport const iconProps = buildProps({\n // buildProps和defineprops一样\n /**\n * @description icon的类型\n */\n iconName: {\n type: String\n },\n /**\n * @description icon的className\n */\n className: {\n type: String\n },\n /**\n * @description svg 的 fill 颜色\n */\n color: {\n type: String\n },\n /**\n * @description SVG 图标的大小,size x size\n */\n size: {\n type: definePropType<number | string>([Number, String])\n }\n} as const)\n\n// 导出iconProps\nexport type IconProps = ExtractPropTypes<typeof iconProps> // ExtractPropTypes和defineCpmponent类似\n// 导出icon实列类型\nexport type IconInstance = InstanceType<typeof Icon>\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;AAMO,MAAM,YAAYA,kBAAW,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAKlC,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAAC,sBAAA,CAAgC,CAAC,MAAA,EAAQ,MAAM,CAAC,CAAA;AAAA,GACxD;AACF,CAAU;;;;"}
@@ -1,11 +1,39 @@
1
+ import { CSSProperties } from 'vue';
1
2
  declare const _default: import("vue").DefineComponent<{
2
- readonly size: import("vue").PropType<string | number>;
3
- readonly color: StringConstructor;
3
+ readonly iconName: {
4
+ readonly type: import("vue").PropType<string>;
5
+ readonly required: false;
6
+ readonly validator: ((val: unknown) => boolean) | undefined;
7
+ __epPropKey: true;
8
+ };
9
+ readonly className: {
10
+ readonly type: import("vue").PropType<string>;
11
+ readonly required: false;
12
+ readonly validator: ((val: unknown) => boolean) | undefined;
13
+ __epPropKey: true;
14
+ };
15
+ readonly color: {
16
+ readonly type: import("vue").PropType<string>;
17
+ readonly required: false;
18
+ readonly validator: ((val: unknown) => boolean) | undefined;
19
+ __epPropKey: true;
20
+ };
21
+ readonly size: {
22
+ readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
23
+ readonly required: false;
24
+ readonly validator: ((val: unknown) => boolean) | undefined;
25
+ __epPropKey: true;
26
+ };
4
27
  }, {
5
28
  props: import("@vue/shared").LooseRequired<{
6
- readonly size?: string | number;
7
- readonly color?: string;
29
+ readonly size?: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown> | undefined;
30
+ readonly iconName?: string | undefined;
31
+ readonly className?: string | undefined;
32
+ readonly color?: string | undefined;
8
33
  } & {}>;
34
+ iconName: import("vue").ComputedRef<string>;
35
+ svgClass: import("vue").ComputedRef<string>;
36
+ style: import("vue").ComputedRef<CSSProperties>;
9
37
  bem: {
10
38
  b: (blockSuffix?: string) => string;
11
39
  e: (element?: string) => string;
@@ -16,12 +44,30 @@ declare const _default: import("vue").DefineComponent<{
16
44
  bem: (blockSuffix: string, element: string, modifier: string) => string;
17
45
  is: (name?: string) => string;
18
46
  };
19
- style: import("vue").ComputedRef<{
20
- 'font-size'?: string;
21
- color?: string;
22
- }>;
23
47
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
24
- readonly size: import("vue").PropType<string | number>;
25
- readonly color: StringConstructor;
48
+ readonly iconName: {
49
+ readonly type: import("vue").PropType<string>;
50
+ readonly required: false;
51
+ readonly validator: ((val: unknown) => boolean) | undefined;
52
+ __epPropKey: true;
53
+ };
54
+ readonly className: {
55
+ readonly type: import("vue").PropType<string>;
56
+ readonly required: false;
57
+ readonly validator: ((val: unknown) => boolean) | undefined;
58
+ __epPropKey: true;
59
+ };
60
+ readonly color: {
61
+ readonly type: import("vue").PropType<string>;
62
+ readonly required: false;
63
+ readonly validator: ((val: unknown) => boolean) | undefined;
64
+ __epPropKey: true;
65
+ };
66
+ readonly size: {
67
+ readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
68
+ readonly required: false;
69
+ readonly validator: ((val: unknown) => boolean) | undefined;
70
+ __epPropKey: true;
71
+ };
26
72
  }>>, {}, {}>;
27
73
  export default _default;
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var icon_vue_vue_type_script_setup_true_lang = require('./icon.vue2.js');
6
+ var _pluginVue_exportHelper = require('../../../_virtual/_plugin-vue_export-helper.js');
7
+
8
+ "use strict";
9
+ var Icon = /* @__PURE__ */ _pluginVue_exportHelper.default(icon_vue_vue_type_script_setup_true_lang.default, [["__file", "icon.vue"]]);
10
+
11
+ exports.default = Icon;
12
+ //# sourceMappingURL=icon.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -0,0 +1,63 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+ require('../../../utils/index.js');
7
+ var icon = require('./icon.js');
8
+ var addUnit = require('../../../utils/add-unit.js');
9
+ var createNamespace = require('../../../utils/create-namespace.js');
10
+
11
+ "use strict";
12
+ const _hoisted_1 = { "aria-hidden": "true" };
13
+ const _hoisted_2 = ["xlink:href"];
14
+ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
15
+ ...{
16
+ name: "LlIcon"
17
+ },
18
+ __name: "icon",
19
+ props: icon.iconProps,
20
+ setup(__props) {
21
+ const props = __props;
22
+ const iconName = vue.computed(() => {
23
+ return `#${props.iconName}`;
24
+ });
25
+ const svgClass = vue.computed(() => {
26
+ if (props.className) {
27
+ return `${bem.b()} ${props.className}`;
28
+ }
29
+ return "ll-icon";
30
+ });
31
+ const style = vue.computed(() => {
32
+ if (!props.size && !props.color) {
33
+ return {};
34
+ }
35
+ return {
36
+ ...props.size ? { "font-size": addUnit.addUnit(props.size) } : {},
37
+ ...props.color ? { color: props.color } : {}
38
+ };
39
+ });
40
+ const bem = createNamespace.createNamespace("icon");
41
+ return (_ctx, _cache) => {
42
+ return vue.openBlock(), vue.createElementBlock(
43
+ "i",
44
+ {
45
+ class: vue.normalizeClass(svgClass.value),
46
+ style: vue.normalizeStyle(style.value)
47
+ },
48
+ [
49
+ vue.renderSlot(_ctx.$slots, "default", {}, () => [
50
+ (vue.openBlock(), vue.createElementBlock("svg", _hoisted_1, [
51
+ vue.createElementVNode("use", { "xlink:href": iconName.value }, null, 8, _hoisted_2)
52
+ ]))
53
+ ])
54
+ ],
55
+ 6
56
+ /* CLASS, STYLE */
57
+ );
58
+ };
59
+ }
60
+ });
61
+
62
+ exports.default = _sfc_main;
63
+ //# sourceMappingURL=icon.vue2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.vue2.js","sources":["../../../../../packages/components/icon/src/icon.vue"],"sourcesContent":["<template>\n <i :class=\"svgClass\" :style=\"style\">\n <slot>\n <svg aria-hidden=\"true\">\n <use :xlink:href=\"iconName\" />\n </svg>\n </slot>\n </i>\n</template>\n<script lang=\"ts\" setup>\nimport { computed, CSSProperties } from 'vue'\n\nimport { createNamespace, addUnit } from '@ll-plus/utils'\n\nimport { iconProps } from './icon'\n\n// 1.defineOptions\ndefineOptions({\n name: 'LlIcon'\n})\n\n// 2.defineProps\nconst props = defineProps(iconProps)\n// 3.ref/const\n// 图标在 iconfont 中的名字\nconst iconName = computed(() => {\n return `#${props.iconName}`\n})\n// 给图标添加上类名\nconst svgClass = computed(() => {\n if (props.className) {\n return `${bem.b()} ${props.className}`\n }\n return 'll-icon'\n})\n// 给图标加size和color\nconst style = computed<CSSProperties>(() => {\n if (!props.size && !props.color) {\n return {}\n }\n return {\n ...(props.size ? { 'font-size': addUnit(props.size) } : {}),\n ...(props.color ? { color: props.color } : {})\n }\n})\nconst bem = createNamespace('icon')\n</script>\n"],"names":["computed","addUnit","createNamespace"],"mappings":";;;;;;;;;;;;;;;;;;;;AAsBA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAGd,IAAM,MAAA,QAAA,GAAWA,aAAS,MAAM;AAC9B,MAAO,OAAA,CAAA,CAAA,EAAI,MAAM,QAAQ,CAAA,CAAA,CAAA;AAAA,KAC1B,CAAA,CAAA;AAED,IAAM,MAAA,QAAA,GAAWA,aAAS,MAAM;AAC9B,MAAA,IAAI,MAAM,SAAW,EAAA;AACnB,QAAA,OAAO,GAAG,GAAI,CAAA,CAAA,EAAG,CAAA,CAAA,EAAI,MAAM,SAAS,CAAA,CAAA,CAAA;AAAA,OACtC;AACA,MAAO,OAAA,SAAA,CAAA;AAAA,KACR,CAAA,CAAA;AAED,IAAM,MAAA,KAAA,GAAQA,aAAwB,MAAM;AAC1C,MAAA,IAAI,CAAC,KAAA,CAAM,IAAQ,IAAA,CAAC,MAAM,KAAO,EAAA;AAC/B,QAAA,OAAO,EAAC,CAAA;AAAA,OACV;AACA,MAAO,OAAA;AAAA,QACL,GAAI,KAAM,CAAA,IAAA,GAAO,EAAE,WAAA,EAAaC,gBAAQ,KAAM,CAAA,IAAI,CAAE,EAAA,GAAI,EAAC;AAAA,QACzD,GAAI,MAAM,KAAQ,GAAA,EAAE,OAAO,KAAM,CAAA,KAAA,KAAU,EAAC;AAAA,OAC9C,CAAA;AAAA,KACD,CAAA,CAAA;AACD,IAAM,MAAA,GAAA,GAAMC,gCAAgB,MAAM,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1,2 @@
1
1
  export * from './icon';
2
+ export * from './table';
@@ -1,12 +1,19 @@
1
1
  'use strict';
2
2
 
3
- var icon = require('./icon');
3
+ var index = require('./icon/index.js');
4
+ var index$1 = require('./table/index.js');
5
+ var icon = require('./icon/src/icon.js');
6
+ var table = require('./table/src/table.js');
4
7
 
8
+ "use strict";
5
9
 
6
-
7
- Object.keys(icon).forEach(function (k) {
8
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
9
- enumerable: true,
10
- get: function () { return icon[k]; }
11
- });
12
- });
10
+ exports.LlIcon = index.LlIcon;
11
+ exports.LlTable = index$1.LlTable;
12
+ exports.iconProps = icon.iconProps;
13
+ exports.ImenuSwitchType = table.ImenuSwitchType;
14
+ exports.mainTableProps = table.mainTableProps;
15
+ exports.menuSwitchRadioList = table.menuSwitchRadioList;
16
+ exports.tableHeaderSearchProps = table.tableHeaderSearchProps;
17
+ exports.tablePaginationProps = table.tablePaginationProps;
18
+ exports.tableProps = table.tableProps;
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}