@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
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="demo-input">
|
|
3
|
+
<tiny-input v-model="input" :placeholder="placeholder"></tiny-input>
|
|
4
|
+
<br />
|
|
5
|
+
<tiny-input v-model="textareaVal" type="textarea" placeholder="用作文本框"></tiny-input>
|
|
6
|
+
</div>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script>
|
|
10
|
+
import { Input } from '@opentiny/vue'
|
|
11
|
+
|
|
12
|
+
export default {
|
|
13
|
+
components: {
|
|
14
|
+
TinyInput: Input
|
|
15
|
+
},
|
|
16
|
+
data() {
|
|
17
|
+
return {
|
|
18
|
+
input: '',
|
|
19
|
+
textareaVal: '',
|
|
20
|
+
placeholder: '请输入内容'
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<style scoped>
|
|
27
|
+
.demo-input {
|
|
28
|
+
padding: 20px 16px;
|
|
29
|
+
height: 100%;
|
|
30
|
+
background: #f5f5f5;
|
|
31
|
+
}
|
|
32
|
+
</style>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="input
|
|
2
|
+
<div class="demo-input">
|
|
3
3
|
<tiny-input v-model="input" clearable></tiny-input>
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
|
-
<script
|
|
7
|
+
<script>
|
|
8
8
|
import { Input } from '@opentiny/vue'
|
|
9
9
|
|
|
10
10
|
export default {
|
|
@@ -13,16 +13,16 @@ export default {
|
|
|
13
13
|
},
|
|
14
14
|
data() {
|
|
15
15
|
return {
|
|
16
|
-
input: '
|
|
16
|
+
input: '可一键清空'
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
</script>
|
|
21
21
|
|
|
22
|
-
<style>
|
|
23
|
-
.input
|
|
24
|
-
padding
|
|
22
|
+
<style scoped>
|
|
23
|
+
.demo-input {
|
|
24
|
+
padding: 20px 16px;
|
|
25
25
|
height: 100%;
|
|
26
|
-
background: #
|
|
26
|
+
background: #f5f5f5;
|
|
27
27
|
}
|
|
28
28
|
</style>
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="input
|
|
3
|
-
<tiny-input v-model="
|
|
2
|
+
<div class="demo-input">
|
|
3
|
+
<tiny-input v-model="input1" counter :maxlength="20"></tiny-input>
|
|
4
|
+
|
|
5
|
+
<tiny-input v-model="input2" type="textarea" show-word-limit :maxlength="20"></tiny-input>
|
|
4
6
|
</div>
|
|
5
7
|
</template>
|
|
6
8
|
|
|
7
|
-
<script
|
|
9
|
+
<script>
|
|
8
10
|
import { Input } from '@opentiny/vue'
|
|
9
11
|
|
|
10
12
|
export default {
|
|
@@ -13,16 +15,21 @@ export default {
|
|
|
13
15
|
},
|
|
14
16
|
data() {
|
|
15
17
|
return {
|
|
16
|
-
|
|
18
|
+
input1: 'counter 示例',
|
|
19
|
+
input2: 'show-word-limit 示例'
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
}
|
|
20
23
|
</script>
|
|
21
24
|
|
|
22
|
-
<style>
|
|
23
|
-
.input
|
|
24
|
-
padding
|
|
25
|
+
<style scoped>
|
|
26
|
+
.demo-input {
|
|
27
|
+
padding: 20px 16px;
|
|
25
28
|
height: 100%;
|
|
26
|
-
background: #
|
|
29
|
+
background: #f5f5f5;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.demo-input [class^='tiny'] {
|
|
33
|
+
margin-bottom: 8px;
|
|
27
34
|
}
|
|
28
35
|
</style>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="demo-input">
|
|
3
|
+
<tiny-input v-model="input" disabled :placeholder="placeholder"></tiny-input>
|
|
4
|
+
<br />
|
|
5
|
+
<tiny-input v-model="text" type="textarea" disabled></tiny-input>
|
|
6
|
+
</div>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script>
|
|
10
|
+
import { Input } from '@opentiny/vue'
|
|
11
|
+
|
|
12
|
+
export default {
|
|
13
|
+
components: {
|
|
14
|
+
TinyInput: Input
|
|
15
|
+
},
|
|
16
|
+
data() {
|
|
17
|
+
return {
|
|
18
|
+
input: '',
|
|
19
|
+
text: '已输入值',
|
|
20
|
+
placeholder: '请输入内容'
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<style scoped>
|
|
27
|
+
.demo-input {
|
|
28
|
+
padding: 20px;
|
|
29
|
+
height: 100%;
|
|
30
|
+
}
|
|
31
|
+
</style>
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="input-
|
|
3
|
-
<tiny-input v-model="
|
|
2
|
+
<div class="demo-input-events">
|
|
3
|
+
<tiny-input v-model="inputValue" placeholder="input" @input="onInput"></tiny-input>
|
|
4
|
+
<tiny-input v-model="inputChange" placeholder="change" @change="onChange"></tiny-input>
|
|
5
|
+
<tiny-input v-model="focusBlur" placeholder="focus, blur" @focus="onFocus" @blur="onBlur"></tiny-input>
|
|
6
|
+
<tiny-input v-model="clearValue" placeholder="cleared" clearable @clear="onClear"></tiny-input>
|
|
4
7
|
</div>
|
|
5
8
|
</template>
|
|
6
9
|
|
|
7
|
-
<script
|
|
8
|
-
import { Input } from '@opentiny/vue'
|
|
10
|
+
<script>
|
|
11
|
+
import { Input, Modal } from '@opentiny/vue'
|
|
9
12
|
|
|
10
13
|
export default {
|
|
11
14
|
components: {
|
|
@@ -13,24 +16,40 @@ export default {
|
|
|
13
16
|
},
|
|
14
17
|
data() {
|
|
15
18
|
return {
|
|
16
|
-
|
|
19
|
+
inputValue: '',
|
|
20
|
+
inputChange: '',
|
|
21
|
+
focusBlur: '',
|
|
22
|
+
clearValue: 'clear event'
|
|
17
23
|
}
|
|
18
24
|
},
|
|
19
25
|
methods: {
|
|
20
|
-
|
|
21
|
-
|
|
26
|
+
onChange() {
|
|
27
|
+
Modal.message('change')
|
|
22
28
|
},
|
|
23
|
-
|
|
24
|
-
|
|
29
|
+
onInput() {
|
|
30
|
+
Modal.message('input')
|
|
31
|
+
},
|
|
32
|
+
onBlur() {
|
|
33
|
+
Modal.message('blur')
|
|
34
|
+
},
|
|
35
|
+
onFocus() {
|
|
36
|
+
Modal.message('focus')
|
|
37
|
+
},
|
|
38
|
+
onClear() {
|
|
39
|
+
Modal.message('clear')
|
|
25
40
|
}
|
|
26
41
|
}
|
|
27
42
|
}
|
|
28
43
|
</script>
|
|
29
44
|
|
|
30
|
-
<style>
|
|
31
|
-
.input-
|
|
32
|
-
padding-top: 20px;
|
|
45
|
+
<style scoped>
|
|
46
|
+
.demo-input-events {
|
|
33
47
|
height: 100%;
|
|
34
|
-
|
|
48
|
+
padding: 20px 16px;
|
|
49
|
+
background: #f5f5f5;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.demo-input-events [class^='tiny'] {
|
|
53
|
+
margin-bottom: 16px;
|
|
35
54
|
}
|
|
36
55
|
</style>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="input
|
|
2
|
+
<div class="demo-input">
|
|
3
3
|
<tiny-input v-model="input" counter :maxlength="10" :minlength="5"></tiny-input>
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
|
-
<script
|
|
7
|
+
<script>
|
|
8
8
|
import { Input } from '@opentiny/vue'
|
|
9
9
|
|
|
10
10
|
export default {
|
|
@@ -19,10 +19,10 @@ export default {
|
|
|
19
19
|
}
|
|
20
20
|
</script>
|
|
21
21
|
|
|
22
|
-
<style>
|
|
23
|
-
.input
|
|
22
|
+
<style scoped>
|
|
23
|
+
.demo-input {
|
|
24
24
|
padding-top: 20px;
|
|
25
25
|
height: 100%;
|
|
26
|
-
background: #
|
|
26
|
+
background: #f5f5f5;
|
|
27
27
|
}
|
|
28
28
|
</style>
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="demo-input-methods">
|
|
3
|
+
<section>
|
|
4
|
+
<tiny-button plain @click="focus">focus</tiny-button>
|
|
5
|
+
<tiny-button plain @click="blur">blur</tiny-button>
|
|
6
|
+
<tiny-input ref="inputRef" v-model="value" placeholder="Please input"></tiny-input>
|
|
7
|
+
</section>
|
|
8
|
+
<section>
|
|
9
|
+
<tiny-button plain @click="select">select</tiny-button>
|
|
10
|
+
<tiny-input ref="selectRef" v-model="selectValue" placeholder="Please input"></tiny-input>
|
|
11
|
+
</section>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script>
|
|
16
|
+
import { Input, Button } from '@opentiny/vue'
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
components: {
|
|
20
|
+
TinyInput: Input,
|
|
21
|
+
TinyButton: Button
|
|
22
|
+
},
|
|
23
|
+
data() {
|
|
24
|
+
return {
|
|
25
|
+
value: '',
|
|
26
|
+
selectValue: '123456'
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
methods: {
|
|
30
|
+
select() {
|
|
31
|
+
this.$refs.selectRef.select()
|
|
32
|
+
},
|
|
33
|
+
blur() {
|
|
34
|
+
this.$refs.inputRef.blur()
|
|
35
|
+
},
|
|
36
|
+
focus() {
|
|
37
|
+
this.$refs.inputRef.focus()
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
</script>
|
|
42
|
+
|
|
43
|
+
<style scoped>
|
|
44
|
+
.demo-input-methods {
|
|
45
|
+
height: 100%;
|
|
46
|
+
padding: 20px 16px;
|
|
47
|
+
background: #f5f5f5;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.demo-input-methods [class^='tiny'] {
|
|
51
|
+
margin: 5px;
|
|
52
|
+
}
|
|
53
|
+
</style>
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="demo-input">
|
|
3
|
+
<div class="demo-input-item">
|
|
4
|
+
<span>autofocus</span>
|
|
5
|
+
<tiny-input v-model="autofocusVal" autofocus></tiny-input>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="demo-input-item">
|
|
8
|
+
<span>readonly</span>
|
|
9
|
+
<tiny-input v-model="input" readonly></tiny-input>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="demo-input-item">
|
|
12
|
+
<span>autocomplete="on"</span>
|
|
13
|
+
<form>
|
|
14
|
+
<tiny-input v-model="inputAutocomplete" autocomplete="on" name="email" type="email"></tiny-input>
|
|
15
|
+
</form>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="demo-input-item">
|
|
18
|
+
<span>step=2</span>
|
|
19
|
+
<tiny-input type="number" v-model="inputStep" :step="2" placeholder="step 为 2"></tiny-input>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="demo-input-item">
|
|
22
|
+
<span>min=2; max=11</span>
|
|
23
|
+
<tiny-input type="number" v-model="inputMaxMin" :min="2" :max="11"></tiny-input>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="demo-input-item">
|
|
26
|
+
<span>name</span>
|
|
27
|
+
<tiny-input v-model="username" name="username"></tiny-input>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</template>
|
|
31
|
+
|
|
32
|
+
<script>
|
|
33
|
+
import { Input } from '@opentiny/vue'
|
|
34
|
+
|
|
35
|
+
export default {
|
|
36
|
+
components: {
|
|
37
|
+
TinyInput: Input
|
|
38
|
+
},
|
|
39
|
+
data() {
|
|
40
|
+
return {
|
|
41
|
+
autofocusVal: '',
|
|
42
|
+
input: 'readonly',
|
|
43
|
+
inputStep: 2,
|
|
44
|
+
inputMaxMin: 1,
|
|
45
|
+
inputAutocomplete: '',
|
|
46
|
+
username: ''
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
</script>
|
|
51
|
+
|
|
52
|
+
<style scoped>
|
|
53
|
+
.demo-input {
|
|
54
|
+
padding: 20px 16px;
|
|
55
|
+
height: 100%;
|
|
56
|
+
background: #f5f5f5;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.demo-input .demo-input-item {
|
|
60
|
+
margin-bottom: 12px;
|
|
61
|
+
}
|
|
62
|
+
</style>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="demo-input-icons">
|
|
3
|
+
<tiny-input v-model="value" :prefix-icon="IconSearch" placeholder="前置图标示例"></tiny-input>
|
|
4
|
+
<tiny-input v-model="value" :suffix-icon="IconSearch" placeholder="后置图标示例"></tiny-input>
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
import { Input } from '@opentiny/vue'
|
|
10
|
+
import { iconSearch } from '@opentiny/vue-icon'
|
|
11
|
+
|
|
12
|
+
export default {
|
|
13
|
+
components: {
|
|
14
|
+
TinyInput: Input
|
|
15
|
+
},
|
|
16
|
+
data() {
|
|
17
|
+
return {
|
|
18
|
+
value: '',
|
|
19
|
+
IconSearch: iconSearch()
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<style scoped>
|
|
26
|
+
.demo-input-icons {
|
|
27
|
+
height: 100%;
|
|
28
|
+
padding: 20px 16px;
|
|
29
|
+
background: #f5f5f5;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.demo-input-icons .tiny-mobile-input {
|
|
33
|
+
margin-bottom: 16px;
|
|
34
|
+
}
|
|
35
|
+
</style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="input
|
|
2
|
+
<div class="demo-input">
|
|
3
3
|
<tiny-input v-model="input" show-password></tiny-input>
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
@@ -19,10 +19,10 @@ export default {
|
|
|
19
19
|
}
|
|
20
20
|
</script>
|
|
21
21
|
|
|
22
|
-
<style>
|
|
23
|
-
.input
|
|
24
|
-
padding-top: 20px;
|
|
22
|
+
<style scoped>
|
|
23
|
+
.demo-input {
|
|
25
24
|
height: 100%;
|
|
26
|
-
|
|
25
|
+
padding: 20px 16px;
|
|
26
|
+
background: #f5f5f5;
|
|
27
27
|
}
|
|
28
28
|
</style>
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="demo-input">
|
|
3
|
+
<tiny-input placeholder="prepend" v-model="input">
|
|
4
|
+
<template #prepend>Http://</template>
|
|
5
|
+
</tiny-input>
|
|
6
|
+
<tiny-input placeholder="append" v-model="input">
|
|
7
|
+
<template #append>.com</template>
|
|
8
|
+
</tiny-input>
|
|
9
|
+
<tiny-input placeholder="prefix" v-model="input">
|
|
10
|
+
<template #prefix>
|
|
11
|
+
<tiny-icon-search/>
|
|
12
|
+
</template>
|
|
13
|
+
</tiny-input>
|
|
14
|
+
<tiny-input placeholder="suffix" v-model="input">
|
|
15
|
+
<template #suffix>
|
|
16
|
+
<tiny-icon-calendar/>
|
|
17
|
+
</template>
|
|
18
|
+
</tiny-input>
|
|
19
|
+
<br />
|
|
20
|
+
|
|
21
|
+
<tiny-input placeholder="suffix" v-model="input">
|
|
22
|
+
<template #title>
|
|
23
|
+
<span>标题插槽内容</span>
|
|
24
|
+
</template>
|
|
25
|
+
|
|
26
|
+
<template #tips>
|
|
27
|
+
<span class="tips">提示插槽内容</span>
|
|
28
|
+
</template>
|
|
29
|
+
</tiny-input>
|
|
30
|
+
</div>
|
|
31
|
+
</template>
|
|
32
|
+
|
|
33
|
+
<script>
|
|
34
|
+
import { Input } from '@opentiny/vue'
|
|
35
|
+
import { IconSearch, IconCalendar } from '@opentiny/vue-icon'
|
|
36
|
+
|
|
37
|
+
export default {
|
|
38
|
+
components: {
|
|
39
|
+
TinyInput: Input,
|
|
40
|
+
TinyIconSearch: IconSearch(),
|
|
41
|
+
TinyIconCalendar: IconCalendar(),
|
|
42
|
+
},
|
|
43
|
+
data() {
|
|
44
|
+
return {
|
|
45
|
+
input: ''
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
</script>
|
|
50
|
+
|
|
51
|
+
<style scoped>
|
|
52
|
+
.demo-input {
|
|
53
|
+
height: 100%;
|
|
54
|
+
padding: 20px 16px;
|
|
55
|
+
background: #f5f5f5;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.demo-input [class^=tiny-mobile] {
|
|
59
|
+
margin-bottom: 8px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.tips {
|
|
63
|
+
color: #f23030;
|
|
64
|
+
}
|
|
65
|
+
</style>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="demo-input">
|
|
3
|
+
<p>rows=3 cols=80</p>
|
|
4
|
+
<tiny-input type="textarea" v-model="value" :rows="rows" :cols="cols" ></tiny-input>
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
import { Input } from '@opentiny/vue'
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
components: {
|
|
13
|
+
TinyInput: Input
|
|
14
|
+
},
|
|
15
|
+
data() {
|
|
16
|
+
return {
|
|
17
|
+
value: '杭州西湖是我国著名的旅游胜地,其位于浙江省杭州市西部。西湖是中国最美丽的湖泊之一。',
|
|
18
|
+
rows: 3,
|
|
19
|
+
cols: 30,
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<style scoped>
|
|
26
|
+
.demo-input {
|
|
27
|
+
height: 100%;
|
|
28
|
+
padding: 20px 16px;
|
|
29
|
+
background: #f5f5f5;
|
|
30
|
+
}
|
|
31
|
+
</style>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="demo-input">
|
|
3
|
+
<p>resize</p>
|
|
4
|
+
<tiny-input type="textarea" v-model="input" resize="vertical" placeholder="resize = vertical (default)"></tiny-input>
|
|
5
|
+
<tiny-input type="textarea" v-model="input" resize="none" placeholder="resize = none"></tiny-input>
|
|
6
|
+
<tiny-input type="textarea" v-model="input" resize="both" placeholder="resize = both" width="300px"></tiny-input>
|
|
7
|
+
<tiny-input type="textarea" v-model="input" resize="horizontal" placeholder="resize = horizontal"></tiny-input>
|
|
8
|
+
|
|
9
|
+
<p>autosize</p>
|
|
10
|
+
<tiny-input type="textarea" v-model="textarea" placeholder="autosize" autosize></tiny-input>
|
|
11
|
+
<tiny-input type="textarea" v-model="textarea" placeholder="autosize = { minRows: 2, maxRows: 3 }" :autosize="{ minRows: 2, maxRows: 3 }"></tiny-input>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script>
|
|
16
|
+
import { Input } from '@opentiny/vue'
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
components: {
|
|
20
|
+
TinyInput: Input
|
|
21
|
+
},
|
|
22
|
+
data() {
|
|
23
|
+
return {
|
|
24
|
+
input: '',
|
|
25
|
+
textarea: ''
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<style scoped>
|
|
32
|
+
.demo-input {
|
|
33
|
+
height: 100%;
|
|
34
|
+
padding: 20px 16px;
|
|
35
|
+
background: #f5f5f5;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.demo-input .tiny-mobile-textarea {
|
|
39
|
+
margin-bottom: 8px;
|
|
40
|
+
}
|
|
41
|
+
</style>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="input
|
|
2
|
+
<div class="demo-input">
|
|
3
3
|
<tiny-input v-model="input" is-select :select-menu="menus" placeholder="请输入内容" type="form"></tiny-input>
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
|
-
<script
|
|
7
|
+
<script>
|
|
8
8
|
import { Input } from '@opentiny/vue'
|
|
9
9
|
|
|
10
10
|
export default {
|
|
@@ -17,19 +17,19 @@ export default {
|
|
|
17
17
|
menus: [
|
|
18
18
|
{
|
|
19
19
|
id: 1,
|
|
20
|
-
label: '
|
|
20
|
+
label: '很长的选项。很长的选项。很长的选项。很长的选项。很长的选项。很长的选项。很长的选项。'
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
id: 2,
|
|
24
|
-
label: '
|
|
24
|
+
label: '选项2'
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
id: 3,
|
|
28
|
-
label: '
|
|
28
|
+
label: '选项3'
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
id: 4,
|
|
32
|
-
label: '
|
|
32
|
+
label: 'warn 为true的选项',
|
|
33
33
|
warn: true
|
|
34
34
|
}
|
|
35
35
|
]
|
|
@@ -38,10 +38,10 @@ export default {
|
|
|
38
38
|
}
|
|
39
39
|
</script>
|
|
40
40
|
|
|
41
|
-
<style>
|
|
42
|
-
.input
|
|
43
|
-
padding
|
|
41
|
+
<style scoped>
|
|
42
|
+
.demo-input {
|
|
43
|
+
padding: 20px 16px;
|
|
44
44
|
height: 100%;
|
|
45
|
-
background: #
|
|
45
|
+
background: #f5f5f5;
|
|
46
46
|
}
|
|
47
47
|
</style>
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="demo-input">
|
|
3
|
+
<tiny-input v-model="text" placeholder="text"></tiny-input>
|
|
4
|
+
<tiny-input type="password" v-model="password" placeholder="password"></tiny-input>
|
|
5
|
+
<tiny-input type="textarea" v-model="textarea" placeholder="textarea"></tiny-input>
|
|
6
|
+
<tiny-input type="email" v-model="email" placeholder="email"></tiny-input>
|
|
7
|
+
<tiny-input type="number" v-model="number" placeholder="number"></tiny-input>
|
|
8
|
+
<tiny-input type="tel" v-model="tel" placeholder="tel"></tiny-input>
|
|
9
|
+
<tiny-input type="url" v-model="url" placeholder="url"></tiny-input>
|
|
10
|
+
<tiny-input type="date" v-model="date"></tiny-input>
|
|
11
|
+
<tiny-input type="month" v-model="month"></tiny-input>
|
|
12
|
+
<tiny-input type="week" v-model="week"></tiny-input>
|
|
13
|
+
<tiny-input type="datetime-local" v-model="datetime"></tiny-input>
|
|
14
|
+
<tiny-input type="time" v-model="time"></tiny-input>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script>
|
|
19
|
+
import { Input } from '@opentiny/vue'
|
|
20
|
+
|
|
21
|
+
export default {
|
|
22
|
+
components: {
|
|
23
|
+
TinyInput: Input
|
|
24
|
+
},
|
|
25
|
+
data() {
|
|
26
|
+
return {
|
|
27
|
+
text: '',
|
|
28
|
+
password: '',
|
|
29
|
+
textarea: '',
|
|
30
|
+
email: '',
|
|
31
|
+
number: '',
|
|
32
|
+
tel: '',
|
|
33
|
+
url: '',
|
|
34
|
+
color: '#000000',
|
|
35
|
+
date: '',
|
|
36
|
+
month: '',
|
|
37
|
+
week: '',
|
|
38
|
+
datetime: '',
|
|
39
|
+
time: '',
|
|
40
|
+
file: '',
|
|
41
|
+
range: ''
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
</script>
|
|
46
|
+
|
|
47
|
+
<style scoped>
|
|
48
|
+
.demo-input {
|
|
49
|
+
height: 100%;
|
|
50
|
+
padding: 20px 16px;
|
|
51
|
+
box-sizing: border-box;
|
|
52
|
+
overflow-y: scroll;
|
|
53
|
+
background: #f5f5f5;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.demo-input .tiny-mobile-input,
|
|
57
|
+
.demo-input .tiny-mobile-textarea {
|
|
58
|
+
margin-bottom: 8px;
|
|
59
|
+
}
|
|
60
|
+
</style>
|