vxe-table 4.3.0-beta.6 → 4.3.0

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 (177) hide show
  1. package/README.en.md +3 -3
  2. package/README.md +3 -3
  3. package/README.zh-TW.md +3 -3
  4. package/es/checkbox/src/checkbox.js +20 -7
  5. package/es/checkbox/src/group.js +14 -2
  6. package/es/checkbox/style.css +1 -1
  7. package/es/export/style.css +1 -13
  8. package/es/filter/style.css +1 -13
  9. package/es/form/src/form.js +1 -1
  10. package/es/grid/style.css +1 -1
  11. package/es/icon/index.js +8 -4
  12. package/es/icon/src/icon.js +23 -0
  13. package/es/icon/style.css +98 -525
  14. package/es/input/style.css +1 -1
  15. package/es/list/src/list.js +1 -1
  16. package/es/loading/src/loading.js +33 -23
  17. package/es/locale/lang/en-US.js +1 -1
  18. package/es/locale/lang/ja-JP.js +1 -1
  19. package/es/locale/lang/zh-CN.js +1 -1
  20. package/es/locale/lang/zh-TC.js +1 -1
  21. package/es/modal/src/modal.js +17 -7
  22. package/es/modal/style.css +14 -13
  23. package/es/pager/style.css +1 -1
  24. package/es/radio/style.css +1 -1
  25. package/es/select/src/select.js +25 -3
  26. package/es/style.css +1 -1
  27. package/es/style.min.css +1 -1
  28. package/es/table/src/body.js +17 -10
  29. package/es/table/src/props.js +2 -0
  30. package/es/table/src/table.js +8 -1
  31. package/es/table/style.css +4 -2
  32. package/es/toolbar/style.css +2 -10
  33. package/es/tools/log.js +1 -1
  34. package/es/v-x-e-table/index.js +1 -1
  35. package/es/v-x-e-table/style.css +99 -526
  36. package/es/vxe-checkbox/style.css +1 -1
  37. package/es/vxe-grid/style.css +1 -1
  38. package/es/vxe-icon/style.css +98 -525
  39. package/es/vxe-input/style.css +1 -1
  40. package/es/vxe-modal/style.css +14 -13
  41. package/es/vxe-module-export/style.css +1 -13
  42. package/es/vxe-module-filter/style.css +1 -13
  43. package/es/vxe-pager/style.css +1 -1
  44. package/es/vxe-radio/style.css +1 -1
  45. package/es/vxe-table/style.css +4 -2
  46. package/es/vxe-toolbar/style.css +2 -10
  47. package/helper/vetur/attributes.json +17 -5
  48. package/helper/vetur/tags.json +10 -2
  49. package/lib/checkbox/src/checkbox.js +23 -7
  50. package/lib/checkbox/src/checkbox.min.js +1 -1
  51. package/lib/checkbox/src/group.js +21 -1
  52. package/lib/checkbox/src/group.min.js +1 -1
  53. package/lib/checkbox/style/style.css +1 -1
  54. package/lib/checkbox/style/style.min.css +1 -1
  55. package/lib/export/style/style.css +1 -13
  56. package/lib/export/style/style.min.css +1 -1
  57. package/lib/filter/style/style.css +1 -13
  58. package/lib/filter/style/style.min.css +1 -1
  59. package/lib/form/src/form.js +1 -1
  60. package/lib/form/src/form.min.js +1 -1
  61. package/lib/grid/style/style.css +1 -1
  62. package/lib/grid/style/style.min.css +1 -1
  63. package/lib/icon/index.js +15 -4
  64. package/lib/icon/index.min.js +1 -1
  65. package/lib/icon/src/icon.js +35 -0
  66. package/lib/icon/src/icon.min.js +1 -0
  67. package/lib/icon/style/style.css +98 -525
  68. package/lib/icon/style/style.min.css +1 -1
  69. package/lib/index.umd.js +201 -53
  70. package/lib/index.umd.min.js +1 -1
  71. package/lib/input/style/style.css +1 -1
  72. package/lib/input/style/style.min.css +1 -1
  73. package/lib/list/src/list.js +1 -1
  74. package/lib/list/src/list.min.js +1 -1
  75. package/lib/loading/src/loading.js +28 -18
  76. package/lib/loading/src/loading.min.js +1 -1
  77. package/lib/locale/lang/en-US.js +1 -1
  78. package/lib/locale/lang/en-US.min.js +1 -1
  79. package/lib/locale/lang/en-US.umd.js +1 -1
  80. package/lib/locale/lang/ja-JP.js +1 -1
  81. package/lib/locale/lang/ja-JP.min.js +1 -1
  82. package/lib/locale/lang/ja-JP.umd.js +1 -1
  83. package/lib/locale/lang/zh-CN.js +1 -1
  84. package/lib/locale/lang/zh-CN.min.js +1 -1
  85. package/lib/locale/lang/zh-CN.umd.js +1 -1
  86. package/lib/locale/lang/zh-HK.min.js +1 -1
  87. package/lib/locale/lang/zh-HK.umd.js +1 -1
  88. package/lib/locale/lang/zh-MO.min.js +1 -1
  89. package/lib/locale/lang/zh-MO.umd.js +1 -1
  90. package/lib/locale/lang/zh-TC.js +1 -1
  91. package/lib/locale/lang/zh-TC.min.js +1 -1
  92. package/lib/locale/lang/zh-TC.umd.js +1 -1
  93. package/lib/locale/lang/zh-TW.min.js +1 -1
  94. package/lib/locale/lang/zh-TW.umd.js +1 -1
  95. package/lib/modal/src/modal.js +20 -7
  96. package/lib/modal/src/modal.min.js +1 -1
  97. package/lib/modal/style/style.css +14 -13
  98. package/lib/modal/style/style.min.css +1 -1
  99. package/lib/pager/style/style.css +1 -1
  100. package/lib/pager/style/style.min.css +1 -1
  101. package/lib/radio/style/style.css +1 -1
  102. package/lib/radio/style/style.min.css +1 -1
  103. package/lib/select/src/select.js +37 -3
  104. package/lib/select/src/select.min.js +1 -1
  105. package/lib/style.css +1 -1
  106. package/lib/style.min.css +1 -1
  107. package/lib/table/src/body.js +16 -7
  108. package/lib/table/src/body.min.js +1 -1
  109. package/lib/table/src/props.js +2 -0
  110. package/lib/table/src/props.min.js +1 -1
  111. package/lib/table/src/table.js +8 -1
  112. package/lib/table/src/table.min.js +1 -1
  113. package/lib/table/style/style.css +4 -2
  114. package/lib/table/style/style.min.css +1 -1
  115. package/lib/toolbar/style/style.css +2 -10
  116. package/lib/toolbar/style/style.min.css +1 -1
  117. package/lib/tools/log.js +1 -1
  118. package/lib/tools/log.min.js +1 -1
  119. package/lib/v-x-e-table/index.js +1 -1
  120. package/lib/v-x-e-table/index.min.js +1 -1
  121. package/lib/v-x-e-table/style/style.css +99 -526
  122. package/lib/v-x-e-table/style/style.min.css +1 -1
  123. package/lib/vxe-checkbox/style/style.css +1 -1
  124. package/lib/vxe-checkbox/style/style.min.css +1 -1
  125. package/lib/vxe-grid/style/style.css +1 -1
  126. package/lib/vxe-grid/style/style.min.css +1 -1
  127. package/lib/vxe-icon/style/style.css +98 -525
  128. package/lib/vxe-icon/style/style.min.css +1 -1
  129. package/lib/vxe-input/style/style.css +1 -1
  130. package/lib/vxe-input/style/style.min.css +1 -1
  131. package/lib/vxe-modal/style/style.css +14 -13
  132. package/lib/vxe-modal/style/style.min.css +1 -1
  133. package/lib/vxe-module-export/style/style.css +1 -13
  134. package/lib/vxe-module-export/style/style.min.css +1 -1
  135. package/lib/vxe-module-filter/style/style.css +1 -13
  136. package/lib/vxe-module-filter/style/style.min.css +1 -1
  137. package/lib/vxe-pager/style/style.css +1 -1
  138. package/lib/vxe-pager/style/style.min.css +1 -1
  139. package/lib/vxe-radio/style/style.css +1 -1
  140. package/lib/vxe-radio/style/style.min.css +1 -1
  141. package/lib/vxe-table/style/style.css +4 -2
  142. package/lib/vxe-table/style/style.min.css +1 -1
  143. package/lib/vxe-toolbar/style/style.css +2 -10
  144. package/lib/vxe-toolbar/style/style.min.css +1 -1
  145. package/package.json +2 -2
  146. package/packages/checkbox/src/checkbox.ts +20 -7
  147. package/packages/checkbox/src/group.ts +18 -3
  148. package/packages/form/src/form.ts +1 -1
  149. package/packages/icon/index.ts +11 -4
  150. package/packages/icon/src/icon.ts +25 -0
  151. package/packages/list/src/list.ts +1 -1
  152. package/packages/loading/src/loading.ts +34 -22
  153. package/packages/locale/lang/en-US.ts +1 -1
  154. package/packages/locale/lang/ja-JP.ts +1 -1
  155. package/packages/locale/lang/zh-CN.ts +1 -1
  156. package/packages/locale/lang/zh-TC.ts +1 -1
  157. package/packages/modal/src/modal.ts +21 -7
  158. package/packages/select/src/select.ts +27 -3
  159. package/packages/table/src/body.ts +15 -8
  160. package/packages/table/src/props.ts +2 -0
  161. package/packages/table/src/table.ts +9 -1
  162. package/styles/base/checked.scss +2 -2
  163. package/styles/export.scss +0 -29
  164. package/styles/filter.scss +0 -29
  165. package/styles/icon.scss +126 -29
  166. package/styles/input.scss +1 -1
  167. package/styles/loading.scss +1 -1
  168. package/styles/modal.scss +19 -16
  169. package/styles/table.scss +3 -0
  170. package/styles/toolbar.scss +0 -20
  171. package/styles/variable.scss +2 -1
  172. package/types/checkbox-group.d.ts +8 -1
  173. package/types/icon.d.ts +46 -1
  174. package/types/modal.d.ts +1 -0
  175. package/types/select.d.ts +2 -0
  176. package/types/table.d.ts +9 -0
  177. package/types/v-x-e-table/index.d.ts +1 -1
@@ -1,4 +1,4 @@
1
- import { SetupContext, RenderFunction, ComponentPublicInstance } from 'vue'
1
+ import { SetupContext, RenderFunction, ComponentPublicInstance, ComputedRef } from 'vue'
2
2
  import { VXEComponent, VxeComponentBase, SizeType, VxeEvent, ValueOf } from './component'
3
3
  import { VxeCheckboxEvents, VxeCheckboxPropTypes } from './checkbox'
4
4
 
@@ -17,6 +17,7 @@ export type VxeCheckboxGroupInstance = ComponentPublicInstance<VxeCheckboxGroupP
17
17
  export interface VxeCheckboxGroupConstructor extends VxeComponentBase, VxeCheckboxGroupMethods {
18
18
  props: VxeCheckboxGroupProps
19
19
  context: SetupContext<VxeCheckboxGroupEmits>
20
+ getComputeMaps(): CheckboxPrivateComputed
20
21
  renderVN: RenderFunction
21
22
  }
22
23
 
@@ -26,6 +27,7 @@ export type VxeCheckboxGroupProps = {
26
27
  * 绑定值
27
28
  */
28
29
  modelValue?: VxeCheckboxGroupPropTypes.ModelValue
30
+ max?: VxeCheckboxGroupPropTypes.Max
29
31
  /**
30
32
  * 是否禁用
31
33
  */
@@ -35,9 +37,14 @@ export type VxeCheckboxGroupProps = {
35
37
  export namespace VxeCheckboxGroupPropTypes {
36
38
  export type Size = SizeType
37
39
  export type ModelValue = any[]
40
+ export type Max = string | number
38
41
  export type Disabled = boolean
39
42
  }
40
43
 
44
+ export interface CheckboxPrivateComputed {
45
+ computeIsMaximize: ComputedRef<boolean>
46
+ }
47
+
41
48
  export interface CheckboxGroupMethods {
42
49
  dispatchEvent(type: ValueOf<VxeCheckboxGroupEmits>, params: any, evnt: Event): void
43
50
  }
package/types/icon.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { VXEComponent } from './component'
1
+ import { SetupContext } from 'vue'
2
+ import { VXEComponent, VxeComponentBase } from './component'
2
3
 
3
4
  /**
4
5
  * 组件 - 图标
@@ -9,3 +10,47 @@ export const VxeIcon: VXEComponent<{}>
9
10
  * 组件 - 图标
10
11
  */
11
12
  export const Icon: VXEComponent<{}>
13
+
14
+ export interface VxeIconConstructor extends VxeComponentBase, VxeIconMethods {
15
+ props: VxeIconProps
16
+ context: SetupContext<VxeIconEmits>
17
+ }
18
+
19
+ export interface IconMethods {}
20
+
21
+ export interface VxeIconMethods extends IconMethods { }
22
+
23
+ export type VxeIconProps<D = any> = {
24
+ name?: VxeIconPropTypes.Name
25
+ roll?: VxeIconPropTypes.Roll
26
+ }
27
+
28
+ export namespace VxeIconPropTypes {
29
+ export type Name = string
30
+ export type Roll = boolean
31
+ }
32
+
33
+
34
+ export type VxeIconEmits = [
35
+ 'click'
36
+ ]
37
+
38
+ export namespace VxeIconDefines {
39
+ interface IconKeyboardEventParams {
40
+ $event: KeyboardEvent
41
+ }
42
+ export interface ClickParams {}
43
+ export interface ClickEventParams extends IconKeyboardEventParams, ClickParams { }
44
+ }
45
+
46
+ export type VxeIconEventProps = {
47
+ onClick?: VxeIconEvents.Click
48
+ }
49
+
50
+ export interface VxeIconListeners {
51
+ click?: VxeIconEvents.Click
52
+ }
53
+
54
+ export namespace VxeIconEvents {
55
+ export type Click = (params: VxeIconDefines.ClickEventParams) => void
56
+ }
package/types/modal.d.ts CHANGED
@@ -212,6 +212,7 @@ export type ModalSlots = {
212
212
  default?(params: ModalDefaultSlotParams): JSX.Element[] | VNode[] | string[]
213
213
  header?(params: ModalHeaderSlotParams): JSX.Element[] | VNode[] | string[]
214
214
  title?(params: ModalTitleSlotParams): JSX.Element[] | VNode[] | string[]
215
+ corner?(params: ModalTitleSlotParams): JSX.Element[] | VNode[] | string[]
215
216
  footer?(params: ModalFooterSlotParams): JSX.Element[] | VNode[] | string[]
216
217
  }
217
218
 
package/types/select.d.ts CHANGED
@@ -74,6 +74,7 @@ export type VxeSelectProps = {
74
74
  filterMethod?: VxeSelectPropTypes.FilterMethod
75
75
  remote?: VxeSelectPropTypes.Remote
76
76
  remoteMethod?: VxeSelectPropTypes.RemoteMethod
77
+ max?: VxeSelectPropTypes.Max
77
78
  /**
78
79
  * 已废弃,被 optionConfig.keyField 替换
79
80
  * @deprecated
@@ -107,6 +108,7 @@ export namespace VxeSelectPropTypes {
107
108
  export type FilterMethod = (params: { group: any, option: any, searchValue: string }) => boolean
108
109
  export type Remote = boolean
109
110
  export type RemoteMethod = (params: { searchValue: string }) => Promise<void> | void
111
+ export type Max = number | string
110
112
  /**
111
113
  * 选项配置项
112
114
  */
package/types/table.d.ts CHANGED
@@ -85,6 +85,7 @@ export interface TablePrivateComputed {
85
85
  computeExpandOpts: ComputedRef<VxeTablePropTypes.ExpandOpts>
86
86
  computeTreeOpts: ComputedRef<VxeTablePropTypes.TreeOpts>
87
87
  computeEmptyOpts: ComputedRef<VxeTablePropTypes.EmptyOpts>
88
+ computeLoadingOpts: ComputedRef<VxeTablePropTypes.LoadingOpts>
88
89
  computeCustomOpts: ComputedRef<VxeTablePropTypes.CustomOpts>
89
90
  computeIsAllCheckboxDisabled: ComputedRef<boolean>
90
91
  }
@@ -1426,6 +1427,7 @@ export namespace VxeTablePropTypes {
1426
1427
  trigger?: 'default' | 'cell' | 'row'
1427
1428
  lazy?: boolean
1428
1429
  reserve?: boolean
1430
+ height?: number
1429
1431
  loadMethod?(params: {
1430
1432
  $table: VxeTableConstructor & VxeTablePrivateMethods
1431
1433
  row: any
@@ -1925,6 +1927,12 @@ export namespace VxeTablePropTypes {
1925
1927
  export type ZIndex = number
1926
1928
  export type EmptyText = string
1927
1929
 
1930
+ export interface LoadingConfig {
1931
+ icon?: string
1932
+ text?: string
1933
+ }
1934
+ export interface LoadingOpts extends LoadingConfig { }
1935
+
1928
1936
  export interface EmptyRender extends VxeGlobalRendererHandles.RenderOptions { }
1929
1937
  export interface EmptyOpts extends EmptyRender { }
1930
1938
 
@@ -2056,6 +2064,7 @@ export type VxeTableProps<D = any> = {
2056
2064
  editRules?: VxeTablePropTypes.EditRules
2057
2065
  emptyText?: VxeTablePropTypes.EmptyText
2058
2066
  emptyRender?: VxeTablePropTypes.EmptyRender
2067
+ loadingConfig?: VxeTablePropTypes.LoadingConfig
2059
2068
  /**
2060
2069
  * 不建议使用,后续废弃
2061
2070
  * @deprecated
@@ -130,7 +130,7 @@ export interface VXETableCore {
130
130
  }
131
131
 
132
132
  /**
133
- * 一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟滚动、懒加载、快捷菜单、数据校验、树形结构、打印导出、表单渲染、数据分页、虚拟列表、弹窗、自定义模板、渲染器、贼灵活的配置项、扩展接口等...
133
+ * 一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟滚动、懒加载、快捷菜单、数据校验、树形结构、打印导出、表单渲染、数据分页、虚拟列表、弹窗、自定义模板、渲染器、贼灵活的配置项等...
134
134
  */
135
135
  export const VXETable: VXETableCore
136
136