@opentiny/vue-docs 2.2.6 → 2.2.7
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/demos/mobile/app/alert/basic-usage.vue +26 -0
- package/demos/mobile/app/alert/center.vue +13 -0
- package/demos/mobile/app/alert/custom-close.vue +25 -7
- package/demos/mobile/app/alert/target.vue +30 -0
- package/demos/mobile/app/alert/webdoc/alert.js +50 -0
- package/demos/mobile/app/checkbox/basic-usage.vue +33 -0
- package/demos/mobile/app/checkbox/{default.vue → checkbox-group.vue} +5 -10
- package/demos/mobile/app/checkbox/{label.vue → disabled.vue} +4 -3
- package/demos/mobile/app/checkbox/event-change.vue +2 -2
- package/demos/mobile/app/checkbox/icon-position.vue +49 -0
- package/demos/mobile/app/checkbox/indeterminate.vue +2 -2
- package/demos/mobile/app/checkbox/true-false-label.vue +2 -2
- package/demos/mobile/app/checkbox/webdoc/checkbox.js +88 -46
- package/demos/mobile/app/input/basic-usage.vue +32 -0
- package/demos/mobile/app/input/clearable.vue +7 -7
- package/demos/mobile/app/input/counter.vue +15 -8
- package/demos/mobile/app/input/disabled.vue +31 -0
- package/demos/mobile/app/input/events.vue +32 -13
- package/demos/mobile/app/input/max-min-length.vue +5 -5
- package/demos/mobile/app/input/methods.vue +53 -0
- package/demos/mobile/app/input/native-attributes.vue +62 -0
- package/demos/mobile/app/input/prefix-suffix-icon.vue +35 -0
- package/demos/mobile/app/input/show-password.vue +5 -5
- package/demos/mobile/app/input/slots.vue +65 -0
- package/demos/mobile/app/input/textarea-rows-cols.vue +31 -0
- package/demos/mobile/app/input/textarea-scalable.vue +41 -0
- package/demos/mobile/app/input/{type-be-form-select.vue → type-select.vue} +10 -10
- package/demos/mobile/app/input/type.vue +60 -0
- package/demos/mobile/app/input/validate-event.vue +5 -30
- package/demos/mobile/app/input/webdoc/input.js +281 -312
- package/demos/mobile/app/label/base.vue +24 -0
- package/demos/mobile/app/label/bold.vue +23 -0
- package/demos/mobile/app/label/color.vue +34 -0
- package/demos/mobile/app/label/decimal.vue +28 -0
- package/demos/mobile/app/label/ellipsis.vue +31 -0
- package/demos/mobile/app/label/limit.vue +24 -0
- package/demos/mobile/app/label/position.vue +30 -0
- package/demos/mobile/app/label/required.vue +24 -0
- package/demos/mobile/app/label/size.vue +31 -0
- package/demos/mobile/app/label/type.vue +30 -0
- package/demos/mobile/app/label/webdoc/label.cn.md +11 -0
- package/demos/mobile/app/label/webdoc/label.en.md +11 -0
- package/demos/mobile/app/label/webdoc/label.js +247 -0
- package/demos/mobile/app/label/wholeline.vue +24 -0
- package/demos/mobile/app/mask/basic-usage.vue +38 -0
- package/demos/mobile/app/mask/click-no-hide.vue +32 -0
- package/demos/mobile/app/mask/slot-default.vue +37 -0
- package/demos/mobile/app/mask/webdoc/mask.cn.md +11 -0
- package/demos/mobile/app/mask/webdoc/mask.en.md +11 -0
- package/demos/mobile/app/mask/webdoc/mask.js +114 -0
- package/demos/mobile/app/mask/z-index.vue +30 -0
- package/demos/mobile/app/tag/basic-usage.vue +27 -0
- package/demos/mobile/app/tag/different-color.vue +30 -0
- package/demos/mobile/app/tag/max-width.vue +26 -0
- package/demos/mobile/app/tag/mini.vue +27 -0
- package/demos/mobile/app/tag/webdoc/tag.cn.md +7 -0
- package/demos/mobile/app/tag/webdoc/tag.en.md +7 -0
- package/demos/mobile/app/tag/webdoc/tag.js +96 -0
- package/demos/mobile/menus.js +5 -2
- package/demos/mobile-first/app/alert/webdoc/alert.js +77 -36
- package/demos/mobile-first/app/cascader-view/webdoc/cascader-view.js +249 -10
- package/demos/mobile-first/app/exception/webdoc/exception.js +94 -22
- package/demos/mobile-first/app/flowchart/webdoc/flowchart.js +24 -25
- package/demos/mobile-first/app/image/webdoc/image.js +126 -57
- package/demos/mobile-first/app/pull-refresh/webdoc/pull-refresh.js +223 -9
- package/demos/mobile-first/app/tooltip/webdoc/tooltip.js +47 -53
- package/demos/pc/app/action-menu/icon.spec.ts +38 -0
- package/demos/pc/app/action-menu/webdoc/action-menu.cn.md +1 -1
- package/demos/pc/app/action-menu/webdoc/action-menu.en.md +1 -1
- package/demos/pc/app/action-menu/webdoc/action-menu.js +16 -66
- package/demos/pc/app/alert/custom-close-composition-api.vue +2 -2
- package/demos/pc/app/alert/custom-close.vue +3 -4
- package/demos/pc/app/amount/webdoc/amount.js +1 -1
- package/demos/pc/app/anchor/basic-usage-composition-api.vue +11 -2
- package/demos/pc/app/anchor/basic-usage.vue +11 -2
- package/demos/pc/app/anchor/is-affix-composition-api.vue +8 -2
- package/demos/pc/app/anchor/is-affix.vue +8 -2
- package/demos/pc/app/anchor/webdoc/anchor.js +3 -3
- package/demos/pc/app/area/webdoc/area.js +1 -1
- package/demos/pc/app/bulletin-board/active-name.spec.ts +1 -2
- package/demos/pc/app/bulletin-board/base.spec.ts +2 -3
- package/demos/pc/app/bulletin-board/icon.spec.ts +1 -1
- package/demos/pc/app/bulletin-board/more-link.spec.ts +8 -2
- package/demos/pc/app/bulletin-board/route.spec.ts +3 -3
- package/demos/pc/app/bulletin-board/tab-title.spec.ts +1 -1
- package/demos/pc/app/bulletin-board/title.spec.ts +1 -1
- package/demos/pc/app/bulletin-board/url.spec.ts +3 -3
- package/demos/pc/app/bulletin-board/webdoc/bulletin-board.js +12 -11
- package/demos/pc/app/calendar/webdoc/calendar.js +1 -1
- package/demos/pc/app/calendar-view/webdoc/calendar-view.js +3 -2
- package/demos/pc/app/carousel/autoplay.spec.ts +1 -1
- package/demos/pc/app/carousel/basic-usage.spec.ts +12 -21
- package/demos/pc/app/carousel/card-mode.spec.ts +16 -37
- package/demos/pc/app/carousel/carousel-arrow-always.spec.ts +1 -1
- package/demos/pc/app/carousel/carousel-arrow-hover.spec.ts +1 -1
- package/demos/pc/app/carousel/carousel-arrow-never.spec.ts +1 -1
- package/demos/pc/app/carousel/carousel-events.spec.ts +5 -3
- package/demos/pc/app/carousel/close-loop.spec.ts +1 -1
- package/demos/pc/app/carousel/indicator-trigger.spec.ts +1 -1
- package/demos/pc/app/carousel/manual-play.spec.ts +1 -1
- package/demos/pc/app/carousel/play-interval.spec.ts +7 -11
- package/demos/pc/app/carousel/show-title.spec.ts +1 -1
- package/demos/pc/app/carousel/up-down-carousel.spec.ts +1 -1
- package/demos/pc/app/carousel/webdoc/carousel.js +1 -1
- package/demos/pc/app/cascader/webdoc/cascader.js +1 -1
- package/demos/pc/app/chart/webdoc/chart-attributes-demo.js +1 -1
- package/demos/pc/app/chart/webdoc/chart-autonavi-map.js +1 -1
- package/demos/pc/app/chart/webdoc/chart-baidu-map.js +1 -1
- package/demos/pc/app/chart/webdoc/chart-bar.js +1 -1
- package/demos/pc/app/chart/webdoc/chart-boxplot.js +1 -1
- package/demos/pc/app/chart/webdoc/chart-candle.js +1 -1
- package/demos/pc/app/chart/webdoc/chart-events.js +1 -1
- package/demos/pc/app/chart/webdoc/chart-funnel.js +1 -1
- package/demos/pc/app/chart/webdoc/chart-gauge.js +1 -1
- package/demos/pc/app/chart/webdoc/chart-graph.js +1 -1
- package/demos/pc/app/chart/webdoc/chart-heatmap.js +1 -1
- package/demos/pc/app/chart/webdoc/chart-histogram.js +1 -1
- package/demos/pc/app/chart/webdoc/chart-line.js +1 -1
- package/demos/pc/app/chart/webdoc/chart-liquidfill.js +1 -1
- package/demos/pc/app/chart/webdoc/chart-map.js +1 -1
- package/demos/pc/app/chart/webdoc/chart-pie.js +1 -1
- package/demos/pc/app/chart/webdoc/chart-question.js +1 -1
- package/demos/pc/app/chart/webdoc/chart-radar.js +1 -1
- package/demos/pc/app/chart/webdoc/chart-ring.js +1 -1
- package/demos/pc/app/chart/webdoc/chart-sankey.js +1 -1
- package/demos/pc/app/chart/webdoc/chart-scatter.js +1 -1
- package/demos/pc/app/chart/webdoc/chart-sunburst.js +1 -1
- package/demos/pc/app/chart/webdoc/chart-tree.js +1 -1
- package/demos/pc/app/chart/webdoc/chart-waterfall.js +1 -1
- package/demos/pc/app/chart/webdoc/chart-wordcloud.js +1 -1
- package/demos/pc/app/chart/webdoc/chart.js +1 -1
- package/demos/pc/app/color/webdoc/color.js +1 -1
- package/demos/pc/app/color-picker/alpha.spec.ts +14 -0
- package/demos/pc/app/color-picker/base.spec.ts +12 -0
- package/demos/pc/app/color-picker/default-visible.spec.ts +8 -0
- package/demos/pc/app/color-picker/dynamic-color-change.spec.ts +9 -0
- package/demos/pc/app/color-picker/event.spec.ts +10 -0
- package/demos/pc/app/color-picker/history.spec.ts +3 -3
- package/demos/pc/app/color-picker/predefine.spec.ts +2 -2
- package/demos/pc/app/color-picker/webdoc/color-picker.js +0 -10
- package/demos/pc/app/color-select-panel/alpha.spec.ts +9 -0
- package/demos/pc/app/color-select-panel/base.spec.ts +9 -0
- package/demos/pc/app/color-select-panel/event.spec.ts +12 -0
- package/demos/pc/app/color-select-panel/history.spec.ts +15 -0
- package/demos/pc/app/color-select-panel/predefine.spec.ts +25 -0
- package/demos/pc/app/color-select-panel/webdoc/color-select-panel.js +0 -10
- package/demos/pc/app/company/webdoc/company.js +1 -1
- package/demos/pc/app/config-provider/webdoc/config-provider.cn.md +2 -2
- package/demos/pc/app/config-provider/webdoc/config-provider.js +2 -9
- package/demos/pc/app/container/webdoc/container.js +1 -1
- package/demos/pc/app/count-api.js +34 -0
- package/demos/pc/app/country/webdoc/country.js +1 -1
- package/demos/pc/app/credit-card-form/webdoc/credit-card-form.js +1 -1
- package/demos/pc/app/crop/aspect-ratio-composition-api.vue +8 -0
- package/demos/pc/app/crop/aspect-ratio.spec.ts +14 -0
- package/demos/pc/app/crop/aspect-ratio.vue +9 -0
- package/demos/pc/app/crop/auto-crop-area.spec.ts +15 -0
- package/demos/pc/app/crop/basic-usage.spec.ts +14 -0
- package/demos/pc/app/crop/crop-meth.spec.ts +19 -0
- package/demos/pc/app/crop/drag-mode-composition-api.vue +1 -1
- package/demos/pc/app/crop/drag-mode.spec.ts +16 -0
- package/demos/pc/app/crop/drag-mode.vue +1 -1
- package/demos/pc/app/crop/event-about-crop-composition-api.vue +9 -0
- package/demos/pc/app/crop/event-about-crop.spec.ts +15 -0
- package/demos/pc/app/crop/event-about-crop.vue +8 -0
- package/demos/pc/app/crop/event-ready.spec.ts +14 -0
- package/demos/pc/app/crop/get-container-data.spec.ts +18 -0
- package/demos/pc/app/crop/get-crop-box-data.spec.ts +13 -0
- package/demos/pc/app/crop/get-cropped-canvas-composition-api.vue +7 -1
- package/demos/pc/app/crop/get-cropped-canvas.spec.ts +14 -0
- package/demos/pc/app/crop/get-cropped-canvas.vue +7 -1
- package/demos/pc/app/crop/get-data.spec.ts +17 -0
- package/demos/pc/app/crop/get-image-data-composition-api.vue +7 -0
- package/demos/pc/app/crop/get-image-data.spec.ts +14 -0
- package/demos/pc/app/crop/get-image-data.vue +7 -0
- package/demos/pc/app/crop/min-crop-box-width-height.spec.ts +11 -0
- package/demos/pc/app/crop/no-background.spec.ts +14 -0
- package/demos/pc/app/crop/no-guides.spec.ts +8 -0
- package/demos/pc/app/crop/no-modal.spec.ts +10 -0
- package/demos/pc/app/crop/replace-image.spec.ts +17 -0
- package/demos/pc/app/crop/view-mode-composition-api.vue +8 -2
- package/demos/pc/app/crop/view-mode.spec.ts +31 -0
- package/demos/pc/app/crop/view-mode.vue +10 -2
- package/demos/pc/app/crop/wheel-zoom-ratio.spec.ts +15 -0
- package/demos/pc/app/crop/zoom-on-wheel.spec.ts +10 -0
- package/demos/pc/app/currency/webdoc/currency.js +1 -1
- package/demos/pc/app/date-picker/webdoc/date-picker.js +85 -54
- package/demos/pc/app/dept/webdoc/dept.js +1 -1
- package/demos/pc/app/detail-page/basic-usage-composition-api.vue +1 -1
- package/demos/pc/app/detail-page/basic-usage.vue +1 -1
- package/demos/pc/app/detail-page/custom-show-text-composition-api.vue +11 -12
- package/demos/pc/app/detail-page/custom-show-text.spec.ts +5 -7
- package/demos/pc/app/detail-page/custom-show-text.vue +11 -12
- package/demos/pc/app/detail-page/webdoc/detail-page.js +46 -22
- package/demos/pc/app/dialog-box/basic-usage.spec.ts +11 -38
- package/demos/pc/app/dialog-box/center.spec.ts +4 -14
- package/demos/pc/app/dialog-box/close-on-click-modal.spec.ts +3 -7
- package/demos/pc/app/dialog-box/close-on-press-escape.spec.ts +2 -5
- package/demos/pc/app/dialog-box/custom-dialog-content.spec.ts +6 -8
- package/demos/pc/app/dialog-box/custom-dialog-footer.spec.ts +3 -14
- package/demos/pc/app/dialog-box/custom-dialog-title.spec.ts +3 -12
- package/demos/pc/app/dialog-box/destroy-on-close.spec.ts +9 -7
- package/demos/pc/app/dialog-box/dialog-top-height.spec.ts +6 -12
- package/demos/pc/app/dialog-box/dialog-width.spec.ts +5 -16
- package/demos/pc/app/dialog-box/draggable.spec.ts +4 -5
- package/demos/pc/app/dialog-box/form-in-dialog.spec.ts +5 -4
- package/demos/pc/app/dialog-box/lock-scroll.spec.ts +7 -10
- package/demos/pc/app/dialog-box/open-close-events.spec.ts +0 -1
- package/demos/pc/app/dialog-box/right-dialog-composition-api.vue +1 -1
- package/demos/pc/app/dialog-box/right-dialog.vue +1 -1
- package/demos/pc/app/dialog-select/{grid-multi-composition-api.vue → nest-grid-multi-composition-api.vue} +7 -4
- package/demos/pc/app/dialog-select/{grid-multi.vue → nest-grid-multi.vue} +4 -2
- package/demos/pc/app/dialog-select/{grid-radio-composition-api.vue → nest-grid-single-composition-api.vue} +6 -3
- package/demos/pc/app/dialog-select/{grid-radio.vue → nest-grid-single.vue} +4 -2
- package/demos/pc/app/dialog-select/{tree-multi-composition-api.vue → nest-tree-multi-composition-api.vue} +22 -9
- package/demos/pc/app/dialog-select/{tree-multi.vue → nest-tree-multi.vue} +19 -8
- package/demos/pc/app/dialog-select/{tree-radio-composition-api.vue → nest-tree-single-composition-api.vue} +19 -7
- package/demos/pc/app/dialog-select/{tree-radio.vue → nest-tree-single.vue} +18 -6
- package/demos/pc/app/dialog-select/webdoc/dialog-select.js +282 -183
- package/demos/pc/app/divider/basic-usage.spec.ts +7 -0
- package/demos/pc/app/divider/content-position.spec.ts +12 -0
- package/demos/pc/app/divider/custom-style.spec.ts +19 -0
- package/demos/pc/app/divider/direction.spec.ts +12 -0
- package/demos/pc/app/drawer/basic-usage.vue +7 -0
- package/demos/pc/app/drawer/webdoc/drawer.js +1 -1
- package/demos/pc/app/drop-roles/webdoc/drop-roles.js +1 -1
- package/demos/pc/app/drop-times/webdoc/drop-times.js +1 -1
- package/demos/pc/app/dropdown/hide-on-click-composition-api.vue +1 -1
- package/demos/pc/app/dropdown/hide-on-click.vue +1 -1
- package/demos/pc/app/dropdown/inherit-width-composition-api.vue +2 -2
- package/demos/pc/app/dropdown/inherit-width.spec.ts +43 -0
- package/demos/pc/app/dropdown/inherit-width.vue +2 -2
- package/demos/pc/app/dropdown/options.spec.ts +1 -1
- package/demos/pc/app/dropdown/show-icon.spec.ts +34 -0
- package/demos/pc/app/dropdown/slots-composition-api.vue +1 -1
- package/demos/pc/app/dropdown/tip.spec.ts +49 -0
- package/demos/pc/app/dropdown/trigger-composition-api.vue +10 -10
- package/demos/pc/app/dropdown/visible-arrow.spec.ts +21 -0
- package/demos/pc/app/dropdown/webdoc/dropdown.cn.md +1 -1
- package/demos/pc/app/dropdown/webdoc/dropdown.en.md +1 -1
- package/demos/pc/app/dropdown/webdoc/dropdown.js +53 -36
- package/demos/pc/app/espace/webdoc/espace.js +1 -1
- package/demos/pc/app/file-upload/drag-upload.spec.ts +1 -1
- package/demos/pc/app/file-upload/picture-card.spec.ts +2 -2
- package/demos/pc/app/filter-panel/basic-usage-composition-api.vue +13 -2
- package/demos/pc/app/filter-panel/basic-usage.spec.ts +15 -6
- package/demos/pc/app/filter-panel/basic-usage.vue +15 -4
- package/demos/pc/app/filter-panel/event.spec.ts +12 -2
- package/demos/pc/app/filter-panel/manual-hide.spec.ts +2 -2
- package/demos/pc/app/filter-panel/popper-class-composition-api.vue +1 -0
- package/demos/pc/app/filter-panel/popper-class.spec.ts +2 -2
- package/demos/pc/app/filter-panel/popper-class.vue +1 -0
- package/demos/pc/app/filter-panel/tip.spec.ts +2 -2
- package/demos/pc/app/filter-panel/webdoc/filter-panel.cn.md +1 -1
- package/demos/pc/app/filter-panel/webdoc/filter-panel.en.md +3 -3
- package/demos/pc/app/filter-panel/webdoc/filter-panel.js +50 -56
- package/demos/pc/app/floatbar/webdoc/floatbar.js +1 -1
- package/demos/pc/app/flowchart/webdoc/flowchart.js +1 -1
- package/demos/pc/app/font/webdoc/font.js +1 -1
- package/demos/pc/app/form/events-composition-api.vue +46 -0
- package/demos/pc/app/form/events.spec.ts +12 -0
- package/demos/pc/app/form/events.vue +52 -0
- package/demos/pc/app/form/form-validate-field-composition-api.vue +13 -14
- package/demos/pc/app/form/form-validate-field.spec.ts +9 -2
- package/demos/pc/app/form/form-validate-field.vue +9 -12
- package/demos/pc/app/form/form-validation-composition-api.vue +6 -1
- package/demos/pc/app/form/form-validation.vue +5 -1
- package/demos/pc/app/form/label-position-composition-api.vue +1 -1
- package/demos/pc/app/form/label-position.vue +1 -1
- package/demos/pc/app/form/webdoc/form.js +18 -8
- package/demos/pc/app/fullscreen/example-api.spec.ts +14 -29
- package/demos/pc/app/fullscreen/example-component.spec.ts +12 -29
- package/demos/pc/app/fullscreen/webdoc/fullscreen.js +4 -4
- package/demos/pc/app/grid/custom/column-width-composition-api.vue +1 -1
- package/demos/pc/app/grid/custom/column-width.vue +1 -1
- package/demos/pc/app/grid/custom/prsonalized-drag.vue +11 -1
- package/demos/pc/app/grid/custom-style/footer-style-composition-api.vue +19 -16
- package/demos/pc/app/grid/custom-style/footer-style.spec.js +1 -0
- package/demos/pc/app/grid/custom-style/footer-style.vue +18 -16
- package/demos/pc/app/grid/custom-style/header-style-composition-api.vue +18 -13
- package/demos/pc/app/grid/custom-style/header-style.spec.js +1 -0
- package/demos/pc/app/grid/custom-style/header-style.vue +18 -14
- package/demos/pc/app/grid/edit/trigger-mode-hm-editing-composition-api.vue +12 -4
- package/demos/pc/app/grid/edit/trigger-mode-hm-editing.spec.js +6 -1
- package/demos/pc/app/grid/edit/trigger-mode-hm-editing.vue +12 -4
- package/demos/pc/app/grid/highlight/highlight-hover-row-composition-api.vue +1 -1
- package/demos/pc/app/grid/highlight/highlight-hover-row.vue +1 -1
- package/demos/pc/app/grid/validation/before-submit-validation-composition-api.vue +17 -0
- package/demos/pc/app/grid/validation/before-submit-validation.vue +17 -0
- package/demos/pc/app/grid/webdoc/grid-align.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-appearance-settings.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-context-menu.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-custom-style.js +3 -3
- package/demos/pc/app/grid/webdoc/grid-custom.js +2 -2
- package/demos/pc/app/grid/webdoc/grid-data-source.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-drag.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-dynamically-columns.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-edit.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-editor.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-empty.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-event.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-expand.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-faq.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-filter.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-fixed.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-footer.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-header.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-highlight.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-import-export.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-large-data.js +3 -2
- package/demos/pc/app/grid/webdoc/grid-loading.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-mouse-keyboard.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-operation-column.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-pager.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-renderer.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-row-grouping.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-serial-column.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-size.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-slot.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-sort.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-span.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-tip.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-toolbar.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-tree-table.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-validation.js +1 -1
- package/demos/pc/app/grid/webdoc/grid.js +27 -37
- package/demos/pc/app/hrapprover/webdoc/hrapprover.js +1 -1
- package/demos/pc/app/image/webdoc/image.js +2 -2
- package/demos/pc/app/infinite-scroll/basic-usage.spec.ts +11 -0
- package/demos/pc/app/infinite-scroll/disabled.spec.ts +10 -0
- package/demos/pc/app/infinite-scroll/webdoc/infinite-scroll.cn.md +1 -1
- package/demos/pc/app/infinite-scroll/webdoc/infinite-scroll.js +18 -18
- package/demos/pc/app/layout/webdoc/layout.js +1 -1
- package/demos/pc/app/link/webdoc/link.js +1 -1
- package/demos/pc/app/link-menu/custom-foot.spec.ts +1 -1
- package/demos/pc/app/link-menu/custom-icon.spec.ts +2 -17
- package/demos/pc/app/link-menu/data-resource.spec.ts +9 -18
- package/demos/pc/app/link-menu/get-menu-data-sync.spec.ts +1 -1
- package/demos/pc/app/link-menu/menu-items.spec.ts +1 -1
- package/demos/pc/app/link-menu/webdoc/link-menu.js +8 -28
- package/demos/pc/app/loading/webdoc/loading.js +6 -9
- package/demos/pc/app/locales/webdoc/locales.js +1 -1
- package/demos/pc/app/logon-user/webdoc/logon-user.js +1 -1
- package/demos/pc/app/logout/webdoc/logout.js +1 -1
- package/demos/pc/app/modal/footer-btn-props-composition-api.vue +1 -1
- package/demos/pc/app/modal/min-height.spec.ts +2 -3
- package/demos/pc/app/modal/min-width.spec.ts +2 -2
- package/demos/pc/app/modal/resize.spec.ts +1 -1
- package/demos/pc/app/modal/webdoc/modal.js +3 -3
- package/demos/pc/app/numeric/about-step.spec.ts +2 -2
- package/demos/pc/app/numeric/allow-empty.spec.ts +5 -7
- package/demos/pc/app/numeric/basic-usage.spec.ts +2 -2
- package/demos/pc/app/numeric/blur-event.spec.ts +1 -1
- package/demos/pc/app/numeric/controls.spec.ts +5 -21
- package/demos/pc/app/numeric/dynamic-disabled.spec.ts +1 -1
- package/demos/pc/app/numeric/max-min.spec.ts +3 -3
- package/demos/pc/app/numeric/mouse-wheel.spec.ts +1 -1
- package/demos/pc/app/numeric/numeric-size.spec.ts +3 -3
- package/demos/pc/app/numeric/unit.spec.ts +3 -5
- package/demos/pc/app/pager/webdoc/pager.js +2 -2
- package/demos/pc/app/pop-upload/basic-usage-composition-api.vue +4 -1
- package/demos/pc/app/pop-upload/basic-usage.spec.ts +25 -14
- package/demos/pc/app/pop-upload/basic-usage.vue +5 -2
- package/demos/pc/app/pop-upload/before-upload.spec.ts +6 -4
- package/demos/pc/app/pop-upload/custom-request-headers-composition-api.vue +1 -1
- package/demos/pc/app/pop-upload/custom-request-headers.spec.ts +2 -2
- package/demos/pc/app/pop-upload/custom-request-headers.vue +1 -1
- package/demos/pc/app/pop-upload/file-limit-composition-api.vue +1 -1
- package/demos/pc/app/pop-upload/file-limit.spec.ts +9 -11
- package/demos/pc/app/pop-upload/file-limit.vue +1 -1
- package/demos/pc/app/pop-upload/file-type-composition-api.vue +6 -1
- package/demos/pc/app/pop-upload/file-type.spec.ts +6 -3
- package/demos/pc/app/pop-upload/file-type.vue +6 -1
- package/demos/pc/app/pop-upload/fill-button-text.spec.ts +16 -36
- package/demos/pc/app/pop-upload/http-request.spec.ts +3 -5
- package/demos/pc/app/pop-upload/prevent-delete-file.spec.ts +2 -2
- package/demos/pc/app/pop-upload/size.spec.ts +1 -1
- package/demos/pc/app/pop-upload/upload-events-composition-api.vue +39 -0
- package/demos/pc/app/pop-upload/upload-events.spec.ts +39 -0
- package/demos/pc/app/pop-upload/upload-events.vue +44 -0
- package/demos/pc/app/pop-upload/webdoc/pop-upload.cn.md +1 -1
- package/demos/pc/app/pop-upload/webdoc/pop-upload.en.md +3 -3
- package/demos/pc/app/pop-upload/webdoc/pop-upload.js +192 -153
- package/demos/pc/app/popover/basic-usage-composition-api.vue +1 -1
- package/demos/pc/app/popover/basic-usage.spec.js +4 -1
- package/demos/pc/app/popover/basic-usage.vue +1 -1
- package/demos/pc/app/popover/content.spec.js +7 -3
- package/demos/pc/app/popover/custom-popper.spec.js +25 -4
- package/demos/pc/app/popover/disabled-composition-api.vue +2 -1
- package/demos/pc/app/popover/events-composition-api.vue +2 -2
- package/demos/pc/app/popover/events.spec.js +4 -0
- package/demos/pc/app/popover/offset-composition-api.vue +6 -6
- package/demos/pc/app/popover/offset.spec.js +31 -3
- package/demos/pc/app/popover/offset.vue +6 -6
- package/demos/pc/app/popover/trigger.spec.js +3 -3
- package/demos/pc/app/popover/webdoc/popover.js +11 -3
- package/demos/pc/app/qr-code/basic-usage.spec.ts +9 -0
- package/demos/pc/app/qr-code/icon.spec.ts +11 -0
- package/demos/pc/app/qr-code/level.spec.ts +15 -0
- package/demos/pc/app/qr-code/style.spec.ts +9 -0
- package/demos/pc/app/qr-code/webdoc/qr-code.js +13 -11
- package/demos/pc/app/rich-text-editor/webdoc/rich-text-editor.js +1 -1
- package/demos/pc/app/roles/webdoc/roles.js +1 -1
- package/demos/pc/app/scroll-text/basic-usage-composition-api.vue +1 -1
- package/demos/pc/app/scroll-text/basic-usage.spec.ts +1 -1
- package/demos/pc/app/scroll-text/basic-usage.vue +1 -1
- package/demos/pc/app/scroll-text/custom-text-style-composition-api.vue +1 -1
- package/demos/pc/app/scroll-text/custom-text-style.vue +1 -1
- package/demos/pc/app/scroll-text/hover-stop-composition-api.vue +1 -1
- package/demos/pc/app/scroll-text/hover-stop.spec.ts +1 -1
- package/demos/pc/app/scroll-text/hover-stop.vue +1 -1
- package/demos/pc/app/scroll-text/scroll-direction-composition-api.vue +1 -1
- package/demos/pc/app/scroll-text/scroll-direction.spec.ts +4 -4
- package/demos/pc/app/scroll-text/scroll-direction.vue +1 -1
- package/demos/pc/app/scroll-text/scroll-time-composition-api.vue +1 -1
- package/demos/pc/app/scroll-text/scroll-time.spec.ts +1 -1
- package/demos/pc/app/scroll-text/scroll-time.vue +1 -1
- package/demos/pc/app/scroll-text/slots-composition-api.vue +1 -1
- package/demos/pc/app/scroll-text/slots.vue +1 -1
- package/demos/pc/app/scroll-text/webdoc/scroll-text.js +27 -33
- package/demos/pc/app/select/clear-no-match-value-composition-api.vue +6 -2
- package/demos/pc/app/select/clear-no-match-value.spec.ts +22 -0
- package/demos/pc/app/select/clear-no-match-value.vue +6 -2
- package/demos/pc/app/select/copy-multi-composition-api.vue +3 -3
- package/demos/pc/app/select/copy-multi.spec.ts +3 -1
- package/demos/pc/app/select/copy-single-composition-api.vue +3 -3
- package/demos/pc/app/select/copy-single.spec.ts +16 -17
- package/demos/pc/app/select/copy-single.vue +1 -1
- package/demos/pc/app/select/events-composition-api.vue +1 -1
- package/demos/pc/app/select/filter-method-composition-api.vue +9 -2
- package/demos/pc/app/select/filter-method.spec.ts +3 -3
- package/demos/pc/app/select/is-drop-inherit-width.spec.ts +3 -4
- package/demos/pc/app/select/manual-focus-blur-composition-api.vue +1 -1
- package/demos/pc/app/select/manual-focus-blur.spec.ts +5 -4
- package/demos/pc/app/select/nest-grid-composition-api.vue +3 -3
- package/demos/pc/app/select/nest-tree-composition-api.vue +32 -2
- package/demos/pc/app/select/optimization.spec.ts +7 -8
- package/demos/pc/app/select/tag-type.spec.ts +12 -0
- package/demos/pc/app/select/webdoc/select.cn.md +1 -1
- package/demos/pc/app/select/webdoc/select.en.md +1 -1
- package/demos/pc/app/select/webdoc/select.js +19 -19
- package/demos/pc/app/slide-bar/basic-usage.spec.ts +3 -3
- package/demos/pc/app/slide-bar/custom-content.spec.ts +1 -2
- package/demos/pc/app/slide-bar/custom-tag.spec.ts +1 -2
- package/demos/pc/app/slide-bar/slide-bar-events.spec.ts +1 -2
- package/demos/pc/app/slide-bar/wheel-blocks.spec.ts +7 -8
- package/demos/pc/app/split/webdoc/split.js +1 -1
- package/demos/pc/app/steps/size.spec.ts +2 -1
- package/demos/pc/app/steps/slot-item.spec.ts +8 -2
- package/demos/pc/app/steps/slot-item.vue +4 -4
- package/demos/pc/app/steps/text-position.spec.ts +2 -1
- package/demos/pc/app/tabs/basic-usage-composition-api.vue +1 -1
- package/demos/pc/app/tabs/basic-usage.spec.ts +6 -0
- package/demos/pc/app/tabs/basic-usage.vue +1 -1
- package/demos/pc/app/tabs/tabs-events-close-composition-api.vue +9 -2
- package/demos/pc/app/tabs/tabs-events-close.vue +9 -2
- package/demos/pc/app/tabs/webdoc/tabs.js +79 -4
- package/demos/pc/app/text-popup/basic-usage.spec.ts +1 -1
- package/demos/pc/app/text-popup/clear-value.spec.ts +1 -1
- package/demos/pc/app/text-popup/placeholder.spec.ts +1 -1
- package/demos/pc/app/text-popup/readonly.spec.ts +1 -1
- package/demos/pc/app/text-popup/separtor.spec.ts +1 -1
- package/demos/pc/app/text-popup/value.spec.ts +1 -1
- package/demos/pc/app/text-popup/webdoc/text-popup.js +11 -11
- package/demos/pc/app/text-popup/width.spec.ts +1 -1
- package/demos/pc/app/time-line/basic-usage.spec.ts +1 -1
- package/demos/pc/app/time-line/custom-field.spec.ts +3 -3
- package/demos/pc/app/time-line/custom-horizontal-timeline.spec.ts +3 -3
- package/demos/pc/app/time-line/custom-vertical-timeline.spec.ts +6 -6
- package/demos/pc/app/time-line/set-node-width.spec.ts +6 -8
- package/demos/pc/app/time-line/set-start-value.spec.ts +4 -4
- package/demos/pc/app/time-line/shape.spec.ts +3 -3
- package/demos/pc/app/time-line/status.spec.ts +1 -1
- package/demos/pc/app/time-line/timeline-item.spec.ts +1 -1
- package/demos/pc/app/time-line/vertical-timeline.spec.ts +9 -5
- package/demos/pc/app/time-line/webdoc/time-line.js +2 -2
- package/demos/pc/app/time-picker/basic-usage.spec.ts +12 -33
- package/demos/pc/app/time-picker/clearable.spec.ts +23 -8
- package/demos/pc/app/time-picker/default-value.spec.ts +24 -9
- package/demos/pc/app/time-picker/disabled.spec.ts +10 -4
- package/demos/pc/app/time-picker/editable.spec.ts +3 -4
- package/demos/pc/app/time-picker/event-composition-api.vue +1 -1
- package/demos/pc/app/time-picker/event.spec.ts +6 -6
- package/demos/pc/app/time-picker/event.vue +1 -1
- package/demos/pc/app/time-picker/format.spec.ts +32 -16
- package/demos/pc/app/time-picker/is-range.spec.ts +8 -32
- package/demos/pc/app/time-picker/name.spec.ts +1 -3
- package/demos/pc/app/time-picker/placeholder.spec.ts +4 -0
- package/demos/pc/app/time-picker/popper-class.spec.ts +4 -4
- package/demos/pc/app/time-picker/size.spec.ts +22 -3
- package/demos/pc/app/time-picker/step.spec.ts +5 -0
- package/demos/pc/app/time-picker/suffix-icon.spec.ts +2 -8
- package/demos/pc/app/time-picker/webdoc/time-picker.js +52 -31
- package/demos/pc/app/time-select/webdoc/time-select.js +1 -1
- package/demos/pc/app/toggle-menu/automatic-filtering.spec.ts +4 -13
- package/demos/pc/app/toggle-menu/basic-usage.spec.ts +9 -40
- package/demos/pc/app/toggle-menu/custom-icon.spec.ts +2 -3
- package/demos/pc/app/toggle-menu/default-expand-all.spec.ts +5 -7
- package/demos/pc/app/toggle-menu/drag-events.spec.ts +9 -21
- package/demos/pc/app/toggle-menu/draggable.spec.ts +17 -13
- package/demos/pc/app/toggle-menu/node-click.spec.ts +2 -3
- package/demos/pc/app/toggle-menu/node-collapse.spec.ts +2 -3
- package/demos/pc/app/toggle-menu/node-drop.spec.ts +3 -4
- package/demos/pc/app/toggle-menu/node-expand.spec.ts +2 -3
- package/demos/pc/app/toggle-menu/show-filter.spec.ts +1 -2
- package/demos/pc/app/toggle-menu/slot-node.spec.ts +2 -3
- package/demos/pc/app/toggle-menu/toggle-props.spec.ts +2 -9
- package/demos/pc/app/tooltip/basic-usage.spec.js +6 -4
- package/demos/pc/app/tooltip/content.spec.js +16 -2
- package/demos/pc/app/tooltip/control.spec.js +19 -1
- package/demos/pc/app/tooltip/custom-popper.spec.js +30 -1
- package/demos/pc/app/tooltip/delay.spec.js +23 -1
- package/demos/pc/app/tooltip/offset.spec.js +23 -0
- package/demos/pc/app/tooltip/popper-options.spec.js +4 -1
- package/demos/pc/app/tooltip/theme.spec.js +1 -2
- package/demos/pc/app/tooltip/transition.spec.js +1 -0
- package/demos/pc/app/transfer/basic-usage.spec.ts +43 -48
- package/demos/pc/app/transfer/before-transfer.spec.ts +28 -0
- package/demos/pc/app/transfer/custom-btns.spec.ts +1 -1
- package/demos/pc/app/transfer/custom-filter-composition-api.vue +17 -8
- package/demos/pc/app/transfer/custom-filter.vue +18 -9
- package/demos/pc/app/transfer/custom-render-composition-api.vue +1 -1
- package/demos/pc/app/transfer/custom-render.spec.ts +2 -1
- package/demos/pc/app/transfer/custom-render.vue +1 -1
- package/demos/pc/app/transfer/custom-titles.spec.ts +7 -0
- package/demos/pc/app/transfer/drop-config.spec.ts +1 -1
- package/demos/pc/app/transfer/nested-table.spec.ts +1 -1
- package/demos/pc/app/transfer/webdoc/transfer.js +8 -15
- package/demos/pc/app/tree/filter-view-composition-api.vue +4 -2
- package/demos/pc/app/tree/filter-view.vue +2 -1
- package/demos/pc/app/tree/icons-composition-api.vue +4 -4
- package/demos/pc/app/tree/icons.vue +4 -4
- package/demos/pc/app/tree/lazy-composition-api.vue +5 -3
- package/demos/pc/app/tree/lazy.vue +5 -2
- package/demos/pc/app/tree/radio-composition-api.vue +7 -5
- package/demos/pc/app/tree/radio.vue +3 -3
- package/demos/pc/app/tree/webdoc/tree.js +13 -13
- package/demos/pc/app/user/webdoc/user.js +1 -1
- package/demos/pc/app/user-account/webdoc/user-account.js +1 -1
- package/demos/pc/app/user-contact/data-source.spec.ts +2 -5
- package/demos/pc/app/user-link/webdoc/user-link.js +1 -1
- package/demos/pc/app/watermark/basic-usage.spec.ts +9 -0
- package/demos/pc/app/watermark/image.spec.ts +9 -0
- package/demos/pc/app/watermark/webdoc/watermark.js +11 -11
- package/demos/pc/menus.js +9 -1
- package/demos/pc/webdoc/installation-en.md +6 -1
- package/demos/pc/webdoc/installation.md +4 -0
- package/package.json +6 -6
- package/playground.html +1 -1
- package/src/views/components/components.vue +2 -2
- package/demos/mobile/app/input/autofocus.vue +0 -37
- package/demos/mobile/app/input/autosize.vue +0 -41
- package/demos/mobile/app/input/blur-focus.vue +0 -40
- package/demos/mobile/app/input/cols-rows.vue +0 -28
- package/demos/mobile/app/input/form.vue +0 -45
- package/demos/mobile/app/input/input-event.vue +0 -39
- package/demos/mobile/app/input/method-select.vue +0 -36
- package/demos/mobile/app/input/prefix-suffix.vue +0 -39
- package/demos/mobile/app/input/props-step.vue +0 -28
- package/demos/mobile/app/input/props.vue +0 -28
- package/demos/mobile/app/input/slot-content.vue +0 -30
- package/demos/mobile/app/input/slots-append-prepend.vue +0 -34
- package/demos/mobile/app/input/suffix-icon.vue +0 -30
- package/demos/mobile/app/input/type-be-form-tips.vue +0 -55
- package/demos/mobile/app/input/type-be-form.vue +0 -47
- package/demos/pc/app/file-upload/accept-file-composition-api.vue +0 -14
- package/demos/pc/app/file-upload/accept-file.vue +0 -23
- package/demos/pc/app/file-upload/dynamic-disable-composition-api.vue +0 -20
- package/demos/pc/app/file-upload/dynamic-disable.vue +0 -29
- package/demos/pc/app/file-upload/jalor-request-composition-api.vue +0 -21
- package/demos/pc/app/file-upload/jalor-request.vue +0 -31
- package/demos/pc/app/file-upload/upload-file-filters-composition-api.vue +0 -34
- package/demos/pc/app/file-upload/upload-file-filters.vue +0 -43
- package/demos/pc/app/filter-panel/clearable-composition-api.vue +0 -33
- package/demos/pc/app/filter-panel/clearable.spec.ts +0 -18
- package/demos/pc/app/filter-panel/clearable.vue +0 -42
- package/demos/pc/app/filter-panel/disabled-composition-api.vue +0 -28
- package/demos/pc/app/filter-panel/disabled.spec.ts +0 -12
- package/demos/pc/app/filter-panel/disabled.vue +0 -37
- package/demos/pc/app/grid/validation/valid-config-composition-api.vue +0 -141
- package/demos/pc/app/grid/validation/valid-config.vue +0 -150
- package/demos/pc/app/pop-upload/data-composition-api.vue +0 -13
- package/demos/pc/app/pop-upload/data.spec.ts +0 -24
- package/demos/pc/app/pop-upload/data.vue +0 -21
- package/demos/pc/app/pop-upload/max-upload-file-size-composition-api.vue +0 -10
- package/demos/pc/app/pop-upload/max-upload-file-size.spec.ts +0 -24
- package/demos/pc/app/pop-upload/max-upload-file-size.vue +0 -18
- package/demos/pc/app/pop-upload/upload-name-composition-api.vue +0 -10
- package/demos/pc/app/pop-upload/upload-name.spec.ts +0 -46
- package/demos/pc/app/pop-upload/upload-name.vue +0 -18
- package/demos/pc/app/popover/dynamic-reference-composition-api.vue +0 -36
- package/demos/pc/app/popover/dynamic-reference.spec.js +0 -16
- package/demos/pc/app/popover/dynamic-reference.vue +0 -45
- package/demos/pc/app/scroll-text/custom-scroll-text-composition-api.vue +0 -7
- package/demos/pc/app/scroll-text/custom-scroll-text.spec.ts +0 -7
- package/demos/pc/app/scroll-text/custom-scroll-text.vue +0 -13
- package/demos/pc/app/tabs/custom-tab-content-composition-api.vue +0 -17
- package/demos/pc/app/tabs/custom-tab-content.vue +0 -26
- package/demos/pc/app/tabs/prevent-tab-switching-composition-api.vue +0 -25
- package/demos/pc/app/tabs/prevent-tab-switching.vue +0 -33
- package/demos/pc/app/tabs/show-echarts-composition-api.vue +0 -46
- package/demos/pc/app/tabs/show-echarts.vue +0 -52
- package/demos/pc/app/tabs/tabs-size-composition-api.vue +0 -17
- package/demos/pc/app/tabs/tabs-size.vue +0 -26
- package/demos/pc/app/transfer/manual-clear-query-composition-api.vue +0 -34
- package/demos/pc/app/transfer/manual-clear-query.spec.ts +0 -12
- package/demos/pc/app/transfer/manual-clear-query.vue +0 -43
- package/demos/pc/app/wizard/status-icon-composition-api.vue +0 -33
- package/demos/pc/app/wizard/status-icon.vue +0 -41
- /package/demos/pc/app/pager/{page-append-to-body-composition-api.vue → popper-append-to-body-composition-api.vue} +0 -0
- /package/demos/pc/app/pager/{page-append-to-body.spec.ts → popper-append-to-body.spec.ts} +0 -0
- /package/demos/pc/app/pager/{page-append-to-body.vue → popper-append-to-body.vue} +0 -0
|
@@ -416,7 +416,7 @@ export default {
|
|
|
416
416
|
{
|
|
417
417
|
'name': 'tree',
|
|
418
418
|
'type': 'component',
|
|
419
|
-
'
|
|
419
|
+
'props': [
|
|
420
420
|
{
|
|
421
421
|
'name': 'data',
|
|
422
422
|
'type': 'Array',
|
|
@@ -688,14 +688,14 @@ export default {
|
|
|
688
688
|
'zh-CN': '是否开启节点拖拽',
|
|
689
689
|
'en-US': 'Whether to enable the node dragging function'
|
|
690
690
|
},
|
|
691
|
-
'demoId': '
|
|
691
|
+
'demoId': 'drag'
|
|
692
692
|
},
|
|
693
693
|
{
|
|
694
694
|
'name': 'allow-drag',
|
|
695
695
|
'type': '(node)=>boolean',
|
|
696
696
|
'defaultValue': '',
|
|
697
697
|
'desc': { 'zh-CN': '判断节点能否被拖拽', 'en-US': 'Whether a node can be dragged.' },
|
|
698
|
-
'demoId': '
|
|
698
|
+
'demoId': 'drag'
|
|
699
699
|
},
|
|
700
700
|
{
|
|
701
701
|
'name': 'allow-drop',
|
|
@@ -707,7 +707,7 @@ export default {
|
|
|
707
707
|
'en-US':
|
|
708
708
|
"Whether the target node can be placed during dragging. The type parameter has three situations: 'prev',' inner', and'next', which indicate that it is placed before the target node, inserted into the target node, and placed after the target node respectively"
|
|
709
709
|
},
|
|
710
|
-
'demoId': '
|
|
710
|
+
'demoId': 'drag'
|
|
711
711
|
},
|
|
712
712
|
{
|
|
713
713
|
'name': 'show-contextmenu',
|
|
@@ -717,7 +717,7 @@ export default {
|
|
|
717
717
|
'zh-CN': '是否启用右键菜单功能',
|
|
718
718
|
'en-US': 'Whether to enable the right-click menu function'
|
|
719
719
|
},
|
|
720
|
-
'demoId': '
|
|
720
|
+
'demoId': 'contextmenu'
|
|
721
721
|
},
|
|
722
722
|
{
|
|
723
723
|
'name': 'accordion',
|
|
@@ -747,7 +747,7 @@ export default {
|
|
|
747
747
|
'zh-CN': '是否在第一次展开某个树节点后才渲染其子节点',
|
|
748
748
|
'en-US': 'Whether to render child nodes after the first expansion of a tree node'
|
|
749
749
|
},
|
|
750
|
-
'demoId': '
|
|
750
|
+
'demoId': ''
|
|
751
751
|
},
|
|
752
752
|
{
|
|
753
753
|
'name': 'show-check-easily',
|
|
@@ -839,7 +839,7 @@ export default {
|
|
|
839
839
|
'zh-CN': '懒加载时,加载数据成功的事件;<br>参数说明:{data: 加载的数据}',
|
|
840
840
|
'en-US': 'During lazy loading, data is loaded successfully. <br> Parameter description: {data: loaded data}'
|
|
841
841
|
},
|
|
842
|
-
'demoId': '
|
|
842
|
+
'demoId': 'lazy'
|
|
843
843
|
},
|
|
844
844
|
{
|
|
845
845
|
'name': 'node-drop',
|
|
@@ -1039,7 +1039,7 @@ export default {
|
|
|
1039
1039
|
'demoId': 'node-hl'
|
|
1040
1040
|
},
|
|
1041
1041
|
{
|
|
1042
|
-
'name': 'getNodeKey
|
|
1042
|
+
'name': 'getNodeKey',
|
|
1043
1043
|
'type': '(node:object) => number',
|
|
1044
1044
|
'defaultValue': '',
|
|
1045
1045
|
'desc': {
|
|
@@ -1049,7 +1049,7 @@ export default {
|
|
|
1049
1049
|
'demoId': 'node-hl'
|
|
1050
1050
|
},
|
|
1051
1051
|
{
|
|
1052
|
-
'name': 'getNodePath
|
|
1052
|
+
'name': 'getNodePath',
|
|
1053
1053
|
'type': '(key:string) => object[]',
|
|
1054
1054
|
'defaultValue': '',
|
|
1055
1055
|
'desc': {
|
|
@@ -1066,7 +1066,7 @@ export default {
|
|
|
1066
1066
|
'zh-CN': '通过 key 设置某个节点的当前选中状态',
|
|
1067
1067
|
'en-US': 'Use key to set the selected status of a node'
|
|
1068
1068
|
},
|
|
1069
|
-
'demoId': 'node-
|
|
1069
|
+
'demoId': 'node-op'
|
|
1070
1070
|
},
|
|
1071
1071
|
{
|
|
1072
1072
|
'name': 'setCurrentNode',
|
|
@@ -1076,7 +1076,7 @@ export default {
|
|
|
1076
1076
|
'zh-CN': '通过节点数据, 设置某个节点的当前选中状态',
|
|
1077
1077
|
'en-US': 'This section describes how to set the selected status of a node based on node data'
|
|
1078
1078
|
},
|
|
1079
|
-
'demoId': 'node-
|
|
1079
|
+
'demoId': 'node-op'
|
|
1080
1080
|
},
|
|
1081
1081
|
{
|
|
1082
1082
|
'name': 'expandAllNodes',
|
|
@@ -1221,7 +1221,7 @@ export default {
|
|
|
1221
1221
|
'demoId': 'check-op'
|
|
1222
1222
|
},
|
|
1223
1223
|
{
|
|
1224
|
-
'name': 'setCurrentRadio
|
|
1224
|
+
'name': 'setCurrentRadio',
|
|
1225
1225
|
'type': '() => void',
|
|
1226
1226
|
'defaultValue': '',
|
|
1227
1227
|
'desc': {
|
|
@@ -1261,7 +1261,7 @@ export default {
|
|
|
1261
1261
|
'demoId': 'edit'
|
|
1262
1262
|
},
|
|
1263
1263
|
{
|
|
1264
|
-
'name': 'addNode
|
|
1264
|
+
'name': 'addNode',
|
|
1265
1265
|
'type': '(node:object) => void',
|
|
1266
1266
|
'defaultValue': '',
|
|
1267
1267
|
'desc': {
|
|
@@ -5,9 +5,6 @@ test('设置数据源', async ({ page }) => {
|
|
|
5
5
|
await page.goto('user-contact#data-source')
|
|
6
6
|
const partBox = page.locator('.dropdown-part')
|
|
7
7
|
await partBox.hover()
|
|
8
|
-
const imageUrl = page.locator('.tiny-user-
|
|
9
|
-
await expect(imageUrl).
|
|
10
|
-
'background-image',
|
|
11
|
-
'url("user-contact#static/images/fruit.jpg")'
|
|
12
|
-
)
|
|
8
|
+
const imageUrl = page.locator('.tiny-user-contact').first()
|
|
9
|
+
await expect(imageUrl).toHaveText('小红')
|
|
13
10
|
})
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { test, expect } from '@playwright/test'
|
|
2
|
+
|
|
3
|
+
test('基本用法', async ({ page }) => {
|
|
4
|
+
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
5
|
+
await page.goto('watermark#basic')
|
|
6
|
+
|
|
7
|
+
const watermark = page.locator('#basic .tiny-watermark-wrapper')
|
|
8
|
+
await expect(watermark.locator('div').nth(1)).toHaveCSS('z-index', '9')
|
|
9
|
+
})
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { test, expect } from '@playwright/test'
|
|
2
|
+
|
|
3
|
+
test('图片水印', async ({ page }) => {
|
|
4
|
+
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
5
|
+
await page.goto('watermark#image')
|
|
6
|
+
|
|
7
|
+
const watermark = page.locator('#image .tiny-watermark-wrapper')
|
|
8
|
+
await expect(watermark.locator('div').nth(1)).toHaveCSS('z-index', '9')
|
|
9
|
+
})
|
|
@@ -25,10 +25,10 @@ export default {
|
|
|
25
25
|
{
|
|
26
26
|
'name': 'watermark',
|
|
27
27
|
'type': 'component',
|
|
28
|
-
'
|
|
28
|
+
'props': [
|
|
29
29
|
{
|
|
30
30
|
'name': 'width',
|
|
31
|
-
'type': '
|
|
31
|
+
'type': 'number',
|
|
32
32
|
'defaultValue': '120',
|
|
33
33
|
'desc': {
|
|
34
34
|
'zh-CN': '水印的宽度, 最小宽度120',
|
|
@@ -38,7 +38,7 @@ export default {
|
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
'name': 'height',
|
|
41
|
-
'type': '
|
|
41
|
+
'type': 'number',
|
|
42
42
|
'defaultValue': '64',
|
|
43
43
|
'desc': {
|
|
44
44
|
'zh-CN': '水印的高度, 最小高度64',
|
|
@@ -48,7 +48,7 @@ export default {
|
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
'name': 'rotate',
|
|
51
|
-
'type': '
|
|
51
|
+
'type': 'number',
|
|
52
52
|
'defaultValue': '-22',
|
|
53
53
|
'desc': {
|
|
54
54
|
'zh-CN': '水印绘制时,旋转的角度,单位 °',
|
|
@@ -58,7 +58,7 @@ export default {
|
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
'name': 'zIndex',
|
|
61
|
-
'type': '
|
|
61
|
+
'type': 'number',
|
|
62
62
|
'defaultValue': '9',
|
|
63
63
|
'desc': {
|
|
64
64
|
'zh-CN': '追加的水印元素的 `z-index `',
|
|
@@ -68,7 +68,7 @@ export default {
|
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
'name': 'image',
|
|
71
|
-
'type': '
|
|
71
|
+
'type': 'string',
|
|
72
72
|
'defaultValue': '',
|
|
73
73
|
'desc': {
|
|
74
74
|
'zh-CN': '图片源,建议导出 2 倍或 3 倍图,优先级高 (支持 base64 格式),此属性高于content',
|
|
@@ -78,7 +78,7 @@ export default {
|
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
'name': 'content',
|
|
81
|
-
'type': '
|
|
81
|
+
'type': 'string',
|
|
82
82
|
'defaultValue': '',
|
|
83
83
|
'desc': {
|
|
84
84
|
'zh-CN': '水印文字内容,此属性低于image',
|
|
@@ -88,7 +88,7 @@ export default {
|
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
'name': 'font',
|
|
91
|
-
'type': '
|
|
91
|
+
'type': 'object',
|
|
92
92
|
'defaultValue': '',
|
|
93
93
|
'desc': {
|
|
94
94
|
'zh-CN': `文字样式,可配置字段如下{
|
|
@@ -104,7 +104,7 @@ export default {
|
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
'name': 'gap',
|
|
107
|
-
'type': '
|
|
107
|
+
'type': 'array',
|
|
108
108
|
'defaultValue': '[100, 100]',
|
|
109
109
|
'desc': {
|
|
110
110
|
'zh-CN': '水印之间的间距',
|
|
@@ -114,7 +114,7 @@ export default {
|
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
116
|
'name': 'offset',
|
|
117
|
-
'type': '
|
|
117
|
+
'type': 'array',
|
|
118
118
|
'defaultValue': '[20, 20] ',
|
|
119
119
|
'desc': {
|
|
120
120
|
'zh-CN': '水印距离容器左上角的偏移量,默认为`20 `',
|
|
@@ -124,7 +124,7 @@ export default {
|
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
126
|
'name': 'interlaced',
|
|
127
|
-
'type': '
|
|
127
|
+
'type': 'boolean',
|
|
128
128
|
'defaultValue': 'true',
|
|
129
129
|
'desc': {
|
|
130
130
|
'zh-CN': '水印是否交错',
|
package/demos/pc/menus.js
CHANGED
|
@@ -244,7 +244,15 @@ export const cmpMenus = [
|
|
|
244
244
|
}
|
|
245
245
|
},
|
|
246
246
|
{ 'nameCn': '图片裁剪', 'name': 'Crop', 'key': 'crop' },
|
|
247
|
-
{
|
|
247
|
+
{
|
|
248
|
+
'nameCn': '表头详情栏',
|
|
249
|
+
'name': 'DetailPage',
|
|
250
|
+
'key': 'detail-page',
|
|
251
|
+
'mark': {
|
|
252
|
+
'type': 'danger',
|
|
253
|
+
'text': 'Del'
|
|
254
|
+
}
|
|
255
|
+
},
|
|
248
256
|
{ 'nameCn': '图片预览', 'name': 'Image', 'key': 'image' },
|
|
249
257
|
{ 'nameCn': '评分', 'name': 'Rate', 'key': 'rate' },
|
|
250
258
|
{ 'nameCn': '文字滚动', 'name': 'ScrollText', 'key': 'scroll-text' },
|
|
@@ -34,7 +34,7 @@ npm install @opentiny/vue@2
|
|
|
34
34
|
If it's`Vite`After the dependency is installed, modify the project.`vite.config.js`, add the following code highlighted section:
|
|
35
35
|
|
|
36
36
|
```js {8-10}
|
|
37
|
-
//vite.config.js
|
|
37
|
+
// vite.config.js
|
|
38
38
|
|
|
39
39
|
import { defineConfig } from 'vite'
|
|
40
40
|
import vue from '@vitejs/plugin-vue'
|
|
@@ -52,6 +52,11 @@ export default defineConfig({
|
|
|
52
52
|
<p> To avoid the uncertainty associated with monthly (minor) upgrades of <code> @opentiny/vue </code>, it is recommended to use ~ before relying on the version number of the package in <code> package.json </code> in your project.
|
|
53
53
|
For example, <code>"@opentiny/vue": "~3.12.0</code>. </p>
|
|
54
54
|
</div>
|
|
55
|
+
<div class="tip custom-block">
|
|
56
|
+
<br>
|
|
57
|
+
<p><code> @opentiny/vue </code> supports multiple modes. If your project is not a mobile project, you can declare the value of <code>TINY_MODE</code> in <code>process.env</code> in the above configuration code. In order to make the project during construction, the mobile side code can be shaken off and the volume of the packaged product can be optimized. For example, <code>'process.env': {... env,TINY_MODE:'pc'}</code>. </p>
|
|
58
|
+
</div>
|
|
59
|
+
|
|
55
60
|
### Import through CDN
|
|
56
61
|
|
|
57
62
|
In order to experience TinyVue components faster, you can also import TinyVue directly into the HTML page through CDN,you are advised to write two valid version numbers as follows.
|
|
@@ -52,6 +52,10 @@ export default defineConfig({
|
|
|
52
52
|
<p>为了避免<code> @opentiny/vue </code> 的月度版本(minor)升级带来的不确定因素,因此推荐在您的工程中的<code> package.json </code> 中依赖包的版本号前使用 ~,
|
|
53
53
|
比如 <code>"@opentiny/vue": "~3.12.0</code>。</p>
|
|
54
54
|
</div>
|
|
55
|
+
<div class="tip custom-block">
|
|
56
|
+
<br>
|
|
57
|
+
<p><code> @opentiny/vue </code> 支持多种模式。如果您的工程非移动端工程,可以在上面配置代码中的<code>process.env</code>中,声明<code>TINY_MODE</code>的值,以使工程在构建时,能将移动端模式的代码摇掉,优化打包产物的体积。比如 <code>'process.env': { ...process.env,TINY_MODE:'pc' }</code>。</p>
|
|
58
|
+
</div>
|
|
55
59
|
|
|
56
60
|
### 通过 CDN 方式引入
|
|
57
61
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-docs",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.7",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@unocss/reset": "0.38.2",
|
|
6
6
|
"@vue/repl": "^2.5.5",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
"@opentiny/vue-repl": "^1.1.0",
|
|
19
19
|
"@opentiny/vue": "~3.12.0",
|
|
20
20
|
"@opentiny/vue-common": "~3.12.0",
|
|
21
|
-
"@opentiny/vue-design-aurora": "~3.12.0",
|
|
22
21
|
"@opentiny/vue-icon": "~3.12.0",
|
|
23
|
-
"@opentiny/vue-design-smb": "~3.12.0",
|
|
24
22
|
"@opentiny/vue-icon-saas": "~3.12.0",
|
|
25
|
-
"@opentiny/vue-
|
|
23
|
+
"@opentiny/vue-design-smb": "~3.12.0",
|
|
24
|
+
"@opentiny/vue-design-aurora": "~3.12.0",
|
|
26
25
|
"@opentiny/vue-theme-mobile": "~3.12.0",
|
|
27
|
-
"@opentiny/vue-
|
|
28
|
-
"@opentiny/vue-theme-saas": "~3.12.0"
|
|
26
|
+
"@opentiny/vue-theme": "~3.12.1",
|
|
27
|
+
"@opentiny/vue-theme-saas": "~3.12.0",
|
|
28
|
+
"@opentiny/vue-vite-import": "~1.1.5"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/markdown-it": "^12.2.3",
|
package/playground.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>Vite + Vue</title>
|
|
8
8
|
<script>
|
|
9
|
-
const cdnHost = 'https://
|
|
9
|
+
const cdnHost = 'https://npm.onmicrosoft.cn'
|
|
10
10
|
window.localStorage.setItem('setting-cdn', cdnHost)
|
|
11
11
|
</script>
|
|
12
12
|
</head>
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
<th width="15%">{{ i18nByKey('name') }}</th>
|
|
56
56
|
<th width="85%">{{ i18nByKey('desc') }}</th>
|
|
57
57
|
</tr>
|
|
58
|
-
<tr v-else-if="key.includes('events')">
|
|
58
|
+
<tr v-else-if="key.includes('events') || key.includes('methods')">
|
|
59
59
|
<th width="15%">{{ i18nByKey('name') }}</th>
|
|
60
60
|
<th width="20%">{{ i18nByKey('propType') }}</th>
|
|
61
61
|
<th width="65%">{{ i18nByKey('desc') }}</th>
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
></a>
|
|
91
91
|
<span v-else v-html="row.type"></span>
|
|
92
92
|
</td>
|
|
93
|
-
<td v-if="!key.includes('slots') && !key.includes('events')">
|
|
93
|
+
<td v-if="!key.includes('slots') && !key.includes('events') && !key.includes('methods')">
|
|
94
94
|
<span
|
|
95
95
|
v-html="typeof row.defaultValue === 'string' ? row.defaultValue || '--' : row.defaultValue"
|
|
96
96
|
></span>
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="input-wrap">
|
|
3
|
-
<tiny-input v-model="input" type="textarea" autosize autofocus placeholder="请输入内容"></tiny-input>
|
|
4
|
-
<tiny-input
|
|
5
|
-
v-model="input"
|
|
6
|
-
type="textarea"
|
|
7
|
-
:autosize="{ minRows: 2, maxRows: 3 }"
|
|
8
|
-
placeholder="请输入内容"
|
|
9
|
-
></tiny-input>
|
|
10
|
-
</div>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<script lang="jsx">
|
|
14
|
-
import { Input } from '@opentiny/vue'
|
|
15
|
-
|
|
16
|
-
export default {
|
|
17
|
-
components: {
|
|
18
|
-
TinyInput: Input
|
|
19
|
-
},
|
|
20
|
-
data() {
|
|
21
|
-
return {
|
|
22
|
-
input: ''
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
</script>
|
|
27
|
-
|
|
28
|
-
<style>
|
|
29
|
-
.input-wrap {
|
|
30
|
-
padding-top: 20px;
|
|
31
|
-
height: 100%;
|
|
32
|
-
background: #f4f4f4;
|
|
33
|
-
}
|
|
34
|
-
.input-wrap .tiny-mobile-textarea + .tiny-mobile-textarea {
|
|
35
|
-
margin-top: 24px;
|
|
36
|
-
}
|
|
37
|
-
</style>
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="input-wrap">
|
|
3
|
-
<tiny-input
|
|
4
|
-
v-model="input"
|
|
5
|
-
type="textarea"
|
|
6
|
-
autosize
|
|
7
|
-
disabled
|
|
8
|
-
textarea-title="textarea-title"
|
|
9
|
-
placeholder="请输入内容"
|
|
10
|
-
></tiny-input>
|
|
11
|
-
<tiny-input
|
|
12
|
-
v-model="input"
|
|
13
|
-
type="textarea"
|
|
14
|
-
:autosize="{ minRows: 2, maxRows: 3 }"
|
|
15
|
-
placeholder="请输入内容"
|
|
16
|
-
></tiny-input>
|
|
17
|
-
</div>
|
|
18
|
-
</template>
|
|
19
|
-
|
|
20
|
-
<script lang="jsx">
|
|
21
|
-
import { Input } from '@opentiny/vue'
|
|
22
|
-
|
|
23
|
-
export default {
|
|
24
|
-
components: {
|
|
25
|
-
TinyInput: Input
|
|
26
|
-
},
|
|
27
|
-
data() {
|
|
28
|
-
return {
|
|
29
|
-
input: ''
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
</script>
|
|
34
|
-
|
|
35
|
-
<style>
|
|
36
|
-
.input-wrap {
|
|
37
|
-
padding-top: 20px;
|
|
38
|
-
height: 100%;
|
|
39
|
-
background: #f4f4f4;
|
|
40
|
-
}
|
|
41
|
-
</style>
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="input-wrap">
|
|
3
|
-
<tiny-button @click="focus">获取焦点</tiny-button>
|
|
4
|
-
<tiny-button @click="blur">失去焦点</tiny-button>
|
|
5
|
-
<br /><br />
|
|
6
|
-
<tiny-input ref="input" v-model="input"></tiny-input>
|
|
7
|
-
</div>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script lang="jsx">
|
|
11
|
-
import { Input, Button } from '@opentiny/vue'
|
|
12
|
-
|
|
13
|
-
export default {
|
|
14
|
-
components: {
|
|
15
|
-
TinyInput: Input,
|
|
16
|
-
TinyButton: Button
|
|
17
|
-
},
|
|
18
|
-
data() {
|
|
19
|
-
return {
|
|
20
|
-
input: ''
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
methods: {
|
|
24
|
-
focus() {
|
|
25
|
-
this.$refs.input.focus()
|
|
26
|
-
},
|
|
27
|
-
blur() {
|
|
28
|
-
this.$refs.input.blur()
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
</script>
|
|
33
|
-
|
|
34
|
-
<style>
|
|
35
|
-
.input-wrap {
|
|
36
|
-
padding-top: 20px;
|
|
37
|
-
height: 100%;
|
|
38
|
-
background: #f4f4f4;
|
|
39
|
-
}
|
|
40
|
-
</style>
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="input-wrap">
|
|
3
|
-
<tiny-input v-model="input" type="textarea" :cols="5" :rows="1"></tiny-input>
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script lang="jsx">
|
|
8
|
-
import { Input } from '@opentiny/vue'
|
|
9
|
-
|
|
10
|
-
export default {
|
|
11
|
-
components: {
|
|
12
|
-
TinyInput: Input
|
|
13
|
-
},
|
|
14
|
-
data() {
|
|
15
|
-
return {
|
|
16
|
-
input: '测试 cols 属性'
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
<style>
|
|
23
|
-
.input-wrap {
|
|
24
|
-
padding-top: 20px;
|
|
25
|
-
height: 100%;
|
|
26
|
-
background: #f4f4f4;
|
|
27
|
-
}
|
|
28
|
-
</style>
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="input-wrap">
|
|
3
|
-
<tiny-input v-model="input" type="form" is-select :select-menu="selectMenu" placeholder="下拉功能"></tiny-input>
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script lang="jsx">
|
|
8
|
-
import { Input } from '@opentiny/vue'
|
|
9
|
-
|
|
10
|
-
export default {
|
|
11
|
-
components: {
|
|
12
|
-
TinyInput: Input
|
|
13
|
-
},
|
|
14
|
-
data() {
|
|
15
|
-
return {
|
|
16
|
-
selectMenu: [
|
|
17
|
-
{
|
|
18
|
-
label: '黄金糕'
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
label: '双皮奶'
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
label: '蚵仔煎'
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
label: '龙须面'
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
label: '北京烤鸭'
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
input: ''
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
</script>
|
|
38
|
-
|
|
39
|
-
<style>
|
|
40
|
-
.input-wrap {
|
|
41
|
-
padding-top: 20px;
|
|
42
|
-
height: 100%;
|
|
43
|
-
background: #f4f4f4;
|
|
44
|
-
}
|
|
45
|
-
</style>
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="input-wrap">
|
|
3
|
-
<tiny-input v-model="value" clearable @blur="blur" @focus="focus" @input="input"></tiny-input>
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script lang="jsx">
|
|
8
|
-
import { Input } from '@opentiny/vue'
|
|
9
|
-
|
|
10
|
-
export default {
|
|
11
|
-
components: {
|
|
12
|
-
TinyInput: Input
|
|
13
|
-
},
|
|
14
|
-
data() {
|
|
15
|
-
return {
|
|
16
|
-
value: '事件测试'
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
methods: {
|
|
20
|
-
blur() {
|
|
21
|
-
console.log('blur 事件')
|
|
22
|
-
},
|
|
23
|
-
focus() {
|
|
24
|
-
console.log('focus 事件')
|
|
25
|
-
},
|
|
26
|
-
input(value) {
|
|
27
|
-
console.log('input' + value)
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
</script>
|
|
32
|
-
|
|
33
|
-
<style>
|
|
34
|
-
.input-wrap {
|
|
35
|
-
padding-top: 20px;
|
|
36
|
-
height: 100%;
|
|
37
|
-
background: #f4f4f4;
|
|
38
|
-
}
|
|
39
|
-
</style>
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="input-wrap">
|
|
3
|
-
<tiny-button @click="click">选中输入框内容</tiny-button>
|
|
4
|
-
<br /><br />
|
|
5
|
-
<tiny-input ref="input" v-model="input"></tiny-input>
|
|
6
|
-
</div>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<script lang="jsx">
|
|
10
|
-
import { Input, Button } from '@opentiny/vue'
|
|
11
|
-
|
|
12
|
-
export default {
|
|
13
|
-
components: {
|
|
14
|
-
TinyInput: Input,
|
|
15
|
-
TinyButton: Button
|
|
16
|
-
},
|
|
17
|
-
data() {
|
|
18
|
-
return {
|
|
19
|
-
input: '我是输入框'
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
methods: {
|
|
23
|
-
click() {
|
|
24
|
-
this.$refs.input.select()
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
</script>
|
|
29
|
-
|
|
30
|
-
<style>
|
|
31
|
-
.input-wrap {
|
|
32
|
-
padding-top: 20px;
|
|
33
|
-
height: 100%;
|
|
34
|
-
background: #f4f4f4;
|
|
35
|
-
}
|
|
36
|
-
</style>
|