vxe-pc-ui 3.4.26 → 3.5.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 (129) hide show
  1. package/es/carousel/src/carousel-item.js +2 -0
  2. package/es/col/style.css +0 -105
  3. package/es/col/style.min.css +0 -1
  4. package/es/components.js +6 -0
  5. package/es/icon/style.css +1 -1
  6. package/es/modal/src/modal.js +2 -4
  7. package/es/row/style.css +106 -0
  8. package/es/row/style.min.css +1 -1
  9. package/es/select/src/select.js +6 -4
  10. package/es/split/index.js +12 -0
  11. package/es/split/src/split-item.js +134 -0
  12. package/es/split/src/split.js +304 -0
  13. package/es/split/src/util.js +17 -0
  14. package/es/split/style.css +90 -0
  15. package/es/split/style.min.css +1 -0
  16. package/es/split-item/index.js +12 -0
  17. package/es/split-item/style.css +0 -0
  18. package/es/split-item/style.min.css +0 -0
  19. package/es/style.css +1 -1
  20. package/es/style.min.css +1 -1
  21. package/es/ui/index.js +6 -1
  22. package/es/ui/src/log.js +1 -1
  23. package/es/ui/src/utils.js +6 -0
  24. package/es/vxe-col/style.css +0 -105
  25. package/es/vxe-col/style.min.css +0 -1
  26. package/es/vxe-row/style.css +106 -0
  27. package/es/vxe-row/style.min.css +1 -1
  28. package/es/vxe-split/index.js +3 -0
  29. package/es/vxe-split/style.css +90 -0
  30. package/es/vxe-split/style.min.css +1 -0
  31. package/es/vxe-split-item/index.js +3 -0
  32. package/es/vxe-split-item/style.css +0 -0
  33. package/es/vxe-split-item/style.min.css +0 -0
  34. package/lib/carousel/src/carousel-item.js +2 -0
  35. package/lib/carousel/src/carousel-item.min.js +1 -1
  36. package/lib/col/style/style.css +0 -105
  37. package/lib/col/style/style.min.css +0 -1
  38. package/lib/components.js +25 -1
  39. package/lib/components.min.js +1 -1
  40. package/lib/icon/style/style.css +1 -1
  41. package/lib/icon/style/style.min.css +1 -1
  42. package/lib/index.umd.js +665 -11
  43. package/lib/index.umd.min.js +1 -1
  44. package/lib/modal/src/modal.js +2 -4
  45. package/lib/modal/src/modal.min.js +1 -1
  46. package/lib/row/style/style.css +106 -0
  47. package/lib/row/style/style.min.css +1 -1
  48. package/lib/select/src/select.js +7 -4
  49. package/lib/select/src/select.min.js +1 -1
  50. package/lib/split/index.js +19 -0
  51. package/lib/split/index.min.js +1 -0
  52. package/lib/split/src/split-item.js +146 -0
  53. package/lib/split/src/split-item.min.js +1 -0
  54. package/lib/split/src/split.js +313 -0
  55. package/lib/split/src/split.min.js +1 -0
  56. package/lib/split/src/util.js +27 -0
  57. package/lib/split/src/util.min.js +1 -0
  58. package/lib/split/style/index.js +1 -0
  59. package/lib/split/style/style.css +90 -0
  60. package/lib/split/style/style.min.css +1 -0
  61. package/lib/split-item/index.js +19 -0
  62. package/lib/split-item/index.min.js +1 -0
  63. package/lib/split-item/style/index.js +1 -0
  64. package/lib/split-item/style/style.css +0 -0
  65. package/lib/split-item/style/style.min.css +0 -0
  66. package/lib/style.css +1 -1
  67. package/lib/style.min.css +1 -1
  68. package/lib/ui/index.js +6 -1
  69. package/lib/ui/index.min.js +1 -1
  70. package/lib/ui/src/log.js +1 -1
  71. package/lib/ui/src/log.min.js +1 -1
  72. package/lib/ui/src/utils.js +7 -0
  73. package/lib/ui/src/utils.min.js +1 -1
  74. package/lib/vxe-col/style/style.css +0 -105
  75. package/lib/vxe-col/style/style.min.css +0 -1
  76. package/lib/vxe-row/style/style.css +106 -0
  77. package/lib/vxe-row/style/style.min.css +1 -1
  78. package/lib/vxe-split/index.js +23 -0
  79. package/lib/vxe-split/index.min.js +1 -0
  80. package/lib/vxe-split/style/index.js +1 -0
  81. package/lib/vxe-split/style/style.css +90 -0
  82. package/lib/vxe-split/style/style.min.css +1 -0
  83. package/lib/vxe-split-item/index.js +23 -0
  84. package/lib/vxe-split-item/index.min.js +1 -0
  85. package/lib/vxe-split-item/style/index.js +1 -0
  86. package/lib/vxe-split-item/style/style.css +0 -0
  87. package/lib/vxe-split-item/style/style.min.css +0 -0
  88. package/package.json +2 -2
  89. package/packages/carousel/src/carousel-item.ts +3 -0
  90. package/packages/components.ts +6 -0
  91. package/packages/modal/src/modal.ts +2 -4
  92. package/packages/row/src/col.ts +5 -5
  93. package/packages/select/src/select.ts +6 -4
  94. package/packages/split/index.ts +16 -0
  95. package/packages/split/src/split-item.ts +154 -0
  96. package/packages/split/src/split.ts +312 -0
  97. package/packages/split/src/util.ts +21 -0
  98. package/packages/split-item/index.ts +16 -0
  99. package/packages/ui/index.ts +5 -0
  100. package/packages/ui/src/utils.ts +7 -0
  101. package/styles/all.scss +2 -0
  102. package/styles/components/col.scss +0 -61
  103. package/styles/components/row.scss +59 -0
  104. package/styles/components/split-item.scss +0 -0
  105. package/styles/components/split.scss +103 -0
  106. package/styles/helpers/baseVar.scss +4 -0
  107. package/styles/theme/base.scss +6 -1
  108. package/styles/theme/dark.scss +3 -0
  109. package/styles/theme/light.scss +3 -0
  110. package/styles/variable.scss +4 -0
  111. package/types/all.d.ts +6 -0
  112. package/types/components/col.d.ts +11 -1
  113. package/types/components/split-item.d.ts +84 -0
  114. package/types/components/split.d.ts +89 -0
  115. package/types/components/table-plugins/extend-cell-area.d.ts +54 -0
  116. package/types/components/table.d.ts +133 -11
  117. package/types/ui/global-config.d.ts +4 -0
  118. /package/es/icon/{iconfont.1742881754362.ttf → iconfont.1743044787719.ttf} +0 -0
  119. /package/es/icon/{iconfont.1742881754362.woff → iconfont.1743044787719.woff} +0 -0
  120. /package/es/icon/{iconfont.1742881754362.woff2 → iconfont.1743044787719.woff2} +0 -0
  121. /package/es/{iconfont.1742881754362.ttf → iconfont.1743044787719.ttf} +0 -0
  122. /package/es/{iconfont.1742881754362.woff → iconfont.1743044787719.woff} +0 -0
  123. /package/es/{iconfont.1742881754362.woff2 → iconfont.1743044787719.woff2} +0 -0
  124. /package/lib/icon/style/{iconfont.1742881754362.ttf → iconfont.1743044787719.ttf} +0 -0
  125. /package/lib/icon/style/{iconfont.1742881754362.woff → iconfont.1743044787719.woff} +0 -0
  126. /package/lib/icon/style/{iconfont.1742881754362.woff2 → iconfont.1743044787719.woff2} +0 -0
  127. /package/lib/{iconfont.1742881754362.ttf → iconfont.1743044787719.ttf} +0 -0
  128. /package/lib/{iconfont.1742881754362.woff → iconfont.1743044787719.woff} +0 -0
  129. /package/lib/{iconfont.1742881754362.woff2 → iconfont.1743044787719.woff2} +0 -0
@@ -0,0 +1,304 @@
1
+ import { defineVxeComponent } from '../../ui/src/comp';
2
+ import XEUtils from 'xe-utils';
3
+ import { getConfig, createEvent, globalMixins, renderEmptyElement } from '../../ui';
4
+ import { getSlotVNs } from '../../ui/src/vn';
5
+ import { toCssUnit, isScale, addClass, removeClass } from '../../ui/src/dom';
6
+ import { getGlobalDefaultConfig } from '../../ui/src/utils';
7
+ export default {
8
+ name: 'VxeSplit',
9
+ mixins: [
10
+ globalMixins.sizeMixin
11
+ ],
12
+ props: {
13
+ resize: {
14
+ type: Boolean,
15
+ default: null
16
+ },
17
+ vertical: {
18
+ type: Boolean,
19
+ default: () => getConfig().split.vertical
20
+ },
21
+ border: {
22
+ type: Boolean,
23
+ default: () => getConfig().split.border
24
+ },
25
+ minWidth: {
26
+ type: [Number, String],
27
+ default: () => getConfig().split.minWidth
28
+ },
29
+ minHeight: {
30
+ type: [Number, String],
31
+ default: () => getConfig().split.minHeight
32
+ }
33
+ },
34
+ data() {
35
+ const xID = XEUtils.uniqueId();
36
+ const reactData = {
37
+ staticItems: []
38
+ };
39
+ const internalData = {};
40
+ return {
41
+ xID,
42
+ reactData,
43
+ internalData
44
+ };
45
+ },
46
+ provide() {
47
+ const $xeSplit = this;
48
+ return {
49
+ $xeSplit
50
+ };
51
+ },
52
+ computed: Object.assign({}, {}),
53
+ methods: {
54
+ //
55
+ // Method
56
+ //
57
+ dispatchEvent(type, params, evnt) {
58
+ const $xeSplit = this;
59
+ $xeSplit.$emit(type, createEvent(evnt, { $split: $xeSplit }, params));
60
+ },
61
+ callSlot(slotFunc, params) {
62
+ const $xeSplit = this;
63
+ const slots = $xeSplit.$scopedSlots;
64
+ if (slotFunc) {
65
+ if (XEUtils.isString(slotFunc)) {
66
+ slotFunc = slots[slotFunc] || null;
67
+ }
68
+ if (XEUtils.isFunction(slotFunc)) {
69
+ return getSlotVNs(slotFunc(params));
70
+ }
71
+ }
72
+ return [];
73
+ },
74
+ recalculate() {
75
+ const $xeSplit = this;
76
+ const props = $xeSplit;
77
+ const reactData = $xeSplit.reactData;
78
+ return $xeSplit.$nextTick().then(() => {
79
+ const { vertical, minWidth, minHeight } = props;
80
+ const { staticItems } = reactData;
81
+ const el = $xeSplit.$refs.refElem;
82
+ if (!el) {
83
+ return;
84
+ }
85
+ const wrapperWidth = el.clientWidth;
86
+ const wrapperHeight = el.clientHeight;
87
+ if (!wrapperWidth || !wrapperHeight) {
88
+ return;
89
+ }
90
+ const residueItems = [];
91
+ if (vertical) {
92
+ let countHeight = 0;
93
+ staticItems.forEach(item => {
94
+ const { height } = item;
95
+ let itemHeight = 0;
96
+ if (height) {
97
+ if (isScale(height)) {
98
+ itemHeight = wrapperHeight * XEUtils.toNumber(height);
99
+ }
100
+ else {
101
+ itemHeight = XEUtils.toNumber(height);
102
+ }
103
+ item.renderHeight = itemHeight;
104
+ }
105
+ else {
106
+ residueItems.push(item);
107
+ }
108
+ countHeight += itemHeight;
109
+ });
110
+ if (residueItems.length) {
111
+ const reMeanHeight = (wrapperHeight - countHeight) / residueItems.length;
112
+ residueItems.forEach(item => {
113
+ item.renderHeight = Math.max(getGlobalDefaultConfig(item.minHeight, minHeight), reMeanHeight);
114
+ });
115
+ }
116
+ }
117
+ else {
118
+ let countWidth = 0;
119
+ staticItems.forEach(item => {
120
+ const { width } = item;
121
+ let itemWidth = 0;
122
+ if (width) {
123
+ if (isScale(width)) {
124
+ itemWidth = wrapperWidth * XEUtils.toNumber(width);
125
+ }
126
+ else {
127
+ itemWidth = XEUtils.toNumber(width);
128
+ }
129
+ item.renderWidth = itemWidth;
130
+ }
131
+ else {
132
+ residueItems.push(item);
133
+ }
134
+ countWidth += itemWidth;
135
+ });
136
+ if (residueItems.length) {
137
+ const reMeanWidth = (wrapperWidth - countWidth) / residueItems.length;
138
+ residueItems.forEach(item => {
139
+ item.renderWidth = Math.max(getGlobalDefaultConfig(item.minWidth, minWidth), reMeanWidth);
140
+ });
141
+ }
142
+ }
143
+ });
144
+ },
145
+ dragEvent(evnt) {
146
+ const $xeSplit = this;
147
+ const props = $xeSplit;
148
+ const reactData = $xeSplit.reactData;
149
+ evnt.preventDefault();
150
+ const { vertical, minWidth, minHeight } = props;
151
+ const { staticItems } = reactData;
152
+ const handleEl = evnt.currentTarget;
153
+ const el = $xeSplit.$refs.refElem;
154
+ if (!el) {
155
+ return;
156
+ }
157
+ const itemId = handleEl.getAttribute('xid');
158
+ const itemIndex = XEUtils.findIndexOf(staticItems, item => item.id === itemId);
159
+ const item = staticItems[itemIndex];
160
+ if (!item) {
161
+ return;
162
+ }
163
+ const prevItem = staticItems[itemIndex - 1];
164
+ const prevItemEl = prevItem ? el.querySelector(`.vxe-split-item[xid="${prevItem.id}"]`) : null;
165
+ const currItemEl = item ? el.querySelector(`.vxe-split-item[xid="${item.id}"]`) : null;
166
+ const prevWidth = prevItemEl ? prevItemEl.clientWidth : 0;
167
+ const currWidth = currItemEl ? currItemEl.clientWidth : 0;
168
+ const prevHeight = prevItemEl ? prevItemEl.clientHeight : 0;
169
+ const currHeight = currItemEl ? currItemEl.clientHeight : 0;
170
+ const prevMinWidth = prevItem ? getGlobalDefaultConfig(prevItem.minWidth, minWidth) : minWidth;
171
+ const currMinWidth = getGlobalDefaultConfig(item.minWidth, minWidth);
172
+ const prevMinHeight = prevItem ? getGlobalDefaultConfig(prevItem.minHeight, minHeight) : minHeight;
173
+ const currMinHeight = getGlobalDefaultConfig(item.minHeight, minHeight);
174
+ const disX = evnt.clientX;
175
+ const disY = evnt.clientY;
176
+ addClass(el, 'is--drag');
177
+ document.onmousemove = evnt => {
178
+ evnt.preventDefault();
179
+ if (vertical) {
180
+ const offsetTop = evnt.clientY - disY;
181
+ if (offsetTop > 0) {
182
+ if (prevItem) {
183
+ if (currHeight - offsetTop >= currMinHeight) {
184
+ prevItem.renderHeight = prevHeight + offsetTop;
185
+ item.renderHeight = currHeight - offsetTop;
186
+ }
187
+ }
188
+ }
189
+ else {
190
+ if (prevItem) {
191
+ if (prevHeight + offsetTop >= prevMinHeight) {
192
+ prevItem.renderHeight = prevHeight + offsetTop;
193
+ item.renderHeight = currHeight - offsetTop;
194
+ }
195
+ }
196
+ }
197
+ }
198
+ else {
199
+ const offsetLeft = evnt.clientX - disX;
200
+ if (offsetLeft > 0) {
201
+ if (prevItem) {
202
+ if (currWidth - offsetLeft >= currMinWidth) {
203
+ prevItem.renderWidth = prevWidth + offsetLeft;
204
+ item.renderWidth = currWidth - offsetLeft;
205
+ }
206
+ }
207
+ }
208
+ else {
209
+ if (prevItem) {
210
+ if (prevWidth + offsetLeft >= prevMinWidth) {
211
+ prevItem.renderWidth = prevWidth + offsetLeft;
212
+ item.renderWidth = currWidth - offsetLeft;
213
+ }
214
+ }
215
+ }
216
+ }
217
+ };
218
+ document.onmouseup = () => {
219
+ document.onmousemove = null;
220
+ document.onmouseup = null;
221
+ removeClass(el, 'is--drag');
222
+ };
223
+ },
224
+ //
225
+ // Render
226
+ //
227
+ renderItems(h) {
228
+ const $xeSplit = this;
229
+ const props = $xeSplit;
230
+ const reactData = $xeSplit.reactData;
231
+ const { border, vertical } = props;
232
+ const { staticItems } = reactData;
233
+ const itemVNs = [];
234
+ staticItems.forEach((item, index) => {
235
+ const { id, slots, renderHeight, renderWidth } = item;
236
+ const defaultSlot = slots ? slots.default : null;
237
+ const stys = {};
238
+ if (vertical) {
239
+ if (renderHeight) {
240
+ stys.height = toCssUnit(renderHeight);
241
+ }
242
+ }
243
+ else {
244
+ if (renderWidth) {
245
+ stys.width = toCssUnit(renderWidth);
246
+ }
247
+ }
248
+ itemVNs.push(h('div', {
249
+ attrs: {
250
+ xid: id
251
+ },
252
+ class: ['vxe-split-item', vertical ? 'is--vertical' : 'is--horizontal', {
253
+ 'is--border': border,
254
+ 'is--height': renderHeight,
255
+ 'is--width': renderWidth,
256
+ 'is--fill': !renderHeight && !renderWidth,
257
+ 'is--handle': index > 0
258
+ }],
259
+ style: stys
260
+ }, [
261
+ index
262
+ ? h('div', {
263
+ attrs: {
264
+ xid: id
265
+ },
266
+ class: 'vxe-split-item-handle',
267
+ on: {
268
+ mousedown: $xeSplit.dragEvent
269
+ }
270
+ })
271
+ : renderEmptyElement($xeSplit),
272
+ h('div', {
273
+ attrs: {
274
+ xid: id
275
+ },
276
+ class: 'vxe-split-item--wrapper'
277
+ }, defaultSlot ? $xeSplit.callSlot(defaultSlot, {}) : [])
278
+ ]));
279
+ });
280
+ return h('div', {
281
+ class: 'vxe-split-wrapper'
282
+ }, itemVNs);
283
+ },
284
+ renderVN(h) {
285
+ const $xeSplit = this;
286
+ const props = $xeSplit;
287
+ const slots = $xeSplit.$scopedSlots;
288
+ const { vertical } = props;
289
+ const defaultSlot = slots.default;
290
+ return h('div', {
291
+ ref: 'refElem',
292
+ class: ['vxe-split', vertical ? 'is--vertical' : 'is--horizontal']
293
+ }, [
294
+ h('div', {
295
+ class: 'vxe-split-slots'
296
+ }, defaultSlot ? defaultSlot({}) : []),
297
+ $xeSplit.renderItems(h)
298
+ ]);
299
+ }
300
+ },
301
+ render(h) {
302
+ return this.renderVN(h);
303
+ }
304
+ };
@@ -0,0 +1,17 @@
1
+ import XEUtils from 'xe-utils';
2
+ export function assembleSplitItem($xeSplit, elem, itemConfig) {
3
+ const staticItems = $xeSplit.reactData.staticItems;
4
+ const parentElem = elem.parentNode;
5
+ if (parentElem) {
6
+ staticItems.splice(XEUtils.arrayIndexOf(parentElem.children, elem), 0, itemConfig);
7
+ $xeSplit.reactData.staticItems = staticItems.slice(0);
8
+ }
9
+ }
10
+ export function destroySplitItem($xeSplit, itemConfig) {
11
+ const staticItems = $xeSplit.reactData.staticItems;
12
+ const index = XEUtils.findIndexOf(staticItems, item => item.id === itemConfig.id);
13
+ if (index > -1) {
14
+ staticItems.splice(index, 1);
15
+ }
16
+ $xeSplit.reactData.staticItems = staticItems.slice(0);
17
+ }
@@ -0,0 +1,90 @@
1
+ .vxe-split.is--vertical > .vxe-split-wrapper {
2
+ flex-direction: column;
3
+ }
4
+ .vxe-split.is--vertical > .vxe-split-wrapper > .vxe-split-item {
5
+ width: 100%;
6
+ }
7
+ .vxe-split.is--drag {
8
+ -webkit-user-select: none;
9
+ -moz-user-select: none;
10
+ -ms-user-select: none;
11
+ user-select: none;
12
+ }
13
+ .vxe-split.is--drag > .vxe-split-wrapper > .vxe-split-item > .vxe-split-item--wrapper::after {
14
+ content: "";
15
+ position: absolute;
16
+ top: 0;
17
+ left: 0;
18
+ width: 100%;
19
+ height: 100%;
20
+ z-index: 1;
21
+ background: transparent;
22
+ }
23
+
24
+ .vxe-split-wrapper {
25
+ height: 100%;
26
+ display: flex;
27
+ flex-direction: row;
28
+ overflow: hidden;
29
+ }
30
+
31
+ .vxe-split-slots {
32
+ display: none;
33
+ }
34
+
35
+ .vxe-split-item-handle {
36
+ flex-shrink: 0;
37
+ background-color: var(--vxe-split-handle-bar-background-color);
38
+ -webkit-user-select: none;
39
+ -moz-user-select: none;
40
+ -ms-user-select: none;
41
+ user-select: none;
42
+ }
43
+ .vxe-split-item-handle:hover {
44
+ background-color: var(--vxe-ui-font-primary-lighten-color);
45
+ }
46
+ .vxe-split-item-handle:active {
47
+ background-color: var(--vxe-ui-font-primary-darken-color);
48
+ }
49
+
50
+ .vxe-split-item--wrapper {
51
+ position: relative;
52
+ word-break: break-word;
53
+ overflow: auto;
54
+ flex-grow: 1;
55
+ }
56
+
57
+ .vxe-split-item {
58
+ display: flex;
59
+ position: relative;
60
+ overflow: auto;
61
+ }
62
+ .vxe-split-item.is--fill {
63
+ flex-grow: 1;
64
+ }
65
+ .vxe-split-item.is--width, .vxe-split-item.is--height {
66
+ flex-shrink: 0;
67
+ }
68
+ .vxe-split-item.is--border > .vxe-split-item--wrapper, .vxe-split-item.is--border > .vxe-split-item-handle {
69
+ border: 1px solid var(--vxe-ui-base-popup-border-color);
70
+ }
71
+ .vxe-split-item.is--horizontal {
72
+ flex-direction: row;
73
+ }
74
+ .vxe-split-item.is--horizontal > .vxe-split-item-handle {
75
+ width: var(--vxe-split-handle-bar-width);
76
+ cursor: w-resize;
77
+ }
78
+ .vxe-split-item.is--horizontal.is--border > .vxe-split-item-handle {
79
+ border-width: 1px 0 1px 0;
80
+ }
81
+ .vxe-split-item.is--vertical {
82
+ flex-direction: column;
83
+ }
84
+ .vxe-split-item.is--vertical > .vxe-split-item-handle {
85
+ height: var(--vxe-split-handle-bar-height);
86
+ cursor: n-resize;
87
+ }
88
+ .vxe-split-item.is--vertical.is--border > .vxe-split-item-handle {
89
+ border-width: 0 1px 0 1px;
90
+ }
@@ -0,0 +1 @@
1
+ .vxe-split.is--vertical>.vxe-split-wrapper{flex-direction:column}.vxe-split.is--vertical>.vxe-split-wrapper>.vxe-split-item{width:100%}.vxe-split.is--drag{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vxe-split.is--drag>.vxe-split-wrapper>.vxe-split-item>.vxe-split-item--wrapper::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;background:0 0}.vxe-split-wrapper{height:100%;display:flex;flex-direction:row;overflow:hidden}.vxe-split-slots{display:none}.vxe-split-item-handle{flex-shrink:0;background-color:var(--vxe-split-handle-bar-background-color);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vxe-split-item-handle:hover{background-color:var(--vxe-ui-font-primary-lighten-color)}.vxe-split-item-handle:active{background-color:var(--vxe-ui-font-primary-darken-color)}.vxe-split-item--wrapper{position:relative;word-break:break-word;overflow:auto;flex-grow:1}.vxe-split-item{display:flex;position:relative;overflow:auto}.vxe-split-item.is--fill{flex-grow:1}.vxe-split-item.is--height,.vxe-split-item.is--width{flex-shrink:0}.vxe-split-item.is--border>.vxe-split-item--wrapper,.vxe-split-item.is--border>.vxe-split-item-handle{border:1px solid var(--vxe-ui-base-popup-border-color)}.vxe-split-item.is--horizontal{flex-direction:row}.vxe-split-item.is--horizontal>.vxe-split-item-handle{width:var(--vxe-split-handle-bar-width);cursor:w-resize}.vxe-split-item.is--horizontal.is--border>.vxe-split-item-handle{border-width:1px 0 1px 0}.vxe-split-item.is--vertical{flex-direction:column}.vxe-split-item.is--vertical>.vxe-split-item-handle{height:var(--vxe-split-handle-bar-height);cursor:n-resize}.vxe-split-item.is--vertical.is--border>.vxe-split-item-handle{border-width:0 1px 0 1px}
@@ -0,0 +1,12 @@
1
+ import { VxeUI } from '@vxe-ui/core';
2
+ import VxeSplitItemComponent from '../split/src/split-item';
3
+ import { dynamicApp } from '../dynamics';
4
+ export const VxeSplitItem = Object.assign({}, VxeSplitItemComponent, {
5
+ install(app) {
6
+ app.component(VxeSplitItemComponent.name, VxeSplitItemComponent);
7
+ }
8
+ });
9
+ dynamicApp.use(VxeSplitItem);
10
+ VxeUI.component(VxeSplitItemComponent);
11
+ export const SplitItem = VxeSplitItem;
12
+ export default VxeSplitItem;
File without changes
File without changes