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
|
@@ -18,7 +18,7 @@ const { warnLog, errLog } = createComponentLog('tabs')
|
|
|
18
18
|
|
|
19
19
|
const scrollbarOffsetSize = 20
|
|
20
20
|
|
|
21
|
-
export default defineVxeComponent({
|
|
21
|
+
export default /* define-vxe-component start */ defineVxeComponent({
|
|
22
22
|
name: 'VxeTabs',
|
|
23
23
|
props: {
|
|
24
24
|
modelValue: [String, Number, Boolean] as PropType<VxeTabsPropTypes.ModelValue>,
|
|
@@ -1134,4 +1134,4 @@ export default defineVxeComponent({
|
|
|
1134
1134
|
render() {
|
|
1135
1135
|
return this.renderVN()
|
|
1136
1136
|
}
|
|
1137
|
-
})
|
|
1137
|
+
}) /* define-vxe-component end */
|
package/packages/tag/src/tag.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type { VxeTagPropTypes, TagReactData, TagPrivateRef, VxeTagEmits, VxeTagP
|
|
|
7
7
|
|
|
8
8
|
const { getConfig, getIcon, createEvent, useFns, renderEmptyElement } = VxeUI
|
|
9
9
|
|
|
10
|
-
export default defineVxeComponent({
|
|
10
|
+
export default /* define-vxe-component start */ defineVxeComponent({
|
|
11
11
|
name: 'VxeTag',
|
|
12
12
|
props: {
|
|
13
13
|
border: {
|
|
@@ -201,4 +201,4 @@ export default defineVxeComponent({
|
|
|
201
201
|
render() {
|
|
202
202
|
return this.renderVN()
|
|
203
203
|
}
|
|
204
|
-
})
|
|
204
|
+
}) /* define-vxe-component end */
|
|
@@ -7,7 +7,7 @@ import type { VxeTextPropTypes, TextReactData, TextPrivateRef, VxeTextPrivateCom
|
|
|
7
7
|
|
|
8
8
|
const { getConfig, getIcon, getI18n, useFns, createEvent } = VxeUI
|
|
9
9
|
|
|
10
|
-
export default defineVxeComponent({
|
|
10
|
+
export default /* define-vxe-component start */ defineVxeComponent({
|
|
11
11
|
name: 'VxeText',
|
|
12
12
|
props: {
|
|
13
13
|
status: String as PropType<VxeTextPropTypes.Status>,
|
|
@@ -279,4 +279,4 @@ export default defineVxeComponent({
|
|
|
279
279
|
render() {
|
|
280
280
|
return this.renderVN()
|
|
281
281
|
}
|
|
282
|
-
})
|
|
282
|
+
}) /* define-vxe-component end */
|
|
@@ -7,7 +7,7 @@ import type { TextEllipsisReactData, VxeTextEllipsisEmits, VxeTextEllipsisPropTy
|
|
|
7
7
|
|
|
8
8
|
const { getConfig, createEvent, useFns, renderEmptyElement } = VxeUI
|
|
9
9
|
|
|
10
|
-
export default defineVxeComponent({
|
|
10
|
+
export default /* define-vxe-component start */ defineVxeComponent({
|
|
11
11
|
name: 'VxeTextEllipsis',
|
|
12
12
|
props: {
|
|
13
13
|
href: String as PropType<VxeTextEllipsisPropTypes.Href>,
|
|
@@ -309,4 +309,4 @@ export default defineVxeComponent({
|
|
|
309
309
|
render() {
|
|
310
310
|
return this.renderVN()
|
|
311
311
|
}
|
|
312
|
-
})
|
|
312
|
+
}) /* define-vxe-component end */
|
|
@@ -13,7 +13,7 @@ const { warnLog } = createComponentLog('textarea')
|
|
|
13
13
|
|
|
14
14
|
let autoTxtElem: HTMLDivElement
|
|
15
15
|
|
|
16
|
-
export default defineVxeComponent({
|
|
16
|
+
export default /* define-vxe-component start */ defineVxeComponent({
|
|
17
17
|
name: 'VxeTextarea',
|
|
18
18
|
props: {
|
|
19
19
|
modelValue: [String, Number] as PropType<VxeTextareaPropTypes.ModelValue>,
|
|
@@ -523,4 +523,4 @@ export default defineVxeComponent({
|
|
|
523
523
|
render() {
|
|
524
524
|
return this.renderVN()
|
|
525
525
|
}
|
|
526
|
-
})
|
|
526
|
+
}) /* define-vxe-component end */
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import XEUtils from 'xe-utils'
|
|
2
|
-
|
|
3
|
-
export class TimelineItemInfo {
|
|
4
|
-
id = XEUtils.uniqueId('timeline_item_')
|
|
5
|
-
constructor($xeTimeline: any, _vm: any) {
|
|
6
|
-
Object.assign(this, {
|
|
7
|
-
title: _vm.title,
|
|
8
|
-
content: _vm.content
|
|
9
|
-
})
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
update(name: any, value: any) {
|
|
13
|
-
this[name] = value
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
[key: string]: any
|
|
17
|
-
}
|
|
1
|
+
import XEUtils from 'xe-utils'
|
|
2
|
+
|
|
3
|
+
export class TimelineItemInfo {
|
|
4
|
+
id = XEUtils.uniqueId('timeline_item_')
|
|
5
|
+
constructor($xeTimeline: any, _vm: any) {
|
|
6
|
+
Object.assign(this, {
|
|
7
|
+
title: _vm.title,
|
|
8
|
+
content: _vm.content
|
|
9
|
+
})
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
update(name: any, value: any) {
|
|
13
|
+
this[name] = value
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
[key: string]: any
|
|
17
|
+
}
|
|
@@ -115,29 +115,47 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
115
115
|
const contentVal = getText(isOptConf ? item[contentField] : item.content)
|
|
116
116
|
const titleSlot = slots.title
|
|
117
117
|
const contentSlot = slots.content
|
|
118
|
-
return h(
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
h('div', {
|
|
131
|
-
class: 'vxe-timeline--item-wrapper'
|
|
132
|
-
}, [
|
|
118
|
+
return h(
|
|
119
|
+
'div',
|
|
120
|
+
{
|
|
121
|
+
key: index,
|
|
122
|
+
class: [
|
|
123
|
+
'vxe-timeline--item',
|
|
124
|
+
{
|
|
125
|
+
'is--last': index === itemList.length - 1
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
[
|
|
133
130
|
h('div', {
|
|
134
|
-
class: 'vxe-timeline--item-
|
|
135
|
-
}
|
|
131
|
+
class: 'vxe-timeline--item-line'
|
|
132
|
+
}),
|
|
136
133
|
h('div', {
|
|
137
|
-
class: 'vxe-timeline--item-
|
|
138
|
-
},
|
|
139
|
-
|
|
140
|
-
|
|
134
|
+
class: 'vxe-timeline--item-node'
|
|
135
|
+
}),
|
|
136
|
+
h(
|
|
137
|
+
'div',
|
|
138
|
+
{
|
|
139
|
+
class: 'vxe-timeline--item-wrapper'
|
|
140
|
+
},
|
|
141
|
+
[
|
|
142
|
+
h(
|
|
143
|
+
'div',
|
|
144
|
+
{
|
|
145
|
+
class: 'vxe-timeline--item-title'
|
|
146
|
+
},
|
|
147
|
+
titleSlot ? titleSlot({ item }) : titleVal
|
|
148
|
+
),
|
|
149
|
+
h(
|
|
150
|
+
'div',
|
|
151
|
+
{
|
|
152
|
+
class: 'vxe-timeline--item-content'
|
|
153
|
+
},
|
|
154
|
+
contentSlot ? contentSlot({ item }) : contentVal
|
|
155
|
+
)
|
|
156
|
+
]
|
|
157
|
+
)
|
|
158
|
+
]
|
|
141
159
|
)
|
|
142
160
|
}
|
|
143
161
|
|
|
@@ -146,42 +164,68 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
146
164
|
const { itemList } = reactData
|
|
147
165
|
const vSize = computeSize.value
|
|
148
166
|
const defaultSlot = slots.default
|
|
149
|
-
return h(
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
167
|
+
return h(
|
|
168
|
+
'div',
|
|
169
|
+
{
|
|
170
|
+
ref: refElem,
|
|
171
|
+
class: [
|
|
172
|
+
'vxe-timeline',
|
|
173
|
+
{
|
|
174
|
+
[`size--${vSize}`]: vSize,
|
|
175
|
+
'is--vertical': vertical,
|
|
176
|
+
'is--horizontal': !vertical
|
|
177
|
+
}
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
[
|
|
181
|
+
h(
|
|
182
|
+
'div',
|
|
183
|
+
{
|
|
184
|
+
class: 'vxe-timeline--slots'
|
|
185
|
+
},
|
|
186
|
+
defaultSlot ? defaultSlot({}) : []
|
|
187
|
+
),
|
|
188
|
+
h(
|
|
189
|
+
'div',
|
|
190
|
+
{
|
|
191
|
+
class: 'vxe-timeline--body'
|
|
192
|
+
},
|
|
193
|
+
itemList.map((item, index) => renderItem(item, index))
|
|
194
|
+
)
|
|
195
|
+
]
|
|
196
|
+
)
|
|
165
197
|
}
|
|
166
198
|
|
|
167
|
-
watch(
|
|
168
|
-
|
|
169
|
-
|
|
199
|
+
watch(
|
|
200
|
+
() => reactData.staticItems,
|
|
201
|
+
(val) => {
|
|
202
|
+
loadData(val, false)
|
|
203
|
+
}
|
|
204
|
+
)
|
|
170
205
|
|
|
171
206
|
const refOptsFlag = ref(0)
|
|
172
|
-
watch(
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
207
|
+
watch(
|
|
208
|
+
() => props.options,
|
|
209
|
+
() => {
|
|
210
|
+
refOptsFlag.value++
|
|
211
|
+
}
|
|
212
|
+
)
|
|
213
|
+
watch(
|
|
214
|
+
() => (props.options ? props.options.length : -1),
|
|
215
|
+
() => {
|
|
216
|
+
refOptsFlag.value++
|
|
217
|
+
}
|
|
218
|
+
)
|
|
178
219
|
watch(refOptsFlag, () => {
|
|
179
220
|
loadData(props.options || [], true)
|
|
180
221
|
})
|
|
181
222
|
|
|
182
|
-
watch(
|
|
183
|
-
|
|
184
|
-
|
|
223
|
+
watch(
|
|
224
|
+
() => props.reverse,
|
|
225
|
+
() => {
|
|
226
|
+
updateItems()
|
|
227
|
+
}
|
|
228
|
+
)
|
|
185
229
|
|
|
186
230
|
onMounted(() => {
|
|
187
231
|
const { staticItems } = reactData
|
|
@@ -1,41 +1,44 @@
|
|
|
1
|
-
import { watch } from 'vue'
|
|
2
|
-
import XEUtils from 'xe-utils'
|
|
3
|
-
import { TimelineItemInfo } from './timeline-info'
|
|
4
|
-
|
|
5
|
-
import type { VxeTimelineConstructor } from '../../../types'
|
|
6
|
-
|
|
7
|
-
export function isTimelineItem(item: any) {
|
|
8
|
-
return item instanceof TimelineItemInfo
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export function createTimelineItem($xeTimeline: VxeTimelineConstructor, _vm: any) {
|
|
12
|
-
return isTimelineItem(_vm) ? _vm : new TimelineItemInfo($xeTimeline, _vm)
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function watchTimelineItem(props: any, itemInfo: TimelineItemInfo) {
|
|
16
|
-
Object.keys(props).forEach((name) => {
|
|
17
|
-
watch(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
1
|
+
import { watch } from 'vue'
|
|
2
|
+
import XEUtils from 'xe-utils'
|
|
3
|
+
import { TimelineItemInfo } from './timeline-info'
|
|
4
|
+
|
|
5
|
+
import type { VxeTimelineConstructor } from '../../../types'
|
|
6
|
+
|
|
7
|
+
export function isTimelineItem(item: any) {
|
|
8
|
+
return item instanceof TimelineItemInfo
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function createTimelineItem($xeTimeline: VxeTimelineConstructor, _vm: any) {
|
|
12
|
+
return isTimelineItem(_vm) ? _vm : new TimelineItemInfo($xeTimeline, _vm)
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function watchTimelineItem(props: any, itemInfo: TimelineItemInfo) {
|
|
16
|
+
Object.keys(props).forEach((name) => {
|
|
17
|
+
watch(
|
|
18
|
+
() => props[name],
|
|
19
|
+
(value: any) => {
|
|
20
|
+
itemInfo.update(name, value)
|
|
21
|
+
}
|
|
22
|
+
)
|
|
23
|
+
})
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function assembleTimelineItem($xeTimeline: VxeTimelineConstructor, el: HTMLDivElement, itemInfo: TimelineItemInfo) {
|
|
27
|
+
const reactData = $xeTimeline.reactData
|
|
28
|
+
const { staticItems } = reactData
|
|
29
|
+
const parentElem = el.parentNode
|
|
30
|
+
if (parentElem && staticItems) {
|
|
31
|
+
staticItems.splice(XEUtils.arrayIndexOf(parentElem.children, el), 0, itemInfo)
|
|
32
|
+
reactData.staticItems = staticItems.slice(0)
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function destroyTimelineItem($xeTimeline: VxeTimelineConstructor, itemInfo: TimelineItemInfo) {
|
|
37
|
+
const { reactData } = $xeTimeline
|
|
38
|
+
const { staticItems } = reactData
|
|
39
|
+
const index = XEUtils.findIndexOf(staticItems, (item: any) => item.id === itemInfo.id)
|
|
40
|
+
if (index > -1) {
|
|
41
|
+
staticItems.splice(index, 1)
|
|
42
|
+
}
|
|
43
|
+
reactData.staticItems = staticItems.slice(0)
|
|
44
|
+
}
|
package/packages/tip/src/tip.ts
CHANGED
|
@@ -8,7 +8,7 @@ import type { VxeTipPropTypes, TipReactData, VxeTipEmits, TipMethods, TipPrivate
|
|
|
8
8
|
|
|
9
9
|
const { getConfig, useFns, createEvent, renderEmptyElement } = VxeUI
|
|
10
10
|
|
|
11
|
-
export default defineVxeComponent({
|
|
11
|
+
export default /* define-vxe-component start */ defineVxeComponent({
|
|
12
12
|
name: 'VxeTip',
|
|
13
13
|
props: {
|
|
14
14
|
title: {
|
|
@@ -147,4 +147,4 @@ export default defineVxeComponent({
|
|
|
147
147
|
render() {
|
|
148
148
|
return this.renderVN()
|
|
149
149
|
}
|
|
150
|
-
})
|
|
150
|
+
}) /* define-vxe-component end */
|
|
@@ -37,7 +37,7 @@ function createInternalData(): TooltipInternalData {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export default defineVxeComponent({
|
|
40
|
+
export default /* define-vxe-component start */ defineVxeComponent({
|
|
41
41
|
name: 'VxeTooltip',
|
|
42
42
|
props: {
|
|
43
43
|
modelValue: Boolean,
|
|
@@ -666,4 +666,4 @@ export default defineVxeComponent({
|
|
|
666
666
|
render() {
|
|
667
667
|
return this.renderVN()
|
|
668
668
|
}
|
|
669
|
-
})
|
|
669
|
+
}) /* define-vxe-component end */
|
|
@@ -7,7 +7,7 @@ import type { TourReactData, VxeTourPropTypes, TourPrivateRef, VxeTourEmits, Vxe
|
|
|
7
7
|
|
|
8
8
|
const { getConfig, createEvent } = VxeUI
|
|
9
9
|
|
|
10
|
-
export default defineVxeComponent({
|
|
10
|
+
export default /* define-vxe-component start */ defineVxeComponent({
|
|
11
11
|
name: 'VxeTour',
|
|
12
12
|
props: {
|
|
13
13
|
size: {
|
|
@@ -67,4 +67,4 @@ export default defineVxeComponent({
|
|
|
67
67
|
render() {
|
|
68
68
|
return this.renderVN()
|
|
69
69
|
}
|
|
70
|
-
})
|
|
70
|
+
}) /* define-vxe-component end */
|
|
@@ -15,7 +15,7 @@ function createInternalData(): TransferInternalData {
|
|
|
15
15
|
return {}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export default defineVxeComponent({
|
|
18
|
+
export default /* define-vxe-component start */ defineVxeComponent({
|
|
19
19
|
name: 'VxeTransfer',
|
|
20
20
|
props: {
|
|
21
21
|
modelValue: Array as PropType<VxeTransferPropTypes.ModelValue>,
|
|
@@ -127,4 +127,4 @@ export default defineVxeComponent({
|
|
|
127
127
|
render() {
|
|
128
128
|
return this.renderVN()
|
|
129
129
|
}
|
|
130
|
-
})
|
|
130
|
+
}) /* define-vxe-component end */
|
|
@@ -106,7 +106,7 @@ let crossTreeDragNodeObj: {
|
|
|
106
106
|
$newTree: (VxeTreeConstructor & VxeTreePrivateMethods) | null
|
|
107
107
|
} | null = null
|
|
108
108
|
|
|
109
|
-
export default defineVxeComponent({
|
|
109
|
+
export default /* define-vxe-component start */ defineVxeComponent({
|
|
110
110
|
name: 'VxeTree',
|
|
111
111
|
props: {
|
|
112
112
|
data: Array as PropType<VxeTreePropTypes.Data>,
|
|
@@ -4074,4 +4074,4 @@ export default defineVxeComponent({
|
|
|
4074
4074
|
render() {
|
|
4075
4075
|
return this.renderVN()
|
|
4076
4076
|
}
|
|
4077
|
-
})
|
|
4077
|
+
}) /* define-vxe-component end */
|
|
@@ -73,7 +73,7 @@ function createInternalData(): TreeSelectInternalData {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
export default defineVxeComponent({
|
|
76
|
+
export default /* define-vxe-component start */ defineVxeComponent({
|
|
77
77
|
name: 'VxeTreeSelect',
|
|
78
78
|
props: {
|
|
79
79
|
modelValue: [String, Number, Array] as PropType<VxeTreeSelectPropTypes.ModelValue>,
|
|
@@ -1214,4 +1214,4 @@ export default defineVxeComponent({
|
|
|
1214
1214
|
render() {
|
|
1215
1215
|
return this.renderVN()
|
|
1216
1216
|
}
|
|
1217
|
-
})
|
|
1217
|
+
}) /* define-vxe-component end */
|
package/packages/ui/index.ts
CHANGED
|
@@ -830,7 +830,14 @@ setIcon({
|
|
|
830
830
|
// list
|
|
831
831
|
LIST_DRAG: iconPrefix + 'drag-handle',
|
|
832
832
|
LIST_DRAG_STATUS_NODE: iconPrefix + 'sort',
|
|
833
|
-
LIST_DRAG_DISABLED: iconPrefix + 'no-drop'
|
|
833
|
+
LIST_DRAG_DISABLED: iconPrefix + 'no-drop',
|
|
834
|
+
|
|
835
|
+
// steps
|
|
836
|
+
STEPS_SEPARATOR: iconPrefix + 'arrow-right',
|
|
837
|
+
STEPS_STATUS_FINISH: iconPrefix + 'success-circle',
|
|
838
|
+
STEPS_STATUS_FINISH_CURRENT: iconPrefix + 'success-circle-fill',
|
|
839
|
+
STEPS_STATUS_ERROR: iconPrefix + 'error-circle',
|
|
840
|
+
STEPS_STATUS_ERROR_CURRENT: iconPrefix + 'error-circle-fill'
|
|
834
841
|
})
|
|
835
842
|
|
|
836
843
|
export default VxeUI
|
|
@@ -54,7 +54,7 @@ function createInternalData(): UploadInternalData {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
export default defineVxeComponent({
|
|
57
|
+
export default /* define-vxe-component start */ defineVxeComponent({
|
|
58
58
|
name: 'VxeUpload',
|
|
59
59
|
props: {
|
|
60
60
|
modelValue: [Array, String, Object] as PropType<VxeUploadPropTypes.ModelValue>,
|
|
@@ -2268,4 +2268,4 @@ export default defineVxeComponent({
|
|
|
2268
2268
|
render() {
|
|
2269
2269
|
return this.renderVN()
|
|
2270
2270
|
}
|
|
2271
|
-
})
|
|
2271
|
+
}) /* define-vxe-component end */
|
|
@@ -9,7 +9,7 @@ import type { WatermarkReactData, VxeWatermarkEmits, WatermarkMethods, VxeWaterm
|
|
|
9
9
|
|
|
10
10
|
const { getConfig, createEvent, globalEvents } = VxeUI
|
|
11
11
|
|
|
12
|
-
export default defineVxeComponent({
|
|
12
|
+
export default /* define-vxe-component start */ defineVxeComponent({
|
|
13
13
|
name: 'VxeWatermark',
|
|
14
14
|
props: {
|
|
15
15
|
width: String as PropType<VxeWatermarkPropTypes.Width>,
|
|
@@ -193,4 +193,4 @@ export default defineVxeComponent({
|
|
|
193
193
|
render() {
|
|
194
194
|
return this.renderVN()
|
|
195
195
|
}
|
|
196
|
-
})
|
|
196
|
+
}) /* define-vxe-component end */
|
package/styles/all.scss
CHANGED
|
File without changes
|