@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,114 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
column: '2',
|
|
3
|
+
owner: '',
|
|
4
|
+
demos: [
|
|
5
|
+
{
|
|
6
|
+
demoId: 'base',
|
|
7
|
+
name: {
|
|
8
|
+
'zh-CN': '基本使用',
|
|
9
|
+
'en-US': 'left right arrow'
|
|
10
|
+
},
|
|
11
|
+
desc: {
|
|
12
|
+
'zh-CN': '<p>通过 <code>v-model:visible</code> 属性设置显示与隐藏遮罩层;<code>click</code> 监听点击事件。</p>',
|
|
13
|
+
'en-US': '<p>double-line</p>'
|
|
14
|
+
},
|
|
15
|
+
codeFiles: ['basic-usage.vue']
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
demoId: 'cancel-touch',
|
|
19
|
+
name: {
|
|
20
|
+
'zh-CN': '点击遮罩层不隐藏',
|
|
21
|
+
'en-US': 'No hide after clicking'
|
|
22
|
+
},
|
|
23
|
+
desc: {
|
|
24
|
+
'zh-CN': '<p>通过 <code>cancel-touch</code> 属性设置点击遮罩层后组件不隐藏</p>',
|
|
25
|
+
'en-US':
|
|
26
|
+
'<p>"By setting the <code>cancel-touch</code> attribute, the component will not be hidden when clicking on the mask layer.</p>'
|
|
27
|
+
},
|
|
28
|
+
codeFiles: ['click-no-hide.vue']
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
demoId: 'z-index',
|
|
32
|
+
name: {
|
|
33
|
+
'zh-CN': '层叠数值',
|
|
34
|
+
'en-US': 'z-index'
|
|
35
|
+
},
|
|
36
|
+
desc: {
|
|
37
|
+
'zh-CN': '<p>通过 <code>z-index</code> 属性设置层叠数值。</p>',
|
|
38
|
+
'en-US': '<p>"Use the <code>z-index</code> attribute to set z-index of CSS property.</p>'
|
|
39
|
+
},
|
|
40
|
+
codeFiles: ['z-index.vue']
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
demoId: 'slot-default',
|
|
44
|
+
name: {
|
|
45
|
+
'zh-CN': '默认插槽',
|
|
46
|
+
'en-US': 'Default slot'
|
|
47
|
+
},
|
|
48
|
+
desc: {
|
|
49
|
+
'zh-CN': '<p>通过 <code>default</code> 默认插槽自定义嵌入内容。</p>',
|
|
50
|
+
'en-US':
|
|
51
|
+
'<p>"By setting the <code>cancel-touch</code> attribute, the component will not be hidden when clicking on the mask layer.</p>'
|
|
52
|
+
},
|
|
53
|
+
codeFiles: ['slot-default.vue']
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
apis: [
|
|
57
|
+
{
|
|
58
|
+
name: 'Mask',
|
|
59
|
+
type: 'component',
|
|
60
|
+
properties: [
|
|
61
|
+
{
|
|
62
|
+
name: 'cancelTouch',
|
|
63
|
+
type: 'boolean',
|
|
64
|
+
defaultValue: 'false',
|
|
65
|
+
desc: {
|
|
66
|
+
'zh-CN': '是否禁用touch事件,设为 <code>true</code> 后点击遮罩层不会关闭',
|
|
67
|
+
'en-US': "whether to disable touch events, and mask wouldn't close when it was set <code>true</code>"
|
|
68
|
+
},
|
|
69
|
+
demoId: 'cancel-touch'
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: 'visible',
|
|
73
|
+
type: 'boolean',
|
|
74
|
+
defaultValue: 'false',
|
|
75
|
+
desc: {
|
|
76
|
+
'zh-CN': '是否展示遮罩层',
|
|
77
|
+
'en-US': 'whether to show mask layer'
|
|
78
|
+
},
|
|
79
|
+
demoId: 'base'
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: 'z-index',
|
|
83
|
+
type: 'number',
|
|
84
|
+
defaultValue: '99',
|
|
85
|
+
desc: {
|
|
86
|
+
'zh-CN': '层叠数值',
|
|
87
|
+
'en-US': 'z-index property'
|
|
88
|
+
},
|
|
89
|
+
demoId: 'z-index'
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
events: [
|
|
93
|
+
{
|
|
94
|
+
name: 'click',
|
|
95
|
+
desc: {
|
|
96
|
+
'zh-CN': '点击遮罩层触发',
|
|
97
|
+
'en-US': 'Click'
|
|
98
|
+
},
|
|
99
|
+
demoId: 'basic-usage'
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
slots: [
|
|
103
|
+
{
|
|
104
|
+
name: 'default',
|
|
105
|
+
desc: {
|
|
106
|
+
'zh-CN': '默认插槽',
|
|
107
|
+
'en-US': 'Default slot'
|
|
108
|
+
},
|
|
109
|
+
demoId: 'slot-default'
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="mobile-mask-demo">
|
|
3
|
+
<tiny-button @click="visible = true">点击展示遮罩层</tiny-button>
|
|
4
|
+
<tiny-mask v-model:visible="visible" :z-index="zIndex"></tiny-mask>
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
import { Mask, Button } from '@opentiny/vue'
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
components: {
|
|
13
|
+
TinyMask: Mask,
|
|
14
|
+
TinyButton: Button
|
|
15
|
+
},
|
|
16
|
+
data() {
|
|
17
|
+
return {
|
|
18
|
+
visible: false,
|
|
19
|
+
zIndex: 9999
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
}
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<style scoped>
|
|
26
|
+
.mobile-mask-demo {
|
|
27
|
+
height: 100%;
|
|
28
|
+
background: #f4f4f4;
|
|
29
|
+
}
|
|
30
|
+
</style>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="tiny-tag-demo">
|
|
3
|
+
<tiny-tag color="default" text="默认" />
|
|
4
|
+
<tiny-tag color="default"> 默认默认默认默认默认默认默认默认</tiny-tag>
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
import { Tag } from '@opentiny/vue'
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
components: {
|
|
13
|
+
TinyTag: Tag
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<style>
|
|
19
|
+
.tiny-tag-demo {
|
|
20
|
+
padding: 10px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.tiny-mobile-tag {
|
|
24
|
+
margin-right: 10px;
|
|
25
|
+
margin-bottom: 10px;
|
|
26
|
+
}
|
|
27
|
+
</style>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="tiny-tag-demo">
|
|
3
|
+
<tiny-tag color="default" text=""> 默认 </tiny-tag>
|
|
4
|
+
<tiny-tag color="red" text="红色" />
|
|
5
|
+
<tiny-tag color="blue" text="蓝色"> </tiny-tag>
|
|
6
|
+
<tiny-tag color="yellow" text="黄色"> </tiny-tag>
|
|
7
|
+
<tiny-tag color="green" text="绿色"> </tiny-tag>
|
|
8
|
+
</div>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script>
|
|
12
|
+
import { Tag } from '@opentiny/vue'
|
|
13
|
+
|
|
14
|
+
export default {
|
|
15
|
+
components: {
|
|
16
|
+
TinyTag: Tag
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<style>
|
|
22
|
+
.tiny-tag-demo {
|
|
23
|
+
padding: 10px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.tiny-mobile-tag {
|
|
27
|
+
margin-right: 10px;
|
|
28
|
+
margin-bottom: 10px;
|
|
29
|
+
}
|
|
30
|
+
</style>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="tiny-tag-demo">
|
|
3
|
+
<tiny-tag color="default" max-width="100"> 默认默认默认默认默认默认默认默认 </tiny-tag>
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
import { Tag } from '@opentiny/vue'
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
components: {
|
|
12
|
+
TinyTag: Tag
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<style>
|
|
18
|
+
.tiny-tag-demo {
|
|
19
|
+
padding: 10px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.tiny-mobile-tag {
|
|
23
|
+
margin-right: 10px;
|
|
24
|
+
margin-bottom: 10px;
|
|
25
|
+
}
|
|
26
|
+
</style>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="tiny-tag-demo">
|
|
3
|
+
<tiny-tag color="default"> 默认 </tiny-tag>
|
|
4
|
+
<tiny-tag color="default" mini> 小尺寸 </tiny-tag>
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
import { Tag } from '@opentiny/vue'
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
components: {
|
|
13
|
+
TinyTag: Tag
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<style>
|
|
19
|
+
.tiny-tag-demo {
|
|
20
|
+
padding: 10px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.tiny-mobile-tag {
|
|
24
|
+
margin-right: 10px;
|
|
25
|
+
margin-bottom: 10px;
|
|
26
|
+
}
|
|
27
|
+
</style>
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
column: '2',
|
|
3
|
+
owner: '',
|
|
4
|
+
demos: [
|
|
5
|
+
{
|
|
6
|
+
'demoId': 'basic-usage',
|
|
7
|
+
'name': { 'zh-CN': '基本用法', 'en-US': 'Basic Usage' },
|
|
8
|
+
'desc': {
|
|
9
|
+
'zh-CN': '基本用法',
|
|
10
|
+
'en-US': 'Basic Usage'
|
|
11
|
+
},
|
|
12
|
+
'codeFiles': ['basic-usage.vue']
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
'demoId': 'different-color',
|
|
16
|
+
'name': { 'zh-CN': '不同颜色', 'en-US': 'Different Color' },
|
|
17
|
+
'desc': {
|
|
18
|
+
'zh-CN': '不同颜色',
|
|
19
|
+
'en-US': 'Different Color'
|
|
20
|
+
},
|
|
21
|
+
'codeFiles': ['different-color.vue']
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
'demoId': 'max-width',
|
|
25
|
+
'name': { 'zh-CN': '最大宽度', 'en-US': 'Max Width' },
|
|
26
|
+
'desc': {
|
|
27
|
+
'zh-CN': '最大宽度',
|
|
28
|
+
'en-US': 'Max Width'
|
|
29
|
+
},
|
|
30
|
+
'codeFiles': ['max-width.vue']
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
'demoId': 'mini',
|
|
34
|
+
'name': { 'zh-CN': '小尺寸', 'en-US': 'Mini' },
|
|
35
|
+
'desc': {
|
|
36
|
+
'zh-CN': '小尺寸',
|
|
37
|
+
'en-US': 'Mini'
|
|
38
|
+
},
|
|
39
|
+
'codeFiles': ['mini.vue']
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
apis: [
|
|
43
|
+
{
|
|
44
|
+
'name': 'tag',
|
|
45
|
+
'type': 'component',
|
|
46
|
+
'props': [
|
|
47
|
+
{
|
|
48
|
+
'name': 'color',
|
|
49
|
+
'type': 'string',
|
|
50
|
+
'defaultValue': 'default',
|
|
51
|
+
'desc': {
|
|
52
|
+
'zh-CN': '文字颜色:default、red、blue、yellow、green',
|
|
53
|
+
'en-US': 'text color: default、red、blue、yellow、green'
|
|
54
|
+
},
|
|
55
|
+
'demoId': 'different-color'
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
'name': 'max-width',
|
|
59
|
+
'type': 'string | number',
|
|
60
|
+
'defaultValue': '',
|
|
61
|
+
'desc': { 'zh-CN': '最大宽度', 'en-US': 'max width' },
|
|
62
|
+
'demoId': 'max-width'
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
'name': 'mini',
|
|
66
|
+
'type': 'boolean',
|
|
67
|
+
'defaultValue': 'false',
|
|
68
|
+
'desc': {
|
|
69
|
+
'zh-CN': '小尺寸',
|
|
70
|
+
'en-US': 'mini'
|
|
71
|
+
},
|
|
72
|
+
'demoId': 'mini'
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
'name': 'text',
|
|
76
|
+
'type': 'string',
|
|
77
|
+
'defaultValue': '',
|
|
78
|
+
'desc': {
|
|
79
|
+
'zh-CN': '文字',
|
|
80
|
+
'en-US': 'Text'
|
|
81
|
+
},
|
|
82
|
+
'demoId': 'basic-usage'
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
'slots': [
|
|
86
|
+
{
|
|
87
|
+
'name': 'default',
|
|
88
|
+
'type': '',
|
|
89
|
+
'defaultValue': '',
|
|
90
|
+
'desc': { 'zh-CN': '标签内容', 'en-US': 'Label Content' },
|
|
91
|
+
'demoId': 'slot-default'
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
}
|
package/demos/mobile/menus.js
CHANGED
|
@@ -79,6 +79,7 @@ export const cmpMenus = [
|
|
|
79
79
|
{ name: 'Slider', nameCn: '滑块', key: 'slider' },
|
|
80
80
|
{ name: 'CheckboxGroup', nameCn: '复选框组', key: 'checkboxgroup' },
|
|
81
81
|
{ name: 'Input', nameCn: '输入框', key: 'input' },
|
|
82
|
+
{ name: 'Label', nameCn: '文本', key: 'label' },
|
|
82
83
|
{ name: 'Radio', nameCn: '单选', key: 'radio' },
|
|
83
84
|
{ name: 'Search', nameCn: '搜索框', key: 'search' },
|
|
84
85
|
{ name: 'Switch', nameCn: '开关', key: 'switch' },
|
|
@@ -98,7 +99,8 @@ export const cmpMenus = [
|
|
|
98
99
|
{ name: 'Loading', nameCn: '加载', key: 'loading' },
|
|
99
100
|
{ name: 'Modal', nameCn: '模态框', key: 'modal' },
|
|
100
101
|
{ name: 'Popover', nameCn: '气泡', key: 'popover' },
|
|
101
|
-
{ name: 'Toast', nameCn: '轻提示', key: 'toast' }
|
|
102
|
+
{ name: 'Toast', nameCn: '轻提示', key: 'toast' },
|
|
103
|
+
{ name: 'Mask', nameCn: '遮罩层', key: 'mask' }
|
|
102
104
|
]
|
|
103
105
|
},
|
|
104
106
|
{
|
|
@@ -112,7 +114,8 @@ export const cmpMenus = [
|
|
|
112
114
|
{ name: 'Icon', nameCn: '图标', key: 'icon' },
|
|
113
115
|
{ name: 'ActionSheet', nameCn: '上滑列表组件', key: 'actionsheet' },
|
|
114
116
|
{ name: 'MiniPicker', nameCn: 'mini选择器', key: 'minipicker' },
|
|
115
|
-
{ name: 'UserHead', nameCn: '用户头像', key: 'user-head' }
|
|
117
|
+
{ name: 'UserHead', nameCn: '用户头像', key: 'user-head' },
|
|
118
|
+
{ name: 'Tag', nameCn: '标签', key: 'tag' }
|
|
116
119
|
]
|
|
117
120
|
}
|
|
118
121
|
]
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
column: '2',
|
|
3
3
|
owner: '',
|
|
4
|
-
demos: [
|
|
5
|
-
{
|
|
4
|
+
demos: [{
|
|
6
5
|
demoId: 'type',
|
|
7
6
|
name: {
|
|
8
7
|
'zh-CN': '类型',
|
|
9
|
-
'en-US': '
|
|
8
|
+
'en-US': 'type'
|
|
10
9
|
},
|
|
11
10
|
desc: {
|
|
12
11
|
'zh-CN': '<p>通过<code>type</code>设置不同的类型。可选值:success、warning、info、error,默认值:info 。</p>',
|
|
13
|
-
'en-US': '<p>
|
|
12
|
+
'en-US': '<p>Use <code>type</code> to set different types. The options are success, warning, info, and error. The default value is info.</p>'
|
|
14
13
|
},
|
|
15
14
|
codeFiles: ['type.vue']
|
|
16
15
|
},
|
|
@@ -18,11 +17,11 @@ export default {
|
|
|
18
17
|
demoId: 'size',
|
|
19
18
|
name: {
|
|
20
19
|
'zh-CN': '大尺寸',
|
|
21
|
-
'en-US': '
|
|
20
|
+
'en-US': 'Large size'
|
|
22
21
|
},
|
|
23
22
|
desc: {
|
|
24
23
|
'zh-CN': '<p>通过 <code>size</code> 属性设置不同的尺寸,可选值:nomal、large,默认值:nomal 。</p>',
|
|
25
|
-
'en-US': '<p>
|
|
24
|
+
'en-US': '<p>Use the <code>size</code> attribute to set different sizes. The options are nomal and large. The default value is nomal.</p>'
|
|
26
25
|
},
|
|
27
26
|
codeFiles: ['size.vue']
|
|
28
27
|
},
|
|
@@ -30,12 +29,11 @@ export default {
|
|
|
30
29
|
demoId: 'title',
|
|
31
30
|
name: {
|
|
32
31
|
'zh-CN': '自定义标题',
|
|
33
|
-
'en-US': '
|
|
32
|
+
'en-US': 'Custom Title'
|
|
34
33
|
},
|
|
35
34
|
desc: {
|
|
36
|
-
'zh-CN':
|
|
37
|
-
|
|
38
|
-
'en-US': '<p>bbutton click</p>'
|
|
35
|
+
'zh-CN': '<p>当 <code>size</code>为 large 时显示标题,可设置 <code>title</code> 或 <code>slot</code> 自定义标题。默认标题根据设置的 <code>type</code> 显示。</p>',
|
|
36
|
+
'en-US': '<p>When <code>size</code> is set to large, the title is displayed. You can set <code>title</code> or <code>slot</code> to customize the title. The default title is displayed according to the set <code>type</code>.</p>'
|
|
39
37
|
},
|
|
40
38
|
codeFiles: ['title.vue']
|
|
41
39
|
},
|
|
@@ -55,11 +53,11 @@ export default {
|
|
|
55
53
|
demoId: 'closable',
|
|
56
54
|
name: {
|
|
57
55
|
'zh-CN': '不可关闭',
|
|
58
|
-
'en-US': '
|
|
56
|
+
'en-US': 'Can not be closed'
|
|
59
57
|
},
|
|
60
58
|
desc: {
|
|
61
|
-
'zh-CN': '<p>通过 <code>closable</code>
|
|
62
|
-
'en-US': '<p>
|
|
59
|
+
'zh-CN': '<p>通过 <code>closable</code> 属性可设置是否显示关闭按钮,没有关闭按钮,警告框将不可关闭。</p>',
|
|
60
|
+
'en-US': '<p>The <code>closable</code> attribute can be used to set whether to display the Close button. If there is no Close button, the Warning dialog box cannot be closed.</p>'
|
|
63
61
|
},
|
|
64
62
|
codeFiles: ['closable.vue']
|
|
65
63
|
},
|
|
@@ -67,11 +65,11 @@ export default {
|
|
|
67
65
|
demoId: 'custom-description',
|
|
68
66
|
name: {
|
|
69
67
|
'zh-CN': '自定义提示内容',
|
|
70
|
-
'en-US': '
|
|
68
|
+
'en-US': 'Customized prompt content'
|
|
71
69
|
},
|
|
72
70
|
desc: {
|
|
73
|
-
'zh-CN': '<p>可通过 <code>description</code>
|
|
74
|
-
'en-US': '<p>
|
|
71
|
+
'zh-CN': '<p>可通过 <code>description</code> 属性或插槽设置自定义提示内容。</p>',
|
|
72
|
+
'en-US': '<p>You can customize the prompt content through the <code>description</code> property or slot.</p>'
|
|
75
73
|
},
|
|
76
74
|
codeFiles: ['custom-description.vue']
|
|
77
75
|
},
|
|
@@ -79,11 +77,11 @@ export default {
|
|
|
79
77
|
demoId: 'slot-default',
|
|
80
78
|
name: {
|
|
81
79
|
'zh-CN': '自定义交互操作',
|
|
82
|
-
'en-US': '
|
|
80
|
+
'en-US': 'Customizing Interactions'
|
|
83
81
|
},
|
|
84
82
|
desc: {
|
|
85
|
-
'zh-CN': '<p>当 <code>size</code> 为 large
|
|
86
|
-
'en-US': '<p>
|
|
83
|
+
'zh-CN': '<p>当 <code>size</code> 为 large 时,设置默认插槽自定义交互操作。</p>',
|
|
84
|
+
'en-US': '<p>Set the default slot custom interaction when <code>size</code> is large.</p>'
|
|
87
85
|
},
|
|
88
86
|
codeFiles: ['slot-default.vue']
|
|
89
87
|
},
|
|
@@ -91,11 +89,11 @@ export default {
|
|
|
91
89
|
demoId: 'close',
|
|
92
90
|
name: {
|
|
93
91
|
'zh-CN': '关闭事件',
|
|
94
|
-
'en-US': '
|
|
92
|
+
'en-US': 'Close Event'
|
|
95
93
|
},
|
|
96
94
|
desc: {
|
|
97
|
-
'zh-CN': '<p><code>close</code>
|
|
98
|
-
'en-US': '<p>
|
|
95
|
+
'zh-CN': '<p><code>close</code> 事件,关闭警告框时触发。</p>',
|
|
96
|
+
'en-US': '<p><code>close</code> event, triggered when the warning dialog box is closed.</p>'
|
|
99
97
|
},
|
|
100
98
|
codeFiles: ['close.vue']
|
|
101
99
|
},
|
|
@@ -103,12 +101,11 @@ export default {
|
|
|
103
101
|
demoId: 'feedback-of-result',
|
|
104
102
|
name: {
|
|
105
103
|
'zh-CN': '表单提交结果反馈',
|
|
106
|
-
'en-US': '
|
|
104
|
+
'en-US': 'Form submission result feedback'
|
|
107
105
|
},
|
|
108
106
|
desc: {
|
|
109
|
-
'zh-CN':
|
|
110
|
-
|
|
111
|
-
'en-US': '<p>bbutton click</p>'
|
|
107
|
+
'zh-CN': '<p>当 <code>size</code> 为 large 时,属性 <code>description</code> 和默认插槽结合使用,可渲染提交反馈界面。</p>',
|
|
108
|
+
'en-US': '<p>When <code>size</code> is set to large, the <code>description</code> attribute is used together with the default slot to render the submission feedback interface.</p>'
|
|
112
109
|
},
|
|
113
110
|
codeFiles: ['feedback-of-result.vue']
|
|
114
111
|
},
|
|
@@ -116,11 +113,11 @@ export default {
|
|
|
116
113
|
demoId: 'show-icon',
|
|
117
114
|
name: {
|
|
118
115
|
'zh-CN': '是否显示图标',
|
|
119
|
-
'en-US': '
|
|
116
|
+
'en-US': 'Indicates whether to display the icon.'
|
|
120
117
|
},
|
|
121
118
|
desc: {
|
|
122
|
-
'zh-CN': '<p>通过配置 <code>show-icon</code>
|
|
123
|
-
'en-US': '<p>
|
|
119
|
+
'zh-CN': '<p>通过配置 <code>show-icon</code> 属性,控制图标是否显示。</p>',
|
|
120
|
+
'en-US': '<p>You can set the <code>show-icon</code> attribute to control whether to display the icon.</p>'
|
|
124
121
|
},
|
|
125
122
|
codeFiles: ['show-icon.vue']
|
|
126
123
|
},
|
|
@@ -128,12 +125,11 @@ export default {
|
|
|
128
125
|
demoId: 'show-foldable',
|
|
129
126
|
name: {
|
|
130
127
|
'zh-CN': '带标题可折叠样式',
|
|
131
|
-
'en-US': '
|
|
128
|
+
'en-US': 'Collapsible Style with Title'
|
|
132
129
|
},
|
|
133
130
|
desc: {
|
|
134
|
-
'zh-CN':
|
|
135
|
-
|
|
136
|
-
'en-US': '<p>bbutton click</p>'
|
|
131
|
+
'zh-CN': '<p>通过 `flex-basis` 属性可以设置内容插槽的宽度,flex-basis 类型为数组,最多能传入 4 个值,支持百分比,固定宽度及固有的尺寸关键词,默认为 auto,详情见 flex 的 flex-basis 属性。<br /> 通过设置`flex-grow`属性可以设置每一项在 flex 容器中分配剩余空间的相对比例,默认为 1。如果不想自动撑满主容器,可以设为 0,详情见 flex 的 flex-grow 属性。<br />flex-grow 举例:`:flex-grow="[0, 0]" :flex-grow="[2, 1]" :flex-grow="[2, 1,1,1]"` <br />flex-basis 举例:`:flex-basis="["200px", "100px","300px"]" :flex-basis="["75%", "25%"]" :flex-basis="["40%", "20%", "20%", "20%"]"`</p>',
|
|
132
|
+
'en-US': '<p>The `flex-basis` attribute can be used to set the width of the content slot. The flex-basis type is an array. A maximum of four values can be transferred. The percentage, fixed width, and inherent size keywords are supported. The default value is auto. For details, see the flex-basis attribute of Flex. <br />You can set the relative proportion of the remaining space allocated to each item in the flex container by setting the `flex-grow` attribute. The default value is 1. If you do not want to automatically fill the main container, set this parameter to 0. For details, see the flex-grow attribute of flex. <br />Flex-grow Example: `:flex-grow="[0, 0]" :flex-grow="[2, 1]" :flex-grow="[2, 1,1,1]"` <br />flex-basis Example: `:flex-basis="["200px", "100px","300px"]" :flex-basis="["75%", "25%"]" :flex-basis="["40%", "20%", "20%", "20%"]"`</p>'
|
|
137
133
|
},
|
|
138
134
|
codeFiles: ['show-foldable.vue']
|
|
139
135
|
},
|
|
@@ -141,7 +137,7 @@ export default {
|
|
|
141
137
|
demoId: 'custom-class',
|
|
142
138
|
name: {
|
|
143
139
|
'zh-CN': '自定义类名',
|
|
144
|
-
'en-US': '
|
|
140
|
+
'en-US': 'User-defined class name'
|
|
145
141
|
},
|
|
146
142
|
desc: {
|
|
147
143
|
'zh-CN': '<p>通过<code>custom-class</code>属性设置自定义类名<p>',
|
|
@@ -150,5 +146,50 @@ export default {
|
|
|
150
146
|
codeFiles: ['custom-class.vue']
|
|
151
147
|
}
|
|
152
148
|
],
|
|
153
|
-
apis: [
|
|
154
|
-
|
|
149
|
+
apis: [{
|
|
150
|
+
'name': 'Alert',
|
|
151
|
+
'type': 'component',
|
|
152
|
+
'props': [{
|
|
153
|
+
'name': 'scrolling',
|
|
154
|
+
'type': 'String',
|
|
155
|
+
'defaultValue': '',
|
|
156
|
+
'desc': {
|
|
157
|
+
'zh-CN': '是否开启描述文字在鼠标 hover 时滚动显示的动画。',
|
|
158
|
+
'en-US': 'Indicates whether to enable the animation of the description text scrolling when the mouse hovers.'
|
|
159
|
+
},
|
|
160
|
+
'demoId': ''
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
'name': 'show-foldable',
|
|
164
|
+
'type': 'String',
|
|
165
|
+
'defaultValue': '',
|
|
166
|
+
'desc': {
|
|
167
|
+
'zh-CN': '展示带标题可折叠样式。',
|
|
168
|
+
'en-US': 'Shows collapsible styles with titles.'
|
|
169
|
+
},
|
|
170
|
+
'demoId': ''
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
'name': 'single-line',
|
|
174
|
+
'type': 'String',
|
|
175
|
+
'defaultValue': '',
|
|
176
|
+
'desc': {
|
|
177
|
+
'zh-CN': '描述内容是否一行显示,超出显示...,默认值为 false。',
|
|
178
|
+
'en-US': 'Indicates whether the description is displayed in one line. The default value is false.'
|
|
179
|
+
},
|
|
180
|
+
'demoId': ''
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
'events': [{
|
|
184
|
+
'name': 'handleHeaderClick',
|
|
185
|
+
'type': 'Function()',
|
|
186
|
+
'defaultValue': '',
|
|
187
|
+
'desc': {
|
|
188
|
+
'zh-CN': '标题点击事件,设置 show-foldable 为 true 时有效。',
|
|
189
|
+
'en-US': 'Title click event. This parameter is valid only when show-foldable is set to true.'
|
|
190
|
+
},
|
|
191
|
+
'demoId': ''
|
|
192
|
+
}],
|
|
193
|
+
'slots': []
|
|
194
|
+
}]
|
|
195
|
+
}
|