vxe-table 4.1.21 → 4.2.0-beta.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 (300) hide show
  1. package/README.en.md +1 -1
  2. package/README.md +2 -1
  3. package/README.zh-TW.md +1 -1
  4. package/es/button/index.js +1 -1
  5. package/es/checkbox/index.js +1 -1
  6. package/es/checkbox-group/index.js +1 -1
  7. package/es/colgroup/index.js +3 -2
  8. package/es/column/index.js +3 -2
  9. package/es/edit/src/hook.js +2 -1
  10. package/es/export/index.js +2 -2
  11. package/es/export/src/hook.js +2 -1
  12. package/es/export/src/util.js +3 -5
  13. package/es/filter/index.js +1 -1
  14. package/es/footer/index.js +1 -1
  15. package/es/footer/src/footer.js +3 -2
  16. package/es/form/index.js +1 -1
  17. package/es/form/src/form-gather.js +1 -1
  18. package/es/form/src/form-item.js +2 -2
  19. package/es/form/src/form.js +15 -29
  20. package/es/form/src/render.js +15 -10
  21. package/es/form-gather/index.js +1 -1
  22. package/es/form-item/index.js +1 -1
  23. package/es/grid/index.js +1 -1
  24. package/es/grid/src/grid.js +2 -1
  25. package/es/header/index.js +1 -1
  26. package/es/header/src/header.js +1 -1
  27. package/es/input/index.js +1 -1
  28. package/es/list/index.js +1 -1
  29. package/es/menu/index.js +1 -1
  30. package/es/modal/index.js +1 -1
  31. package/es/modal/src/modal.js +2 -1
  32. package/es/optgroup/index.js +1 -1
  33. package/es/option/index.js +1 -1
  34. package/es/pager/index.js +1 -1
  35. package/es/pulldown/index.js +1 -1
  36. package/es/radio/index.js +1 -1
  37. package/es/radio-button/index.js +1 -1
  38. package/es/radio-group/index.js +1 -1
  39. package/es/select/index.js +1 -1
  40. package/es/select/src/select.js +14 -3
  41. package/es/select/style.css +1 -1
  42. package/es/style.css +1 -1
  43. package/es/style.min.css +1 -1
  44. package/es/switch/index.js +1 -1
  45. package/es/table/index.js +1 -1
  46. package/es/table/src/body.js +24 -24
  47. package/es/table/src/cell.js +3 -3
  48. package/es/table/src/column.js +3 -1
  49. package/es/table/src/columnInfo.js +5 -4
  50. package/es/table/src/emits.js +5 -1
  51. package/es/table/src/props.js +5 -2
  52. package/es/table/src/table.js +60 -62
  53. package/es/table/src/util.js +5 -3
  54. package/es/textarea/index.js +1 -1
  55. package/es/toolbar/index.js +1 -1
  56. package/es/toolbar/src/toolbar.js +2 -1
  57. package/es/tools/log.js +13 -0
  58. package/es/tools/utils.js +0 -12
  59. package/es/tooltip/index.js +1 -1
  60. package/es/tooltip/src/tooltip.js +47 -28
  61. package/es/tooltip/style.css +1 -1
  62. package/es/v-x-e-table/index.js +1 -0
  63. package/es/v-x-e-table/src/conf.js +14 -7
  64. package/es/v-x-e-table/src/interceptor.js +1 -1
  65. package/es/v-x-e-table/src/renderer.js +2 -1
  66. package/es/v-x-e-table/src/store.js +1 -1
  67. package/helper/vetur/attributes.json +31 -11
  68. package/helper/vetur/tags.json +8 -3
  69. package/lib/button/index.js +3 -2
  70. package/lib/button/index.min.js +1 -1
  71. package/lib/checkbox/index.js +3 -2
  72. package/lib/checkbox/index.min.js +1 -1
  73. package/lib/checkbox-group/index.js +3 -2
  74. package/lib/checkbox-group/index.min.js +1 -1
  75. package/lib/colgroup/index.js +6 -4
  76. package/lib/colgroup/index.min.js +1 -1
  77. package/lib/column/index.js +6 -4
  78. package/lib/column/index.min.js +1 -1
  79. package/lib/edit/src/hook.js +7 -5
  80. package/lib/edit/src/hook.min.js +1 -1
  81. package/lib/export/index.js +5 -4
  82. package/lib/export/index.min.js +1 -1
  83. package/lib/export/src/hook.js +14 -12
  84. package/lib/export/src/hook.min.js +1 -1
  85. package/lib/export/src/util.js +7 -9
  86. package/lib/export/src/util.min.js +1 -1
  87. package/lib/filter/index.js +3 -2
  88. package/lib/filter/index.min.js +1 -1
  89. package/lib/footer/index.js +3 -2
  90. package/lib/footer/index.min.js +1 -1
  91. package/lib/footer/src/footer.js +7 -3
  92. package/lib/footer/src/footer.min.js +1 -1
  93. package/lib/form/index.js +3 -2
  94. package/lib/form/index.min.js +1 -1
  95. package/lib/form/src/form-gather.js +2 -2
  96. package/lib/form/src/form-gather.min.js +1 -1
  97. package/lib/form/src/form-item.js +2 -2
  98. package/lib/form/src/form-item.min.js +1 -1
  99. package/lib/form/src/form.js +18 -36
  100. package/lib/form/src/form.min.js +1 -1
  101. package/lib/form/src/render.js +24 -10
  102. package/lib/form/src/render.min.js +1 -1
  103. package/lib/form-gather/index.js +3 -2
  104. package/lib/form-gather/index.min.js +1 -1
  105. package/lib/form-item/index.js +3 -2
  106. package/lib/form-item/index.min.js +1 -1
  107. package/lib/grid/index.js +3 -2
  108. package/lib/grid/index.min.js +1 -1
  109. package/lib/grid/src/grid.js +16 -14
  110. package/lib/grid/src/grid.min.js +1 -1
  111. package/lib/header/index.js +3 -2
  112. package/lib/header/index.min.js +1 -1
  113. package/lib/header/src/header.js +1 -1
  114. package/lib/header/src/header.min.js +1 -1
  115. package/lib/index.umd.js +1190 -284
  116. package/lib/index.umd.min.js +1 -2
  117. package/lib/input/index.js +3 -2
  118. package/lib/input/index.min.js +1 -1
  119. package/lib/list/index.js +3 -2
  120. package/lib/list/index.min.js +1 -1
  121. package/lib/menu/index.js +3 -2
  122. package/lib/menu/index.min.js +1 -1
  123. package/lib/modal/index.js +3 -2
  124. package/lib/modal/index.min.js +1 -1
  125. package/lib/modal/src/modal.js +3 -1
  126. package/lib/modal/src/modal.min.js +1 -1
  127. package/lib/optgroup/index.js +3 -2
  128. package/lib/optgroup/index.min.js +1 -1
  129. package/lib/option/index.js +3 -2
  130. package/lib/option/index.min.js +1 -1
  131. package/lib/pager/index.js +3 -2
  132. package/lib/pager/index.min.js +1 -1
  133. package/lib/pulldown/index.js +3 -2
  134. package/lib/pulldown/index.min.js +1 -1
  135. package/lib/radio/index.js +3 -2
  136. package/lib/radio/index.min.js +1 -1
  137. package/lib/radio-button/index.js +3 -2
  138. package/lib/radio-button/index.min.js +1 -1
  139. package/lib/radio-group/index.js +3 -2
  140. package/lib/radio-group/index.min.js +1 -1
  141. package/lib/select/index.js +3 -2
  142. package/lib/select/index.min.js +1 -1
  143. package/lib/select/src/select.js +14 -3
  144. package/lib/select/src/select.min.js +1 -1
  145. package/lib/select/style/style.css +1 -1
  146. package/lib/select/style/style.min.css +1 -1
  147. package/lib/style.css +1 -1
  148. package/lib/style.min.css +1 -1
  149. package/lib/switch/index.js +3 -2
  150. package/lib/switch/index.min.js +1 -1
  151. package/lib/table/index.js +3 -2
  152. package/lib/table/index.min.js +1 -1
  153. package/lib/table/src/body.js +24 -25
  154. package/lib/table/src/body.min.js +1 -1
  155. package/lib/table/src/cell.js +3 -3
  156. package/lib/table/src/cell.min.js +1 -1
  157. package/lib/table/src/column.js +3 -1
  158. package/lib/table/src/column.min.js +1 -1
  159. package/lib/table/src/columnInfo.js +13 -9
  160. package/lib/table/src/columnInfo.min.js +1 -1
  161. package/lib/table/src/emits.js +1 -1
  162. package/lib/table/src/emits.min.js +1 -1
  163. package/lib/table/src/props.js +5 -2
  164. package/lib/table/src/table.js +124 -123
  165. package/lib/table/src/table.min.js +1 -1
  166. package/lib/table/src/util.js +5 -3
  167. package/lib/table/src/util.min.js +1 -1
  168. package/lib/textarea/index.js +3 -2
  169. package/lib/textarea/index.min.js +1 -1
  170. package/lib/toolbar/index.js +3 -2
  171. package/lib/toolbar/index.min.js +1 -1
  172. package/lib/toolbar/src/toolbar.js +4 -2
  173. package/lib/toolbar/src/toolbar.min.js +1 -1
  174. package/lib/tools/log.js +29 -0
  175. package/lib/tools/log.min.js +1 -0
  176. package/lib/tools/utils.js +0 -20
  177. package/lib/tools/utils.min.js +1 -1
  178. package/lib/tooltip/index.js +3 -3
  179. package/lib/tooltip/index.min.js +1 -1
  180. package/lib/tooltip/src/tooltip.js +55 -32
  181. package/lib/tooltip/src/tooltip.min.js +1 -1
  182. package/lib/tooltip/style/style.css +1 -1
  183. package/lib/tooltip/style/style.min.css +1 -1
  184. package/lib/v-x-e-table/index.js +1 -0
  185. package/lib/v-x-e-table/index.min.js +1 -1
  186. package/lib/v-x-e-table/src/conf.js +14 -7
  187. package/lib/v-x-e-table/src/conf.min.js +1 -1
  188. package/lib/v-x-e-table/src/interceptor.js +3 -3
  189. package/lib/v-x-e-table/src/interceptor.min.js +1 -1
  190. package/lib/v-x-e-table/src/renderer.js +3 -1
  191. package/lib/v-x-e-table/src/renderer.min.js +1 -1
  192. package/lib/v-x-e-table/src/store.js +2 -2
  193. package/lib/v-x-e-table/src/store.min.js +1 -1
  194. package/package.json +3 -3
  195. package/packages/button/index.ts +2 -1
  196. package/packages/checkbox/index.ts +2 -1
  197. package/packages/checkbox-group/index.ts +2 -1
  198. package/packages/colgroup/index.ts +4 -2
  199. package/packages/column/index.ts +4 -2
  200. package/packages/edit/src/hook.ts +2 -1
  201. package/packages/export/index.ts +3 -2
  202. package/packages/export/src/hook.ts +2 -1
  203. package/packages/export/src/util.ts +4 -6
  204. package/packages/filter/index.ts +2 -1
  205. package/packages/footer/index.ts +2 -1
  206. package/packages/footer/src/footer.ts +3 -2
  207. package/packages/form/index.ts +2 -1
  208. package/packages/form/src/form-gather.ts +1 -1
  209. package/packages/form/src/form-item.ts +2 -2
  210. package/packages/form/src/form.ts +16 -32
  211. package/packages/form/src/render.ts +8 -6
  212. package/packages/form-gather/index.ts +2 -1
  213. package/packages/form-item/index.ts +2 -1
  214. package/packages/grid/index.ts +2 -1
  215. package/packages/grid/src/grid.ts +2 -1
  216. package/packages/header/index.ts +2 -1
  217. package/packages/header/src/header.ts +1 -1
  218. package/packages/input/index.ts +2 -1
  219. package/packages/list/index.ts +2 -1
  220. package/packages/menu/index.ts +2 -1
  221. package/packages/modal/index.ts +2 -1
  222. package/packages/modal/src/modal.ts +2 -1
  223. package/packages/optgroup/index.ts +2 -1
  224. package/packages/option/index.ts +2 -1
  225. package/packages/pager/index.ts +2 -1
  226. package/packages/pulldown/index.ts +2 -1
  227. package/packages/radio/index.ts +2 -1
  228. package/packages/radio-button/index.ts +2 -1
  229. package/packages/radio-group/index.ts +2 -1
  230. package/packages/select/index.ts +2 -1
  231. package/packages/select/src/select.ts +15 -3
  232. package/packages/switch/index.ts +2 -1
  233. package/packages/table/index.ts +2 -1
  234. package/packages/table/src/body.ts +24 -23
  235. package/packages/table/src/cell.ts +3 -3
  236. package/packages/table/src/column.ts +3 -1
  237. package/packages/table/src/columnInfo.ts +5 -3
  238. package/packages/table/src/emits.ts +5 -1
  239. package/packages/table/src/props.ts +5 -2
  240. package/packages/table/src/table.ts +61 -60
  241. package/packages/table/src/util.ts +5 -3
  242. package/packages/textarea/index.ts +2 -1
  243. package/packages/toolbar/index.ts +2 -1
  244. package/packages/toolbar/src/toolbar.ts +2 -1
  245. package/packages/tools/log.ts +16 -0
  246. package/packages/tools/utils.ts +0 -15
  247. package/packages/tooltip/index.ts +2 -1
  248. package/packages/tooltip/src/tooltip.ts +48 -28
  249. package/packages/v-x-e-table/index.ts +1 -0
  250. package/packages/v-x-e-table/src/conf.ts +14 -7
  251. package/packages/v-x-e-table/src/interceptor.ts +1 -1
  252. package/packages/v-x-e-table/src/renderer.ts +2 -1
  253. package/packages/v-x-e-table/src/store.ts +1 -1
  254. package/styles/select.scss +1 -1
  255. package/styles/tooltip.scss +1 -1
  256. package/types/all.d.ts +2 -2
  257. package/types/button.d.ts +54 -54
  258. package/types/checkbox-group.d.ts +21 -21
  259. package/types/checkbox.d.ts +30 -30
  260. package/types/colgroup.d.ts +16 -16
  261. package/types/column.d.ts +172 -161
  262. package/types/component.d.ts +9 -9
  263. package/types/edit.d.ts +35 -35
  264. package/types/export.d.ts +101 -101
  265. package/types/filter.d.ts +19 -19
  266. package/types/footer.d.ts +1 -1
  267. package/types/form-gather.d.ts +3 -3
  268. package/types/form-item.d.ts +68 -66
  269. package/types/form.d.ts +131 -132
  270. package/types/grid.d.ts +257 -257
  271. package/types/header.d.ts +1 -1
  272. package/types/icon.d.ts +1 -1
  273. package/types/input.d.ts +162 -162
  274. package/types/keyboard.d.ts +6 -6
  275. package/types/list.d.ts +54 -54
  276. package/types/menu.d.ts +33 -33
  277. package/types/modal.d.ts +160 -160
  278. package/types/optgroup.d.ts +5 -5
  279. package/types/option.d.ts +19 -19
  280. package/types/pager.d.ts +62 -62
  281. package/types/plugins/pro.d.ts +245 -215
  282. package/types/pulldown.d.ts +36 -36
  283. package/types/radio-button.d.ts +25 -25
  284. package/types/radio-group.d.ts +20 -20
  285. package/types/radio.d.ts +27 -27
  286. package/types/select.d.ts +98 -82
  287. package/types/switch.d.ts +40 -40
  288. package/types/table.d.ts +1412 -1333
  289. package/types/textarea.d.ts +71 -71
  290. package/types/toolbar.d.ts +65 -65
  291. package/types/tooltip.d.ts +50 -48
  292. package/types/v-x-e-table/commands.d.ts +12 -12
  293. package/types/v-x-e-table/formats.d.ts +10 -10
  294. package/types/v-x-e-table/hooks.d.ts +9 -9
  295. package/types/v-x-e-table/index.d.ts +51 -43
  296. package/types/v-x-e-table/interceptor.d.ts +26 -26
  297. package/types/v-x-e-table/menus.d.ts +13 -13
  298. package/types/v-x-e-table/renderer.d.ts +128 -128
  299. package/types/v-x-e-table/setup.d.ts +55 -55
  300. package/types/validator.d.ts +28 -28
package/README.en.md CHANGED
@@ -29,7 +29,7 @@ A [vue](https://www.npmjs.com/package/vue) based PC form component, support add,
29
29
 
30
30
  ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) | ![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/src/opera/opera_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png)
31
31
  --- | --- | --- | --- | --- |
32
- Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 8+ ✔ |
32
+ Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ |
33
33
 
34
34
  ## Features
35
35
 
package/README.md CHANGED
@@ -34,7 +34,7 @@
34
34
 
35
35
  ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) | ![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/src/opera/opera_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png)
36
36
  --- | --- | --- | --- | --- |
37
- Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 8+ ✔ |
37
+ 80+ ✔ | 80+ ✔ | 90+ ✔ | 75+ ✔ | 10+ ✔ |
38
38
 
39
39
  ## 功能点
40
40
 
@@ -156,6 +156,7 @@ export default defineComponent({
156
156
 
157
157
  ## 文档
158
158
 
159
+ 💡 [使用指南](https://github.com/xuliangzhan/vxe-table-demo)
159
160
  👉 [查看文档](https://vxetable.cn)
160
161
 
161
162
  ## 运行项目
package/README.zh-TW.md CHANGED
@@ -33,7 +33,7 @@
33
33
 
34
34
  ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) | ![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/src/opera/opera_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png)
35
35
  --- | --- | --- | --- | --- |
36
- Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 8+ ✔ |
36
+ Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ |
37
37
 
38
38
  ## 功能點
39
39
 
@@ -2,8 +2,8 @@ import VxeButtonComponent from './src/button';
2
2
  import { dynamicApp } from '../dynamics';
3
3
  export var Button = Object.assign(VxeButtonComponent, {
4
4
  install: function (app) {
5
- dynamicApp.component(VxeButtonComponent.name, VxeButtonComponent);
6
5
  app.component(VxeButtonComponent.name, VxeButtonComponent);
7
6
  }
8
7
  });
8
+ dynamicApp.component(VxeButtonComponent.name, VxeButtonComponent);
9
9
  export default Button;
@@ -2,8 +2,8 @@ import VxeCheckboxComponent from './src/checkbox';
2
2
  import { dynamicApp } from '../dynamics';
3
3
  export var Checkbox = Object.assign(VxeCheckboxComponent, {
4
4
  install: function (app) {
5
- dynamicApp.component(VxeCheckboxComponent.name, VxeCheckboxComponent);
6
5
  app.component(VxeCheckboxComponent.name, VxeCheckboxComponent);
7
6
  }
8
7
  });
8
+ dynamicApp.component(VxeCheckboxComponent.name, VxeCheckboxComponent);
9
9
  export default Checkbox;
@@ -2,8 +2,8 @@ import VxeCheckboxGroupComponent from '../checkbox/src/group';
2
2
  import { dynamicApp } from '../dynamics';
3
3
  export var CheckboxGroup = Object.assign(VxeCheckboxGroupComponent, {
4
4
  install: function (app) {
5
- dynamicApp.component(VxeCheckboxGroupComponent.name, VxeCheckboxGroupComponent);
6
5
  app.component(VxeCheckboxGroupComponent.name, VxeCheckboxGroupComponent);
7
6
  }
8
7
  });
8
+ dynamicApp.component(VxeCheckboxGroupComponent.name, VxeCheckboxGroupComponent);
9
9
  export default CheckboxGroup;
@@ -2,11 +2,12 @@ import VxeTableColgroupComponent from '../table/src/group';
2
2
  import { dynamicApp } from '../dynamics';
3
3
  export var Colgroup = Object.assign(VxeTableColgroupComponent, {
4
4
  install: function (app) {
5
- dynamicApp.component(VxeTableColgroupComponent.name, VxeTableColgroupComponent);
6
5
  app.component(VxeTableColgroupComponent.name, VxeTableColgroupComponent);
7
6
  // 兼容旧用法
8
- dynamicApp.component('VxeTableColgroup', VxeTableColgroupComponent);
9
7
  app.component('VxeTableColgroup', VxeTableColgroupComponent);
10
8
  }
11
9
  });
10
+ dynamicApp.component(VxeTableColgroupComponent.name, VxeTableColgroupComponent);
11
+ // 兼容旧用法
12
+ dynamicApp.component('VxeTableColgroup', VxeTableColgroupComponent);
12
13
  export default Colgroup;
@@ -2,11 +2,12 @@ import VxeTableColumnComponent from '../table/src/column';
2
2
  import { dynamicApp } from '../dynamics';
3
3
  export var Column = Object.assign(VxeTableColumnComponent, {
4
4
  install: function (app) {
5
- dynamicApp.component(VxeTableColumnComponent.name, VxeTableColumnComponent);
6
5
  app.component(VxeTableColumnComponent.name, VxeTableColumnComponent);
7
6
  // 兼容旧用法
8
- dynamicApp.component('VxeTableColumn', VxeTableColumnComponent);
9
7
  app.component('VxeTableColumn', VxeTableColumnComponent);
10
8
  }
11
9
  });
10
+ dynamicApp.component(VxeTableColumnComponent.name, VxeTableColumnComponent);
11
+ // 兼容旧用法
12
+ dynamicApp.component('VxeTableColumn', VxeTableColumnComponent);
12
13
  export default Column;
@@ -17,9 +17,10 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
17
17
  import { nextTick } from 'vue';
18
18
  import XEUtils from 'xe-utils';
19
19
  import { renderer } from '../../v-x-e-table';
20
- import { errLog, getLog, isEnableConf, warnLog } from '../../tools/utils';
20
+ import { isEnableConf } from '../../tools/utils';
21
21
  import { getCellValue, setCellValue, getRowid } from '../../table/src/util';
22
22
  import { browse, removeClass, addClass } from '../../tools/dom';
23
+ import { warnLog, errLog, getLog } from '../../tools/log';
23
24
  var tableEditMethodKeys = ['insert', 'insertAt', 'remove', 'removeCheckboxRow', 'removeRadioRow', 'removeCurrentRow', 'getRecordset', 'getInsertRecords', 'getRemoveRecords', 'getUpdateRecords', 'getActiveRecord', 'getSelectedCell', 'clearActived', 'clearSelected', 'isActiveByRow', 'setActiveRow', 'setActiveCell', 'setSelectCell'];
24
25
  var editHook = {
25
26
  setupTable: function ($xetable) {
@@ -29,10 +29,10 @@ export var Export = {
29
29
  }
30
30
  });
31
31
  VXETable.hooks.add('$tableExport', exportHook);
32
- dynamicApp.component(ExportPanelComponent.name, ExportPanelComponent);
33
- dynamicApp.component(ImportPanelComponent.name, ImportPanelComponent);
34
32
  app.component(ExportPanelComponent.name, ExportPanelComponent);
35
33
  app.component(ImportPanelComponent.name, ImportPanelComponent);
36
34
  }
37
35
  };
36
+ dynamicApp.component(ExportPanelComponent.name, ExportPanelComponent);
37
+ dynamicApp.component(ImportPanelComponent.name, ImportPanelComponent);
38
38
  export default Export;
@@ -3,7 +3,8 @@ import XEUtils from 'xe-utils';
3
3
  import GlobalConfig from '../../v-x-e-table/src/conf';
4
4
  import { VXETable } from '../../v-x-e-table';
5
5
  import { isColumnInfo, mergeBodyMethod, getCellValue } from '../../table/src/util';
6
- import { errLog, warnLog, parseFile, formatText } from '../../tools/utils';
6
+ import { parseFile, formatText } from '../../tools/utils';
7
+ import { warnLog, errLog } from '../../tools/log';
7
8
  import { readLocalFile, handlePrint, saveLocalFile, createHtmlPage, getExportBlobByContent } from './util';
8
9
  var htmlCellElem;
9
10
  var csvBOM = '\ufeff';
@@ -2,7 +2,8 @@ import XEUtils from 'xe-utils';
2
2
  import GlobalConfig from '../../v-x-e-table/src/conf';
3
3
  import { VXETable } from '../../v-x-e-table';
4
4
  import { browse } from '../../tools/dom';
5
- import { getLog, parseFile, errLog } from '../../tools/utils';
5
+ import { parseFile } from '../../tools/utils';
6
+ import { errLog, getLog } from '../../tools/log';
6
7
  // 导入
7
8
  var fileForm;
8
9
  var fileInput;
@@ -16,10 +17,7 @@ export function createFrame() {
16
17
  return frame;
17
18
  }
18
19
  export function getExportBlobByContent(content, options) {
19
- if (window.Blob) {
20
- return new Blob([content], { type: "text/" + options.type + ";charset=utf-8;" });
21
- }
22
- return null;
20
+ return new Blob([content], { type: "text/" + options.type + ";charset=utf-8;" });
23
21
  }
24
22
  export function createHtmlPage(opts, content) {
25
23
  var style = opts.style;
@@ -6,8 +6,8 @@ export var Filter = {
6
6
  Panel: PanelComponent,
7
7
  install: function (app) {
8
8
  VXETable.hooks.add('$tableFilter', filterHook);
9
- dynamicApp.component(PanelComponent.name, PanelComponent);
10
9
  app.component(PanelComponent.name, PanelComponent);
11
10
  }
12
11
  };
12
+ dynamicApp.component(PanelComponent.name, PanelComponent);
13
13
  export default Filter;
@@ -2,8 +2,8 @@ import VxeTableFooterComponent from './src/footer';
2
2
  import { dynamicApp } from '../dynamics';
3
3
  export var Footer = Object.assign(VxeTableFooterComponent, {
4
4
  install: function (app) {
5
- dynamicApp.component(VxeTableFooterComponent.name, VxeTableFooterComponent);
6
5
  app.component(VxeTableFooterComponent.name, VxeTableFooterComponent);
7
6
  }
8
7
  });
8
+ dynamicApp.component(VxeTableFooterComponent.name, VxeTableFooterComponent);
9
9
  export default Footer;
@@ -39,7 +39,7 @@ export default defineComponent({
39
39
  var $xetable = inject('$xetable', {});
40
40
  var xID = $xetable.xID, tableProps = $xetable.props, tableReactData = $xetable.reactData, tableInternalData = $xetable.internalData;
41
41
  var _a = $xetable.getRefMaps(), refTableHeader = _a.refTableHeader, refTableBody = _a.refTableBody, refValidTooltip = _a.refValidTooltip;
42
- var computeTooltipOpts = $xetable.getComputeMaps().computeTooltipOpts;
42
+ var _b = $xetable.getComputeMaps(), computeTooltipOpts = _b.computeTooltipOpts, computeColumnOpts = _b.computeColumnOpts;
43
43
  var refElem = ref();
44
44
  var refFooterTable = ref();
45
45
  var refFooterColgroup = ref();
@@ -106,6 +106,7 @@ export default defineComponent({
106
106
  var visibleColumn = tableInternalData.visibleColumn;
107
107
  var scrollYLoad = tableReactData.scrollYLoad, overflowX = tableReactData.overflowX, scrollbarWidth = tableReactData.scrollbarWidth, currentColumn = tableReactData.currentColumn, mergeFooterList = tableReactData.mergeFooterList;
108
108
  var tooltipOpts = computeTooltipOpts.value;
109
+ var columnOpts = computeColumnOpts.value;
109
110
  // 如果是使用优化模式
110
111
  if (fixedType) {
111
112
  if (scrollYLoad || allColumnFooterOverflow) {
@@ -244,7 +245,7 @@ export default defineComponent({
244
245
  _a['fixed--hidden'] = fixedHiddenColumn,
245
246
  _a['col--ellipsis'] = hasEllipsis,
246
247
  _a['col--current'] = currentColumn === column,
247
- _a), getPropClass(footerClassName, params), getPropClass(footerCellClassName, params)] }, attrs), { style: footerCellStyle ? (XEUtils.isFunction(footerCellStyle) ? footerCellStyle(params) : footerCellStyle) : null }), tfOns), { key: columnKey ? column.id : $columnIndex }), [
248
+ _a), getPropClass(footerClassName, params), getPropClass(footerCellClassName, params)] }, attrs), { style: footerCellStyle ? (XEUtils.isFunction(footerCellStyle) ? footerCellStyle(params) : footerCellStyle) : null }), tfOns), { key: columnKey || columnOpts.useKey ? column.id : $columnIndex }), [
248
249
  h('div', {
249
250
  class: ['vxe-cell', {
250
251
  'c--title': showTitle,
package/es/form/index.js CHANGED
@@ -2,8 +2,8 @@ import VxeFormComponent from './src/form';
2
2
  import { dynamicApp } from '../dynamics';
3
3
  export var Form = Object.assign(VxeFormComponent, {
4
4
  install: function (app) {
5
- dynamicApp.component(VxeFormComponent.name, VxeFormComponent);
6
5
  app.component(VxeFormComponent.name, VxeFormComponent);
7
6
  }
8
7
  });
8
+ dynamicApp.component(VxeFormComponent.name, VxeFormComponent);
9
9
  export default Form;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, h, onUnmounted, inject, ref, reactive, onMounted, provide, nextTick } from 'vue';
2
- import { errLog } from '../../tools/utils';
2
+ import { errLog } from '../../tools/log';
3
3
  import { createItem, watchItem, destroyItem, assemItem } from './util';
4
4
  import { formItemProps } from './form-item';
5
5
  export default defineComponent({
@@ -115,9 +115,9 @@ export default defineComponent({
115
115
  }
116
116
  var ons = showTooltip ? {
117
117
  onMouseenter: function (evnt) {
118
- $xeform.triggerHeaderHelpEvent(evnt, params);
118
+ $xeform.triggerTitleTipEvent(evnt, params);
119
119
  },
120
- onMouseleave: $xeform.handleTargetLeaveEvent
120
+ onMouseleave: $xeform.handleTitleTipLeaveEvent
121
121
  } : {};
122
122
  return h('div', {
123
123
  ref: refElem,
@@ -13,7 +13,8 @@ import { defineComponent, h, ref, resolveComponent, createCommentVNode, provide,
13
13
  import XEUtils from 'xe-utils';
14
14
  import GlobalConfig from '../../v-x-e-table/src/conf';
15
15
  import { VXETable } from '../../v-x-e-table';
16
- import { errLog, getFuncText, isEnableConf, eqEmptyValue } from '../../tools/utils';
16
+ import { getFuncText, isEnableConf, eqEmptyValue } from '../../tools/utils';
17
+ import { errLog } from '../../tools/log';
17
18
  import { scrollToView } from '../../tools/dom';
18
19
  import { createItem, handleFieldOrItem } from './util';
19
20
  import { renderTitle } from './render';
@@ -118,7 +119,6 @@ export default defineComponent({
118
119
  });
119
120
  var internalData = reactive({
120
121
  tooltipTimeout: null,
121
- tooltipActive: false,
122
122
  tooltipStore: {
123
123
  item: null,
124
124
  visible: false
@@ -130,22 +130,8 @@ export default defineComponent({
130
130
  var computeValidOpts = computed(function () {
131
131
  return Object.assign({}, GlobalConfig.form.validConfig, props.validConfig);
132
132
  });
133
- var computeTooltipOpts = ref();
134
- var handleTooltipLeaveMethod = function () {
135
- var tooltipOpts = computeTooltipOpts.value;
136
- setTimeout(function () {
137
- if (!internalData.tooltipActive) {
138
- formMethods.closeTooltip();
139
- }
140
- }, tooltipOpts.leaveDelay);
141
- return false;
142
- };
143
- computeTooltipOpts = computed(function () {
144
- var opts = Object.assign({ leaveDelay: 300 }, GlobalConfig.form.tooltipConfig, props.tooltipConfig);
145
- if (opts.enterable) {
146
- opts.leaveMethod = handleTooltipLeaveMethod;
147
- }
148
- return opts;
133
+ var computeTooltipOpts = computed(function () {
134
+ return Object.assign({}, GlobalConfig.tooltip, GlobalConfig.form.tooltipConfig, props.tooltipConfig);
149
135
  });
150
136
  var refMaps = {
151
137
  refElem: refElem
@@ -442,7 +428,7 @@ export default defineComponent({
442
428
  }
443
429
  return nextTick();
444
430
  };
445
- var triggerHeaderHelpEvent = function (evnt, params) {
431
+ var triggerTitleTipEvent = function (evnt, params) {
446
432
  var item = params.item;
447
433
  var tooltipStore = internalData.tooltipStore;
448
434
  var $tooltip = refTooltip.value;
@@ -450,8 +436,9 @@ export default defineComponent({
450
436
  var content = (overflowElem.textContent || '').trim();
451
437
  var isCellOverflow = overflowElem.scrollWidth > overflowElem.clientWidth;
452
438
  clearTimeout(internalData.tooltipTimeout);
453
- internalData.tooltipActive = true;
454
- closeTooltip();
439
+ if (tooltipStore.item !== item) {
440
+ closeTooltip();
441
+ }
455
442
  if (content && isCellOverflow) {
456
443
  Object.assign(tooltipStore, {
457
444
  item: item,
@@ -462,10 +449,9 @@ export default defineComponent({
462
449
  }
463
450
  }
464
451
  };
465
- var handleTargetLeaveEvent = function () {
452
+ var handleTitleTipLeaveEvent = function () {
466
453
  var tooltipOpts = computeTooltipOpts.value;
467
454
  var $tooltip = refTooltip.value;
468
- internalData.tooltipActive = false;
469
455
  if ($tooltip) {
470
456
  $tooltip.setActived(false);
471
457
  }
@@ -507,7 +493,7 @@ export default defineComponent({
507
493
  var data = props.data, rules = props.rules, allTitleOverflow = props.titleOverflow;
508
494
  var collapseAll = reactData.collapseAll;
509
495
  var validOpts = computeValidOpts.value;
510
- return itemList.map(function (item, index) {
496
+ return itemList.map(function (item) {
511
497
  var slots = item.slots, title = item.title, visible = item.visible, folding = item.folding, visibleMethod = item.visibleMethod, field = item.field, collapseNode = item.collapseNode, itemRender = item.itemRender, showError = item.showError, errRule = item.errRule, className = item.className, titleOverflow = item.titleOverflow, children = item.children;
512
498
  var compConf = isEnableConf(itemRender) ? VXETable.renderer.get(itemRender.name) : null;
513
499
  var defaultSlot = slots ? slots.default : null;
@@ -577,9 +563,9 @@ export default defineComponent({
577
563
  }
578
564
  var ons = showTooltip ? {
579
565
  onMouseenter: function (evnt) {
580
- triggerHeaderHelpEvent(evnt, params);
566
+ triggerTitleTipEvent(evnt, params);
581
567
  },
582
- onMouseleave: handleTargetLeaveEvent
568
+ onMouseleave: handleTitleTipLeaveEvent
583
569
  } : {};
584
570
  return h('div', {
585
571
  class: ['vxe-form--item', item.id, span ? "vxe-col--" + span + " is--span" : '', className ? (XEUtils.isFunction(className) ? className(params) : className) : '', {
@@ -589,7 +575,7 @@ export default defineComponent({
589
575
  'is--active': !itemVisibleMethod || itemVisibleMethod(params),
590
576
  'is--error': showError
591
577
  }],
592
- key: index
578
+ key: item.id
593
579
  }, [
594
580
  h('div', {
595
581
  class: 'vxe-form--item-inner'
@@ -623,8 +609,8 @@ export default defineComponent({
623
609
  var formPrivateMethods = {
624
610
  callSlot: callSlot,
625
611
  toggleCollapseEvent: toggleCollapseEvent,
626
- triggerHeaderHelpEvent: triggerHeaderHelpEvent,
627
- handleTargetLeaveEvent: handleTargetLeaveEvent
612
+ triggerTitleTipEvent: triggerTitleTipEvent,
613
+ handleTitleTipLeaveEvent: handleTitleTipLeaveEvent
628
614
  };
629
615
  Object.assign($xeform, formMethods, formPrivateMethods);
630
616
  watch(function () { return reactData.staticItems; }, function (value) {
@@ -1,3 +1,14 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
1
12
  import { h, resolveComponent } from 'vue';
2
13
  import GlobalConfig from '../../v-x-e-table/src/conf';
3
14
  import { VXETable } from '../../v-x-e-table';
@@ -22,7 +33,9 @@ function renderSuffixIcon(titleSuffix) {
22
33
  }
23
34
  export function renderTitle($xeform, item) {
24
35
  var data = $xeform.props.data;
36
+ var computeTooltipOpts = $xeform.getComputeMaps().computeTooltipOpts;
25
37
  var slots = item.slots, field = item.field, itemRender = item.itemRender, titlePrefix = item.titlePrefix, titleSuffix = item.titleSuffix;
38
+ var tooltipOpts = computeTooltipOpts.value;
26
39
  var compConf = isEnableConf(itemRender) ? VXETable.renderer.get(itemRender.name) : null;
27
40
  var params = { data: data, property: field, item: item, $form: $xeform };
28
41
  var titleSlot = slots ? slots.title : null;
@@ -30,11 +43,7 @@ export function renderTitle($xeform, item) {
30
43
  var titVNs = [];
31
44
  if (titlePrefix) {
32
45
  titVNs.push((titlePrefix.content || titlePrefix.message)
33
- ? h(resolveComponent('vxe-tooltip'), {
34
- content: getFuncText(titlePrefix.content || titlePrefix.message),
35
- enterable: titlePrefix.enterable,
36
- theme: titlePrefix.theme
37
- }, {
46
+ ? h(resolveComponent('vxe-tooltip'), __assign(__assign(__assign({}, tooltipOpts), titlePrefix), { content: getFuncText(titlePrefix.content || titlePrefix.message) }), {
38
47
  default: function () { return renderPrefixIcon(titlePrefix); }
39
48
  })
40
49
  : renderPrefixIcon(titlePrefix));
@@ -48,11 +57,7 @@ export function renderTitle($xeform, item) {
48
57
  var fixVNs = [];
49
58
  if (titleSuffix) {
50
59
  fixVNs.push((titleSuffix.content || titleSuffix.message)
51
- ? h(resolveComponent('vxe-tooltip'), {
52
- content: getFuncText(titleSuffix.content || titleSuffix.message),
53
- enterable: titleSuffix.enterable,
54
- theme: titleSuffix.theme
55
- }, {
60
+ ? h(resolveComponent('vxe-tooltip'), __assign(__assign(__assign({}, tooltipOpts), titleSuffix), { content: getFuncText(titleSuffix.content || titleSuffix.message) }), {
56
61
  default: function () { return renderSuffixIcon(titleSuffix); }
57
62
  })
58
63
  : renderSuffixIcon(titleSuffix));
@@ -2,8 +2,8 @@ import VxeFormGatherComponent from '../form/src/form-gather';
2
2
  import { dynamicApp } from '../dynamics';
3
3
  export var FormGather = Object.assign(VxeFormGatherComponent, {
4
4
  install: function (app) {
5
- dynamicApp.component(VxeFormGatherComponent.name, VxeFormGatherComponent);
6
5
  app.component(VxeFormGatherComponent.name, VxeFormGatherComponent);
7
6
  }
8
7
  });
8
+ dynamicApp.component(VxeFormGatherComponent.name, VxeFormGatherComponent);
9
9
  export default FormGather;
@@ -2,8 +2,8 @@ import VxeFormItemComponent from '../form/src/form-item';
2
2
  import { dynamicApp } from '../dynamics';
3
3
  export var FormItem = Object.assign(VxeFormItemComponent, {
4
4
  install: function (app) {
5
- dynamicApp.component(VxeFormItemComponent.name, VxeFormItemComponent);
6
5
  app.component(VxeFormItemComponent.name, VxeFormItemComponent);
7
6
  }
8
7
  });
8
+ dynamicApp.component(VxeFormItemComponent.name, VxeFormItemComponent);
9
9
  export default FormItem;
package/es/grid/index.js CHANGED
@@ -2,8 +2,8 @@ import VxeGridComponent from './src/grid';
2
2
  import { dynamicApp } from '../dynamics';
3
3
  export var Grid = Object.assign(VxeGridComponent, {
4
4
  install: function (app) {
5
- dynamicApp.component(VxeGridComponent.name, VxeGridComponent);
6
5
  app.component(VxeGridComponent.name, VxeGridComponent);
7
6
  }
8
7
  });
8
+ dynamicApp.component(VxeGridComponent.name, VxeGridComponent);
9
9
  export default Grid;
@@ -16,8 +16,9 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
16
16
  };
17
17
  import { defineComponent, h, ref, computed, provide, getCurrentInstance, resolveComponent, reactive, onUnmounted, watch, nextTick, onMounted } from 'vue';
18
18
  import XEUtils from 'xe-utils';
19
- import { errLog, getLastZIndex, nextZIndex, isEnableConf } from '../../tools/utils';
19
+ import { getLastZIndex, nextZIndex, isEnableConf } from '../../tools/utils';
20
20
  import { getOffsetHeight, getPaddingTopBottomSize, getDomNode } from '../../tools/dom';
21
+ import { errLog } from '../../tools/log';
21
22
  import GlobalConfig from '../../v-x-e-table/src/conf';
22
23
  import { VXETable } from '../../v-x-e-table';
23
24
  import tableComponentProps from '../../table/src/props';
@@ -2,8 +2,8 @@ import VxeTableHeader from './src/header';
2
2
  import { dynamicApp } from '../dynamics';
3
3
  export var Header = Object.assign(VxeTableHeader, {
4
4
  install: function (app) {
5
- dynamicApp.component(VxeTableHeader.name, VxeTableHeader);
6
5
  app.component(VxeTableHeader.name, VxeTableHeader);
7
6
  }
8
7
  });
8
+ dynamicApp.component(VxeTableHeader.name, VxeTableHeader);
9
9
  export default Header;
@@ -253,7 +253,7 @@ export default defineComponent({
253
253
  _a['is--filter-active'] = hasFilter,
254
254
  _a['col--current'] = currentColumn === column,
255
255
  _a), headerClassName ? (XEUtils.isFunction(headerClassName) ? headerClassName(params) : headerClassName) : '',
256
- headerCellClassName ? (XEUtils.isFunction(headerCellClassName) ? headerCellClassName(params) : headerCellClassName) : ''], colid: column.id, colspan: column.colSpan > 1 ? column.colSpan : null, rowspan: column.rowSpan > 1 ? column.rowSpan : null, style: headerCellStyle ? (XEUtils.isFunction(headerCellStyle) ? headerCellStyle(params) : headerCellStyle) : null }, thOns), { key: columnKey || isColGroup ? column.id : $columnIndex }), [
256
+ headerCellClassName ? (XEUtils.isFunction(headerCellClassName) ? headerCellClassName(params) : headerCellClassName) : ''], colid: column.id, colspan: column.colSpan > 1 ? column.colSpan : null, rowspan: column.rowSpan > 1 ? column.rowSpan : null, style: headerCellStyle ? (XEUtils.isFunction(headerCellStyle) ? headerCellStyle(params) : headerCellStyle) : null }, thOns), { key: columnKey || columnOpts.useKey || isColGroup ? column.id : $columnIndex }), [
257
257
  h('div', {
258
258
  class: ['vxe-cell', {
259
259
  'c--title': showTitle,
package/es/input/index.js CHANGED
@@ -2,8 +2,8 @@ import VxeInputConstructor from './src/input';
2
2
  import { dynamicApp } from '../dynamics';
3
3
  export var Input = Object.assign(VxeInputConstructor, {
4
4
  install: function (app) {
5
- dynamicApp.component(VxeInputConstructor.name, VxeInputConstructor);
6
5
  app.component(VxeInputConstructor.name, VxeInputConstructor);
7
6
  }
8
7
  });
8
+ dynamicApp.component(VxeInputConstructor.name, VxeInputConstructor);
9
9
  export default Input;
package/es/list/index.js CHANGED
@@ -2,8 +2,8 @@ import VxeListComponent from './src/list';
2
2
  import { dynamicApp } from '../dynamics';
3
3
  export var List = Object.assign(VxeListComponent, {
4
4
  install: function (app) {
5
- dynamicApp.component(VxeListComponent.name, VxeListComponent);
6
5
  app.component(VxeListComponent.name, VxeListComponent);
7
6
  }
8
7
  });
8
+ dynamicApp.component(VxeListComponent.name, VxeListComponent);
9
9
  export default List;
package/es/menu/index.js CHANGED
@@ -6,8 +6,8 @@ export var Menu = {
6
6
  Panel: PanelComponent,
7
7
  install: function (app) {
8
8
  VXETable.hooks.add('$tableMenu', menuHook);
9
- dynamicApp.component(PanelComponent.name, PanelComponent);
10
9
  app.component(PanelComponent.name, PanelComponent);
11
10
  }
12
11
  };
12
+ dynamicApp.component(PanelComponent.name, PanelComponent);
13
13
  export default Menu;
package/es/modal/index.js CHANGED
@@ -98,9 +98,9 @@ var ModalController = {
98
98
  export var modal = ModalController;
99
99
  export var Modal = Object.assign(VxeModalComponent, {
100
100
  install: function (app) {
101
- dynamicApp.component(VxeModalComponent.name, VxeModalComponent);
102
101
  app.component(VxeModalComponent.name, VxeModalComponent);
103
102
  VXETable.modal = ModalController;
104
103
  }
105
104
  });
105
+ dynamicApp.component(VxeModalComponent.name, VxeModalComponent);
106
106
  export default Modal;
@@ -13,7 +13,8 @@ import { defineComponent, h, Teleport, ref, computed, reactive, nextTick, watch,
13
13
  import XEUtils from 'xe-utils';
14
14
  import { useSize } from '../../hooks/size';
15
15
  import { getDomNode, getEventTargetNode } from '../../tools/dom';
16
- import { errLog, getLastZIndex, nextZIndex, getFuncText } from '../../tools/utils';
16
+ import { getLastZIndex, nextZIndex, getFuncText } from '../../tools/utils';
17
+ import { errLog } from '../../tools/log';
17
18
  import { GlobalEvent, hasEventKey, EVENT_KEYS } from '../../tools/event';
18
19
  import GlobalConfig from '../../v-x-e-table/src/conf';
19
20
  import VxeButtonConstructor from '../../button/src/button';
@@ -2,8 +2,8 @@ import VxeOptgroupComponent from '../select/src/optgroup';
2
2
  import { dynamicApp } from '../dynamics';
3
3
  export var Optgroup = Object.assign(VxeOptgroupComponent, {
4
4
  install: function (app) {
5
- dynamicApp.component(VxeOptgroupComponent.name, VxeOptgroupComponent);
6
5
  app.component(VxeOptgroupComponent.name, VxeOptgroupComponent);
7
6
  }
8
7
  });
8
+ dynamicApp.component(VxeOptgroupComponent.name, VxeOptgroupComponent);
9
9
  export default Optgroup;
@@ -2,8 +2,8 @@ import VxeOptionComponent from '../select/src/option';
2
2
  import { dynamicApp } from '../dynamics';
3
3
  export var Option = Object.assign(VxeOptionComponent, {
4
4
  install: function (app) {
5
- dynamicApp.component(VxeOptionComponent.name, VxeOptionComponent);
6
5
  app.component(VxeOptionComponent.name, VxeOptionComponent);
7
6
  }
8
7
  });
8
+ dynamicApp.component(VxeOptionComponent.name, VxeOptionComponent);
9
9
  export default Option;
package/es/pager/index.js CHANGED
@@ -2,8 +2,8 @@ import VxePagerComponent from './src/pager';
2
2
  import { dynamicApp } from '../dynamics';
3
3
  export var Pager = Object.assign(VxePagerComponent, {
4
4
  install: function (app) {
5
- dynamicApp.component(VxePagerComponent.name, VxePagerComponent);
6
5
  app.component(VxePagerComponent.name, VxePagerComponent);
7
6
  }
8
7
  });
8
+ dynamicApp.component(VxePagerComponent.name, VxePagerComponent);
9
9
  export default Pager;
@@ -2,8 +2,8 @@ import VxePulldownComponent from './src/pulldown';
2
2
  import { dynamicApp } from '../dynamics';
3
3
  export var Pulldown = Object.assign(VxePulldownComponent, {
4
4
  install: function (app) {
5
- dynamicApp.component(VxePulldownComponent.name, VxePulldownComponent);
6
5
  app.component(VxePulldownComponent.name, VxePulldownComponent);
7
6
  }
8
7
  });
8
+ dynamicApp.component(VxePulldownComponent.name, VxePulldownComponent);
9
9
  export default Pulldown;
package/es/radio/index.js CHANGED
@@ -2,8 +2,8 @@ import VxeRadioComponent from './src/radio';
2
2
  import { dynamicApp } from '../dynamics';
3
3
  export var Radio = Object.assign(VxeRadioComponent, {
4
4
  install: function (app) {
5
- dynamicApp.component(VxeRadioComponent.name, VxeRadioComponent);
6
5
  app.component(VxeRadioComponent.name, VxeRadioComponent);
7
6
  }
8
7
  });
8
+ dynamicApp.component(VxeRadioComponent.name, VxeRadioComponent);
9
9
  export default Radio;
@@ -2,8 +2,8 @@ import VxeRadioButtonComponent from '../radio/src/button';
2
2
  import { dynamicApp } from '../dynamics';
3
3
  export var RadioButton = Object.assign(VxeRadioButtonComponent, {
4
4
  install: function (app) {
5
- dynamicApp.component(VxeRadioButtonComponent.name, VxeRadioButtonComponent);
6
5
  app.component(VxeRadioButtonComponent.name, VxeRadioButtonComponent);
7
6
  }
8
7
  });
8
+ dynamicApp.component(VxeRadioButtonComponent.name, VxeRadioButtonComponent);
9
9
  export default RadioButton;
@@ -2,8 +2,8 @@ import VxeRadioGroupComponent from '../radio/src/group';
2
2
  import { dynamicApp } from '../dynamics';
3
3
  export var RadioGroup = Object.assign(VxeRadioGroupComponent, {
4
4
  install: function (app) {
5
- dynamicApp.component(VxeRadioGroupComponent.name, VxeRadioGroupComponent);
6
5
  app.component(VxeRadioGroupComponent.name, VxeRadioGroupComponent);
7
6
  }
8
7
  });
8
+ dynamicApp.component(VxeRadioGroupComponent.name, VxeRadioGroupComponent);
9
9
  export default RadioGroup;
@@ -2,8 +2,8 @@ import VxeSelectComponent from './src/select';
2
2
  import { dynamicApp } from '../dynamics';
3
3
  export var Select = Object.assign(VxeSelectComponent, {
4
4
  install: function (app) {
5
- dynamicApp.component(VxeSelectComponent.name, VxeSelectComponent);
6
5
  app.component(VxeSelectComponent.name, VxeSelectComponent);
7
6
  }
8
7
  });
8
+ dynamicApp.component(VxeSelectComponent.name, VxeSelectComponent);
9
9
  export default Select;