vxe-pc-ui 4.20.34 → 4.20.35
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.
- package/dist/all.esm.js +45718 -45038
- package/dist/all.esm.min.js +3 -3
- package/dist/style.css +307 -1
- package/dist/style.mini.css +1 -1
- package/es/alert/src/alert.js +117 -114
- package/es/anchor/src/anchor-link.js +110 -107
- package/es/anchor/src/anchor.js +212 -209
- package/es/avatar/src/avatar.js +132 -129
- package/es/backtop/src/backtop.js +267 -264
- package/es/badge/src/badge.js +102 -99
- package/es/breadcrumb/src/breadcrumb-item.js +104 -101
- package/es/breadcrumb/src/breadcrumb.js +70 -67
- package/es/button/src/button-group.js +88 -85
- package/es/calendar/src/calendar.js +1371 -1368
- package/es/card/src/card.js +235 -232
- package/es/carousel/src/carousel-item.js +78 -75
- package/es/carousel/src/carousel.js +392 -389
- package/es/cascader/src/cascader.js +1667 -1664
- package/es/checkbox/src/button.js +198 -195
- package/es/checkbox/src/checkbox.js +181 -178
- package/es/checkbox/src/group.js +210 -207
- package/es/collapse/src/collapse-pane.js +98 -95
- package/es/collapse/src/collapse.js +340 -337
- package/es/color-picker/src/color-picker.js +1116 -1113
- package/es/components.d.ts +1 -0
- package/es/components.js +3 -0
- package/es/context-menu/src/context-menu.js +601 -598
- package/es/countdown/src/countdown.js +224 -221
- package/es/date-panel/src/date-panel.js +1905 -1902
- package/es/date-picker/src/date-picker.js +1537 -1534
- package/es/date-range-picker/src/date-range-picker.js +1412 -1409
- package/es/divider/src/divider.js +80 -77
- package/es/drawer/src/drawer.js +778 -775
- package/es/empty/src/empty.js +100 -97
- package/es/form/src/form-group.js +74 -71
- package/es/form/src/form-item.js +76 -73
- package/es/form/src/form.js +789 -786
- package/es/icon/src/icon.js +59 -56
- package/es/icon/style.css +1 -1
- package/es/icon/style.mini.css +1 -1
- package/es/icon-picker/src/icon-picker.js +719 -716
- package/es/image/src/group.js +130 -127
- package/es/image/src/image.js +243 -240
- package/es/image/src/preview.js +627 -624
- package/es/index.esm.js +2 -0
- package/es/index.js +2 -0
- package/es/input/src/input.js +2700 -2697
- package/es/layout-aside/src/layout-aside.js +138 -135
- package/es/layout-body/src/layout-body.js +145 -142
- package/es/layout-container/src/layout-container.js +71 -68
- package/es/layout-footer/src/layout-footer.js +60 -57
- package/es/layout-header/src/layout-header.js +58 -55
- package/es/link/src/link.js +131 -128
- package/es/list/src/list.js +2174 -2171
- package/es/loading/src/loading.js +141 -138
- package/es/mention/src/mention.js +49 -46
- package/es/menu/src/menu.js +799 -796
- package/es/modal/src/modal.js +1519 -1527
- package/es/notice-bar/src/notice-bar.js +168 -165
- package/es/number-input/src/number-input.js +1094 -1091
- package/es/pager/src/pager.js +767 -764
- package/es/password-input/src/password-input.js +431 -428
- package/es/print/src/page-break.js +63 -60
- package/es/print/src/print.js +303 -300
- package/es/pulldown/src/pulldown.js +403 -400
- package/es/radio/src/button.js +214 -211
- package/es/radio/src/group.js +195 -192
- package/es/radio/src/radio.js +194 -191
- package/es/rate/src/rate.js +164 -161
- package/es/result/src/result.js +116 -113
- package/es/row/src/col.js +133 -130
- package/es/row/src/row.js +111 -108
- package/es/scrollbar/src/scrollbar.js +518 -515
- package/es/segmented/src/segmented.js +240 -237
- package/es/select/src/optgroup.js +44 -41
- package/es/select/src/option.js +39 -36
- package/es/select/src/select.js +1914 -1896
- package/es/slider/src/slider.js +419 -416
- package/es/space/src/space.js +190 -187
- package/es/splitter/src/splitter-panel.js +146 -143
- package/es/splitter/src/splitter.js +917 -914
- package/es/step-item/index.d.ts +76 -0
- package/es/step-item/index.js +17 -0
- package/es/steps/index.d.ts +288 -34
- package/es/steps/src/step-info.d.ts +6 -0
- package/es/steps/src/step-info.js +20 -0
- package/es/steps/src/step-item.d.ts +14 -0
- package/es/steps/src/step-item.js +39 -0
- package/es/steps/src/steps.d.ts +68 -8
- package/es/steps/src/steps.js +299 -47
- package/es/steps/src/util.d.ts +7 -0
- package/es/steps/src/util.js +44 -0
- package/es/steps/style.css +297 -0
- package/es/steps/style.mini.css +1 -0
- package/es/style.css +307 -1
- package/es/style.mini.css +1 -1
- package/es/switch/src/switch.js +228 -225
- package/es/table-select/src/table-select.js +865 -862
- package/es/table-transfer/src/table-transfer.js +61 -58
- package/es/tabs/src/tab-pane.js +102 -99
- package/es/tabs/src/tabs.js +936 -933
- package/es/tag/src/tag.js +163 -160
- package/es/text/src/text.js +232 -229
- package/es/text-ellipsis/src/text-ellipsis.js +252 -249
- package/es/textarea/src/textarea.js +434 -431
- package/es/timeline/src/timeline.js +74 -36
- package/es/timeline/src/util.js +7 -4
- package/es/tip/src/tip.js +117 -114
- package/es/tooltip/src/tooltip.js +552 -549
- package/es/tour/src/tour.js +49 -46
- package/es/transfer/src/transfer.js +95 -92
- package/es/tree/src/tree.js +3379 -3376
- package/es/tree-select/src/tree-select.js +969 -966
- package/es/ui/index.js +8 -2
- package/es/ui/src/log.js +1 -1
- package/es/upload/src/upload.js +1791 -1788
- package/es/vxe-icon/style.css +1 -1
- package/es/vxe-icon/style.mini.css +1 -1
- package/es/vxe-steps/style.css +297 -0
- package/es/vxe-steps/style.mini.css +1 -0
- package/es/watermark/src/watermark.js +158 -155
- package/lib/alert/src/alert.js +117 -114
- package/lib/anchor/src/anchor-link.js +110 -107
- package/lib/anchor/src/anchor.js +212 -209
- package/lib/avatar/src/avatar.js +132 -129
- package/lib/backtop/src/backtop.js +267 -264
- package/lib/badge/src/badge.js +102 -99
- package/lib/breadcrumb/src/breadcrumb-item.js +104 -101
- package/lib/breadcrumb/src/breadcrumb.js +70 -67
- package/lib/button/src/button-group.js +88 -85
- package/lib/calendar/src/calendar.js +1371 -1368
- package/lib/card/src/card.js +235 -232
- package/lib/carousel/src/carousel-item.js +78 -75
- package/lib/carousel/src/carousel.js +392 -389
- package/lib/cascader/src/cascader.js +1665 -1662
- package/lib/checkbox/src/button.js +198 -195
- package/lib/checkbox/src/checkbox.js +181 -178
- package/lib/checkbox/src/group.js +210 -207
- package/lib/collapse/src/collapse-pane.js +98 -95
- package/lib/collapse/src/collapse.js +340 -337
- package/lib/color-picker/src/color-picker.js +1116 -1113
- package/lib/components.js +3 -0
- package/lib/context-menu/src/context-menu.js +601 -598
- package/lib/countdown/src/countdown.js +224 -221
- package/lib/date-panel/src/date-panel.js +1905 -1902
- package/lib/date-picker/src/date-picker.js +1537 -1534
- package/lib/date-range-picker/src/date-range-picker.js +1412 -1409
- package/lib/divider/src/divider.js +80 -77
- package/lib/drawer/src/drawer.js +778 -775
- package/lib/empty/src/empty.js +100 -97
- package/lib/form/src/form-group.js +74 -71
- package/lib/form/src/form-item.js +76 -73
- package/lib/form/src/form.js +789 -786
- package/lib/icon/src/icon.js +59 -56
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.mini.css +1 -1
- package/lib/icon-picker/src/icon-picker.js +719 -716
- package/lib/image/src/group.js +130 -127
- package/lib/image/src/image.js +243 -240
- package/lib/image/src/preview.js +627 -624
- package/lib/index.common.js +2 -0
- package/lib/index.js +2 -0
- package/lib/index.umd.js +47411 -46732
- package/lib/index.umd.min.js +3 -3
- package/lib/input/src/input.js +2700 -2697
- package/lib/layout-aside/src/layout-aside.js +138 -135
- package/lib/layout-body/src/layout-body.js +145 -142
- package/lib/layout-container/src/layout-container.js +71 -68
- package/lib/layout-footer/src/layout-footer.js +60 -57
- package/lib/layout-header/src/layout-header.js +58 -55
- package/lib/link/src/link.js +131 -128
- package/lib/list/src/list.js +2173 -2170
- package/lib/loading/src/loading.js +141 -138
- package/lib/mention/src/mention.js +49 -46
- package/lib/menu/src/menu.js +799 -796
- package/lib/modal/src/modal.js +1519 -1527
- package/lib/notice-bar/src/notice-bar.js +168 -165
- package/lib/number-input/src/number-input.js +1094 -1091
- package/lib/pager/src/pager.js +767 -764
- package/lib/password-input/src/password-input.js +431 -428
- package/lib/print/src/page-break.js +63 -60
- package/lib/print/src/print.js +303 -300
- package/lib/pulldown/src/pulldown.js +403 -400
- package/lib/radio/src/button.js +214 -211
- package/lib/radio/src/group.js +195 -192
- package/lib/radio/src/radio.js +194 -191
- package/lib/rate/src/rate.js +164 -161
- package/lib/result/src/result.js +116 -113
- package/lib/row/src/col.js +133 -130
- package/lib/row/src/row.js +111 -108
- package/lib/scrollbar/src/scrollbar.js +518 -515
- package/lib/segmented/src/segmented.js +240 -237
- package/lib/select/src/optgroup.js +44 -41
- package/lib/select/src/option.js +39 -36
- package/lib/select/src/select.js +1915 -1897
- package/lib/slider/src/slider.js +419 -416
- package/lib/space/src/space.js +190 -187
- package/lib/splitter/src/splitter-panel.js +146 -143
- package/lib/splitter/src/splitter.js +917 -914
- package/lib/step-item/index.js +47 -0
- package/lib/steps/src/step-info.js +49 -0
- package/lib/steps/src/step-item.js +59 -0
- package/lib/steps/src/steps.js +298 -46
- package/lib/steps/src/util.js +74 -0
- package/lib/steps/style/style.css +297 -0
- package/lib/steps/style/style.mini.css +1 -0
- package/lib/style.css +307 -1
- package/lib/style.mini.css +1 -1
- package/lib/switch/src/switch.js +228 -225
- package/lib/table-select/src/table-select.js +865 -862
- package/lib/table-transfer/src/table-transfer.js +61 -58
- package/lib/tabs/src/tab-pane.js +102 -99
- package/lib/tabs/src/tabs.js +936 -933
- package/lib/tag/src/tag.js +163 -160
- package/lib/text/src/text.js +232 -229
- package/lib/text-ellipsis/src/text-ellipsis.js +252 -249
- package/lib/textarea/src/textarea.js +434 -431
- package/lib/timeline/src/timeline.js +74 -36
- package/lib/timeline/src/util.js +7 -4
- package/lib/tip/src/tip.js +117 -114
- package/lib/tooltip/src/tooltip.js +552 -549
- package/lib/tour/src/tour.js +49 -46
- package/lib/transfer/src/transfer.js +95 -92
- package/lib/tree/src/tree.js +3379 -3376
- package/lib/tree-select/src/tree-select.js +969 -966
- package/lib/ui/index.js +8 -2
- package/lib/ui/src/log.js +1 -1
- package/lib/upload/src/upload.js +1788 -1785
- package/lib/vxe-icon/style/style.css +1 -1
- package/lib/vxe-icon/style/style.mini.css +1 -1
- package/lib/vxe-steps/style/style.css +297 -0
- package/lib/vxe-steps/style/style.mini.css +1 -0
- package/lib/watermark/src/watermark.js +158 -155
- package/package.json +1 -1
- package/packages/alert/src/alert.ts +2 -2
- package/packages/anchor/src/anchor-link.ts +2 -2
- package/packages/anchor/src/anchor.ts +2 -2
- package/packages/avatar/src/avatar.ts +2 -2
- package/packages/backtop/src/backtop.ts +2 -2
- package/packages/badge/src/badge.ts +2 -2
- package/packages/breadcrumb/src/breadcrumb-item.ts +2 -2
- package/packages/breadcrumb/src/breadcrumb.ts +2 -2
- package/packages/button/src/button-group.ts +2 -2
- package/packages/calendar/src/calendar.ts +2 -2
- package/packages/card/src/card.ts +2 -2
- package/packages/carousel/src/carousel-item.ts +2 -2
- package/packages/carousel/src/carousel.ts +2 -2
- package/packages/cascader/src/cascader.ts +2 -2
- package/packages/checkbox/src/button.ts +3 -15
- package/packages/checkbox/src/checkbox.ts +2 -2
- package/packages/checkbox/src/group.ts +2 -2
- package/packages/collapse/src/collapse-pane.ts +2 -2
- package/packages/collapse/src/collapse.ts +2 -2
- package/packages/color-picker/src/color-picker.ts +2 -2
- package/packages/components.ts +3 -0
- package/packages/context-menu/src/context-menu.ts +3 -16
- package/packages/countdown/src/countdown.ts +2 -2
- package/packages/date-panel/src/date-panel.ts +2 -2
- package/packages/date-picker/src/date-picker.ts +2 -2
- package/packages/date-range-picker/src/date-range-picker.ts +2 -2
- package/packages/divider/src/divider.ts +2 -2
- package/packages/drawer/src/drawer.ts +2 -2
- package/packages/empty/src/empty.ts +2 -2
- package/packages/form/src/form-group.ts +2 -2
- package/packages/form/src/form-item.ts +2 -2
- package/packages/form/src/form.ts +2 -2
- package/packages/icon/src/icon.ts +2 -2
- package/packages/icon-picker/src/icon-picker.ts +2 -2
- package/packages/image/src/group.ts +2 -2
- package/packages/image/src/image.ts +2 -2
- package/packages/image/src/preview.ts +3 -16
- package/packages/index.ts +2 -2
- package/packages/input/src/input.ts +2 -2
- package/packages/layout-aside/src/layout-aside.ts +2 -2
- package/packages/layout-body/src/layout-body.ts +2 -2
- package/packages/layout-container/src/layout-container.ts +3 -14
- package/packages/layout-footer/src/layout-footer.ts +2 -2
- package/packages/layout-header/src/layout-header.ts +2 -2
- package/packages/link/src/link.ts +2 -2
- package/packages/list/src/list.ts +2 -2
- package/packages/loading/src/loading.ts +2 -2
- package/packages/mention/src/mention.ts +2 -2
- package/packages/menu/src/menu.ts +2 -2
- package/packages/modal/src/modal.ts +5 -20
- package/packages/notice-bar/src/notice-bar.ts +2 -2
- package/packages/number-input/src/number-input.ts +3 -17
- package/packages/pager/src/pager.ts +2 -2
- package/packages/password-input/src/password-input.ts +2 -2
- package/packages/print/src/page-break.ts +2 -2
- package/packages/print/src/print.ts +2 -2
- package/packages/pulldown/src/pulldown.ts +2 -2
- package/packages/radio/src/button.ts +3 -16
- package/packages/radio/src/group.ts +3 -17
- package/packages/radio/src/radio.ts +2 -2
- package/packages/rate/src/rate.ts +2 -2
- package/packages/result/src/result.ts +2 -2
- package/packages/row/src/col.ts +2 -2
- package/packages/row/src/row.ts +2 -2
- package/packages/scrollbar/src/scrollbar.ts +3 -4
- package/packages/segmented/src/segmented.ts +2 -2
- package/packages/select/src/optgroup.ts +2 -2
- package/packages/select/src/option.ts +2 -2
- package/packages/select/src/select.ts +33 -19
- package/packages/slider/src/slider.ts +2 -2
- package/packages/space/src/space.ts +2 -2
- package/packages/splitter/src/splitter-panel.ts +2 -2
- package/packages/splitter/src/splitter.ts +2 -2
- package/packages/step-item/index.ts +16 -0
- package/packages/steps/src/step-info.ts +18 -0
- package/packages/steps/src/step-item.ts +41 -0
- package/packages/steps/src/steps.ts +273 -13
- package/packages/steps/src/util.ts +44 -0
- package/packages/switch/src/switch.ts +2 -2
- package/packages/table-select/src/table-select.ts +2 -2
- package/packages/table-transfer/src/table-transfer.ts +3 -15
- package/packages/tabs/src/tab-pane.ts +2 -2
- package/packages/tabs/src/tabs.ts +2 -2
- package/packages/tag/src/tag.ts +2 -2
- package/packages/text/src/text.ts +2 -2
- package/packages/text-ellipsis/src/text-ellipsis.ts +2 -2
- package/packages/textarea/src/textarea.ts +2 -2
- package/packages/timeline/src/timeline-info.ts +17 -17
- package/packages/timeline/src/timeline.ts +93 -49
- package/packages/timeline/src/util.ts +44 -41
- package/packages/tip/src/tip.ts +2 -2
- package/packages/tooltip/src/tooltip.ts +2 -2
- package/packages/tour/src/tour.ts +2 -2
- package/packages/transfer/src/transfer.ts +2 -2
- package/packages/tree/src/tree.ts +2 -2
- package/packages/tree-select/src/tree-select.ts +2 -2
- package/packages/ui/index.ts +8 -1
- package/packages/upload/src/upload.ts +2 -2
- package/packages/watermark/src/watermark.ts +2 -2
- package/styles/all.scss +1 -0
- package/styles/components/step-item.scss +0 -0
- package/styles/components/steps.scss +354 -0
- package/styles/theme/base.scss +9 -0
- package/types/all.d.ts +3 -0
- package/types/components/gantt.d.ts +1 -3
- package/types/components/select.d.ts +1 -13
- package/types/components/step-item.d.ts +72 -0
- package/types/components/steps.d.ts +67 -8
- package/types/components/table.d.ts +7 -66
- package/types/handles/form-design.d.ts +1 -4
- package/types/ui/global-config.d.ts +2 -0
- package/types/ui/global-icon.d.ts +7 -0
- /package/dist/{iconfont.1793330162657.ttf → iconfont.1793359478136.ttf} +0 -0
- /package/dist/{iconfont.1793330162657.woff → iconfont.1793359478136.woff} +0 -0
- /package/dist/{iconfont.1793330162657.woff2 → iconfont.1793359478136.woff2} +0 -0
- /package/es/icon/{iconfont.1793330162657.ttf → iconfont.1793359478136.ttf} +0 -0
- /package/es/icon/{iconfont.1793330162657.woff → iconfont.1793359478136.woff} +0 -0
- /package/es/icon/{iconfont.1793330162657.woff2 → iconfont.1793359478136.woff2} +0 -0
- /package/es/{iconfont.1793330162657.ttf → iconfont.1793359478136.ttf} +0 -0
- /package/es/{iconfont.1793330162657.woff → iconfont.1793359478136.woff} +0 -0
- /package/es/{iconfont.1793330162657.woff2 → iconfont.1793359478136.woff2} +0 -0
- /package/es/vxe-icon/{iconfont.1793330162657.ttf → iconfont.1793359478136.ttf} +0 -0
- /package/es/vxe-icon/{iconfont.1793330162657.woff → iconfont.1793359478136.woff} +0 -0
- /package/es/vxe-icon/{iconfont.1793330162657.woff2 → iconfont.1793359478136.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1793330162657.ttf → iconfont.1793359478136.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1793330162657.woff → iconfont.1793359478136.woff} +0 -0
- /package/lib/icon/style/{iconfont.1793330162657.woff2 → iconfont.1793359478136.woff2} +0 -0
- /package/lib/{iconfont.1793330162657.ttf → iconfont.1793359478136.ttf} +0 -0
- /package/lib/{iconfont.1793330162657.woff → iconfont.1793359478136.woff} +0 -0
- /package/lib/{iconfont.1793330162657.woff2 → iconfont.1793359478136.woff2} +0 -0
- /package/lib/vxe-icon/style/{iconfont.1793330162657.ttf → iconfont.1793359478136.ttf} +0 -0
- /package/lib/vxe-icon/style/{iconfont.1793330162657.woff → iconfont.1793359478136.woff} +0 -0
- /package/lib/vxe-icon/style/{iconfont.1793330162657.woff2 → iconfont.1793359478136.woff2} +0 -0
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
// 局部变量
|
|
2
|
+
.vxe-steps {
|
|
3
|
+
--vxe-ui-steps-current-font-size: var(--vxe-ui-font-size-default);
|
|
4
|
+
--vxe-ui-steps-current-padding: var(--vxe-ui-form-item-padding-default);
|
|
5
|
+
|
|
6
|
+
&.size--xlarge {
|
|
7
|
+
--vxe-ui-steps-current-font-size: var(--vxe-ui-font-size-xlarge);
|
|
8
|
+
--vxe-ui-steps-current-padding: var(--vxe-ui-form-item-padding-xlarge);
|
|
9
|
+
}
|
|
10
|
+
&.size--large {
|
|
11
|
+
--vxe-ui-steps-current-font-size: var(--vxe-ui-font-size-large);
|
|
12
|
+
--vxe-ui-steps-current-padding: var(--vxe-ui-form-item-padding-large);
|
|
13
|
+
}
|
|
14
|
+
&.size--medium {
|
|
15
|
+
--vxe-ui-steps-current-font-size: var(--vxe-ui-font-size-medium);
|
|
16
|
+
--vxe-ui-steps-current-padding: var(--vxe-ui-form-item-padding-medium);
|
|
17
|
+
}
|
|
18
|
+
&.size--small {
|
|
19
|
+
--vxe-ui-steps-current-font-size: var(--vxe-ui-font-size-small);
|
|
20
|
+
--vxe-ui-steps-current-padding: var(--vxe-ui-form-item-padding-small);
|
|
21
|
+
}
|
|
22
|
+
&.size--mini {
|
|
23
|
+
--vxe-ui-steps-current-font-size: var(--vxe-ui-font-size-mini);
|
|
24
|
+
--vxe-ui-steps-current-padding: var(--vxe-ui-form-item-padding-mini);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.vxe-steps {
|
|
29
|
+
--vxe-ui-steps-current-icon-size: var(--vxe-ui-steps-icon-dot-size);
|
|
30
|
+
&.is--number {
|
|
31
|
+
--vxe-ui-steps-current-icon-size: var(--vxe-ui-steps-icon-num-size);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.vxe-steps {
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
padding: var(--vxe-ui-steps-current-padding) 0;
|
|
39
|
+
font-size: var(--vxe-ui-steps-current-font-size);
|
|
40
|
+
color: var(--vxe-ui-font-color);
|
|
41
|
+
|
|
42
|
+
.vxe-steps--body {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.vxe-steps--item {
|
|
48
|
+
position: relative;
|
|
49
|
+
display: flex;
|
|
50
|
+
padding-bottom: calc(var(--vxe-ui-steps-current-icon-size) + 0.5em);
|
|
51
|
+
&:last-child {
|
|
52
|
+
padding-bottom: 0;
|
|
53
|
+
}
|
|
54
|
+
&.is--last {
|
|
55
|
+
.vxe-steps--item-line {
|
|
56
|
+
display: none;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// ---- 连线 ----
|
|
62
|
+
.vxe-steps--item-line {
|
|
63
|
+
position: absolute;
|
|
64
|
+
left: calc(var(--vxe-ui-steps-current-icon-size) / 2 - var(--vxe-ui-steps-line-width) / 2);
|
|
65
|
+
top: var(--vxe-ui-steps-current-icon-size);
|
|
66
|
+
bottom: 0;
|
|
67
|
+
width: var(--vxe-ui-steps-line-width);
|
|
68
|
+
background-color: var(--vxe-ui-base-border-color);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// ---- 图标容器 ----
|
|
72
|
+
.vxe-steps--item-icon {
|
|
73
|
+
position: relative;
|
|
74
|
+
z-index: 1;
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
justify-content: center;
|
|
78
|
+
flex-shrink: 0;
|
|
79
|
+
width: var(--vxe-ui-steps-current-icon-size);
|
|
80
|
+
height: var(--vxe-ui-steps-current-icon-size);
|
|
81
|
+
margin-right: 0.75em;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// 小圆点(默认空心,背景用布局色以遮挡连线穿过)
|
|
85
|
+
.vxe-steps--item-icon-dot {
|
|
86
|
+
width: var(--vxe-ui-steps-icon-dot-size);
|
|
87
|
+
height: var(--vxe-ui-steps-icon-dot-size);
|
|
88
|
+
border: var(--vxe-ui-steps-line-width) solid currentColor;
|
|
89
|
+
border-radius: 50%;
|
|
90
|
+
background-color: var(--vxe-ui-layout-background-color);
|
|
91
|
+
box-sizing: border-box;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// 序号(圆环)
|
|
95
|
+
.vxe-steps--item-icon-num {
|
|
96
|
+
display: flex;
|
|
97
|
+
align-items: center;
|
|
98
|
+
justify-content: center;
|
|
99
|
+
width: var(--vxe-ui-steps-icon-num-size);
|
|
100
|
+
height: var(--vxe-ui-steps-icon-num-size);
|
|
101
|
+
border-radius: 50%;
|
|
102
|
+
border: var(--vxe-ui-steps-line-width) solid currentColor;
|
|
103
|
+
background-color: var(--vxe-ui-layout-background-color);
|
|
104
|
+
box-sizing: border-box;
|
|
105
|
+
font-size: 0.875em;
|
|
106
|
+
font-weight: 600;
|
|
107
|
+
line-height: 1;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// 状态图标
|
|
111
|
+
.vxe-steps--item-icon-status {
|
|
112
|
+
line-height: 1;
|
|
113
|
+
background-color: var(--vxe-ui-layout-background-color);
|
|
114
|
+
i {
|
|
115
|
+
font-size: var(--vxe-ui-steps-icon-num-size);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.vxe-steps--item-wrapper {
|
|
120
|
+
flex: 1;
|
|
121
|
+
min-width: 0;
|
|
122
|
+
padding-top: 0.125em;
|
|
123
|
+
}
|
|
124
|
+
.vxe-steps--item-title {
|
|
125
|
+
font-weight: 600;
|
|
126
|
+
line-height: 1.4;
|
|
127
|
+
}
|
|
128
|
+
.vxe-steps--item-content {
|
|
129
|
+
margin-top: 0.25em;
|
|
130
|
+
line-height: 1.5;
|
|
131
|
+
word-break: break-word;
|
|
132
|
+
color: var(--vxe-ui-font-lighten-color);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// ---- 横向 ----
|
|
136
|
+
&.is--horizontal {
|
|
137
|
+
.vxe-steps--body {
|
|
138
|
+
flex-direction: row;
|
|
139
|
+
align-items: flex-start;
|
|
140
|
+
}
|
|
141
|
+
.vxe-steps--item {
|
|
142
|
+
--vxe-ui-steps-item-padding-x: calc(var(--vxe-ui-steps-current-icon-size) + 0.5em);
|
|
143
|
+
flex: 1;
|
|
144
|
+
flex-direction: column;
|
|
145
|
+
align-items: center;
|
|
146
|
+
padding-bottom: 0;
|
|
147
|
+
padding-right: var(--vxe-ui-steps-item-padding-x);
|
|
148
|
+
text-align: center;
|
|
149
|
+
&:last-child {
|
|
150
|
+
padding-right: 0;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
// 连线
|
|
154
|
+
.vxe-steps--item-line {
|
|
155
|
+
left: calc(50% - var(--vxe-ui-steps-item-padding-x) / 2);
|
|
156
|
+
right: calc(-50% + var(--vxe-ui-steps-item-padding-x) / 2);
|
|
157
|
+
top: calc(var(--vxe-ui-steps-current-icon-size) / 2 - var(--vxe-ui-steps-line-width) / 2);
|
|
158
|
+
bottom: auto;
|
|
159
|
+
width: auto;
|
|
160
|
+
height: var(--vxe-ui-steps-line-width);
|
|
161
|
+
}
|
|
162
|
+
.vxe-steps--item-icon {
|
|
163
|
+
margin-right: 0;
|
|
164
|
+
margin-bottom: 0.5em;
|
|
165
|
+
}
|
|
166
|
+
.vxe-steps--item-wrapper {
|
|
167
|
+
width: 100%;
|
|
168
|
+
padding-top: 0;
|
|
169
|
+
}
|
|
170
|
+
.vxe-steps--item-content {
|
|
171
|
+
margin-top: 0.125em;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
// 序号 / 圆点尺寸切换
|
|
177
|
+
.vxe-steps--item {
|
|
178
|
+
color: var(--vxe-ui-steps-status-default-color);
|
|
179
|
+
&.status--finish {
|
|
180
|
+
.vxe-steps--item-icon-num {
|
|
181
|
+
color: var(--vxe-ui-steps-status-finish-color);
|
|
182
|
+
border-color: var(--vxe-ui-steps-status-finish-color);
|
|
183
|
+
}
|
|
184
|
+
.vxe-steps--item-title {
|
|
185
|
+
color: var(--vxe-ui-steps-status-finish-color);
|
|
186
|
+
}
|
|
187
|
+
.vxe-steps--item-icon-status {
|
|
188
|
+
color: var(--vxe-ui-steps-status-finish-color);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
// error:小圆点空心危险色
|
|
192
|
+
&.status--error {
|
|
193
|
+
.vxe-steps--item-icon-num {
|
|
194
|
+
color: var(--vxe-ui-steps-status-error-color);
|
|
195
|
+
border-color: var(--vxe-ui-steps-status-error-color);
|
|
196
|
+
}
|
|
197
|
+
.vxe-steps--item-title {
|
|
198
|
+
color: var(--vxe-ui-steps-status-error-color);
|
|
199
|
+
}
|
|
200
|
+
.vxe-steps--item-icon-status {
|
|
201
|
+
color: var(--vxe-ui-steps-status-error-color);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
&.status--process {
|
|
205
|
+
.vxe-steps--item-icon-dot {
|
|
206
|
+
background-color: var(--vxe-ui-steps-status-process-color);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
&.is--finish {
|
|
211
|
+
&.status--finish {
|
|
212
|
+
.vxe-steps--item-icon-num {
|
|
213
|
+
color: var(--vxe-ui-steps-status-finish-color);
|
|
214
|
+
}
|
|
215
|
+
.vxe-steps--item-icon-status {
|
|
216
|
+
color: var(--vxe-ui-steps-status-finish-color);
|
|
217
|
+
}
|
|
218
|
+
.vxe-steps--item-icon-dot {
|
|
219
|
+
border-color: var(--vxe-ui-steps-status-finish-color);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
&.status--error {
|
|
223
|
+
.vxe-steps--item-icon-num {
|
|
224
|
+
color: var(--vxe-ui-steps-status-error-color);
|
|
225
|
+
}
|
|
226
|
+
.vxe-steps--item-icon-status {
|
|
227
|
+
color: var(--vxe-ui-steps-status-error-color);
|
|
228
|
+
}
|
|
229
|
+
.vxe-steps--item-icon-dot {
|
|
230
|
+
border-color: var(--vxe-ui-steps-status-error-color);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
.vxe-steps--item-icon-num {
|
|
234
|
+
color: var(--vxe-ui-font-primary-color);
|
|
235
|
+
}
|
|
236
|
+
.vxe-steps--item-icon-dot {
|
|
237
|
+
border-color: var(--vxe-ui-font-primary-color);
|
|
238
|
+
}
|
|
239
|
+
.vxe-steps--item-line {
|
|
240
|
+
background-color: var(--vxe-ui-font-primary-color);
|
|
241
|
+
}
|
|
242
|
+
.vxe-steps--item-icon-status {
|
|
243
|
+
color: var(--vxe-ui-font-primary-color);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
// current:小圆点实心
|
|
248
|
+
&.is--current {
|
|
249
|
+
&.status--finish {
|
|
250
|
+
.vxe-steps--item-icon-num {
|
|
251
|
+
background-color: var(--vxe-ui-steps-status-finish-color);
|
|
252
|
+
color: var(--vxe-ui-layout-background-color);
|
|
253
|
+
border-color: var(--vxe-ui-steps-status-finish-color);
|
|
254
|
+
}
|
|
255
|
+
.vxe-steps--item-title {
|
|
256
|
+
color: var(--vxe-ui-steps-status-finish-color);
|
|
257
|
+
}
|
|
258
|
+
.vxe-steps--item-icon-status {
|
|
259
|
+
color: var(--vxe-ui-steps-status-finish-color);
|
|
260
|
+
}
|
|
261
|
+
.vxe-steps--item-icon-dot {
|
|
262
|
+
border-color: var(--vxe-ui-steps-status-finish-color);
|
|
263
|
+
background-color: var(--vxe-ui-steps-status-finish-color);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
&.status--error {
|
|
267
|
+
.vxe-steps--item-icon-num {
|
|
268
|
+
background-color: var(--vxe-ui-steps-status-error-color);
|
|
269
|
+
color: var(--vxe-ui-layout-background-color);
|
|
270
|
+
border-color: var(--vxe-ui-steps-status-error-color);
|
|
271
|
+
}
|
|
272
|
+
.vxe-steps--item-title {
|
|
273
|
+
color: var(--vxe-ui-steps-status-error-color);
|
|
274
|
+
}
|
|
275
|
+
.vxe-steps--item-icon-status {
|
|
276
|
+
color: var(--vxe-ui-steps-status-error-color);
|
|
277
|
+
}
|
|
278
|
+
.vxe-steps--item-icon-dot {
|
|
279
|
+
border-color: var(--vxe-ui-steps-status-error-color);
|
|
280
|
+
background-color: var(--vxe-ui-steps-status-error-color);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
.vxe-steps--item-icon-dot {
|
|
284
|
+
border-color: var(--vxe-ui-font-primary-color);
|
|
285
|
+
background-color: var(--vxe-ui-font-primary-color);
|
|
286
|
+
}
|
|
287
|
+
.vxe-steps--item-icon-num {
|
|
288
|
+
background-color: var(--vxe-ui-font-primary-color);
|
|
289
|
+
color: var(--vxe-ui-layout-background-color);
|
|
290
|
+
border-color: var(--vxe-ui-font-primary-color);
|
|
291
|
+
}
|
|
292
|
+
.vxe-steps--item-title {
|
|
293
|
+
color: var(--vxe-ui-font-primary-color);
|
|
294
|
+
font-weight: 700;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
// 分隔符节点
|
|
300
|
+
.vxe-steps--item-separator {
|
|
301
|
+
display: flex;
|
|
302
|
+
align-items: center;
|
|
303
|
+
flex: none;
|
|
304
|
+
margin: 0 0.5em;
|
|
305
|
+
color: var(--vxe-ui-font-placeholder-color);
|
|
306
|
+
white-space: nowrap;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
// 简单类型
|
|
310
|
+
.vxe-steps {
|
|
311
|
+
&.is--simple {
|
|
312
|
+
.vxe-steps--item-icon,
|
|
313
|
+
.vxe-steps--item-line,
|
|
314
|
+
.vxe-steps--item-content {
|
|
315
|
+
display: none;
|
|
316
|
+
}
|
|
317
|
+
.vxe-steps--item {
|
|
318
|
+
padding-bottom: 0;
|
|
319
|
+
}
|
|
320
|
+
.vxe-steps--item-wrapper {
|
|
321
|
+
padding-top: 0;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
&.is--horizontal {
|
|
325
|
+
.vxe-steps--body {
|
|
326
|
+
flex-wrap: wrap;
|
|
327
|
+
align-items: center;
|
|
328
|
+
}
|
|
329
|
+
.vxe-steps--item {
|
|
330
|
+
flex: none;
|
|
331
|
+
flex-direction: row;
|
|
332
|
+
align-items: center;
|
|
333
|
+
padding-right: 0;
|
|
334
|
+
text-align: left;
|
|
335
|
+
}
|
|
336
|
+
.vxe-steps--item-wrapper {
|
|
337
|
+
width: auto;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
&.is--vertical {
|
|
342
|
+
.vxe-steps--item {
|
|
343
|
+
padding-bottom: 0.5em;
|
|
344
|
+
&:last-child {
|
|
345
|
+
padding-bottom: 0;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.vxe-steps--slots {
|
|
353
|
+
display: none;
|
|
354
|
+
}
|
package/styles/theme/base.scss
CHANGED
|
@@ -333,4 +333,13 @@
|
|
|
333
333
|
--vxe-ui-scrollbar-track-background-color: transparent;
|
|
334
334
|
--vxe-ui-scrollbar-track-padding: 0;
|
|
335
335
|
--vxe-ui-scrollbar-thumb-border-radius: var(--vxe-ui-base-border-radius);
|
|
336
|
+
|
|
337
|
+
/*steps*/
|
|
338
|
+
--vxe-ui-steps-line-width: 0.125em;
|
|
339
|
+
--vxe-ui-steps-icon-dot-size: 0.6em;
|
|
340
|
+
--vxe-ui-steps-icon-num-size: 1.5em;
|
|
341
|
+
--vxe-ui-steps-status-default-color: var(--vxe-ui-font-placeholder-color);
|
|
342
|
+
--vxe-ui-steps-status-process-color: var(--vxe-ui-font-primary-color);
|
|
343
|
+
--vxe-ui-steps-status-finish-color: var(--vxe-ui-status-success-color);
|
|
344
|
+
--vxe-ui-steps-status-error-color: var(--vxe-ui-status-error-color);
|
|
336
345
|
}
|
package/types/all.d.ts
CHANGED
|
@@ -77,6 +77,7 @@ import VxeSlider from './components/slider'
|
|
|
77
77
|
import VxeSpace from './components/space'
|
|
78
78
|
import VxeRate from './components/rate'
|
|
79
79
|
import VxeSteps from './components/steps'
|
|
80
|
+
import VxeStepItem from './components/step-item'
|
|
80
81
|
import VxeSwitch from './components/switch'
|
|
81
82
|
import VxeTabPane from './components/tab-pane'
|
|
82
83
|
import VxeTableSelect from './components/table-select'
|
|
@@ -354,6 +355,7 @@ interface UIComponents {
|
|
|
354
355
|
VxeSlider: typeof VxeSlider
|
|
355
356
|
VxeSpace: typeof VxeSpace
|
|
356
357
|
VxeSteps: typeof VxeSteps
|
|
358
|
+
VxeStepItem: typeof VxeStepItem
|
|
357
359
|
VxeSwitch: typeof VxeSwitch
|
|
358
360
|
VxeTabPane: typeof VxeTabPane
|
|
359
361
|
VxeTableSelect: typeof VxeTableSelect
|
|
@@ -531,6 +533,7 @@ export * from './components/split-pane'
|
|
|
531
533
|
export * from './components/slider'
|
|
532
534
|
export * from './components/space'
|
|
533
535
|
export * from './components/steps'
|
|
536
|
+
export * from './components/step-item'
|
|
534
537
|
export * from './components/switch'
|
|
535
538
|
export * from './components/tab-pane'
|
|
536
539
|
export * from './components/table-select'
|
|
@@ -337,9 +337,7 @@ export namespace VxeGanttPropTypes {
|
|
|
337
337
|
/**
|
|
338
338
|
* 任务条样式
|
|
339
339
|
*/
|
|
340
|
-
barStyle?:
|
|
341
|
-
| VxeGanttDefines.DefaultBarStyleConfig
|
|
342
|
-
| ((params: { source: string; type: string; scaleType: VxeGanttDefines.ColumnScaleType; $gantt: VxeGanttConstructor<D>; row: D; rowIndex: number; $rowIndex: number; _rowIndex: number }) => void | null | undefined | VxeGanttDefines.DefaultBarStyleConfig)
|
|
340
|
+
barStyle?: VxeGanttDefines.DefaultBarStyleConfig | ((params: { source: string; type: string; scaleType: VxeGanttDefines.ColumnScaleType; $gantt: VxeGanttConstructor<D>; row: D; rowIndex: number; $rowIndex: number; _rowIndex: number }) => void | null | undefined | VxeGanttDefines.DefaultBarStyleConfig)
|
|
343
341
|
/**
|
|
344
342
|
* 是否启用拖拽移动日期
|
|
345
343
|
*/
|
|
@@ -1,17 +1,5 @@
|
|
|
1
1
|
import { RenderFunction, SetupContext, Ref } from 'vue'
|
|
2
|
-
import {
|
|
3
|
-
DefineVxeComponentApp,
|
|
4
|
-
DefineVxeComponentOptions,
|
|
5
|
-
DefineVxeComponentInstance,
|
|
6
|
-
VxeComponentBaseOptions,
|
|
7
|
-
VxeComponentEventParams,
|
|
8
|
-
VxeComponentSizeType,
|
|
9
|
-
VxeComponentStyleType,
|
|
10
|
-
ValueOf,
|
|
11
|
-
VxeComponentIsVScrollbar,
|
|
12
|
-
VxeUseInitVScrollbarReactData,
|
|
13
|
-
VxeUseInitVScrollbarInternalData
|
|
14
|
-
} from '@vxe-ui/core'
|
|
2
|
+
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, VxeComponentSizeType, VxeComponentStyleType, ValueOf, VxeComponentIsVScrollbar, VxeUseInitVScrollbarReactData, VxeUseInitVScrollbarInternalData } from '@vxe-ui/core'
|
|
15
3
|
import { VxeOptgroupProps } from './optgroup'
|
|
16
4
|
import { VxeOptionProps, VxeOptionPropTypes } from './option'
|
|
17
5
|
import { VxeScrollbarProps } from './scrollbar'
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { RenderFunction, SetupContext, Ref } from 'vue'
|
|
2
|
+
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams } from '@vxe-ui/core'
|
|
3
|
+
|
|
4
|
+
/* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
|
|
5
|
+
|
|
6
|
+
export declare const VxeStepItem: DefineVxeComponentApp<VxeStepItemProps, VxeStepItemEventProps, VxeStepItemSlots, VxeStepItemMethods>
|
|
7
|
+
export type VxeStepItemComponent = DefineVxeComponentOptions<VxeStepItemProps, VxeStepItemEventProps>
|
|
8
|
+
|
|
9
|
+
export type VxeStepItemInstance = DefineVxeComponentInstance<VxeStepItemProps, VxeStepItemConstructor>
|
|
10
|
+
|
|
11
|
+
export interface VxeStepItemConstructor extends VxeComponentBaseOptions, VxeStepItemMethods {
|
|
12
|
+
props: VxeStepItemProps
|
|
13
|
+
context: SetupContext<VxeStepItemEmits>
|
|
14
|
+
getRefMaps(): StepItemPrivateRef
|
|
15
|
+
getComputeMaps(): VxeStepItemPrivateComputed
|
|
16
|
+
renderVN: RenderFunction
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface StepItemPrivateRef {
|
|
20
|
+
refElem: Ref<HTMLDivElement | undefined>
|
|
21
|
+
}
|
|
22
|
+
export interface VxeStepItemPrivateRef extends StepItemPrivateRef {}
|
|
23
|
+
|
|
24
|
+
export namespace VxeStepItemPropTypes {
|
|
25
|
+
export type Title = string | number
|
|
26
|
+
export type Content = string | number
|
|
27
|
+
export type Status = 'default' | 'process' | 'finish' | 'error'
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface VxeStepItemProps {
|
|
31
|
+
title?: VxeStepItemPropTypes.Title
|
|
32
|
+
content?: VxeStepItemPropTypes.Content
|
|
33
|
+
status?: VxeStepItemPropTypes.Status
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface StepItemPrivateComputed {}
|
|
37
|
+
export interface VxeStepItemPrivateComputed extends StepItemPrivateComputed {}
|
|
38
|
+
|
|
39
|
+
export interface StepItemMethods {}
|
|
40
|
+
export interface VxeStepItemMethods extends StepItemMethods {}
|
|
41
|
+
|
|
42
|
+
export interface StepItemPrivateMethods {}
|
|
43
|
+
export interface VxeStepItemPrivateMethods extends StepItemPrivateMethods {}
|
|
44
|
+
|
|
45
|
+
export type VxeStepItemEmits = []
|
|
46
|
+
|
|
47
|
+
export namespace VxeStepItemDefines {
|
|
48
|
+
export interface StepItemEventParams extends VxeComponentEventParams {
|
|
49
|
+
$stepItem: VxeStepItemConstructor
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export type VxeStepItemEventProps = {}
|
|
54
|
+
|
|
55
|
+
export interface VxeStepItemListeners {}
|
|
56
|
+
|
|
57
|
+
export namespace VxeStepItemSlotTypes {
|
|
58
|
+
export interface DefaultSlotParams {
|
|
59
|
+
item: any
|
|
60
|
+
}
|
|
61
|
+
export interface TitleSlotParams {
|
|
62
|
+
item: any
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface VxeStepItemSlots {
|
|
67
|
+
default?: (params: VxeStepItemSlotTypes.DefaultSlotParams) => any
|
|
68
|
+
title?: (params: VxeStepItemSlotTypes.TitleSlotParams) => any
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export const StepItem: typeof VxeStepItem
|
|
72
|
+
export default VxeStepItem
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RenderFunction, SetupContext, Ref } from 'vue'
|
|
2
|
-
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams } from '@vxe-ui/core'
|
|
2
|
+
import { DefineVxeComponentApp, DefineVxeComponentOptions, ValueOf, DefineVxeComponentInstance, VxeComponentSizeType, VxeComponentBaseOptions, VxeComponentEventParams } from '@vxe-ui/core'
|
|
3
|
+
import { VxeStepItemPropTypes } from './step-item'
|
|
3
4
|
|
|
4
5
|
/* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
|
|
5
6
|
|
|
@@ -12,6 +13,7 @@ export interface VxeStepsConstructor extends VxeComponentBaseOptions, VxeStepsMe
|
|
|
12
13
|
props: VxeStepsProps
|
|
13
14
|
context: SetupContext<VxeStepsEmits>
|
|
14
15
|
reactData: StepsReactData
|
|
16
|
+
internalData: StepsInternalData
|
|
15
17
|
getRefMaps(): StepsPrivateRef
|
|
16
18
|
getComputeMaps(): StepsPrivateComputed
|
|
17
19
|
renderVN: RenderFunction
|
|
@@ -22,24 +24,72 @@ export interface StepsPrivateRef {
|
|
|
22
24
|
}
|
|
23
25
|
export interface VxeStepsPrivateRef extends StepsPrivateRef {}
|
|
24
26
|
|
|
25
|
-
export namespace VxeStepsPropTypes {
|
|
27
|
+
export namespace VxeStepsPropTypes {
|
|
28
|
+
export type Size = VxeComponentSizeType
|
|
29
|
+
export type ModelValue = string | number | null
|
|
30
|
+
export type Type = '' | 'simple' | string
|
|
31
|
+
export type Vertical = boolean
|
|
32
|
+
export interface OptionProps {
|
|
33
|
+
title?: string
|
|
34
|
+
content?: string
|
|
35
|
+
status?: string
|
|
36
|
+
}
|
|
37
|
+
type Option = Record<string, any>
|
|
38
|
+
export type Options = Option[]
|
|
39
|
+
|
|
40
|
+
export type Separator = string | number
|
|
41
|
+
export type ShowNumber = boolean
|
|
42
|
+
export type ShowIcon = boolean
|
|
43
|
+
}
|
|
26
44
|
|
|
27
|
-
export interface VxeStepsProps {
|
|
45
|
+
export interface VxeStepsProps {
|
|
46
|
+
size?: VxeStepsPropTypes.Size
|
|
47
|
+
modelValue?: VxeStepsPropTypes.ModelValue
|
|
48
|
+
options?: VxeStepsPropTypes.Options
|
|
49
|
+
type?: VxeStepsPropTypes.Type
|
|
50
|
+
vertical?: VxeStepsPropTypes.Vertical
|
|
51
|
+
optionProps?: VxeStepsPropTypes.OptionProps
|
|
52
|
+
/**
|
|
53
|
+
* 步骤条分割符
|
|
54
|
+
*/
|
|
55
|
+
separator?: VxeStepsPropTypes.Separator
|
|
56
|
+
showNumber?: VxeStepsPropTypes.ShowNumber
|
|
57
|
+
showIcon?: VxeStepsPropTypes.ShowIcon
|
|
58
|
+
}
|
|
28
59
|
|
|
29
60
|
export interface StepsPrivateComputed {}
|
|
30
61
|
export interface VxeStepsPrivateComputed extends StepsPrivateComputed {}
|
|
31
62
|
|
|
32
|
-
export interface StepsReactData {
|
|
63
|
+
export interface StepsReactData {
|
|
64
|
+
itemList: any[]
|
|
65
|
+
staticItems: VxeStepsDefines.ItemInfo[]
|
|
66
|
+
isOptConf: boolean
|
|
67
|
+
}
|
|
68
|
+
export interface StepsInternalData {
|
|
69
|
+
fullData: any[]
|
|
70
|
+
}
|
|
33
71
|
|
|
34
|
-
export interface StepsMethods {
|
|
72
|
+
export interface StepsMethods {
|
|
73
|
+
dispatchEvent(type: ValueOf<VxeStepsEmits>, params: Record<string, any>, evnt: Event | null): void
|
|
74
|
+
}
|
|
35
75
|
export interface VxeStepsMethods extends StepsMethods {}
|
|
36
76
|
|
|
37
77
|
export interface StepsPrivateMethods {}
|
|
38
78
|
export interface VxeStepsPrivateMethods extends StepsPrivateMethods {}
|
|
39
79
|
|
|
40
|
-
export type VxeStepsEmits = [
|
|
80
|
+
export type VxeStepsEmits = [
|
|
81
|
+
'update:modelValue'
|
|
82
|
+
]
|
|
41
83
|
|
|
42
84
|
export namespace VxeStepsDefines {
|
|
85
|
+
export interface ItemInfo {
|
|
86
|
+
id: string
|
|
87
|
+
title?: string | number
|
|
88
|
+
content?: string | number
|
|
89
|
+
status?: VxeStepItemPropTypes.Status
|
|
90
|
+
[key: string]: any
|
|
91
|
+
}
|
|
92
|
+
|
|
43
93
|
export interface StepsEventParams extends VxeComponentEventParams {
|
|
44
94
|
$steps: VxeStepsConstructor
|
|
45
95
|
}
|
|
@@ -52,11 +102,20 @@ export interface VxeStepsListeners {}
|
|
|
52
102
|
export namespace VxeStepsEvents {}
|
|
53
103
|
|
|
54
104
|
export namespace VxeStepsSlotTypes {
|
|
55
|
-
export interface
|
|
105
|
+
export interface TitleSlotParams {
|
|
106
|
+
item: any
|
|
107
|
+
}
|
|
108
|
+
export interface ContentSlotParams {
|
|
109
|
+
item: any
|
|
110
|
+
}
|
|
111
|
+
export interface SeparatorSlotParams {}
|
|
56
112
|
}
|
|
57
113
|
|
|
58
114
|
export interface VxeStepsSlots {
|
|
59
|
-
default?: (params:
|
|
115
|
+
default?: (params: Record<string, any>) => any
|
|
116
|
+
title?: (params: VxeStepsSlotTypes.TitleSlotParams) => any
|
|
117
|
+
content?: (params: VxeStepsSlotTypes.ContentSlotParams) => any
|
|
118
|
+
separator?: (params: VxeStepsSlotTypes.SeparatorSlotParams) => any
|
|
60
119
|
}
|
|
61
120
|
|
|
62
121
|
export const Steps: typeof VxeSteps
|