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,144 @@
1
+ declare const _default: {
2
+ app: {
3
+ searchNotData: string;
4
+ toSearch: string;
5
+ toNavigate: string;
6
+ };
7
+ countdown: {
8
+ normalText: string;
9
+ sendText: string;
10
+ };
11
+ cropper: {
12
+ selectImage: string;
13
+ uploadSuccess: string;
14
+ modalTitle: string;
15
+ okText: string;
16
+ btn_reset: string;
17
+ btn_rotate_left: string;
18
+ btn_rotate_right: string;
19
+ btn_scale_x: string;
20
+ btn_scale_y: string;
21
+ btn_zoom_in: string;
22
+ btn_zoom_out: string;
23
+ preview: string;
24
+ };
25
+ drawer: {
26
+ loadingText: string;
27
+ cancelText: string;
28
+ okText: string;
29
+ };
30
+ excel: {
31
+ exportModalTitle: string;
32
+ fileType: string;
33
+ fileName: string;
34
+ };
35
+ form: {
36
+ fold: string;
37
+ unfold: string;
38
+ maxTip: string;
39
+ apiSelectNotFound: string;
40
+ };
41
+ icon: {
42
+ placeholder: string;
43
+ search: string;
44
+ copy: string;
45
+ };
46
+ menu: {
47
+ search: string;
48
+ };
49
+ modal: {
50
+ cancelText: string;
51
+ okText: string;
52
+ close: string;
53
+ maximize: string;
54
+ restore: string;
55
+ };
56
+ table: {
57
+ settingDens: string;
58
+ settingDensDefault: string;
59
+ settingDensMiddle: string;
60
+ settingDensSmall: string;
61
+ settingColumn: string;
62
+ settingColumnShow: string;
63
+ settingIndexColumnShow: string;
64
+ settingSelectColumnShow: string;
65
+ settingFixedLeft: string;
66
+ settingFixedRight: string;
67
+ settingFullScreen: string;
68
+ index: string;
69
+ total: string;
70
+ };
71
+ time: {
72
+ before: string;
73
+ after: string;
74
+ just: string;
75
+ seconds: string;
76
+ minutes: string;
77
+ hours: string;
78
+ days: string;
79
+ };
80
+ tree: {
81
+ reload: string;
82
+ selectAll: string;
83
+ unSelectAll: string;
84
+ expandAll: string;
85
+ unExpandAll: string;
86
+ checkStrictly: string;
87
+ checkUnStrictly: string;
88
+ };
89
+ upload: {
90
+ save: string;
91
+ upload: string;
92
+ imgUpload: string;
93
+ uploaded: string;
94
+ operating: string;
95
+ del: string;
96
+ download: string;
97
+ saveWarn: string;
98
+ saveError: string;
99
+ preview: string;
100
+ choose: string;
101
+ accept: string;
102
+ acceptUpload: string;
103
+ maxSize: string;
104
+ maxSizeMultiple: string;
105
+ maxNumber: string;
106
+ legend: string;
107
+ fileName: string;
108
+ fileSize: string;
109
+ fileStatue: string;
110
+ startUpload: string;
111
+ uploadSuccess: string;
112
+ uploadError: string;
113
+ uploading: string;
114
+ uploadWait: string;
115
+ reUploadFailed: string;
116
+ };
117
+ verify: {
118
+ error: string;
119
+ time: string;
120
+ redoTip: string;
121
+ dragText: string;
122
+ successText: string;
123
+ };
124
+ LlTable: {
125
+ operate: string;
126
+ dragSuccessful: string;
127
+ dragFailed: string;
128
+ pagination: {
129
+ total: string;
130
+ };
131
+ };
132
+ LlAreaSelect: {
133
+ provinceCityDistrict: string;
134
+ allData: string;
135
+ selected: string;
136
+ clearTheList: string;
137
+ };
138
+ LlCalculate: {
139
+ isStorageplaceholder: string;
140
+ otherPlaceholder: string;
141
+ warning: string;
142
+ };
143
+ };
144
+ export default _default;
@@ -0,0 +1,169 @@
1
+ declare const _default: {
2
+ name: string;
3
+ common: {
4
+ okText: string;
5
+ continueText: string;
6
+ closeText: string;
7
+ cancelText: string;
8
+ loadingText: string;
9
+ saveText: string;
10
+ delText: string;
11
+ resetText: string;
12
+ searchText: string;
13
+ queryText: string;
14
+ addText: string;
15
+ editText: string;
16
+ detailText: string;
17
+ moreText: string;
18
+ exportText: string;
19
+ importText: string;
20
+ cleanText: string;
21
+ closeList: string;
22
+ inputText: string;
23
+ chooseText: string;
24
+ redo: string;
25
+ back: string;
26
+ expandAll: string;
27
+ collapseAll: string;
28
+ superQuery: string;
29
+ light: string;
30
+ dark: string;
31
+ tipTitle: string;
32
+ delTip: string;
33
+ prev: string;
34
+ next: string;
35
+ keyword: string;
36
+ enterKeyword: string;
37
+ leftTreeSearchText: string;
38
+ drawerSearchText: string;
39
+ description: string;
40
+ trueText: string;
41
+ falseText: string;
42
+ disabled: string;
43
+ offline: string;
44
+ online: string;
45
+ };
46
+ app: {
47
+ searchNotData: string;
48
+ toSearch: string;
49
+ toNavigate: string;
50
+ };
51
+ countdown: {
52
+ normalText: string;
53
+ sendText: string;
54
+ };
55
+ cropper: {
56
+ selectImage: string;
57
+ uploadSuccess: string;
58
+ modalTitle: string;
59
+ okText: string;
60
+ btn_reset: string;
61
+ btn_rotate_left: string;
62
+ btn_rotate_right: string;
63
+ btn_scale_x: string;
64
+ btn_scale_y: string;
65
+ btn_zoom_in: string;
66
+ btn_zoom_out: string;
67
+ preview: string;
68
+ };
69
+ drawer: {
70
+ loadingText: string;
71
+ cancelText: string;
72
+ okText: string;
73
+ };
74
+ excel: {
75
+ exportModalTitle: string;
76
+ fileType: string;
77
+ fileName: string;
78
+ };
79
+ form: {
80
+ fold: string;
81
+ unfold: string;
82
+ maxTip: string;
83
+ apiSelectNotFound: string;
84
+ };
85
+ icon: {
86
+ placeholder: string;
87
+ search: string;
88
+ copy: string;
89
+ };
90
+ menu: {
91
+ search: string;
92
+ };
93
+ modal: {
94
+ cancelText: string;
95
+ okText: string;
96
+ close: string;
97
+ maximize: string;
98
+ restore: string;
99
+ };
100
+ table: {
101
+ settingDens: string;
102
+ settingDensDefault: string;
103
+ settingDensMiddle: string;
104
+ settingDensSmall: string;
105
+ settingColumn: string;
106
+ settingColumnShow: string;
107
+ settingIndexColumnShow: string;
108
+ settingSelectColumnShow: string;
109
+ settingFixedLeft: string;
110
+ settingFixedRight: string;
111
+ settingFullScreen: string;
112
+ index: string;
113
+ total: string;
114
+ };
115
+ time: {
116
+ before: string;
117
+ after: string;
118
+ just: string;
119
+ seconds: string;
120
+ minutes: string;
121
+ hours: string;
122
+ days: string;
123
+ };
124
+ tree: {
125
+ reload: string;
126
+ selectAll: string;
127
+ unSelectAll: string;
128
+ expandAll: string;
129
+ unExpandAll: string;
130
+ checkStrictly: string;
131
+ checkUnStrictly: string;
132
+ };
133
+ upload: {
134
+ save: string;
135
+ upload: string;
136
+ imgUpload: string;
137
+ uploaded: string;
138
+ operating: string;
139
+ del: string;
140
+ download: string;
141
+ saveWarn: string;
142
+ saveError: string;
143
+ preview: string;
144
+ choose: string;
145
+ accept: string;
146
+ acceptUpload: string;
147
+ maxSize: string;
148
+ maxSizeMultiple: string;
149
+ maxNumber: string;
150
+ legend: string;
151
+ fileName: string;
152
+ fileSize: string;
153
+ fileStatue: string;
154
+ startUpload: string;
155
+ uploadSuccess: string;
156
+ uploadError: string;
157
+ uploading: string;
158
+ uploadWait: string;
159
+ reUploadFailed: string;
160
+ };
161
+ verify: {
162
+ error: string;
163
+ time: string;
164
+ redoTip: string;
165
+ dragText: string;
166
+ successText: string;
167
+ };
168
+ };
169
+ export default _default;
@@ -0,0 +1,125 @@
1
+ declare const _default: {
2
+ app: {
3
+ searchNotData: string;
4
+ toSearch: string;
5
+ toNavigate: string;
6
+ };
7
+ countdown: {
8
+ normalText: string;
9
+ sendText: string;
10
+ };
11
+ cropper: {
12
+ selectImage: string;
13
+ uploadSuccess: string;
14
+ modalTitle: string;
15
+ okText: string;
16
+ btn_reset: string;
17
+ btn_rotate_left: string;
18
+ btn_rotate_right: string;
19
+ btn_scale_x: string;
20
+ btn_scale_y: string;
21
+ btn_zoom_in: string;
22
+ btn_zoom_out: string;
23
+ preview: string;
24
+ };
25
+ drawer: {
26
+ loadingText: string;
27
+ cancelText: string;
28
+ okText: string;
29
+ };
30
+ excel: {
31
+ exportModalTitle: string;
32
+ fileType: string;
33
+ fileName: string;
34
+ };
35
+ form: {
36
+ fold: string;
37
+ unfold: string;
38
+ maxTip: string;
39
+ apiSelectNotFound: string;
40
+ };
41
+ icon: {
42
+ placeholder: string;
43
+ search: string;
44
+ copy: string;
45
+ };
46
+ menu: {
47
+ search: string;
48
+ };
49
+ modal: {
50
+ cancelText: string;
51
+ okText: string;
52
+ close: string;
53
+ maximize: string;
54
+ restore: string;
55
+ };
56
+ table: {
57
+ settingDens: string;
58
+ settingDensDefault: string;
59
+ settingDensMiddle: string;
60
+ settingDensSmall: string;
61
+ settingColumn: string;
62
+ settingColumnShow: string;
63
+ settingIndexColumnShow: string;
64
+ settingSelectColumnShow: string;
65
+ settingFixedLeft: string;
66
+ settingFixedRight: string;
67
+ settingFullScreen: string;
68
+ index: string;
69
+ total: string;
70
+ };
71
+ time: {
72
+ before: string;
73
+ after: string;
74
+ just: string;
75
+ seconds: string;
76
+ minutes: string;
77
+ hours: string;
78
+ days: string;
79
+ };
80
+ tree: {
81
+ reload: string;
82
+ selectAll: string;
83
+ unSelectAll: string;
84
+ expandAll: string;
85
+ unExpandAll: string;
86
+ checkStrictly: string;
87
+ checkUnStrictly: string;
88
+ };
89
+ upload: {
90
+ save: string;
91
+ upload: string;
92
+ imgUpload: string;
93
+ uploaded: string;
94
+ operating: string;
95
+ del: string;
96
+ download: string;
97
+ saveWarn: string;
98
+ saveError: string;
99
+ preview: string;
100
+ choose: string;
101
+ accept: string;
102
+ acceptUpload: string;
103
+ maxSize: string;
104
+ maxSizeMultiple: string;
105
+ maxNumber: string;
106
+ legend: string;
107
+ fileName: string;
108
+ fileSize: string;
109
+ fileStatue: string;
110
+ startUpload: string;
111
+ uploadSuccess: string;
112
+ uploadError: string;
113
+ uploading: string;
114
+ uploadWait: string;
115
+ reUploadFailed: string;
116
+ };
117
+ verify: {
118
+ error: string;
119
+ time: string;
120
+ redoTip: string;
121
+ dragText: string;
122
+ successText: string;
123
+ };
124
+ };
125
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import type { App, Plugin } from 'vue';
2
+ export declare const makeInstaller: (components: Plugin[]) => {
3
+ install: (app: App) => void;
4
+ };
@@ -1,3 +1,4 @@
1
- export * from './add-util';
1
+ export * from './props';
2
+ export * from './add-unit';
2
3
  export * from './create-namespace';
3
4
  export * from './with-install';
@@ -0,0 +1,3 @@
1
+ export * from './util';
2
+ export * from './types';
3
+ export * from './runtime';
@@ -0,0 +1,29 @@
1
+ import type { PropType } from 'vue';
2
+ import type { EpProp, EpPropConvert, EpPropFinalized, EpPropInput, EpPropMergeType, IfEpProp, IfNativePropType, NativePropType } from './types';
3
+ export declare const epPropKey = "__epPropKey";
4
+ export declare const definePropType: <T>(val: any) => PropType<T>;
5
+ export declare const isEpProp: (val: unknown) => val is EpProp<any, any, any>;
6
+ /**
7
+ * @description Build prop. It can better optimize prop types
8
+ * @description 生成 prop,能更好地优化类型
9
+ * @example
10
+ // limited options
11
+ // the type will be PropType<'light' | 'dark'>
12
+ buildProp({
13
+ type: String,
14
+ values: ['light', 'dark'],
15
+ } as const)
16
+ * @example
17
+ // limited options and other types
18
+ // the type will be PropType<'small' | 'large' | number>
19
+ buildProp({
20
+ type: [String, Number],
21
+ values: ['small', 'large'],
22
+ validator: (val: unknown): val is number => typeof val === 'number',
23
+ } as const)
24
+ @link see more: https://github.com/element-plus/element-plus/pull/3341
25
+ */
26
+ export declare const buildProp: <Type = never, Value = never, Validator = never, Default extends EpPropMergeType<Type, Value, Validator> = never, Required extends boolean = false>(prop: EpPropInput<Type, Value, Validator, Default, Required>, key?: string) => EpPropFinalized<Type, Value, Validator, Default, Required>;
27
+ export declare const buildProps: <Props extends Record<string, {
28
+ __epPropKey: true;
29
+ } | NativePropType | EpPropInput<any, any, any, any, any>>>(props: Props) => { [K in keyof Props]: IfEpProp<Props[K], Props[K], IfNativePropType<Props[K], Props[K], EpPropConvert<Props[K]>>>; };
@@ -0,0 +1,120 @@
1
+ import type { epPropKey } from './runtime';
2
+ import type { ExtractPropTypes, PropType } from 'vue';
3
+ import type { IfNever, UnknownToNever, WritableArray } from './util';
4
+ type Value<T> = T[keyof T];
5
+ /**
6
+ * Extract the type of a single prop
7
+ *
8
+ * 提取单个 prop 的参数类型
9
+ *
10
+ * @example
11
+ * ExtractPropType<{ type: StringConstructor }> => string | undefined
12
+ * ExtractPropType<{ type: StringConstructor, required: true }> => string
13
+ * ExtractPropType<{ type: BooleanConstructor }> => boolean
14
+ */
15
+ export type ExtractPropType<T extends object> = Value<ExtractPropTypes<{
16
+ key: T;
17
+ }>>;
18
+ /**
19
+ * Extracts types via `ExtractPropTypes`, accepting `PropType<T>`, `XXXConstructor`, `never`...
20
+ *
21
+ * 通过 `ExtractPropTypes` 提取类型,接受 `PropType<T>`、`XXXConstructor`、`never`...
22
+ *
23
+ * @example
24
+ * ResolvePropType<BooleanConstructor> => boolean
25
+ * ResolvePropType<PropType<T>> => T
26
+ **/
27
+ export type ResolvePropType<T> = IfNever<T, never, ExtractPropType<{
28
+ type: WritableArray<T>;
29
+ required: true;
30
+ }>>;
31
+ /**
32
+ * Merge Type, Value, Validator types
33
+ * 合并 Type、Value、Validator 的类型
34
+ *
35
+ * @example
36
+ * EpPropMergeType<StringConstructor, '1', 1> => 1 | "1" // ignores StringConstructor
37
+ * EpPropMergeType<StringConstructor, never, number> => string | number
38
+ */
39
+ export type EpPropMergeType<Type, Value, Validator> = IfNever<UnknownToNever<Value>, ResolvePropType<Type>, never> | UnknownToNever<Value> | UnknownToNever<Validator>;
40
+ /**
41
+ * Handling default values for input (constraints)
42
+ *
43
+ * 处理输入参数的默认值(约束)
44
+ */
45
+ export type EpPropInputDefault<Required extends boolean, Default> = Required extends true ? never : Default extends Record<string, unknown> | Array<any> ? () => Default : (() => Default) | Default;
46
+ /**
47
+ * Native prop types, e.g: `BooleanConstructor`, `StringConstructor`, `null`, `undefined`, etc.
48
+ *
49
+ * 原生 prop `类型,BooleanConstructor`、`StringConstructor`、`null`、`undefined` 等
50
+ */
51
+ export type NativePropType = ((...args: any) => any) | {
52
+ new (...args: any): any;
53
+ } | undefined | null;
54
+ export type IfNativePropType<T, Y, N> = [T] extends [NativePropType] ? Y : N;
55
+ /**
56
+ * input prop `buildProp` or `buildProps` (constraints)
57
+ *
58
+ * prop 输入参数(约束)
59
+ *
60
+ * @example
61
+ * EpPropInput<StringConstructor, 'a', never, never, true>
62
+ * ⬇️
63
+ * {
64
+ type?: StringConstructor | undefined;
65
+ required?: true | undefined;
66
+ values?: readonly "a"[] | undefined;
67
+ validator?: ((val: any) => boolean) | ((val: any) => val is never) | undefined;
68
+ default?: undefined;
69
+ }
70
+ */
71
+ export type EpPropInput<Type, Value, Validator, Default extends EpPropMergeType<Type, Value, Validator>, Required extends boolean> = {
72
+ type?: Type;
73
+ required?: Required;
74
+ values?: readonly Value[];
75
+ validator?: ((val: any) => val is Validator) | ((val: any) => boolean);
76
+ default?: EpPropInputDefault<Required, Default>;
77
+ };
78
+ /**
79
+ * output prop `buildProp` or `buildProps`.
80
+ *
81
+ * prop 输出参数。
82
+ *
83
+ * @example
84
+ * EpProp<'a', 'b', true>
85
+ * ⬇️
86
+ * {
87
+ readonly type: PropType<"a">;
88
+ readonly required: true;
89
+ readonly validator: ((val: unknown) => boolean) | undefined;
90
+ readonly default: "b";
91
+ __epPropKey: true;
92
+ }
93
+ */
94
+ export type EpProp<Type, Default, Required> = {
95
+ readonly type: PropType<Type>;
96
+ readonly required: [Required] extends [true] ? true : false;
97
+ readonly validator: ((val: unknown) => boolean) | undefined;
98
+ [epPropKey]: true;
99
+ } & IfNever<Default, unknown, {
100
+ readonly default: Default;
101
+ }>;
102
+ /**
103
+ * Determine if it is `EpProp`
104
+ */
105
+ export type IfEpProp<T, Y, N> = T extends {
106
+ [epPropKey]: true;
107
+ } ? Y : N;
108
+ /**
109
+ * Converting input to output.
110
+ *
111
+ * 将输入转换为输出
112
+ */
113
+ export type EpPropConvert<Input> = Input extends EpPropInput<infer Type, infer Value, infer Validator, any, infer Required> ? EpPropFinalized<Type, Value, Validator, Input['default'], Required> : never;
114
+ /**
115
+ * Finalized conversion output
116
+ *
117
+ * 最终转换 EpProp
118
+ */
119
+ export type EpPropFinalized<Type, Value, Validator, Default, Required> = EpProp<EpPropMergeType<Type, Value, Validator>, UnknownToNever<Default>, Required>;
120
+ export {};
@@ -0,0 +1,8 @@
1
+ export type Writable<T> = {
2
+ -readonly [P in keyof T]: T[P];
3
+ };
4
+ export type WritableArray<T> = T extends readonly any[] ? Writable<T> : T;
5
+ export type IfNever<T, Y = true, N = false> = [T] extends [never] ? Y : N;
6
+ export type IfUnknown<T, Y, N> = [unknown] extends [T] ? Y : N;
7
+ export type UnknownToNever<T> = IfUnknown<T, never, T>;
8
+ export {};
@@ -0,0 +1,10 @@
1
+ export { isArray, isFunction, isObject, isString, isDate, isPromise, isSymbol } from '@vue/shared';
2
+ export { isVNode } from 'vue';
3
+ export declare const isUndefined: (val: any) => val is undefined;
4
+ export declare const isBoolean: (val: any) => val is boolean;
5
+ export declare const isNumber: (val: any) => val is number;
6
+ export declare const isEmpty: (val: unknown) => boolean;
7
+ export declare const isElement: (e: unknown) => e is Element;
8
+ export declare const isPropAbsent: (prop: unknown) => prop is null | undefined;
9
+ export declare const isStringNumber: (val: string) => boolean;
10
+ export declare const isWindow: (val: unknown) => val is Window;
@@ -0,0 +1 @@
1
+ {"version":"5.4.2"}
@@ -1,6 +0,0 @@
1
- import type { App } from 'vue';
2
- declare const _default: {
3
- install: (app: App<any>) => void;
4
- };
5
- export default _default;
6
- export * from './components';
@@ -1,33 +0,0 @@
1
- import { createNamespace, addUnit, withInstall } from 'll-plus/es/utils';
2
- import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, renderSlot } from 'vue';
3
-
4
- const iconProps = {
5
- size: [Number, String],
6
- color: String
7
- };
8
-
9
- var script = defineComponent(Object.assign({
10
- name: 'LlIcon'
11
- }, { __name: 'icon', props: iconProps, setup(__props) {
12
- const props = __props;
13
- const bem = createNamespace('icon');
14
- const style = computed(() => {
15
- if (!props.color && !props.size)
16
- return {};
17
- return Object.assign(Object.assign({}, (props.color ? { color: props.color } : {})), (props.size ? { 'font-size': addUnit(props.size) } : {}));
18
- });
19
- return (_ctx, _cache) => {
20
- return (openBlock(), createElementBlock("i", {
21
- class: normalizeClass(unref(bem).b()),
22
- style: normalizeStyle(style.value)
23
- }, [
24
- renderSlot(_ctx.$slots, "default")
25
- ], 6));
26
- };
27
- } }));
28
-
29
- script.__file = "packages/components/icon/src/icon.vue";
30
-
31
- const LlIcon = withInstall(script);
32
-
33
- export { LlIcon, LlIcon as default, iconProps };
@@ -1 +0,0 @@
1
- export * from './icon';
package/es/components.js DELETED
@@ -1,5 +0,0 @@
1
- import { LlIcon } from 'll-plus/es/components';
2
-
3
- var components = [LlIcon];
4
-
5
- export { components as default };
package/es/index.js DELETED
@@ -1,11 +0,0 @@
1
- import components$1 from './components.js';
2
- export * from 'll-plus/es/components';
3
-
4
- const install = (app) => {
5
- components$1.forEach(component => app.use(component));
6
- };
7
- var index = {
8
- install
9
- };
10
-
11
- export { index as default };
@@ -1,3 +0,0 @@
1
- export const addUnit = (val) => {
2
- return typeof val === 'string' ? val : val + 'px';
3
- };