resolver-egretimp-plus 0.1.119 → 0.1.121

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 (225) hide show
  1. package/dist/h5/index.js +18 -18
  2. package/dist/web/index.js +11 -11
  3. package/package.json +1 -1
  4. package/src/components/options/OptionsDefault.vue +0 -1
  5. package/src/components/packages-web/CustomComponentCycle.vue +38 -33
  6. package/src/components/packages-web/CustomComponentCycleTabPane.vue +40 -33
  7. package/src/components/packages-web/CustomComponentPlain.vue +6 -5
  8. package/src/components/packages-web/CustomComponentTable.jsx +48 -40
  9. package/src/components/packages-web/ElInput copy.jsx +0 -1
  10. package/src/components/packages-web/ElInput.jsx +0 -1
  11. package/src/config.js +2 -0
  12. package/src/hooks/pageConfig.js +10 -4
  13. package/src/index.jsx +15 -10
  14. package/src/renderer.jsx +4 -1
  15. package/src/resolver-common.vue +22 -2
  16. package/src/rules/rulesDriver.js +4 -0
  17. package/src/utils/common.js +13 -0
  18. package/src/utils/render.jsx +196 -96
  19. package/src-bak/analysisComponent.jsx +0 -343
  20. package/src-bak/api/builtIn.js +0 -10
  21. package/src-bak/bpm/bpmInstance.js +0 -388
  22. package/src-bak/bpm/udc-sdk-esm/cjs/impl/application.js +0 -8
  23. package/src-bak/bpm/udc-sdk-esm/cjs/impl/component.js +0 -97
  24. package/src-bak/bpm/udc-sdk-esm/cjs/impl/datasource.js +0 -88
  25. package/src-bak/bpm/udc-sdk-esm/cjs/impl/iframe/index.js +0 -3
  26. package/src-bak/bpm/udc-sdk-esm/cjs/impl/iframe/udcSdkForIframe/UdcComponent.js +0 -76
  27. package/src-bak/bpm/udc-sdk-esm/cjs/impl/iframe/udcSdkForIframe/index.js +0 -201
  28. package/src-bak/bpm/udc-sdk-esm/cjs/impl/index.js +0 -69
  29. package/src-bak/bpm/udc-sdk-esm/cjs/impl/page.js +0 -56
  30. package/src-bak/bpm/udc-sdk-esm/cjs/impl/utils.js +0 -76
  31. package/src-bak/bpm/udc-sdk-esm/cjs/index.js +0 -46
  32. package/src-bak/bpm/udc-sdk-esm/cjs/utils.js +0 -21
  33. package/src-bak/components/childDialog/index.js +0 -39
  34. package/src-bak/components/childDialog/src/index.vue +0 -185
  35. package/src-bak/components/cmiFormItem/index.js +0 -1
  36. package/src-bak/components/cmiFormItem/src/index.vue +0 -112
  37. package/src-bak/components/confirmInstance-H5/index.js +0 -53
  38. package/src-bak/components/confirmInstance-H5/src/index.vue +0 -54
  39. package/src-bak/components/helper/FormPolyfill.jsx +0 -25
  40. package/src-bak/components/helper/calcTooltip.jsx +0 -134
  41. package/src-bak/components/helper/dock.js +0 -141
  42. package/src-bak/components/helper/eventOrchestration.js +0 -763
  43. package/src-bak/components/helper/resolver.js +0 -163
  44. package/src-bak/components/helper/table.jsx +0 -103
  45. package/src-bak/components/icons/date.vue +0 -33
  46. package/src-bak/components/icons/info.vue +0 -62
  47. package/src-bak/components/icons/loading.vue +0 -19
  48. package/src-bak/components/icons/question-filled.vue +0 -8
  49. package/src-bak/components/loading/index.js +0 -6
  50. package/src-bak/components/loading/loading.js +0 -98
  51. package/src-bak/components/loading/loading.scss +0 -74
  52. package/src-bak/components/loading/loading.vue +0 -89
  53. package/src-bak/components/loadingComponent/LoadingComponent.vue +0 -33
  54. package/src-bak/components/modal/index.js +0 -9
  55. package/src-bak/components/modal/modal.scss +0 -195
  56. package/src-bak/components/modal/modal.vue +0 -201
  57. package/src-bak/components/options/OptionsDefault.vue +0 -47
  58. package/src-bak/components/packages-H5/CmiButton.vue +0 -120
  59. package/src-bak/components/packages-H5/CmiCalendar.vue +0 -152
  60. package/src-bak/components/packages-H5/CmiCell.vue +0 -87
  61. package/src-bak/components/packages-H5/CmiCheckbox.vue +0 -82
  62. package/src-bak/components/packages-H5/CmiDatetimePicker.vue +0 -98
  63. package/src-bak/components/packages-H5/CmiDivider.vue +0 -30
  64. package/src-bak/components/packages-H5/CmiDropdownMenu.vue +0 -58
  65. package/src-bak/components/packages-H5/CmiInput.vue +0 -69
  66. package/src-bak/components/packages-H5/CmiLink.vue +0 -28
  67. package/src-bak/components/packages-H5/CmiPicker.vue +0 -229
  68. package/src-bak/components/packages-H5/CmiRadio.vue +0 -29
  69. package/src-bak/components/packages-H5/CmiSearch.vue +0 -39
  70. package/src-bak/components/packages-H5/CmiSelect.vue +0 -84
  71. package/src-bak/components/packages-H5/CustomComponentCardH5.vue +0 -129
  72. package/src-bak/components/packages-H5/CustomComponentColH5.vue +0 -8
  73. package/src-bak/components/packages-H5/CustomComponentCollapseH5.vue +0 -141
  74. package/src-bak/components/packages-H5/CustomComponentFormLayoutH5.vue +0 -54
  75. package/src-bak/components/packages-H5/CustomComponentTabPaneH5.vue +0 -38
  76. package/src-bak/components/packages-H5/CustomComponentTableH5.vue +0 -352
  77. package/src-bak/components/packages-H5/CustomComponentTabsH5.vue +0 -170
  78. package/src-bak/components/packages-web/CustomComponentCard.vue +0 -40
  79. package/src-bak/components/packages-web/CustomComponentCol.vue +0 -66
  80. package/src-bak/components/packages-web/CustomComponentCollapse.vue +0 -164
  81. package/src-bak/components/packages-web/CustomComponentCycle.vue +0 -95
  82. package/src-bak/components/packages-web/CustomComponentCycleTabPane.vue +0 -155
  83. package/src-bak/components/packages-web/CustomComponentDialog.vue +0 -192
  84. package/src-bak/components/packages-web/CustomComponentEditor.vue +0 -50
  85. package/src-bak/components/packages-web/CustomComponentFileExport.vue +0 -60
  86. package/src-bak/components/packages-web/CustomComponentFileImport.vue +0 -60
  87. package/src-bak/components/packages-web/CustomComponentFormLayout.vue +0 -65
  88. package/src-bak/components/packages-web/CustomComponentGrid.vue +0 -29
  89. package/src-bak/components/packages-web/CustomComponentGridCol.vue +0 -29
  90. package/src-bak/components/packages-web/CustomComponentInputDialog.vue +0 -144
  91. package/src-bak/components/packages-web/CustomComponentNativeTabPane.vue +0 -84
  92. package/src-bak/components/packages-web/CustomComponentPlain.vue +0 -247
  93. package/src-bak/components/packages-web/CustomComponentRow.vue +0 -83
  94. package/src-bak/components/packages-web/CustomComponentSelectEmployees.vue +0 -203
  95. package/src-bak/components/packages-web/CustomComponentSendMail.vue +0 -62
  96. package/src-bak/components/packages-web/CustomComponentSteps.vue +0 -41
  97. package/src-bak/components/packages-web/CustomComponentTabPane.vue +0 -20
  98. package/src-bak/components/packages-web/CustomComponentTable.jsx +0 -814
  99. package/src-bak/components/packages-web/CustomComponentTabs.vue +0 -126
  100. package/src-bak/components/packages-web/CustomComponentTree.vue +0 -28
  101. package/src-bak/components/packages-web/ElButton.vue +0 -146
  102. package/src-bak/components/packages-web/ElCheckbox.vue +0 -97
  103. package/src-bak/components/packages-web/ElDatePicker.vue +0 -93
  104. package/src-bak/components/packages-web/ElInput copy.jsx +0 -393
  105. package/src-bak/components/packages-web/ElInput.jsx +0 -312
  106. package/src-bak/components/packages-web/ElInputNumber.vue +0 -81
  107. package/src-bak/components/packages-web/ElPagination.vue +0 -61
  108. package/src-bak/components/packages-web/ElRadio.vue +0 -47
  109. package/src-bak/components/packages-web/ElSelect.jsx +0 -249
  110. package/src-bak/components/packages-web/ElSelect_bak.vue +0 -155
  111. package/src-bak/components/packages-web/ElText.jsx +0 -187
  112. package/src-bak/components/packages-web/ElTextaa.vue +0 -169
  113. package/src-bak/components/packages-web/ElTimePicker.vue +0 -39
  114. package/src-bak/components/patchComponents-H5.js +0 -46
  115. package/src-bak/components/patchComponents-web.js +0 -46
  116. package/src-bak/components/simpleFormItemPc/index.js +0 -1
  117. package/src-bak/components/simpleFormItemPc/src/index.vue +0 -94
  118. package/src-bak/components/table/index.ts +0 -29
  119. package/src-bak/components/table/src/composables/use-scrollbar.ts +0 -30
  120. package/src-bak/components/table/src/config.ts +0 -256
  121. package/src-bak/components/table/src/filter-panel.vue +0 -260
  122. package/src-bak/components/table/src/h-helper.ts +0 -34
  123. package/src-bak/components/table/src/layout-observer.ts +0 -78
  124. package/src-bak/components/table/src/store/current.ts +0 -85
  125. package/src-bak/components/table/src/store/expand.ts +0 -76
  126. package/src-bak/components/table/src/store/helper.ts +0 -74
  127. package/src-bak/components/table/src/store/index.ts +0 -246
  128. package/src-bak/components/table/src/store/tree.ts +0 -230
  129. package/src-bak/components/table/src/store/watcher.ts +0 -543
  130. package/src-bak/components/table/src/table/defaults.ts +0 -402
  131. package/src-bak/components/table/src/table/key-render-helper.ts +0 -27
  132. package/src-bak/components/table/src/table/style-helper.ts +0 -378
  133. package/src-bak/components/table/src/table/utils-helper.ts +0 -47
  134. package/src-bak/components/table/src/table-body/defaults.ts +0 -52
  135. package/src-bak/components/table/src/table-body/events-helper.ts +0 -203
  136. package/src-bak/components/table/src/table-body/index.ts +0 -119
  137. package/src-bak/components/table/src/table-body/render-helper.ts +0 -283
  138. package/src-bak/components/table/src/table-body/styles-helper.ts +0 -164
  139. package/src-bak/components/table/src/table-column/defaults.ts +0 -237
  140. package/src-bak/components/table/src/table-column/index.ts +0 -202
  141. package/src-bak/components/table/src/table-column/render-helper.ts +0 -214
  142. package/src-bak/components/table/src/table-column/watcher-helper.ts +0 -88
  143. package/src-bak/components/table/src/table-footer/index.ts +0 -128
  144. package/src-bak/components/table/src/table-footer/mapState-helper.ts +0 -33
  145. package/src-bak/components/table/src/table-footer/style-helper.ts +0 -51
  146. package/src-bak/components/table/src/table-header/event-helper.ts +0 -213
  147. package/src-bak/components/table/src/table-header/index.ts +0 -244
  148. package/src-bak/components/table/src/table-header/style.helper.ts +0 -119
  149. package/src-bak/components/table/src/table-header/utils-helper.ts +0 -94
  150. package/src-bak/components/table/src/table-layout.ts +0 -259
  151. package/src-bak/components/table/src/table.vue +0 -389
  152. package/src-bak/components/table/src/tableColumn.ts +0 -3
  153. package/src-bak/components/table/src/tokens.ts +0 -5
  154. package/src-bak/components/table/src/util.ts +0 -521
  155. package/src-bak/components/table/style/css.ts +0 -5
  156. package/src-bak/components/table/style/index.ts +0 -5
  157. package/src-bak/components/tabs/index.js +0 -8
  158. package/src-bak/components/tabs/src/constants.js +0 -23
  159. package/src-bak/components/tabs/src/tab-bar.js +0 -8
  160. package/src-bak/components/tabs/src/tab-bar.vue +0 -92
  161. package/src-bak/components/tabs/src/tab-nav.jsx +0 -424
  162. package/src-bak/components/tabs/src/tab-pane.js +0 -16
  163. package/src-bak/components/tabs/src/tab-pane.vue +0 -80
  164. package/src-bak/components/tabs/src/tabs.jsx +0 -223
  165. package/src-bak/components/tabs/style/css.js +0 -2
  166. package/src-bak/components/tabs/style/index.js +0 -2
  167. package/src-bak/components/thirdPartyFrame/index.js +0 -32
  168. package/src-bak/components/thirdPartyFrame/src/ThirdPartyFrame.vue +0 -125
  169. package/src-bak/enums/index.js +0 -16
  170. package/src-bak/hooks/configLoad.js +0 -45
  171. package/src-bak/hooks/index.js +0 -189
  172. package/src-bak/hooks/mock.js +0 -6960
  173. package/src-bak/hooks/pageConfig.js +0 -127
  174. package/src-bak/index.jsx +0 -443
  175. package/src-bak/renderer.jsx +0 -77
  176. package/src-bak/resolver-H5.vue +0 -88
  177. package/src-bak/resolver-common.vue +0 -129
  178. package/src-bak/resolver-web.vue +0 -91
  179. package/src-bak/rules/eventsSupplement.js +0 -573
  180. package/src-bak/rules/parseCondition.js +0 -378
  181. package/src-bak/rules/ruleUtils.js +0 -273
  182. package/src-bak/rules/rulesDriver.js +0 -139
  183. package/src-bak/rulesImp/events.js +0 -588
  184. package/src-bak/rulesImp/index.js +0 -33
  185. package/src-bak/rulesImp/ruleInstance.js +0 -231
  186. package/src-bak/rulesImp/ruleUtils.js +0 -124
  187. package/src-bak/theme/element/components/button.scss +0 -122
  188. package/src-bak/theme/element/components/card.scss +0 -8
  189. package/src-bak/theme/element/components/checkbox.scss +0 -19
  190. package/src-bak/theme/element/components/collapse.scss +0 -174
  191. package/src-bak/theme/element/components/common.scss +0 -30
  192. package/src-bak/theme/element/components/cycle.scss +0 -0
  193. package/src-bak/theme/element/components/date.scss +0 -13
  194. package/src-bak/theme/element/components/dialog.scss +0 -44
  195. package/src-bak/theme/element/components/form.scss +0 -104
  196. package/src-bak/theme/element/components/index.scss +0 -55
  197. package/src-bak/theme/element/components/input.scss +0 -36
  198. package/src-bak/theme/element/components/message.scss +0 -48
  199. package/src-bak/theme/element/components/pagination.scss +0 -47
  200. package/src-bak/theme/element/components/popper.scss +0 -3
  201. package/src-bak/theme/element/components/radio.scss +0 -40
  202. package/src-bak/theme/element/components/scrollbar.scss +0 -14
  203. package/src-bak/theme/element/components/select.scss +0 -82
  204. package/src-bak/theme/element/components/steps.scss +0 -6
  205. package/src-bak/theme/element/components/table.scss +0 -218
  206. package/src-bak/theme/element/components/tabs.scss +0 -128
  207. package/src-bak/theme/element/components/tag.scss +0 -6
  208. package/src-bak/theme/element/components/text.scss +0 -20
  209. package/src-bak/theme/element/components/textarea.scss +0 -3
  210. package/src-bak/theme/element/components/tree.scss +0 -0
  211. package/src-bak/theme/element/index.scss +0 -55
  212. package/src-bak/utils/cipher.js +0 -141
  213. package/src-bak/utils/common.js +0 -664
  214. package/src-bak/utils/const.js +0 -259
  215. package/src-bak/utils/defaultVal.js +0 -92
  216. package/src-bak/utils/dom.js +0 -36
  217. package/src-bak/utils/format.js +0 -19
  218. package/src-bak/utils/index.js +0 -4
  219. package/src-bak/utils/is.js +0 -74
  220. package/src-bak/utils/loadModule.js +0 -75
  221. package/src-bak/utils/preserveFunc.js +0 -33
  222. package/src-bak/utils/render.jsx +0 -1138
  223. package/src-bak/utils/request.js +0 -136
  224. package/src-bak/utils/respone.js +0 -70
  225. package/src-bak/utils/valid.js +0 -89
@@ -1,402 +0,0 @@
1
- // @ts-nocheck
2
- import { useSizeProp } from 'element-plus/es/hooks/index.mjs'
3
- import type {
4
- CSSProperties,
5
- ComponentInternalInstance,
6
- PropType,
7
- Ref,
8
- VNode,
9
- } from 'vue'
10
- import type { ComponentSize } from 'element-plus/es/constants'
11
- import type { Nullable } from 'element-plus/es/utils'
12
- import type { Store } from '../store'
13
- import type { TableColumnCtx } from '../table-column/defaults'
14
- import type TableLayout from '../table-layout'
15
- import type { TableOverflowTooltipOptions } from '../util'
16
-
17
- export type DefaultRow = any
18
-
19
- interface TableRefs {
20
- tableWrapper: HTMLElement
21
- headerWrapper: HTMLElement
22
- footerWrapper: HTMLElement
23
- fixedBodyWrapper: HTMLElement
24
- rightFixedBodyWrapper: HTMLElement
25
- bodyWrapper: HTMLElement
26
- appendWrapper: HTMLElement
27
- [key: string]: any
28
- }
29
-
30
- interface TableState {
31
- isGroup: Ref<boolean>
32
- resizeState: Ref<{
33
- width: any
34
- height: any
35
- }>
36
- doLayout: () => void
37
- debouncedUpdateLayout: () => void
38
- }
39
-
40
- type HoverState<T> = Nullable<{
41
- cell: HTMLElement
42
- column: TableColumnCtx<T>
43
- row: T
44
- }>
45
-
46
- type RIS<T> = { row: T; $index: number; store: Store<T>; expanded: boolean }
47
-
48
- type RenderExpanded<T> = ({
49
- row,
50
- $index,
51
- store,
52
- expanded: boolean,
53
- }: RIS<T>) => VNode
54
-
55
- type SummaryMethod<T> = (data: {
56
- columns: TableColumnCtx<T>[]
57
- data: T[]
58
- }) => (string | VNode)[]
59
-
60
- interface Table<T> extends ComponentInternalInstance {
61
- $ready: boolean
62
- hoverState?: HoverState<T>
63
- renderExpanded: RenderExpanded<T>
64
- store: Store<T>
65
- layout: TableLayout<T>
66
- refs: TableRefs
67
- tableId: string
68
- state: TableState
69
- }
70
-
71
- type ColumnCls<T> = string | ((data: { row: T; rowIndex: number }) => string)
72
- type ColumnStyle<T> =
73
- | CSSProperties
74
- | ((data: { row: T; rowIndex: number }) => CSSProperties)
75
- type CellCls<T> =
76
- | string
77
- | ((data: {
78
- row: T
79
- rowIndex: number
80
- column: TableColumnCtx<T>
81
- columnIndex: number
82
- }) => string)
83
- type CellStyle<T> =
84
- | CSSProperties
85
- | ((data: {
86
- row: T
87
- rowIndex: number
88
- column: TableColumnCtx<T>
89
- columnIndex: number
90
- }) => CSSProperties)
91
- type Layout = 'fixed' | 'auto'
92
- interface TableProps<T> {
93
- data: T[]
94
- size?: ComponentSize
95
- width?: string | number
96
- height?: string | number
97
- maxHeight?: string | number
98
- fit?: boolean
99
- stripe?: boolean
100
- border?: boolean
101
- rowKey?: string | ((row: T) => string)
102
- context?: Table<T>
103
- showHeader?: boolean
104
- showSummary?: boolean
105
- sumText?: string
106
- summaryMethod?: SummaryMethod<T>
107
- rowClassName?: ColumnCls<T>
108
- rowStyle?: ColumnStyle<T>
109
- cellClassName?: CellCls<T>
110
- cellStyle?: CellStyle<T>
111
- headerRowClassName?: ColumnCls<T>
112
- headerRowStyle?: ColumnStyle<T>
113
- headerCellClassName?: CellCls<T>
114
- headerCellStyle?: CellStyle<T>
115
- highlightCurrentRow?: boolean
116
- currentRowKey?: string | number
117
- emptyText?: string
118
- expandRowKeys?: any[]
119
- defaultExpandAll?: boolean
120
- defaultSort?: Sort
121
- tooltipEffect?: string
122
- tooltipOptions?: TableOverflowTooltipOptions
123
- spanMethod?: (data: {
124
- row: T
125
- rowIndex: number
126
- column: TableColumnCtx<T>
127
- columnIndex: number
128
- }) =>
129
- | number[]
130
- | {
131
- rowspan: number
132
- colspan: number
133
- }
134
- | undefined
135
- selectOnIndeterminate?: boolean
136
- indent?: number
137
- treeProps?: {
138
- hasChildren?: string
139
- children?: string
140
- }
141
- lazy?: boolean
142
- load?: (row: T, treeNode: TreeNode, resolve: (data: T[]) => void) => void
143
- className?: string
144
- style?: CSSProperties
145
- tableLayout?: Layout
146
- scrollbarAlwaysOn?: boolean
147
- flexible?: boolean
148
- showOverflowTooltip?: boolean | Function | TableOverflowTooltipOptions
149
- }
150
-
151
- interface Sort {
152
- prop: string
153
- order: 'ascending' | 'descending'
154
- init?: any
155
- silent?: any
156
- }
157
-
158
- interface Filter<T> {
159
- column: TableColumnCtx<T>
160
- values: string[]
161
- silent: any
162
- }
163
-
164
- interface TreeNode {
165
- expanded?: boolean
166
- loading?: boolean
167
- noLazyChildren?: boolean
168
- indent?: number
169
- level?: number
170
- display?: boolean
171
- }
172
-
173
- interface RenderRowData<T> {
174
- store: Store<T>
175
- _self: Table<T>
176
- column: TableColumnCtx<T>
177
- row: T
178
- $index: number
179
- treeNode?: TreeNode
180
- expanded: boolean
181
- }
182
-
183
- export default {
184
- /**
185
- * @description table data
186
- */
187
- data: {
188
- type: Array as PropType<DefaultRow[]>,
189
- default: () => [],
190
- },
191
- /**
192
- * @description size of Table
193
- */
194
- size: useSizeProp,
195
- width: [String, Number],
196
- /**
197
- * @description table's height. By default it has an `auto` height. If its value is a number, the height is measured in pixels; if its value is a string, the value will be assigned to element's style.height, the height is affected by external styles
198
- */
199
- height: [String, Number],
200
- /**
201
- * @description table's max-height. The legal value is a number or the height in px
202
- */
203
- maxHeight: [String, Number],
204
- /**
205
- * @description whether width of column automatically fits its container
206
- */
207
- fit: {
208
- type: Boolean,
209
- default: true,
210
- },
211
- /**
212
- * @description whether Table is striped
213
- */
214
- stripe: Boolean,
215
- /**
216
- * @description whether Table has vertical border
217
- */
218
- border: Boolean,
219
- /**
220
- * @description key of row data, used for optimizing rendering. Required if `reserve-selection` is on or display tree data. When its type is String, multi-level access is supported, e.g. `user.info.id`, but `user.info[0].id` is not supported, in which case `Function` should be used
221
- */
222
- rowKey: [String, Function] as PropType<TableProps<DefaultRow>['rowKey']>,
223
- /**
224
- * @description whether Table header is visible
225
- */
226
- showHeader: {
227
- type: Boolean,
228
- default: true,
229
- },
230
- /**
231
- * @description whether to display a summary row
232
- */
233
- showSummary: Boolean,
234
- /**
235
- * @description displayed text for the first column of summary row
236
- */
237
- sumText: String,
238
- /**
239
- * @description custom summary method
240
- */
241
- summaryMethod: Function as PropType<TableProps<DefaultRow>['summaryMethod']>,
242
- /**
243
- * @description function that returns custom class names for a row, or a string assigning class names for every row
244
- */
245
- rowClassName: [String, Function] as PropType<
246
- TableProps<DefaultRow>['rowClassName']
247
- >,
248
- /**
249
- * @description function that returns custom style for a row, or an object assigning custom style for every row
250
- */
251
- rowStyle: [Object, Function] as PropType<TableProps<DefaultRow>['rowStyle']>,
252
- /**
253
- * @description function that returns custom class names for a cell, or a string assigning class names for every cell
254
- */
255
- cellClassName: [String, Function] as PropType<
256
- TableProps<DefaultRow>['cellClassName']
257
- >,
258
- /**
259
- * @description function that returns custom style for a cell, or an object assigning custom style for every cell
260
- */
261
- cellStyle: [Object, Function] as PropType<
262
- TableProps<DefaultRow>['cellStyle']
263
- >,
264
- /**
265
- * @description function that returns custom class names for a row in table header, or a string assigning class names for every row in table header
266
- */
267
- headerRowClassName: [String, Function] as PropType<
268
- TableProps<DefaultRow>['headerRowClassName']
269
- >,
270
- /**
271
- * @description function that returns custom style for a row in table header, or an object assigning custom style for every row in table header
272
- */
273
- headerRowStyle: [Object, Function] as PropType<
274
- TableProps<DefaultRow>['headerRowStyle']
275
- >,
276
- /**
277
- * @description function that returns custom class names for a cell in table header, or a string assigning class names for every cell in table header
278
- */
279
- headerCellClassName: [String, Function] as PropType<
280
- TableProps<DefaultRow>['headerCellClassName']
281
- >,
282
- /**
283
- * @description function that returns custom style for a cell in table header, or an object assigning custom style for every cell in table header
284
- */
285
- headerCellStyle: [Object, Function] as PropType<
286
- TableProps<DefaultRow>['headerCellStyle']
287
- >,
288
- /**
289
- * @description whether current row is highlighted
290
- */
291
- highlightCurrentRow: Boolean,
292
- /**
293
- * @description key of current row, a set only prop
294
- */
295
- currentRowKey: [String, Number],
296
- /**
297
- * @description displayed text when data is empty. You can customize this area with `#empty`
298
- */
299
- emptyText: String,
300
- /**
301
- * @description set expanded rows by this prop, prop's value is the keys of expand rows, you should set row-key before using this prop
302
- */
303
- expandRowKeys: Array as PropType<TableProps<DefaultRow>['expandRowKeys']>,
304
- /**
305
- * @description whether expand all rows by default, works when the table has a column type="expand" or contains tree structure data
306
- */
307
- defaultExpandAll: Boolean,
308
- /**
309
- * @description set the default sort column and order. property `prop` is used to set default sort column, property `order` is used to set default sort order
310
- */
311
- defaultSort: Object as PropType<TableProps<DefaultRow>['defaultSort']>,
312
- /**
313
- * @description the `effect` of the overflow tooltip
314
- */
315
- tooltipEffect: String,
316
- /**
317
- * @description the options for the overflow tooltip, [see the following tooltip component](tooltip.html#attributes)
318
- */
319
- tooltipOptions: Object as PropType<TableProps<DefaultRow>['tooltipOptions']>,
320
- /**
321
- * @description method that returns rowspan and colspan
322
- */
323
- spanMethod: Function as PropType<TableProps<DefaultRow>['spanMethod']>,
324
- /**
325
- * @description controls the behavior of master checkbox in multi-select tables when only some rows are selected (but not all). If true, all rows will be selected, else deselected
326
- */
327
- selectOnIndeterminate: {
328
- type: Boolean,
329
- default: true,
330
- },
331
- /**
332
- * @description horizontal indentation of tree data
333
- */
334
- indent: {
335
- type: Number,
336
- default: 16,
337
- },
338
- /**
339
- * @description configuration for rendering nested data
340
- */
341
- treeProps: {
342
- type: Object as PropType<TableProps<DefaultRow>['treeProps']>,
343
- default: () => {
344
- return {
345
- hasChildren: 'hasChildren',
346
- children: 'children',
347
- }
348
- },
349
- },
350
- /**
351
- * @description whether to lazy loading data
352
- */
353
- lazy: Boolean,
354
- /**
355
- * @description method for loading child row data, only works when `lazy` is true
356
- */
357
- load: Function as PropType<TableProps<DefaultRow>['load']>,
358
- style: {
359
- type: Object as PropType<CSSProperties>,
360
- default: () => ({}),
361
- },
362
- className: {
363
- type: String,
364
- default: '',
365
- },
366
- /**
367
- * @description sets the algorithm used to lay out table cells, rows, and columns
368
- */
369
- tableLayout: {
370
- type: String as PropType<Layout>,
371
- default: 'fixed',
372
- },
373
- /**
374
- * @description always show scrollbar
375
- */
376
- scrollbarAlwaysOn: Boolean,
377
- /**
378
- * @description ensure main axis minimum-size doesn't follow the content
379
- */
380
- flexible: Boolean,
381
- /**
382
- * @description whether to hide extra content and show them in a tooltip when hovering on the cell.It will affect all the table columns
383
- */
384
- showOverflowTooltip: [Boolean, Function, Object] as PropType<
385
- TableProps<DefaultRow>['showOverflowTooltip']
386
- >,
387
- }
388
- export type {
389
- SummaryMethod,
390
- Table,
391
- TableProps,
392
- TableRefs,
393
- ColumnCls,
394
- ColumnStyle,
395
- CellCls,
396
- CellStyle,
397
- TreeNode,
398
- RenderRowData,
399
- Sort,
400
- Filter,
401
- TableColumnCtx,
402
- }
@@ -1,27 +0,0 @@
1
- import { onMounted, onUnmounted, ref } from 'vue'
2
- import type { Table } from './defaults'
3
-
4
- export default function useKeyRender(table: Table<[]>) {
5
- const observer = ref<MutationObserver>()
6
-
7
- const initWatchDom = () => {
8
- const el = table.vnode.el
9
- const columnsWrapper = (el as HTMLElement).querySelector('.hidden-columns')
10
- const config = { childList: true, subtree: true }
11
- const updateOrderFns = table.store.states.updateOrderFns
12
- observer.value = new MutationObserver(() => {
13
- updateOrderFns.forEach((fn: () => void) => fn())
14
- })
15
-
16
- observer.value.observe(columnsWrapper!, config)
17
- }
18
-
19
- onMounted(() => {
20
- // fix https://github.com/element-plus/element-plus/issues/8528
21
- initWatchDom()
22
- })
23
-
24
- onUnmounted(() => {
25
- observer.value?.disconnect()
26
- })
27
- }