vxe-pc-ui 4.21.0 → 4.21.2

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 (75) hide show
  1. package/dist/all.esm.js +442 -94
  2. package/dist/all.esm.min.js +3 -3
  3. package/dist/style.css +149 -29
  4. package/dist/style.mini.css +1 -1
  5. package/es/esm.index.d.ts +7 -0
  6. package/es/esm.index.js +8 -0
  7. package/es/icon/style.css +43 -4
  8. package/es/icon/style.mini.css +1 -1
  9. package/es/style.css +149 -29
  10. package/es/style.mini.css +1 -1
  11. package/es/tree/index.d.ts +14 -6
  12. package/es/tree/src/tree.d.ts +3 -1
  13. package/es/tree/src/tree.js +111 -48
  14. package/es/tree/src/util.d.ts +5 -0
  15. package/es/tree/src/util.js +97 -2
  16. package/es/tree/style.css +99 -23
  17. package/es/tree/style.mini.css +1 -1
  18. package/es/ui/index.js +15 -12
  19. package/es/ui/src/log.js +1 -1
  20. package/es/vxe-icon/style.css +43 -4
  21. package/es/vxe-icon/style.mini.css +1 -1
  22. package/es/vxe-tree/style.css +99 -23
  23. package/es/vxe-tree/style.mini.css +1 -1
  24. package/lib/esm.index.d.ts +7 -0
  25. package/lib/esm.index.js +39 -0
  26. package/lib/icon/style/style.css +43 -4
  27. package/lib/icon/style/style.mini.css +1 -1
  28. package/lib/index.umd.js +221 -93
  29. package/lib/index.umd.min.js +3 -3
  30. package/lib/style.css +149 -29
  31. package/lib/style.mini.css +1 -1
  32. package/lib/tree/index.d.ts +14 -6
  33. package/lib/tree/src/tree.d.ts +3 -1
  34. package/lib/tree/src/tree.js +110 -47
  35. package/lib/tree/src/util.d.ts +5 -0
  36. package/lib/tree/src/util.js +97 -2
  37. package/lib/tree/style/style.css +99 -23
  38. package/lib/tree/style/style.mini.css +1 -1
  39. package/lib/ui/index.js +15 -12
  40. package/lib/ui/src/log.js +1 -1
  41. package/lib/vxe-icon/style/style.css +43 -4
  42. package/lib/vxe-icon/style/style.mini.css +1 -1
  43. package/lib/vxe-tree/style/style.css +99 -23
  44. package/lib/vxe-tree/style/style.mini.css +1 -1
  45. package/package.json +2 -2
  46. package/packages/esm.index.ts +10 -0
  47. package/packages/tree/src/tree.ts +129 -48
  48. package/packages/tree/src/util.ts +113 -1
  49. package/packages/ui/index.ts +14 -11
  50. package/styles/components/icon.scss +11 -3
  51. package/styles/components/tree.scss +145 -14
  52. package/styles/theme/base.scss +7 -2
  53. package/types/components/table.d.ts +1 -0
  54. package/types/components/tree.d.ts +34 -0
  55. /package/dist/{iconfont.1794558186564.ttf → iconfont.1794797289947.ttf} +0 -0
  56. /package/dist/{iconfont.1794558186564.woff → iconfont.1794797289947.woff} +0 -0
  57. /package/dist/{iconfont.1794558186564.woff2 → iconfont.1794797289947.woff2} +0 -0
  58. /package/es/icon/{iconfont.1794558186564.ttf → iconfont.1794797289947.ttf} +0 -0
  59. /package/es/icon/{iconfont.1794558186564.woff → iconfont.1794797289947.woff} +0 -0
  60. /package/es/icon/{iconfont.1794558186564.woff2 → iconfont.1794797289947.woff2} +0 -0
  61. /package/es/{iconfont.1794558186564.ttf → iconfont.1794797289947.ttf} +0 -0
  62. /package/es/{iconfont.1794558186564.woff → iconfont.1794797289947.woff} +0 -0
  63. /package/es/{iconfont.1794558186564.woff2 → iconfont.1794797289947.woff2} +0 -0
  64. /package/es/vxe-icon/{iconfont.1794558186564.ttf → iconfont.1794797289947.ttf} +0 -0
  65. /package/es/vxe-icon/{iconfont.1794558186564.woff → iconfont.1794797289947.woff} +0 -0
  66. /package/es/vxe-icon/{iconfont.1794558186564.woff2 → iconfont.1794797289947.woff2} +0 -0
  67. /package/lib/icon/style/{iconfont.1794558186564.ttf → iconfont.1794797289947.ttf} +0 -0
  68. /package/lib/icon/style/{iconfont.1794558186564.woff → iconfont.1794797289947.woff} +0 -0
  69. /package/lib/icon/style/{iconfont.1794558186564.woff2 → iconfont.1794797289947.woff2} +0 -0
  70. /package/lib/{iconfont.1794558186564.ttf → iconfont.1794797289947.ttf} +0 -0
  71. /package/lib/{iconfont.1794558186564.woff → iconfont.1794797289947.woff} +0 -0
  72. /package/lib/{iconfont.1794558186564.woff2 → iconfont.1794797289947.woff2} +0 -0
  73. /package/lib/vxe-icon/style/{iconfont.1794558186564.ttf → iconfont.1794797289947.ttf} +0 -0
  74. /package/lib/vxe-icon/style/{iconfont.1794558186564.woff → iconfont.1794797289947.woff} +0 -0
  75. /package/lib/vxe-icon/style/{iconfont.1794558186564.woff2 → iconfont.1794797289947.woff2} +0 -0
package/dist/all.esm.js CHANGED
@@ -18,6 +18,220 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
19
19
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
20
20
 
21
+ // packages_temp/esm.index.ts
22
+ var esm_index_exports = {};
23
+ __export(esm_index_exports, {
24
+ Alert: () => Alert,
25
+ Anchor: () => Anchor,
26
+ AnchorLink: () => AnchorLink,
27
+ Avatar: () => Avatar,
28
+ Backtop: () => Backtop,
29
+ Badge: () => Badge,
30
+ Breadcrumb: () => Breadcrumb,
31
+ BreadcrumbItem: () => BreadcrumbItem,
32
+ Button: () => Button,
33
+ ButtonGroup: () => ButtonGroup,
34
+ Calendar: () => Calendar,
35
+ Card: () => Card,
36
+ Carousel: () => Carousel,
37
+ CarouselItem: () => CarouselItem,
38
+ Cascader: () => Cascader,
39
+ Checkbox: () => Checkbox,
40
+ CheckboxButton: () => CheckboxButton,
41
+ CheckboxGroup: () => CheckboxGroup,
42
+ Col: () => Col,
43
+ Collapse: () => Collapse,
44
+ CollapsePane: () => CollapsePane,
45
+ ColorPicker: () => ColorPicker,
46
+ ContextMenu: () => ContextMenu,
47
+ ContextMenuController: () => ContextMenuController,
48
+ Countdown: () => Countdown,
49
+ DatePanel: () => DatePanel,
50
+ DatePicker: () => DatePicker,
51
+ DateRangePicker: () => DateRangePicker,
52
+ Divider: () => Divider,
53
+ Drawer: () => Drawer,
54
+ DrawerController: () => DrawerController,
55
+ Empty: () => Empty,
56
+ Form: () => Form,
57
+ FormGather: () => FormGather,
58
+ FormGroup: () => FormGroup,
59
+ FormItem: () => FormItem,
60
+ Icon: () => Icon,
61
+ IconPicker: () => IconPicker,
62
+ Image: () => Image2,
63
+ ImageGroup: () => ImageGroup,
64
+ ImagePreview: () => ImagePreview,
65
+ Input: () => Input,
66
+ LayoutAside: () => LayoutAside,
67
+ LayoutBody: () => LayoutBody,
68
+ LayoutContainer: () => LayoutContainer,
69
+ LayoutFooter: () => LayoutFooter,
70
+ LayoutHeader: () => LayoutHeader,
71
+ Link: () => Link,
72
+ List: () => List,
73
+ Loading: () => Loading,
74
+ LoadingController: () => LoadingController,
75
+ Menu: () => Menu,
76
+ Modal: () => Modal,
77
+ ModalController: () => ModalController,
78
+ NoticeBar: () => NoticeBar,
79
+ NumberInput: () => NumberInput,
80
+ Optgroup: () => Optgroup,
81
+ Option: () => Option,
82
+ Pager: () => Pager,
83
+ PasswordInput: () => PasswordInput,
84
+ Print: () => Print,
85
+ PrintPageBreak: () => PrintPageBreak,
86
+ Pulldown: () => Pulldown,
87
+ Radio: () => Radio,
88
+ RadioButton: () => RadioButton,
89
+ RadioGroup: () => RadioGroup,
90
+ Rate: () => Rate,
91
+ Result: () => Result,
92
+ Row: () => Row,
93
+ Scrollbar: () => Scrollbar,
94
+ Segmented: () => Segmented,
95
+ Select: () => Select,
96
+ Slider: () => Slider,
97
+ Space: () => Space,
98
+ Split: () => Split,
99
+ SplitPane: () => SplitPane,
100
+ Splitter: () => Splitter,
101
+ SplitterPanel: () => SplitterPanel,
102
+ StepItem: () => StepItem,
103
+ Steps: () => Steps,
104
+ Switch: () => Switch,
105
+ TabPane: () => TabPane,
106
+ TableSelect: () => TableSelect,
107
+ TableTransfer: () => TableTransfer,
108
+ Tabs: () => Tabs,
109
+ Tag: () => Tag,
110
+ Text: () => Text,
111
+ TextEllipsis: () => TextEllipsis,
112
+ Textarea: () => Textarea,
113
+ Timeline: () => Timeline,
114
+ TimelineItem: () => TimelineItem,
115
+ Tip: () => Tip,
116
+ Tips: () => Tips,
117
+ Tooltip: () => Tooltip,
118
+ TooltipController: () => TooltipController,
119
+ Tour: () => Tour,
120
+ Transfer: () => Transfer,
121
+ Tree: () => Tree,
122
+ TreeSelect: () => TreeSelect,
123
+ Upload: () => Upload,
124
+ VxeAlert: () => VxeAlert,
125
+ VxeAnchor: () => VxeAnchor,
126
+ VxeAnchorLink: () => VxeAnchorLink,
127
+ VxeAvatar: () => VxeAvatar,
128
+ VxeBacktop: () => VxeBacktop,
129
+ VxeBadge: () => VxeBadge,
130
+ VxeBreadcrumb: () => VxeBreadcrumb,
131
+ VxeBreadcrumbItem: () => VxeBreadcrumbItem,
132
+ VxeButton: () => VxeButton,
133
+ VxeButtonGroup: () => VxeButtonGroup,
134
+ VxeCalendar: () => VxeCalendar,
135
+ VxeCard: () => VxeCard,
136
+ VxeCarousel: () => VxeCarousel,
137
+ VxeCarouselItem: () => VxeCarouselItem,
138
+ VxeCascader: () => VxeCascader,
139
+ VxeCheckbox: () => VxeCheckbox,
140
+ VxeCheckboxButton: () => VxeCheckboxButton,
141
+ VxeCheckboxGroup: () => VxeCheckboxGroup,
142
+ VxeCol: () => VxeCol,
143
+ VxeCollapse: () => VxeCollapse,
144
+ VxeCollapsePane: () => VxeCollapsePane,
145
+ VxeColorPicker: () => VxeColorPicker,
146
+ VxeContextMenu: () => VxeContextMenu,
147
+ VxeCountdown: () => VxeCountdown,
148
+ VxeDatePanel: () => VxeDatePanel,
149
+ VxeDatePicker: () => VxeDatePicker,
150
+ VxeDateRangePicker: () => VxeDateRangePicker,
151
+ VxeDivider: () => VxeDivider,
152
+ VxeDrawer: () => VxeDrawer,
153
+ VxeEmpty: () => VxeEmpty,
154
+ VxeForm: () => VxeForm,
155
+ VxeFormGather: () => VxeFormGather,
156
+ VxeFormGroup: () => VxeFormGroup,
157
+ VxeFormItem: () => VxeFormItem,
158
+ VxeIcon: () => VxeIcon,
159
+ VxeIconPicker: () => VxeIconPicker,
160
+ VxeImage: () => VxeImage,
161
+ VxeImageGroup: () => VxeImageGroup,
162
+ VxeImagePreview: () => VxeImagePreview,
163
+ VxeInput: () => VxeInput,
164
+ VxeLayoutAside: () => VxeLayoutAside,
165
+ VxeLayoutBody: () => VxeLayoutBody,
166
+ VxeLayoutContainer: () => VxeLayoutContainer,
167
+ VxeLayoutFooter: () => VxeLayoutFooter,
168
+ VxeLayoutHeader: () => VxeLayoutHeader,
169
+ VxeLink: () => VxeLink,
170
+ VxeList: () => VxeList,
171
+ VxeLoading: () => VxeLoading,
172
+ VxeMenu: () => VxeMenu,
173
+ VxeModal: () => VxeModal,
174
+ VxeNoticeBar: () => VxeNoticeBar,
175
+ VxeNumberInput: () => VxeNumberInput,
176
+ VxeOptgroup: () => VxeOptgroup,
177
+ VxeOption: () => VxeOption,
178
+ VxePager: () => VxePager,
179
+ VxePasswordInput: () => VxePasswordInput,
180
+ VxePrint: () => VxePrint,
181
+ VxePrintPageBreak: () => VxePrintPageBreak,
182
+ VxePulldown: () => VxePulldown,
183
+ VxeRadio: () => VxeRadio,
184
+ VxeRadioButton: () => VxeRadioButton,
185
+ VxeRadioGroup: () => VxeRadioGroup,
186
+ VxeRate: () => VxeRate,
187
+ VxeResult: () => VxeResult,
188
+ VxeRow: () => VxeRow,
189
+ VxeScrollbar: () => VxeScrollbar,
190
+ VxeSegmented: () => VxeSegmented,
191
+ VxeSelect: () => VxeSelect,
192
+ VxeSlider: () => VxeSlider,
193
+ VxeSpace: () => VxeSpace,
194
+ VxeSplit: () => VxeSplit,
195
+ VxeSplitPane: () => VxeSplitPane,
196
+ VxeSplitter: () => VxeSplitter,
197
+ VxeSplitterPanel: () => VxeSplitterPanel,
198
+ VxeStepItem: () => VxeStepItem,
199
+ VxeSteps: () => VxeSteps,
200
+ VxeSwitch: () => VxeSwitch,
201
+ VxeTabPane: () => VxeTabPane,
202
+ VxeTableSelect: () => VxeTableSelect,
203
+ VxeTableTransfer: () => VxeTableTransfer,
204
+ VxeTabs: () => VxeTabs,
205
+ VxeTag: () => VxeTag,
206
+ VxeText: () => VxeText,
207
+ VxeTextEllipsis: () => VxeTextEllipsis,
208
+ VxeTextarea: () => VxeTextarea,
209
+ VxeTimeline: () => VxeTimeline,
210
+ VxeTimelineItem: () => VxeTimelineItem,
211
+ VxeTip: () => VxeTip,
212
+ VxeTooltip: () => VxeTooltip,
213
+ VxeTour: () => VxeTour,
214
+ VxeTransfer: () => VxeTransfer,
215
+ VxeTree: () => VxeTree,
216
+ VxeTreeSelect: () => VxeTreeSelect,
217
+ VxeUI: () => index_exports.VxeUI,
218
+ VxeUpload: () => VxeUpload,
219
+ VxeWatermark: () => VxeWatermark,
220
+ Watermark: () => Watermark,
221
+ WatermarkController: () => WatermarkController,
222
+ config: () => config,
223
+ default: () => esm_index_default,
224
+ drawer: () => drawer,
225
+ install: () => install,
226
+ loading: () => loading,
227
+ modal: () => modal,
228
+ print: () => print,
229
+ readFile: () => readFile,
230
+ saveFile: () => saveFile,
231
+ setup: () => setup,
232
+ watermark: () => watermark
233
+ });
234
+
21
235
  // packages_temp/index.ts
22
236
  var index_exports = {};
23
237
  __export(index_exports, {
@@ -555,7 +769,7 @@ import { VxeUI as VxeUI3, setConfig } from "@vxe-ui/core";
555
769
  // packages_temp/ui/src/log.ts
556
770
  import { VxeUI as VxeUI2 } from "@vxe-ui/core";
557
771
  var { log } = VxeUI2;
558
- var uiVersion = `ui v${"4.21.0"}`;
772
+ var uiVersion = `ui v${"4.21.2"}`;
559
773
  function createComponentLog(name) {
560
774
  const tableVersion = VxeUI2.tableVersion ? `table v${VxeUI2.tableVersion}` : "";
561
775
  const ganttVersion = VxeUI2.ganttVersion ? `gantt v${VxeUI2.ganttVersion}` : "";
@@ -582,7 +796,7 @@ VxeUI3.config = config;
582
796
  VxeUI3.setup = setup;
583
797
 
584
798
  // packages_temp/ui/index.ts
585
- var version = "4.21.0";
799
+ var version = "4.21.2";
586
800
  VxeUI4.uiVersion = version;
587
801
  VxeUI4.dynamicApp = dynamicApp;
588
802
  setConfig2({
@@ -1075,9 +1289,12 @@ setConfig2({
1075
1289
  transfer: {},
1076
1290
  tree: {
1077
1291
  // autoResize: false,
1078
- indent: 20,
1292
+ // indent: 20,
1079
1293
  minHeight: 60,
1080
1294
  showOverflow: true,
1295
+ lineConfig: {
1296
+ showRootLine: true
1297
+ },
1081
1298
  radioConfig: {
1082
1299
  strict: true
1083
1300
  },
@@ -1152,20 +1369,20 @@ setIcon({
1152
1369
  // loading
1153
1370
  LOADING: iconPrefix + "spinner roll vxe-loading--default-icon",
1154
1371
  // button
1155
- BUTTON_DROPDOWN_OPEN: iconPrefix + "arrow-down rotate180",
1372
+ BUTTON_DROPDOWN_OPEN: iconPrefix + "arrow-down rotate-180",
1156
1373
  BUTTON_DROPDOWN_CLOSE: iconPrefix + "arrow-down",
1157
1374
  BUTTON_LOADING: iconPrefix + "spinner roll",
1158
1375
  BUTTON_TOOLTIP_ICON: iconPrefix + "question-circle-fill",
1159
1376
  // menu
1160
- MENU_ITEM_EXPAND_OPEN: iconPrefix + "arrow-right rotate90",
1377
+ MENU_ITEM_EXPAND_OPEN: iconPrefix + "arrow-right rotate-90",
1161
1378
  MENU_ITEM_EXPAND_CLOSE: iconPrefix + "arrow-right",
1162
1379
  // select
1163
1380
  SELECT_LOADED: iconPrefix + "spinner roll",
1164
- SELECT_OPEN: iconPrefix + "caret-down rotate180",
1381
+ SELECT_OPEN: iconPrefix + "caret-down rotate-180",
1165
1382
  SELECT_CLOSE: iconPrefix + "caret-down",
1166
1383
  SELECT_ADD_OPTION: iconPrefix + "add",
1167
1384
  // icon-picker
1168
- ICON_PICKER_OPEN: iconPrefix + "caret-down rotate180",
1385
+ ICON_PICKER_OPEN: iconPrefix + "caret-down rotate-180",
1169
1386
  ICON_PICKER_CLOSE: iconPrefix + "caret-down",
1170
1387
  // pager
1171
1388
  PAGER_HOME: iconPrefix + "home-page",
@@ -1216,7 +1433,7 @@ setIcon({
1216
1433
  // form
1217
1434
  FORM_PREFIX: iconPrefix + "question-circle-fill",
1218
1435
  FORM_SUFFIX: iconPrefix + "question-circle-fill",
1219
- FORM_FOLDING: iconPrefix + "arrow-up rotate180",
1436
+ FORM_FOLDING: iconPrefix + "arrow-up rotate-180",
1220
1437
  FORM_UNFOLDING: iconPrefix + "arrow-up",
1221
1438
  FORM_VALID_ERROR_ICON: iconPrefix + "warning-circle-fill",
1222
1439
  // form-design
@@ -1280,7 +1497,7 @@ setIcon({
1280
1497
  ALERT_WARNING: iconPrefix + "warning-circle-fill",
1281
1498
  ALERT_ERROR: iconPrefix + "error-circle-fill",
1282
1499
  // tree
1283
- TREE_NODE_OPEN: iconPrefix + "caret-right rotate90",
1500
+ TREE_NODE_OPEN: iconPrefix + "caret-right rotate-90",
1284
1501
  TREE_NODE_CLOSE: iconPrefix + "caret-right",
1285
1502
  TREE_NODE_LOADED: iconPrefix + "spinner roll",
1286
1503
  TREE_DRAG: iconPrefix + "drag-handle",
@@ -1289,11 +1506,11 @@ setIcon({
1289
1506
  TREE_DRAG_DISABLED: iconPrefix + "no-drop",
1290
1507
  // tree-select
1291
1508
  TREE_SELECT_LOADED: iconPrefix + "spinner roll",
1292
- TREE_SELECT_OPEN: iconPrefix + "caret-down rotate180",
1509
+ TREE_SELECT_OPEN: iconPrefix + "caret-down rotate-180",
1293
1510
  TREE_SELECT_CLOSE: iconPrefix + "caret-down",
1294
1511
  // table-select
1295
1512
  TABLE_SELECT_LOADED: iconPrefix + "spinner roll",
1296
- TABLE_SELECT_OPEN: iconPrefix + "caret-down rotate180",
1513
+ TABLE_SELECT_OPEN: iconPrefix + "caret-down rotate-180",
1297
1514
  TABLE_SELECT_CLOSE: iconPrefix + "caret-down",
1298
1515
  // tabs
1299
1516
  TABS_TAB_BUTTON_TOP: iconPrefix + "arrow-up",
@@ -1315,7 +1532,7 @@ setIcon({
1315
1532
  CAROUSEL_VERTICAL_PREVIOUS: iconPrefix + "arrow-up",
1316
1533
  CAROUSEL_VERTICAL_NEXT: iconPrefix + "arrow-down",
1317
1534
  // collapse
1318
- COLLAPSE_OPEN: iconPrefix + "arrow-right rotate90",
1535
+ COLLAPSE_OPEN: iconPrefix + "arrow-right rotate-90",
1319
1536
  COLLAPSE_CLOSE: iconPrefix + "arrow-right",
1320
1537
  // empty
1321
1538
  EMPTY_DEFAULT: iconPrefix + "empty",
@@ -1332,7 +1549,7 @@ setIcon({
1332
1549
  // color-picker
1333
1550
  COLOR_PICKER_COLOR_COPY: iconPrefix + "copy",
1334
1551
  COLOR_PICKER_EYE_DROPPER: iconPrefix + "dropper",
1335
- COLOR_PICKER_TPTY_OPEN: iconPrefix + "arrow-down rotate180",
1552
+ COLOR_PICKER_TPTY_OPEN: iconPrefix + "arrow-down rotate-180",
1336
1553
  COLOR_PICKER_TPTY_CLOSE: iconPrefix + "arrow-down",
1337
1554
  // split
1338
1555
  SPLIT_TOP_ACTION: iconPrefix + "arrow-up",
@@ -49380,38 +49597,6 @@ import { ref as ref80, h as h94, reactive as reactive85, computed as computed62,
49380
49597
  import { VxeUI as VxeUI186 } from "@vxe-ui/core";
49381
49598
 
49382
49599
  // packages_temp/tree/src/util.ts
49383
- function countTreeExpand($xeTree, prevNode) {
49384
- let count = 1;
49385
- if (!prevNode) {
49386
- return count;
49387
- }
49388
- const props = $xeTree.props;
49389
- const { transform } = props;
49390
- const reactData = $xeTree.reactData;
49391
- const { updateExpandedFlag } = reactData;
49392
- const internalData = $xeTree.internalData;
49393
- const { treeExpandedMaps } = internalData;
49394
- const { computeChildrenField, computeMapChildrenField } = $xeTree.getComputeMaps();
49395
- const childrenField = computeChildrenField.value;
49396
- const mapChildrenField = computeMapChildrenField.value;
49397
- const nodeChildren = prevNode[transform ? mapChildrenField : childrenField];
49398
- if (nodeChildren && updateExpandedFlag && treeExpandedMaps[$xeTree.getNodeId(prevNode)]) {
49399
- for (let index = 0; index < nodeChildren.length; index++) {
49400
- count += countTreeExpand($xeTree, nodeChildren[index]);
49401
- }
49402
- }
49403
- return count;
49404
- }
49405
- function calcTreeLine($xeTree, node, prevNode) {
49406
- const internalData = $xeTree.internalData;
49407
- const { scrollYStore } = internalData;
49408
- const { rowHeight } = scrollYStore;
49409
- let expandSize = 1;
49410
- if (prevNode) {
49411
- expandSize = countTreeExpand($xeTree, prevNode);
49412
- }
49413
- return (rowHeight || 28) * expandSize - (prevNode ? 1 : 12);
49414
- }
49415
49600
  function getItemCacheObj2(item) {
49416
49601
  return {
49417
49602
  item,
@@ -49424,9 +49609,103 @@ function getItemCacheObj2(item) {
49424
49609
  level: 0,
49425
49610
  treeIndex: -1,
49426
49611
  lineCount: 0,
49427
- treeLoaded: false
49612
+ treeLoaded: false,
49613
+ linesMask: 0
49428
49614
  };
49429
49615
  }
49616
+ function getTreeNodeLines(isExpandable, depth, linesMask, isFirstRow, isLastRow, showRootLine) {
49617
+ const lines = [];
49618
+ for (let col = 1; col <= depth; col++) {
49619
+ const leftVal = `var(--vxe-ui-tree-node-padding) + var(--vxe-ui-tree-node-btn-width) / 2 + var(--vxe-ui-tree-node-indent) * ${col - 1}`;
49620
+ const through = (linesMask & 1 << col - 1) !== 0;
49621
+ if (col === 1 && !showRootLine) {
49622
+ continue;
49623
+ }
49624
+ if (col < depth) {
49625
+ if (through) {
49626
+ let top = "0";
49627
+ let height = "100%";
49628
+ if (isFirstRow) {
49629
+ top = "50%";
49630
+ height = "50%";
49631
+ } else if (isLastRow) {
49632
+ top = "0";
49633
+ height = "50%";
49634
+ }
49635
+ lines.push({
49636
+ type: "v",
49637
+ style: {
49638
+ left: `calc(${leftVal})`,
49639
+ top,
49640
+ height
49641
+ }
49642
+ });
49643
+ }
49644
+ } else {
49645
+ let vTop = "0";
49646
+ let vHeight = through ? "100%" : "50%";
49647
+ if (isFirstRow && isLastRow) {
49648
+ vTop = "50%";
49649
+ vHeight = "0px";
49650
+ } else if (isFirstRow) {
49651
+ vTop = "50%";
49652
+ vHeight = "50%";
49653
+ } else if (isLastRow) {
49654
+ vTop = "0";
49655
+ vHeight = "50%";
49656
+ }
49657
+ if (isExpandable && vHeight !== "0px") {
49658
+ let cutType = "v cut";
49659
+ if (vTop === "0" && vHeight === "50%") {
49660
+ cutType = "v cut-top";
49661
+ } else if (vTop === "50%" && vHeight === "50%") {
49662
+ cutType = "v cut-bottom";
49663
+ } else if (vHeight === "100%") {
49664
+ cutType = "v cut-full";
49665
+ }
49666
+ lines.push({
49667
+ type: cutType,
49668
+ style: {
49669
+ left: `calc(${leftVal})`,
49670
+ top: vTop,
49671
+ height: vHeight
49672
+ }
49673
+ });
49674
+ } else {
49675
+ if (vHeight !== "0px") {
49676
+ lines.push({
49677
+ type: "v",
49678
+ style: {
49679
+ left: `calc(${leftVal})`,
49680
+ top: vTop,
49681
+ height: vHeight
49682
+ }
49683
+ });
49684
+ }
49685
+ }
49686
+ if (isExpandable) {
49687
+ lines.push({
49688
+ type: "h",
49689
+ style: {
49690
+ left: `calc(${leftVal} + var(--vxe-ui-tree-node-btn-width) / 2)`,
49691
+ top: "50%",
49692
+ width: "calc(var(--vxe-ui-tree-node-indent) - var(--vxe-ui-tree-node-btn-width) - 0.2em)"
49693
+ }
49694
+ });
49695
+ } else {
49696
+ lines.push({
49697
+ type: "h",
49698
+ style: {
49699
+ left: `calc(${leftVal})`,
49700
+ top: "50%",
49701
+ width: "calc(var(--vxe-ui-tree-node-indent) - var(--vxe-ui-tree-node-btn-width) / 2 - 0.1em)"
49702
+ }
49703
+ });
49704
+ }
49705
+ }
49706
+ }
49707
+ return lines;
49708
+ }
49430
49709
 
49431
49710
  // packages_temp/tree/src/store.ts
49432
49711
  import { reactive as reactive84 } from "vue";
@@ -49585,6 +49864,7 @@ var tree_default = (
49585
49864
  type: Boolean,
49586
49865
  default: () => getConfig73().tree.showLine
49587
49866
  },
49867
+ lineConfig: Object,
49588
49868
  trigger: String,
49589
49869
  indent: {
49590
49870
  type: Number,
@@ -49738,6 +50018,13 @@ var tree_default = (
49738
50018
  }
49739
50019
  return props.isHover;
49740
50020
  });
50021
+ const computeLineOpts = computed62(() => {
50022
+ return Object.assign({}, getConfig73().tree.lineConfig, props.lineConfig);
50023
+ });
50024
+ const computeShowTreeRootLine = computed62(() => {
50025
+ const lineOpts = computeLineOpts.value;
50026
+ return lineOpts.showRootLine;
50027
+ });
49741
50028
  const computeRadioOpts = computed62(() => {
49742
50029
  return Object.assign({ showIcon: true }, getConfig73().tree.radioConfig, props.radioConfig);
49743
50030
  });
@@ -49779,6 +50066,8 @@ var tree_default = (
49779
50066
  const computeTreeStyle = computed62(() => {
49780
50067
  const { indent } = props;
49781
50068
  const { customHeight, customMinHeight, customMaxHeight } = reactData;
50069
+ const lineOpts = computeLineOpts.value;
50070
+ const { lineWidth, lineColor } = lineOpts;
49782
50071
  const checkboxOpts = computeCheckboxOpts.value;
49783
50072
  const { nodeStyle } = checkboxOpts;
49784
50073
  const stys = {};
@@ -49794,6 +50083,12 @@ var tree_default = (
49794
50083
  if (indent) {
49795
50084
  stys["--vxe-ui-tree-node-indent"] = toCssUnit(indent);
49796
50085
  }
50086
+ if (lineWidth) {
50087
+ stys["--vxe-ui-tree-node-line-width"] = toCssUnit(lineWidth);
50088
+ }
50089
+ if (lineColor) {
50090
+ stys["--vxe-ui-tree-node-line-color"] = toCssUnit(lineColor);
50091
+ }
49797
50092
  if (nodeStyle) {
49798
50093
  const { indeterminateColor, checkedColor } = nodeStyle;
49799
50094
  if (indeterminateColor) {
@@ -50075,7 +50370,8 @@ var tree_default = (
50075
50370
  level: nodes.length - 1,
50076
50371
  treeIndex: index,
50077
50372
  lineCount: 0,
50078
- treeLoaded: false
50373
+ treeLoaded: false,
50374
+ linesMask: 0
50079
50375
  };
50080
50376
  },
50081
50377
  { children: childrenField }
@@ -50083,40 +50379,69 @@ var tree_default = (
50083
50379
  internalData.nodeMaps = keyMaps;
50084
50380
  };
50085
50381
  const updateAfterDataIndex = () => {
50086
- const { transform } = props;
50382
+ const { lazy, showLine, transform } = props;
50087
50383
  const { afterTreeList, nodeMaps } = internalData;
50088
50384
  const childrenField = computeChildrenField.value;
50089
50385
  const mapChildrenField = computeMapChildrenField.value;
50386
+ const hasChildField = computeHasChildField.value;
50387
+ const showTreeRootLine = computeShowTreeRootLine.value;
50388
+ const treeFullSize = afterTreeList.length;
50090
50389
  let vtIndex = 0;
50091
- XEUtils113.eachTree(
50092
- afterTreeList,
50093
- (item, index, items, path, parenItem, nodes) => {
50094
- const nodeid = getNodeId(item);
50095
- const nodeItem = nodeMaps[nodeid];
50096
- if (nodeItem) {
50097
- nodeItem.items = items;
50098
- nodeItem.treeIndex = index;
50099
- nodeItem._index = vtIndex;
50100
- } else {
50101
- const rest = {
50102
- item,
50103
- index,
50104
- $index: -1,
50105
- _index: vtIndex,
50106
- items,
50107
- parent: parenItem,
50108
- nodes,
50109
- level: nodes.length - 1,
50110
- treeIndex: index,
50111
- lineCount: 0,
50112
- treeLoaded: false
50113
- };
50114
- nodeMaps[nodeid] = rest;
50390
+ function handleTreeDFS(item, index, items, parenItem, depth, isFirstRow, isLastRow, isLastChild, stackMask, seq) {
50391
+ const nodeid = getNodeId(item);
50392
+ let nodeItem = nodeMaps[nodeid];
50393
+ const nodeChilds = item[transform ? mapChildrenField : childrenField];
50394
+ const childList = XEUtils113.get(item, childrenField);
50395
+ const isExistChild = childList && childList.length > 0;
50396
+ if (nodeItem) {
50397
+ nodeItem.items = items;
50398
+ nodeItem.treeIndex = index;
50399
+ nodeItem._index = vtIndex;
50400
+ } else {
50401
+ nodeItem = {
50402
+ item,
50403
+ index,
50404
+ $index: -1,
50405
+ _index: vtIndex,
50406
+ items,
50407
+ parent: parenItem,
50408
+ nodes: [],
50409
+ level: 0,
50410
+ treeIndex: index,
50411
+ lineCount: 0,
50412
+ treeLoaded: false,
50413
+ linesMask: 0
50414
+ };
50415
+ nodeMaps[nodeid] = nodeItem;
50416
+ }
50417
+ let linesMask = stackMask >> 1;
50418
+ if (!isLastChild) {
50419
+ linesMask |= 1 << depth - 1;
50420
+ }
50421
+ nodeItem.level = depth - 1;
50422
+ nodeItem.linesMask = linesMask;
50423
+ let hasLazyChilds = false;
50424
+ let isLazyLoaded = false;
50425
+ if (lazy) {
50426
+ hasLazyChilds = item[hasChildField];
50427
+ isLazyLoaded = !!nodeItem.treeLoaded;
50428
+ }
50429
+ const isExpandable = lazy ? isLazyLoaded ? isExistChild : hasLazyChilds : isExistChild;
50430
+ nodeItem.treeLines = showLine && treeFullSize > 1 ? getTreeNodeLines(isExpandable, depth, linesMask, isFirstRow, isLastRow, showTreeRootLine) : [];
50431
+ let nextStackMask = stackMask;
50432
+ if (!isLastChild) {
50433
+ nextStackMask |= 1 << depth;
50434
+ }
50435
+ vtIndex++;
50436
+ if (nodeChilds) {
50437
+ for (let i = 0; i < nodeChilds.length; i++) {
50438
+ handleTreeDFS(nodeChilds[i], i, nodeChilds, item, depth + 1, false, false, i === nodeChilds.length - 1, nextStackMask, `${seq}.${i + 1}`);
50115
50439
  }
50116
- vtIndex++;
50117
- },
50118
- { children: transform ? mapChildrenField : childrenField }
50119
- );
50440
+ }
50441
+ }
50442
+ for (let i = 0; i < treeFullSize; i++) {
50443
+ handleTreeDFS(afterTreeList[i], i, afterTreeList, null, 1, !i, i === treeFullSize - 1, i === treeFullSize - 1, 0, "" + i);
50444
+ }
50120
50445
  };
50121
50446
  const updateAfterFullData = () => {
50122
50447
  const { transform, filterValue } = props;
@@ -51506,7 +51831,8 @@ var tree_default = (
51506
51831
  level: parentLevel + nodes.length,
51507
51832
  treeIndex: -1,
51508
51833
  lineCount: 0,
51509
- treeLoaded: false
51834
+ treeLoaded: false,
51835
+ linesMask: 0
51510
51836
  };
51511
51837
  },
51512
51838
  { children: childrenField }
@@ -52540,10 +52866,28 @@ var tree_default = (
52540
52866
  }
52541
52867
  return renderEmptyElement58($xeTree);
52542
52868
  };
52869
+ const renderLine = (nodeItem) => {
52870
+ const treeLines = nodeItem.treeLines;
52871
+ const lineVNs = [];
52872
+ if (treeLines) {
52873
+ const lineOpts = computeLineOpts.value;
52874
+ const { lineType } = lineOpts;
52875
+ treeLines.forEach((item, i) => {
52876
+ lineVNs.push(
52877
+ h94("span", {
52878
+ key: "le" + i,
52879
+ class: ["vxe-tree--node-line", `type--${lineType || "solid"}`, item.type],
52880
+ style: item.style
52881
+ })
52882
+ );
52883
+ });
52884
+ }
52885
+ return lineVNs;
52886
+ };
52543
52887
  const renderNode = (node, nodeid) => {
52544
52888
  const { lazy, drag, transform, showRadio, showCheckbox, showLine, visibleMethod, iconOpen, iconClose, iconLoaded, showIcon } = props;
52545
52889
  const { currentNode, selectRadioKey, updateExpandedFlag } = reactData;
52546
- const { afterTreeList, nodeMaps, treeExpandedMaps, treeExpandLazyLoadedMaps } = internalData;
52890
+ const { nodeMaps, treeExpandedMaps, treeExpandLazyLoadedMaps } = internalData;
52547
52891
  const tooltipOpts = computeTooltipOpts.value;
52548
52892
  const { mode: tipMode } = tooltipOpts;
52549
52893
  const radioOpts = computeRadioOpts.value;
@@ -52582,7 +52926,6 @@ var tree_default = (
52582
52926
  hasLazyChilds = node[hasChildField];
52583
52927
  isLazyLoaded = !!nodeItem.treeLoaded;
52584
52928
  }
52585
- const prevNode = nodeItem.items[nodeItem.treeIndex - 1];
52586
52929
  const nParams = { node, isExpand, $tree: $xeTree };
52587
52930
  const itemOns = {
52588
52931
  onMousedown(evnt) {
@@ -52636,20 +52979,9 @@ var tree_default = (
52636
52979
  ]
52637
52980
  },
52638
52981
  [
52639
- showLine ? h94(
52640
- "div",
52641
- {
52642
- class: "vxe-tree--node-line-wrapper"
52643
- },
52644
- [
52645
- h94("div", {
52646
- class: "vxe-tree--node-line",
52647
- style: {
52648
- height: `${getNodeId(afterTreeList[0]) === nodeid ? 1 : calcTreeLine($xeTree, node, prevNode)}px`
52649
- }
52650
- })
52651
- ]
52652
- ) : renderEmptyElement58($xeTree),
52982
+ showLine ? h94("div", {
52983
+ class: "vxe-tree--node-line-wrapper"
52984
+ }, renderLine(nodeItem)) : renderEmptyElement58($xeTree),
52653
52985
  h94(
52654
52986
  "div",
52655
52987
  {
@@ -53121,6 +53453,16 @@ var tree_default = (
53121
53453
  recalculate();
53122
53454
  });
53123
53455
  });
53456
+ const lineFlag = ref80(0);
53457
+ watch51(() => props.showLine, () => {
53458
+ lineFlag.value++;
53459
+ });
53460
+ watch51(computeShowTreeRootLine, () => {
53461
+ lineFlag.value++;
53462
+ });
53463
+ watch51(lineFlag, () => {
53464
+ updateAfterDataIndex();
53465
+ });
53124
53466
  watch51(reScrollFlag, () => {
53125
53467
  updateScrollbar().then(() => {
53126
53468
  updateScrollbar();
@@ -56870,6 +57212,11 @@ if (typeof window !== "undefined") {
56870
57212
  }
56871
57213
  }
56872
57214
  var index_default = components_exports;
57215
+
57216
+ // packages_temp/esm.index.ts
57217
+ __reExport(esm_index_exports, index_exports);
57218
+ var esm_index_default = index_exports;
57219
+ var export_VxeUI = index_exports.VxeUI;
56873
57220
  export {
56874
57221
  Alert,
56875
57222
  Anchor,
@@ -57064,12 +57411,13 @@ export {
57064
57411
  VxeTransfer,
57065
57412
  VxeTree,
57066
57413
  VxeTreeSelect,
57414
+ export_VxeUI as VxeUI,
57067
57415
  VxeUpload,
57068
57416
  VxeWatermark,
57069
57417
  Watermark,
57070
57418
  WatermarkController,
57071
57419
  config,
57072
- index_default as default,
57420
+ esm_index_default as default,
57073
57421
  drawer,
57074
57422
  install,
57075
57423
  loading,