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,110 @@
1
+ import type { RadioChangeEvent } from 'ant-design-vue';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ readonly menuSwitchOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("ll-plus/es/components").IMenuSwitchOptions) | (() => import("ll-plus/es/components").IMenuSwitchOptions) | ((new (...args: any[]) => import("ll-plus/es/components").IMenuSwitchOptions) | (() => import("ll-plus/es/components").IMenuSwitchOptions))[], unknown, unknown, () => {
4
+ show: boolean;
5
+ onChange: () => void;
6
+ }, boolean>;
7
+ }, {
8
+ props: import("@vue/shared").LooseRequired<{
9
+ readonly menuSwitchOptions: import("ll-plus/es/components").IMenuSwitchOptions;
10
+ readonly onHandleSwitchMenuChange?: ((...args: any[]) => any) | undefined;
11
+ } & {}>;
12
+ emits: (event: "handleSwitchMenuChange", ...args: any[]) => void;
13
+ bem: {
14
+ b: (blockSuffix?: string) => string;
15
+ e: (element?: string) => string;
16
+ m: (modifier?: string) => string;
17
+ be: (blockSuffix?: string, element?: string) => string;
18
+ em: (element: string, modifier: string) => string;
19
+ bm: (blockSuffix: string, modifier: string) => string;
20
+ bem: (blockSuffix: string, element: string, modifier: string) => string;
21
+ is: (name?: string) => string;
22
+ };
23
+ handleMenuSwitchChange: (event: RadioChangeEvent) => void;
24
+ contentType: unknown;
25
+ readonly menuSwitchRadioList: {
26
+ value: import("ll-plus/es/components").ImenuSwitchType;
27
+ icon: string;
28
+ }[];
29
+ readonly LlIcon: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
30
+ readonly iconName: {
31
+ readonly type: import("vue").PropType<string>;
32
+ readonly required: false;
33
+ readonly validator: ((val: unknown) => boolean) | undefined;
34
+ __epPropKey: true;
35
+ };
36
+ readonly className: {
37
+ readonly type: import("vue").PropType<string>;
38
+ readonly required: false;
39
+ readonly validator: ((val: unknown) => boolean) | undefined;
40
+ __epPropKey: true;
41
+ };
42
+ readonly color: {
43
+ readonly type: import("vue").PropType<string>;
44
+ readonly required: false;
45
+ readonly validator: ((val: unknown) => boolean) | undefined;
46
+ __epPropKey: true;
47
+ };
48
+ readonly size: {
49
+ 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>>;
50
+ readonly required: false;
51
+ readonly validator: ((val: unknown) => boolean) | undefined;
52
+ __epPropKey: true;
53
+ };
54
+ }, {
55
+ props: import("@vue/shared").LooseRequired<{
56
+ 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;
57
+ readonly iconName?: string | undefined;
58
+ readonly className?: string | undefined;
59
+ readonly color?: string | undefined;
60
+ } & {}>;
61
+ iconName: import("vue").ComputedRef<string>;
62
+ svgClass: import("vue").ComputedRef<string>;
63
+ style: import("vue").ComputedRef<import("vue").CSSProperties>;
64
+ bem: {
65
+ b: (blockSuffix?: string) => string;
66
+ e: (element?: string) => string;
67
+ m: (modifier?: string) => string;
68
+ be: (blockSuffix?: string, element?: string) => string;
69
+ em: (element: string, modifier: string) => string;
70
+ bm: (blockSuffix: string, modifier: string) => string;
71
+ bem: (blockSuffix: string, element: string, modifier: string) => string;
72
+ is: (name?: string) => string;
73
+ };
74
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
75
+ readonly iconName: {
76
+ readonly type: import("vue").PropType<string>;
77
+ readonly required: false;
78
+ readonly validator: ((val: unknown) => boolean) | undefined;
79
+ __epPropKey: true;
80
+ };
81
+ readonly className: {
82
+ readonly type: import("vue").PropType<string>;
83
+ readonly required: false;
84
+ readonly validator: ((val: unknown) => boolean) | undefined;
85
+ __epPropKey: true;
86
+ };
87
+ readonly color: {
88
+ readonly type: import("vue").PropType<string>;
89
+ readonly required: false;
90
+ readonly validator: ((val: unknown) => boolean) | undefined;
91
+ __epPropKey: true;
92
+ };
93
+ readonly size: {
94
+ 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>>;
95
+ readonly required: false;
96
+ readonly validator: ((val: unknown) => boolean) | undefined;
97
+ __epPropKey: true;
98
+ };
99
+ }>>, {}, {}>>;
100
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "handleSwitchMenuChange"[], "handleSwitchMenuChange", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
101
+ readonly menuSwitchOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("ll-plus/es/components").IMenuSwitchOptions) | (() => import("ll-plus/es/components").IMenuSwitchOptions) | ((new (...args: any[]) => import("ll-plus/es/components").IMenuSwitchOptions) | (() => import("ll-plus/es/components").IMenuSwitchOptions))[], unknown, unknown, () => {
102
+ show: boolean;
103
+ onChange: () => void;
104
+ }, boolean>;
105
+ }>> & {
106
+ onHandleSwitchMenuChange?: ((...args: any[]) => any) | undefined;
107
+ }, {
108
+ readonly menuSwitchOptions: import("ll-plus/es/components").IMenuSwitchOptions;
109
+ }, {}>;
110
+ export default _default;
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var headerSearch_vue_vue_type_script_setup_true_lang = require('./header-search.vue2.js');
6
+ var _pluginVue_exportHelper = require('../../../../_virtual/_plugin-vue_export-helper.js');
7
+
8
+ "use strict";
9
+ var HeaderSearch = /* @__PURE__ */ _pluginVue_exportHelper.default(headerSearch_vue_vue_type_script_setup_true_lang.default, [["__file", "header-search.vue"]]);
10
+
11
+ exports.default = HeaderSearch;
12
+ //# sourceMappingURL=header-search.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header-search.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -0,0 +1,129 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+ var table = require('../table.js');
7
+ require('../../../../utils/index.js');
8
+ require('../../../index.js');
9
+ var createNamespace = require('../../../../utils/create-namespace.js');
10
+ var index = require('../../../icon/index.js');
11
+
12
+ "use strict";
13
+ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
14
+ ...{
15
+ name: "TableHeaderSearch"
16
+ },
17
+ __name: "header-search",
18
+ props: table.tableHeaderSearchProps,
19
+ emits: ["handleSwitchMenuChange"],
20
+ setup(__props, { emit: __emit }) {
21
+ const props = __props;
22
+ const emits = __emit;
23
+ const bem = createNamespace.createNamespace("table");
24
+ const handleMenuSwitchChange = (event) => {
25
+ const target = event.target;
26
+ const value = target.value;
27
+ props.menuSwitchOptions.onChange && props.menuSwitchOptions.onChange(value);
28
+ emits("handleSwitchMenuChange", value);
29
+ };
30
+ const contentType = vue.inject("contentType");
31
+ return (_ctx, _cache) => {
32
+ const _component_a_radio_button = vue.resolveComponent("a-radio-button");
33
+ const _component_a_radio_group = vue.resolveComponent("a-radio-group");
34
+ return vue.openBlock(), vue.createElementBlock(
35
+ "div",
36
+ {
37
+ class: vue.normalizeClass(`${vue.unref(bem).e("header-wrapper")}`)
38
+ },
39
+ [
40
+ vue.createElementVNode(
41
+ "div",
42
+ {
43
+ class: vue.normalizeClass(vue.unref(bem).e("header"))
44
+ },
45
+ [
46
+ vue.createCommentVNode(" \u5DE6\u8FB9\u7684\u63D2\u69FD "),
47
+ vue.createElementVNode(
48
+ "div",
49
+ {
50
+ class: vue.normalizeClass(vue.unref(bem).e("header-left"))
51
+ },
52
+ [
53
+ vue.renderSlot(_ctx.$slots, "searchLeft")
54
+ ],
55
+ 2
56
+ /* CLASS */
57
+ ),
58
+ vue.createCommentVNode(" \u5185\u5BB9\u4E2D\u95F4\u63D2\u69FD "),
59
+ vue.createElementVNode(
60
+ "div",
61
+ {
62
+ class: vue.normalizeClass(vue.unref(bem).e("header-middle"))
63
+ },
64
+ [
65
+ vue.renderSlot(_ctx.$slots, "searchMiddle")
66
+ ],
67
+ 2
68
+ /* CLASS */
69
+ ),
70
+ vue.createElementVNode(
71
+ "div",
72
+ {
73
+ class: vue.normalizeClass(vue.unref(bem).e("header-right"))
74
+ },
75
+ [
76
+ vue.renderSlot(_ctx.$slots, "searchRight"),
77
+ vue.createCommentVNode(" \u5207\u6362table\u548Clist\u83DC\u5355 "),
78
+ props.menuSwitchOptions.show ? (vue.openBlock(), vue.createBlock(_component_a_radio_group, {
79
+ key: 0,
80
+ value: vue.unref(contentType),
81
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => vue.isRef(contentType) ? contentType.value = $event : null),
82
+ class: vue.normalizeClass(`m-l20 ${vue.unref(bem).e("header-menu-radio-group")}`),
83
+ onChange: handleMenuSwitchChange
84
+ }, {
85
+ default: vue.withCtx(() => [
86
+ (vue.openBlock(true), vue.createElementBlock(
87
+ vue.Fragment,
88
+ null,
89
+ vue.renderList(vue.unref(table.menuSwitchRadioList), (menuItem) => {
90
+ return vue.openBlock(), vue.createBlock(_component_a_radio_button, {
91
+ key: menuItem.value,
92
+ class: vue.normalizeClass(`${vue.unref(bem).e("header-menu-icon")}`),
93
+ value: menuItem.value
94
+ }, {
95
+ default: vue.withCtx(() => [
96
+ vue.createVNode(vue.unref(index.LlIcon), {
97
+ "icon-name": menuItem.icon,
98
+ size: 18
99
+ }, null, 8, ["icon-name"])
100
+ ]),
101
+ _: 2
102
+ /* DYNAMIC */
103
+ }, 1032, ["class", "value"]);
104
+ }),
105
+ 128
106
+ /* KEYED_FRAGMENT */
107
+ ))
108
+ ]),
109
+ _: 1
110
+ /* STABLE */
111
+ }, 8, ["value", "class"])) : vue.createCommentVNode("v-if", true)
112
+ ],
113
+ 2
114
+ /* CLASS */
115
+ )
116
+ ],
117
+ 2
118
+ /* CLASS */
119
+ )
120
+ ],
121
+ 2
122
+ /* CLASS */
123
+ );
124
+ };
125
+ }
126
+ });
127
+
128
+ exports.default = _sfc_main;
129
+ //# sourceMappingURL=header-search.vue2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header-search.vue2.js","sources":["../../../../../../packages/components/table/src/components/header-search.vue"],"sourcesContent":["<template>\n <div :class=\"`${bem.e('header-wrapper')}`\">\n <div :class=\"bem.e('header')\">\n <!-- 左边的插槽 -->\n <div :class=\"bem.e('header-left')\">\n <slot name=\"searchLeft\"> </slot>\n </div>\n <!-- 内容中间插槽 -->\n <div :class=\"bem.e('header-middle')\">\n <slot name=\"searchMiddle\"></slot>\n </div>\n <div :class=\"bem.e('header-right')\">\n <slot name=\"searchRight\"></slot>\n <!-- 切换table和list菜单 -->\n <a-radio-group\n v-if=\"props.menuSwitchOptions.show\"\n v-model:value=\"contentType\"\n :class=\"`m-l20 ${bem.e('header-menu-radio-group')}`\"\n @change=\"handleMenuSwitchChange\"\n >\n <a-radio-button\n v-for=\"menuItem in menuSwitchRadioList\"\n :key=\"menuItem.value\"\n :class=\"`${bem.e('header-menu-icon')}`\"\n :value=\"menuItem.value\"\n >\n <ll-icon :icon-name=\"menuItem.icon\" :size=\"18\" />\n </a-radio-button>\n </a-radio-group>\n </div>\n </div>\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { inject } from 'vue'\n\nimport { menuSwitchRadioList } from '../table'\nimport { createNamespace } from '@ll-plus/utils'\nimport { tableHeaderSearchProps } from '../table'\n\nimport { LlIcon } from '@ll-plus/components'\n\nimport type { RadioChangeEvent } from 'ant-design-vue'\n\n// 1.defineOptions\ndefineOptions({\n name: 'TableHeaderSearch'\n})\n\n// 2.props\nconst props = defineProps(tableHeaderSearchProps)\n\n// 3.emits\nconst emits = defineEmits([\"handleSwitchMenuChange\"])\n\n// 4.const\nconst bem = createNamespace('table')\n\n// 5.methods\n// 切换菜单table\nconst handleMenuSwitchChange = (event: RadioChangeEvent) => {\n const target = event.target\n const value = target.value\n props.menuSwitchOptions.onChange && props.menuSwitchOptions.onChange(value)\n emits('handleSwitchMenuChange', value)\n}\n// 5.其他\n// 获取menuswitch\nconst contentType = inject('contentType')\n</script>\n"],"names":["createNamespace","inject"],"mappings":";;;;;;;;;;;;;;;;;;;;AAkDA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAGd,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AAGd,IAAM,MAAA,GAAA,GAAMA,gCAAgB,OAAO,CAAA,CAAA;AAInC,IAAM,MAAA,sBAAA,GAAyB,CAAC,KAA4B,KAAA;AAC1D,MAAA,MAAM,SAAS,KAAM,CAAA,MAAA,CAAA;AACrB,MAAA,MAAM,QAAQ,MAAO,CAAA,KAAA,CAAA;AACrB,MAAA,KAAA,CAAM,iBAAkB,CAAA,QAAA,IAAY,KAAM,CAAA,iBAAA,CAAkB,SAAS,KAAK,CAAA,CAAA;AAC1E,MAAA,KAAA,CAAM,0BAA0B,KAAK,CAAA,CAAA;AAAA,KACvC,CAAA;AAGA,IAAM,MAAA,WAAA,GAAcC,WAAO,aAAa,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,254 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ readonly settingKey: {
3
+ readonly type: import("vue").PropType<string>;
4
+ readonly required: false;
5
+ readonly validator: ((val: unknown) => boolean) | undefined;
6
+ __epPropKey: true;
7
+ };
8
+ readonly columns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("ant-design-vue").TableColumnProps[]) | (() => import("ant-design-vue").TableColumnProps[]) | ((new (...args: any[]) => import("ant-design-vue").TableColumnProps[]) | (() => import("ant-design-vue").TableColumnProps[]))[], unknown, unknown, () => never[], boolean>;
9
+ readonly dataSource: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
10
+ readonly showDrag: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
11
+ readonly showIndexColumn: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
12
+ readonly showOperate: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
13
+ readonly showSetting: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
14
+ readonly scroll: {
15
+ readonly type: import("vue").PropType<import("../table").ITableScroll>;
16
+ readonly required: false;
17
+ readonly validator: ((val: unknown) => boolean) | undefined;
18
+ __epPropKey: true;
19
+ };
20
+ readonly expandedRowKeys: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => never[], boolean>;
21
+ readonly hiddenPagination: {
22
+ readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
23
+ readonly required: false;
24
+ readonly validator: ((val: unknown) => boolean) | undefined;
25
+ __epPropKey: true;
26
+ };
27
+ readonly customRowProps: import("ll-plus/es/utils").EpPropFinalized<FunctionConstructor, unknown, unknown, () => void, boolean>;
28
+ readonly expand: {
29
+ readonly type: import("vue").PropType<Function>;
30
+ readonly required: false;
31
+ readonly validator: ((val: unknown) => boolean) | undefined;
32
+ __epPropKey: true;
33
+ };
34
+ readonly change: {
35
+ readonly type: import("vue").PropType<Function>;
36
+ readonly required: false;
37
+ readonly validator: ((val: unknown) => boolean) | undefined;
38
+ __epPropKey: true;
39
+ };
40
+ readonly expandedRowsChange: {
41
+ readonly type: import("vue").PropType<Function>;
42
+ readonly required: false;
43
+ readonly validator: ((val: unknown) => boolean) | undefined;
44
+ __epPropKey: true;
45
+ };
46
+ readonly resizeColumn: {
47
+ readonly type: import("vue").PropType<Function>;
48
+ readonly required: false;
49
+ readonly validator: ((val: unknown) => boolean) | undefined;
50
+ __epPropKey: true;
51
+ };
52
+ readonly dragChange: {
53
+ readonly type: import("vue").PropType<Function>;
54
+ readonly required: false;
55
+ readonly validator: ((val: unknown) => boolean) | undefined;
56
+ __epPropKey: true;
57
+ };
58
+ }, {
59
+ props: import("@vue/shared").LooseRequired<{
60
+ readonly columns: import("ant-design-vue").TableColumnProps[];
61
+ readonly dataSource: any[];
62
+ readonly showDrag: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
63
+ readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
64
+ readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
65
+ readonly showSetting: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
66
+ readonly expandedRowKeys: string[];
67
+ readonly customRowProps: Function;
68
+ readonly settingKey?: string | undefined;
69
+ readonly scroll?: import("../table").ITableScroll | undefined;
70
+ readonly hiddenPagination?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
71
+ readonly expand?: Function | undefined;
72
+ readonly change?: Function | undefined;
73
+ readonly expandedRowsChange?: Function | undefined;
74
+ readonly resizeColumn?: Function | undefined;
75
+ readonly dragChange?: Function | undefined;
76
+ readonly onHandleChangeDataSource?: ((...args: any[]) => any) | undefined;
77
+ } & {}>;
78
+ emits: (event: "handleChangeDataSource", ...args: any[]) => void;
79
+ attrs: {
80
+ [x: string]: unknown;
81
+ };
82
+ newColumns: any;
83
+ settingColumns: any;
84
+ newDataSource: any;
85
+ newExpandedRowKeys: any;
86
+ preIndex: number;
87
+ nextIndex: number;
88
+ bem: {
89
+ b: (blockSuffix?: string) => string;
90
+ e: (element?: string) => string;
91
+ m: (modifier?: string) => string;
92
+ be: (blockSuffix?: string, element?: string) => string;
93
+ em: (element: string, modifier: string) => string;
94
+ bm: (blockSuffix: string, modifier: string) => string;
95
+ bem: (blockSuffix: string, element: string, modifier: string) => string;
96
+ is: (name?: string) => string;
97
+ };
98
+ handleAddSerialNumberAndOperateToColumns: () => void;
99
+ handleColumnsSortByFixed: (list: any, isDrag?: boolean) => void;
100
+ handleExpand: (expanded: boolean, record: any) => void;
101
+ handleResizeColumn: (w: any, col: any) => void;
102
+ dragCustomRow: (_: any, index: number) => any;
103
+ isAllCheck: import("vue").ComputedRef<any>;
104
+ isIndeterminate: import("vue").ComputedRef<boolean>;
105
+ handleChangeColumns: () => void;
106
+ handleColumnItemChange: (value: boolean, item: any) => void;
107
+ handleAllColumnChange: (e: any) => void;
108
+ dragChange: () => void;
109
+ handleClickResetBtn: () => void;
110
+ handleClickSubmitBtn: () => void;
111
+ handleColumnMove: (element: any, way: string) => void;
112
+ readonly draggable: import("vue").DefineComponent<{
113
+ list: {
114
+ type: ArrayConstructor;
115
+ required: boolean;
116
+ default: any;
117
+ };
118
+ modelValue: {
119
+ type: ArrayConstructor;
120
+ required: boolean;
121
+ default: any;
122
+ };
123
+ itemKey: {
124
+ type: (StringConstructor | FunctionConstructor)[];
125
+ required: boolean;
126
+ };
127
+ clone: {
128
+ type: FunctionConstructor;
129
+ default: (original: any) => any;
130
+ };
131
+ tag: {
132
+ type: StringConstructor;
133
+ default: string;
134
+ };
135
+ move: {
136
+ type: FunctionConstructor;
137
+ default: any;
138
+ };
139
+ componentData: {
140
+ type: ObjectConstructor;
141
+ required: boolean;
142
+ default: any;
143
+ };
144
+ }, unknown, {
145
+ error: boolean;
146
+ }, {
147
+ realList(): any;
148
+ getKey(): any;
149
+ }, {
150
+ getUnderlyingVm(domElement: any): any;
151
+ getUnderlyingPotencialDraggableComponent(htmElement: any): any;
152
+ emitChanges(evt: any): void;
153
+ alterList(onList: any): void;
154
+ spliceList(): void;
155
+ updatePosition(oldIndex: any, newIndex: any): void;
156
+ getRelatedContextFromMoveEvent({ to, related }: {
157
+ to: any;
158
+ related: any;
159
+ }): any;
160
+ getVmIndexFromDomIndex(domIndex: any): any;
161
+ onDragStart(evt: any): void;
162
+ onDragAdd(evt: any): void;
163
+ onDragRemove(evt: any): void;
164
+ onDragUpdate(evt: any): void;
165
+ computeFutureIndex(relatedContext: any, evt: any): any;
166
+ onDragMove(evt: any, originalEvent: any): any;
167
+ onDragEnd(): void;
168
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any[], any, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
169
+ move: Function;
170
+ tag: string;
171
+ clone: Function;
172
+ list: unknown[];
173
+ modelValue: unknown[];
174
+ componentData: Record<string, any>;
175
+ } & {
176
+ itemKey?: string | Function | undefined;
177
+ }>, {
178
+ move: Function;
179
+ tag: string;
180
+ clone: Function;
181
+ list: unknown[];
182
+ modelValue: unknown[];
183
+ componentData: Record<string, any>;
184
+ }, {}>;
185
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "handleChangeDataSource"[], "handleChangeDataSource", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
186
+ readonly settingKey: {
187
+ readonly type: import("vue").PropType<string>;
188
+ readonly required: false;
189
+ readonly validator: ((val: unknown) => boolean) | undefined;
190
+ __epPropKey: true;
191
+ };
192
+ readonly columns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("ant-design-vue").TableColumnProps[]) | (() => import("ant-design-vue").TableColumnProps[]) | ((new (...args: any[]) => import("ant-design-vue").TableColumnProps[]) | (() => import("ant-design-vue").TableColumnProps[]))[], unknown, unknown, () => never[], boolean>;
193
+ readonly dataSource: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
194
+ readonly showDrag: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
195
+ readonly showIndexColumn: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
196
+ readonly showOperate: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
197
+ readonly showSetting: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
198
+ readonly scroll: {
199
+ readonly type: import("vue").PropType<import("../table").ITableScroll>;
200
+ readonly required: false;
201
+ readonly validator: ((val: unknown) => boolean) | undefined;
202
+ __epPropKey: true;
203
+ };
204
+ readonly expandedRowKeys: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => never[], boolean>;
205
+ readonly hiddenPagination: {
206
+ readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
207
+ readonly required: false;
208
+ readonly validator: ((val: unknown) => boolean) | undefined;
209
+ __epPropKey: true;
210
+ };
211
+ readonly customRowProps: import("ll-plus/es/utils").EpPropFinalized<FunctionConstructor, unknown, unknown, () => void, boolean>;
212
+ readonly expand: {
213
+ readonly type: import("vue").PropType<Function>;
214
+ readonly required: false;
215
+ readonly validator: ((val: unknown) => boolean) | undefined;
216
+ __epPropKey: true;
217
+ };
218
+ readonly change: {
219
+ readonly type: import("vue").PropType<Function>;
220
+ readonly required: false;
221
+ readonly validator: ((val: unknown) => boolean) | undefined;
222
+ __epPropKey: true;
223
+ };
224
+ readonly expandedRowsChange: {
225
+ readonly type: import("vue").PropType<Function>;
226
+ readonly required: false;
227
+ readonly validator: ((val: unknown) => boolean) | undefined;
228
+ __epPropKey: true;
229
+ };
230
+ readonly resizeColumn: {
231
+ readonly type: import("vue").PropType<Function>;
232
+ readonly required: false;
233
+ readonly validator: ((val: unknown) => boolean) | undefined;
234
+ __epPropKey: true;
235
+ };
236
+ readonly dragChange: {
237
+ readonly type: import("vue").PropType<Function>;
238
+ readonly required: false;
239
+ readonly validator: ((val: unknown) => boolean) | undefined;
240
+ __epPropKey: true;
241
+ };
242
+ }>> & {
243
+ onHandleChangeDataSource?: ((...args: any[]) => any) | undefined;
244
+ }, {
245
+ readonly columns: import("ant-design-vue").TableColumnProps[];
246
+ readonly dataSource: any[];
247
+ readonly showDrag: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
248
+ readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
249
+ readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
250
+ readonly showSetting: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
251
+ readonly expandedRowKeys: string[];
252
+ readonly customRowProps: Function;
253
+ }, {}>;
254
+ export default _default;
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var mainTable_vue_vue_type_script_setup_true_lang = require('./main-table.vue2.js');
6
+ var _pluginVue_exportHelper = require('../../../../_virtual/_plugin-vue_export-helper.js');
7
+
8
+ "use strict";
9
+ var MainTable = /* @__PURE__ */ _pluginVue_exportHelper.default(mainTable_vue_vue_type_script_setup_true_lang.default, [["__file", "main-table.vue"]]);
10
+
11
+ exports.default = MainTable;
12
+ //# sourceMappingURL=main-table.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main-table.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}