@opentiny/vue-docs 2.2.19 → 2.2.21
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/apis/action-menu.js +11 -0
- package/demos/apis/cascader.js +10 -0
- package/demos/apis/config-provider.js +1 -1
- package/demos/apis/date-picker.js +1 -1
- package/demos/apis/float-button.js +22 -22
- package/demos/apis/form.js +21 -0
- package/demos/apis/hui.js +49 -0
- package/demos/apis/image.js +32 -7
- package/demos/apis/mind-map.js +36 -41
- package/demos/apis/numeric.js +24 -0
- package/demos/apis/popeditor.js +1 -1
- package/demos/apis/roles.js +13 -0
- package/demos/apis/select.js +34 -0
- package/demos/apis/skeleton.js +10 -10
- package/demos/apis/statistic.js +144 -0
- package/demos/apis/tag.js +17 -7
- package/demos/apis/time-line.js +2 -1
- package/demos/mobile/app/alert/basic-usage.spec.ts +36 -0
- package/demos/mobile/app/alert/center.spec.ts +11 -0
- package/demos/mobile/app/alert/custom-close.spec.ts +45 -0
- package/demos/mobile/app/alert/custom-close.vue +6 -3
- package/demos/mobile/app/alert/icon.spec.ts +11 -0
- package/demos/mobile/app/alert/size.spec.ts +17 -0
- package/demos/mobile/app/alert/size.vue +1 -2
- package/demos/mobile/app/alert/slot-default.spec.ts +12 -0
- package/demos/mobile/app/alert/target.spec.ts +8 -0
- package/demos/mobile/app/alert/webdoc/alert.js +4 -4
- package/demos/mobile/app/input/basic-usage.spec.ts +25 -0
- package/demos/mobile/app/input/clearable.spec.ts +13 -0
- package/demos/mobile/app/input/counter.spec.ts +19 -0
- package/demos/mobile/app/input/counter.vue +1 -1
- package/demos/mobile/app/input/disabled.spec.ts +17 -0
- package/demos/mobile/app/input/events.spec.ts +24 -0
- package/demos/mobile/app/input/methods.spec.ts +23 -0
- package/demos/mobile/app/input/native-attributes.spec.ts +14 -0
- package/demos/mobile/app/input/native-attributes.vue +0 -5
- package/demos/mobile/app/input/prefix-suffix-icon.spec.ts +12 -0
- package/demos/mobile/app/input/show-password.spec.ts +16 -0
- package/demos/mobile/app/input/slots.spec.ts +32 -0
- package/demos/mobile/app/input/slots.vue +7 -7
- package/demos/mobile/app/input/textarea-rows-cols.spec.ts +11 -0
- package/demos/mobile/app/input/textarea-rows-cols.vue +3 -3
- package/demos/mobile/app/input/textarea-scalable.spec.ts +25 -0
- package/demos/mobile/app/input/textarea-scalable.vue +21 -10
- package/demos/mobile/app/input/type-select.spec.ts +20 -0
- package/demos/mobile/app/input/type.spec.ts +20 -0
- package/demos/mobile/app/input/validate-event.spec.ts +22 -0
- package/demos/mobile/app/input/webdoc/input.js +36 -36
- package/demos/mobile-first/app/numeric/empty-value-composition-api.vue +15 -0
- package/demos/mobile-first/app/numeric/empty-value.vue +24 -0
- package/demos/mobile-first/app/numeric/webdoc/numeric.js +14 -0
- package/demos/mobile-first/app/select/collapse-tags.vue +1 -1
- package/demos/mobile-first/app/select/webdoc/select.js +3 -2
- package/demos/pc/app/action-menu/card-mode-composition-api.vue +31 -0
- package/demos/pc/app/action-menu/card-mode.spec.ts +16 -0
- package/demos/pc/app/action-menu/card-mode.vue +39 -0
- package/demos/pc/app/action-menu/webdoc/action-menu.js +14 -0
- package/demos/pc/app/button/ghost-composition-api.vue +6 -6
- package/demos/pc/app/button/ghost.spec.ts +13 -6
- package/demos/pc/app/button/ghost.vue +6 -6
- package/demos/pc/app/calendar-view/calendar-event-composition-api.vue +5 -0
- package/demos/pc/app/calendar-view/calendar-event.spec.ts +5 -0
- package/demos/pc/app/calendar-view/calendar-event.vue +5 -1
- package/demos/pc/app/calendar-view/set-working-day-composition-api.vue +3 -0
- package/demos/pc/app/calendar-view/set-working-day.vue +3 -0
- package/demos/pc/app/calendar-view/webdoc/calendar-view.js +43 -20
- package/demos/pc/app/cascader/slot-composition-api.vue +226 -0
- package/demos/pc/app/cascader/slot.spec.ts +16 -0
- package/demos/pc/app/cascader/slot.vue +234 -0
- package/demos/pc/app/cascader/webdoc/cascader.js +18 -0
- package/demos/pc/app/chart/amap/amap.spec.ts +6 -0
- package/demos/pc/app/chart/amap/amap.spec.ts-snapshots/base-chromium-win32.png +0 -0
- package/demos/pc/app/chart/bar/bar.spec.ts +43 -0
- package/demos/pc/app/chart/bar/bar.spec.ts-snapshots/base-chromium-win32.png +0 -0
- package/demos/pc/app/chart/bar/bar.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
- package/demos/pc/app/chart/bar/bar.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
- package/demos/pc/app/chart/bar/bar.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
- package/demos/pc/app/chart/bar/bar.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
- package/demos/pc/app/chart/bar/bar.spec.ts-snapshots/demo6-chromium-win32.png +0 -0
- package/demos/pc/app/chart/bar/bar.spec.ts-snapshots/demo7-chromium-win32.png +0 -0
- package/demos/pc/app/chart/bmap/bmap.spec.ts +7 -0
- package/demos/pc/app/chart/bmap/bmap.spec.ts-snapshots/base-chromium-win32.png +0 -0
- package/demos/pc/app/chart/boxplot/boxplot.spec.ts +19 -0
- package/demos/pc/app/chart/boxplot/boxplot.spec.ts-snapshots/base-chromium-win32.png +0 -0
- package/demos/pc/app/chart/boxplot/boxplot.spec.ts-snapshots/multiple-chromium-win32.png +0 -0
- package/demos/pc/app/chart/boxplot/boxplot.spec.ts-snapshots/vertical-chromium-win32.png +0 -0
- package/demos/pc/app/chart/candle/candle.spec.ts +43 -0
- package/demos/pc/app/chart/candle/candle.spec.ts-snapshots/base-chromium-win32.png +0 -0
- package/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
- package/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
- package/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
- package/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
- package/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo6-chromium-win32.png +0 -0
- package/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo7-chromium-win32.png +0 -0
- package/demos/pc/app/chart/funnel/funnel.spec.ts +43 -0
- package/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/base-chromium-win32.png +0 -0
- package/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
- package/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
- package/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
- package/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
- package/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo6-chromium-win32.png +0 -0
- package/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo7-chromium-win32.png +0 -0
- package/demos/pc/app/chart/gauge/gauge.spec.ts +37 -0
- package/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/base-chromium-win32.png +0 -0
- package/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
- package/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
- package/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
- package/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
- package/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo6-chromium-win32.png +0 -0
- package/demos/pc/app/chart/graph/graph.spec.ts +19 -0
- package/demos/pc/app/chart/graph/graph.spec.ts-snapshots/base-chromium-win32.png +0 -0
- package/demos/pc/app/chart/graph/graph.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
- package/demos/pc/app/chart/graph/graph.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
- package/demos/pc/app/chart/heatmap/heatmap.spec.ts +31 -0
- package/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/base-chromium-win32.png +0 -0
- package/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
- package/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
- package/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
- package/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
- package/demos/pc/app/chart/histogram/histogram.spec.ts +49 -0
- package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/base-chromium-win32.png +0 -0
- package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
- package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
- package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
- package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
- package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo6-chromium-win32.png +0 -0
- package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo7-chromium-win32.png +0 -0
- package/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo8-chromium-win32.png +0 -0
- package/demos/pc/app/chart/line/line.spec.ts +55 -0
- package/demos/pc/app/chart/line/line.spec.ts-snapshots/base-chromium-win32.png +0 -0
- package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
- package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
- package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
- package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
- package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo6-chromium-win32.png +0 -0
- package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo7-chromium-win32.png +0 -0
- package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo8-chromium-win32.png +0 -0
- package/demos/pc/app/chart/line/line.spec.ts-snapshots/demo9-chromium-win32.png +0 -0
- package/demos/pc/app/chart/liquidfill/liquidfill.spec.ts +7 -0
- package/demos/pc/app/chart/liquidfill/liquidfill.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
- package/demos/pc/app/chart/map/base-composition-api.vue +7 -2
- package/demos/pc/app/chart/map/base.vue +3 -2
- package/demos/pc/app/chart/map/map.spec.ts +7 -0
- package/demos/pc/app/chart/map/map.spec.ts-snapshots/base-chromium-win32.png +0 -0
- package/demos/pc/app/chart/pie/pie.spec.ts +43 -0
- package/demos/pc/app/chart/pie/pie.spec.ts-snapshots/base-chromium-win32.png +0 -0
- package/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
- package/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
- package/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
- package/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
- package/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo6-chromium-win32.png +0 -0
- package/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo7-chromium-win32.png +0 -0
- package/demos/pc/app/chart/process/base-composition-api.vue +29 -0
- package/demos/pc/app/chart/process/base.vue +37 -0
- package/demos/pc/app/chart/process/demo2-composition-api.vue +32 -0
- package/demos/pc/app/chart/process/demo2.vue +40 -0
- package/demos/pc/app/chart/process/demo3-composition-api.vue +71 -0
- package/demos/pc/app/chart/process/demo3.vue +79 -0
- package/demos/pc/app/chart/process/demo4-composition-api.vue +29 -0
- package/demos/pc/app/chart/process/demo4.vue +37 -0
- package/demos/pc/app/chart/process/demo5-composition-api.vue +28 -0
- package/demos/pc/app/chart/process/demo5.vue +36 -0
- package/demos/pc/app/chart/process/demo6-composition-api.vue +44 -0
- package/demos/pc/app/chart/process/demo6.vue +52 -0
- package/demos/pc/app/chart/radar/radar.spec.ts +19 -0
- package/demos/pc/app/chart/radar/radar.spec.ts-snapshots/base-chromium-win32.png +0 -0
- package/demos/pc/app/chart/radar/radar.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
- package/demos/pc/app/chart/radar/radar.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
- package/demos/pc/app/chart/ring/ring.spec.ts +43 -0
- package/demos/pc/app/chart/ring/ring.spec.ts-snapshots/base-chromium-win32.png +0 -0
- package/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
- package/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
- package/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
- package/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
- package/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo6-chromium-win32.png +0 -0
- package/demos/pc/app/chart/ring/ring.spec.ts-snapshots/ring-title-chromium-win32.png +0 -0
- package/demos/pc/app/chart/sankey/sankey.spec.ts +13 -0
- package/demos/pc/app/chart/sankey/sankey.spec.ts-snapshots/base-chromium-win32.png +0 -0
- package/demos/pc/app/chart/sankey/sankey.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
- package/demos/pc/app/chart/scatter/scatter.spec.ts +49 -0
- package/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/base-chromium-win32.png +0 -0
- package/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
- package/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
- package/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
- package/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
- package/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo6-chromium-win32.png +0 -0
- package/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo7-chromium-win32.png +0 -0
- package/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo8-chromium-win32.png +0 -0
- package/demos/pc/app/chart/sunburst/sunburst.spec.ts +19 -0
- package/demos/pc/app/chart/sunburst/sunburst.spec.ts-snapshots/base-chromium-win32.png +0 -0
- package/demos/pc/app/chart/sunburst/sunburst.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
- package/demos/pc/app/chart/sunburst/sunburst.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
- package/demos/pc/app/chart/tree/tree.spec.ts +31 -0
- package/demos/pc/app/chart/tree/tree.spec.ts-snapshots/base-chromium-win32.png +0 -0
- package/demos/pc/app/chart/tree/tree.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
- package/demos/pc/app/chart/tree/tree.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
- package/demos/pc/app/chart/tree/tree.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
- package/demos/pc/app/chart/tree/tree.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
- package/demos/pc/app/chart/waterfall/waterfall.spec.ts +31 -0
- package/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/base-chromium-win32.png +0 -0
- package/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
- package/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
- package/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
- package/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/demo5-chromium-win32.png +0 -0
- package/demos/pc/app/chart/webdoc/chart-process.cn.md +7 -0
- package/demos/pc/app/chart/webdoc/chart-process.en.md +7 -0
- package/demos/pc/app/chart/webdoc/chart-process.js +55 -0
- package/demos/pc/app/chart/webdoc/chart-process.json.cn.md +7 -0
- package/demos/pc/app/chart/webdoc/chart-process.json.en.md +7 -0
- package/demos/pc/app/chart/wordcloud/wordcloud.spec.ts +25 -0
- package/demos/pc/app/chart/wordcloud/wordcloud.spec.ts-snapshots/base-chromium-win32.png +0 -0
- package/demos/pc/app/chart/wordcloud/wordcloud.spec.ts-snapshots/demo2-chromium-win32.png +0 -0
- package/demos/pc/app/chart/wordcloud/wordcloud.spec.ts-snapshots/demo3-chromium-win32.png +0 -0
- package/demos/pc/app/chart/wordcloud/wordcloud.spec.ts-snapshots/demo4-chromium-win32.png +0 -0
- package/demos/pc/app/company/custom-service.spec.ts +2 -1
- package/demos/pc/app/country/custom-service.spec.js +1 -1
- package/demos/pc/app/date-picker/basic-usage-composition-api.vue +2 -0
- package/demos/pc/app/date-picker/basic-usage.vue +2 -0
- package/demos/pc/app/date-picker/default-value.spec.ts +2 -2
- package/demos/pc/app/date-picker/events.spec.ts +3 -3
- package/demos/pc/app/date-picker/format.spec.ts +2 -2
- package/demos/pc/app/dropdown/options.spec.ts +3 -0
- package/demos/pc/app/dropdown/trigger.spec.ts +2 -2
- package/demos/pc/app/file-upload/http-request-composition-api.vue +5 -3
- package/demos/pc/app/file-upload/http-request.vue +4 -2
- package/demos/pc/app/float-button/backTop.spec.ts +14 -0
- package/demos/pc/app/float-button/basic-usage.spec.ts +34 -0
- package/demos/pc/app/float-button/icon.spec.ts +10 -0
- package/demos/pc/app/float-button/jump.spec.ts +8 -0
- package/demos/pc/app/float-button/reset-time.spec.ts +18 -0
- package/demos/pc/app/float-button/trigger.spec.ts +16 -0
- package/demos/pc/app/form/error-slot-composition-api.vue +62 -0
- package/demos/pc/app/form/error-slot.spec.ts +15 -0
- package/demos/pc/app/form/error-slot.vue +71 -0
- package/demos/pc/app/form/extra-tip-composition-api.vue +48 -0
- package/demos/pc/app/form/extra-tip.spec.ts +15 -0
- package/demos/pc/app/form/extra-tip.vue +57 -0
- package/demos/pc/app/form/webdoc/form.js +34 -4
- package/demos/pc/app/grid/filter/simple-date-filter.spec.ts +2 -1
- package/demos/pc/app/grid/fixed/group-header-fixed-composition-api.vue +212 -0
- package/demos/pc/app/grid/fixed/group-header-fixed.vue +232 -0
- package/demos/pc/app/grid/large-data/column-anchor-clear-active-composition-api.vue +190 -0
- package/demos/pc/app/grid/large-data/column-anchor-clear-active.vue +199 -0
- package/demos/pc/app/grid/large-data/column-anchor-composition-api.vue +124 -0
- package/demos/pc/app/grid/large-data/scroll-to.spec.js +1 -1
- package/demos/pc/app/grid/renderer/inner-renderer-rate-composition-api.vue +50 -0
- package/demos/pc/app/grid/renderer/inner-renderer-rate.spec.js +12 -0
- package/demos/pc/app/grid/renderer/inner-renderer-rate.vue +60 -0
- package/demos/pc/app/grid/size/grid-size.spec.js +2 -2
- package/demos/pc/app/grid/tree-table/set-tree-expansion-composition-api.vue +2 -2
- package/demos/pc/app/grid/tree-table/set-tree-expansion.vue +2 -2
- package/demos/pc/app/grid/tree-table/tree-grid-index-composition-api.vue +2 -2
- package/demos/pc/app/grid/tree-table/tree-grid-index.spec.js +16 -4
- package/demos/pc/app/grid/tree-table/tree-grid-index.vue +2 -2
- package/demos/pc/app/grid/tree-table/tree-grid-insert-delete-update-composition-api.vue +7 -2
- package/demos/pc/app/grid/tree-table/tree-grid-insert-delete-update.spec.js +6 -2
- package/demos/pc/app/grid/tree-table/tree-grid-insert-delete-update.vue +5 -2
- package/demos/pc/app/grid/webdoc/grid-custom-style.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-editor.js +1 -1
- package/demos/pc/app/grid/webdoc/grid-fixed.js +11 -0
- package/demos/pc/app/grid/webdoc/grid-large-data.js +24 -0
- package/demos/pc/app/grid/webdoc/grid-renderer.js +11 -0
- package/demos/pc/app/grid/webdoc/grid-toolbar.js +1 -1
- package/demos/pc/app/image/count-slot-composition-api.vue +32 -0
- package/demos/pc/app/image/count-slot.spec.ts +16 -0
- package/demos/pc/app/image/count-slot.vue +40 -0
- package/demos/pc/app/image/index-change-composition-api.vue +29 -0
- package/demos/pc/app/image/index-change.spec.ts +16 -0
- package/demos/pc/app/image/index-change.vue +37 -0
- package/demos/pc/app/image/keep-style-composition-api.vue +24 -0
- package/demos/pc/app/image/keep-style.spec.ts +56 -0
- package/demos/pc/app/image/keep-style.vue +32 -0
- package/demos/pc/app/image/preview-composition-api.vue +1 -1
- package/demos/pc/app/image/preview.vue +1 -1
- package/demos/pc/app/image/webdoc/image.js +73 -11
- package/demos/pc/app/mind-map/basic-usage-composition-api.vue +4 -4
- package/demos/pc/app/mind-map/basic-usage.vue +4 -4
- package/demos/pc/app/mind-map/event-composition-api.vue +13 -45
- package/demos/pc/app/mind-map/event.spec.ts +11 -8
- package/demos/pc/app/mind-map/event.vue +27 -57
- package/demos/pc/app/mind-map/export-data-composition-api.vue +7 -9
- package/demos/pc/app/mind-map/export-data.vue +13 -13
- package/demos/pc/app/mind-map/webdoc/mind-map.js +38 -10
- package/demos/pc/app/numeric/controls-composition-api.vue +10 -4
- package/demos/pc/app/numeric/controls.vue +10 -4
- package/demos/pc/app/numeric/empty-value-composition-api.vue +15 -0
- package/demos/pc/app/numeric/empty-value.spec.ts +15 -0
- package/demos/pc/app/numeric/empty-value.vue +24 -0
- package/demos/pc/app/numeric/mouse-wheel.spec.ts +1 -1
- package/demos/pc/app/numeric/precision-composition-api.vue +10 -4
- package/demos/pc/app/numeric/precision.vue +10 -4
- package/demos/pc/app/numeric/string-mode-composition-api.vue +10 -0
- package/demos/pc/app/numeric/string-mode.spec.ts +17 -0
- package/demos/pc/app/numeric/string-mode.vue +19 -0
- package/demos/pc/app/numeric/webdoc/numeric.js +52 -26
- package/demos/pc/app/popconfirm/trigger.spec.ts +8 -6
- package/demos/pc/app/popconfirm/type.spec.ts +6 -5
- package/demos/pc/app/popeditor/condition-layout-composition-api.vue +3 -2
- package/demos/pc/app/popeditor/condition-layout.vue +3 -2
- package/demos/pc/app/popeditor/slot-footer-composition-api.vue +2 -2
- package/demos/pc/app/popeditor/slot-footer.vue +2 -2
- package/demos/pc/app/popeditor/webdoc/popeditor.js +11 -12
- package/demos/pc/app/radio/dynamic-disable-composition-api.vue +7 -4
- package/demos/pc/app/radio/dynamic-disable.vue +8 -5
- package/demos/pc/app/roles/base-composition-api.vue +2 -2
- package/demos/pc/app/roles/base.vue +2 -2
- package/demos/pc/app/select/collapse-tags-composition-api.vue +7 -1
- package/demos/pc/app/select/collapse-tags.spec.ts +50 -29
- package/demos/pc/app/select/collapse-tags.vue +10 -3
- package/demos/pc/app/select/copy-multi.spec.ts +1 -0
- package/demos/pc/app/select/copy-single.spec.ts +1 -0
- package/demos/pc/app/select/disabled-composition-api.vue +2 -2
- package/demos/pc/app/select/disabled.spec.ts +3 -3
- package/demos/pc/app/select/disabled.vue +2 -2
- package/demos/pc/app/select/events-composition-api.vue +0 -1
- package/demos/pc/app/select/events.spec.ts +3 -4
- package/demos/pc/app/select/events.vue +0 -1
- package/demos/pc/app/select/multiple.vue +1 -1
- package/demos/pc/app/select/nest-grid-remote-composition-api.vue +120 -0
- package/demos/pc/app/select/nest-grid-remote.spec.ts +135 -0
- package/demos/pc/app/select/nest-grid-remote.vue +136 -0
- package/demos/pc/app/select/size.spec.ts +4 -2
- package/demos/pc/app/select/webdoc/select.js +10 -24
- package/demos/pc/app/skeleton/animation-composition-api.vue +25 -0
- package/demos/pc/app/skeleton/animation.spec.ts +19 -0
- package/demos/pc/app/skeleton/animation.vue +36 -0
- package/demos/pc/app/skeleton/custom-layout-composition-api.vue +19 -3
- package/demos/pc/app/skeleton/custom-layout.spec.ts +4 -7
- package/demos/pc/app/skeleton/custom-layout.vue +19 -3
- package/demos/pc/app/skeleton/custom-paragraph-width-composition-api.vue +1 -1
- package/demos/pc/app/skeleton/custom-paragraph-width.spec.ts +1 -1
- package/demos/pc/app/skeleton/custom-paragraph-width.vue +1 -1
- package/demos/pc/app/skeleton/custom-rows.spec.ts +1 -1
- package/demos/pc/app/skeleton/fine-grained-mode-composition-api.vue +5 -22
- package/demos/pc/app/skeleton/fine-grained-mode.spec.ts +4 -40
- package/demos/pc/app/skeleton/fine-grained-mode.vue +6 -23
- package/demos/pc/app/skeleton/loading-completed-composition-api.vue +3 -13
- package/demos/pc/app/skeleton/loading-completed.spec.ts +1 -12
- package/demos/pc/app/skeleton/loading-completed.vue +4 -10
- package/demos/pc/app/skeleton/size-composition-api.vue +16 -0
- package/demos/pc/app/skeleton/size.spec.ts +14 -0
- package/demos/pc/app/skeleton/size.vue +23 -0
- package/demos/pc/app/skeleton/webdoc/skeleton.js +42 -21
- package/demos/pc/app/statistic/basic-usage-composition-api.vue +26 -0
- package/demos/pc/app/statistic/basic-usage.spec.ts +20 -0
- package/demos/pc/app/statistic/basic-usage.vue +38 -0
- package/demos/pc/app/statistic/statistic-slot-composition-api.vue +39 -0
- package/demos/pc/app/statistic/statistic-slot.spec.ts +13 -0
- package/demos/pc/app/statistic/statistic-slot.vue +51 -0
- package/demos/pc/app/statistic/statistic-style-composition-api.vue +29 -0
- package/demos/pc/app/statistic/statistic-style.spec.ts +7 -0
- package/demos/pc/app/statistic/statistic-style.vue +41 -0
- package/demos/pc/app/statistic/webdoc/statistic.cn.md +7 -0
- package/demos/pc/app/statistic/webdoc/statistic.en.md +7 -0
- package/demos/pc/app/statistic/webdoc/statistic.js +46 -0
- package/demos/pc/app/tabs/tabs-events-close.spec.ts +1 -1
- package/demos/pc/app/tag/color3-composition-api.vue +19 -1
- package/demos/pc/app/tag/color3.spec.ts +7 -11
- package/demos/pc/app/tag/color3.vue +19 -1
- package/demos/pc/app/tag/webdoc/tag.js +4 -4
- package/demos/pc/app/time-line/custom-field-composition-api.vue +4 -1
- package/demos/pc/app/time-line/custom-field.spec.ts +1 -0
- package/demos/pc/app/time-line/custom-field.vue +4 -1
- package/demos/pc/app/time-line/custom-icon-composition-api.vue +21 -0
- package/demos/pc/app/time-line/custom-icon.spec.ts +14 -0
- package/demos/pc/app/time-line/custom-icon.vue +34 -0
- package/demos/pc/app/time-line/status-composition-api.vue +24 -3
- package/demos/pc/app/time-line/status.spec.ts +53 -11
- package/demos/pc/app/time-line/status.vue +14 -3
- package/demos/pc/app/time-line/webdoc/time-line.js +57 -44
- package/demos/pc/app/time-picker/default-value.spec.ts +6 -4
- package/demos/pc/app/time-picker/disabled.spec.ts +2 -7
- package/demos/pc/app/time-picker/editable.spec.ts +4 -1
- package/demos/pc/app/time-picker/format.spec.ts +6 -8
- package/demos/pc/app/time-picker/is-range.spec.ts +1 -1
- package/demos/pc/app/time-picker/picker-options.spec.ts +16 -14
- package/demos/pc/app/tree-menu/lazy-load-composition-api.vue +1 -1
- package/demos/pc/app/tree-menu/lazy-load.vue +1 -1
- package/demos/pc/menus.js +73 -68
- package/demos/pc/webdoc/aui-adapter-en.md +207 -0
- package/demos/pc/webdoc/aui-adapter.md +207 -0
- package/demos/pc/webdoc/changelog.md +67 -3
- package/demos/saas/menus.js +2 -3
- package/index.html +1 -1
- package/package.json +11 -11
- package/src/tools/useApiMode.js +1 -1
- package/src/tools/useTheme.js +2 -1
- package/src/views/components/components.vue +17 -6
- package/src/views/layout/layout.vue +3 -4
- package/src/views/overview.vue +9 -5
- package/demos/apis/credit-card-form.js +0 -98
- package/demos/apis/detail-page.js +0 -126
- package/demos/apis/slide-bar.js +0 -104
- package/demos/pc/app/credit-card-form/background-image-composition-api.vue +0 -17
- package/demos/pc/app/credit-card-form/background-image.vue +0 -25
- package/demos/pc/app/credit-card-form/basic-usage-composition-api.vue +0 -16
- package/demos/pc/app/credit-card-form/basic-usage.vue +0 -24
- package/demos/pc/app/credit-card-form/credit-card-form-events-composition-api.vue +0 -51
- package/demos/pc/app/credit-card-form/credit-card-form-events.vue +0 -55
- package/demos/pc/app/credit-card-form/webdoc/credit-card-form.cn.md +0 -7
- package/demos/pc/app/credit-card-form/webdoc/credit-card-form.en.md +0 -7
- package/demos/pc/app/credit-card-form/webdoc/credit-card-form.js +0 -46
- package/demos/pc/app/detail-page/basic-usage-composition-api.vue +0 -32
- package/demos/pc/app/detail-page/basic-usage.spec.ts +0 -29
- package/demos/pc/app/detail-page/basic-usage.vue +0 -40
- package/demos/pc/app/detail-page/custom-show-text-composition-api.vue +0 -41
- package/demos/pc/app/detail-page/custom-show-text.spec.ts +0 -16
- package/demos/pc/app/detail-page/custom-show-text.vue +0 -49
- package/demos/pc/app/detail-page/webdoc/detail-page.cn.md +0 -7
- package/demos/pc/app/detail-page/webdoc/detail-page.en.md +0 -7
- package/demos/pc/app/detail-page/webdoc/detail-page.js +0 -38
- package/demos/pc/app/select/nest-grid-remote-multi-composition-api.vue +0 -106
- package/demos/pc/app/select/nest-grid-remote-multi.spec.ts +0 -68
- package/demos/pc/app/select/nest-grid-remote-multi.vue +0 -118
- package/demos/pc/app/select/nest-grid-remote-single-composition-api.vue +0 -230
- package/demos/pc/app/select/nest-grid-remote-single.spec.ts +0 -62
- package/demos/pc/app/select/nest-grid-remote-single.vue +0 -238
- package/demos/pc/app/slide-bar/basic-usage-composition-api.vue +0 -21
- package/demos/pc/app/slide-bar/basic-usage.spec.ts +0 -12
- package/demos/pc/app/slide-bar/basic-usage.vue +0 -29
- package/demos/pc/app/slide-bar/custom-content-composition-api.vue +0 -26
- package/demos/pc/app/slide-bar/custom-content.spec.ts +0 -10
- package/demos/pc/app/slide-bar/custom-content.vue +0 -34
- package/demos/pc/app/slide-bar/custom-tag-composition-api.vue +0 -93
- package/demos/pc/app/slide-bar/custom-tag.spec.ts +0 -10
- package/demos/pc/app/slide-bar/custom-tag.vue +0 -101
- package/demos/pc/app/slide-bar/slide-bar-events-composition-api.vue +0 -37
- package/demos/pc/app/slide-bar/slide-bar-events.spec.ts +0 -11
- package/demos/pc/app/slide-bar/slide-bar-events.vue +0 -45
- package/demos/pc/app/slide-bar/webdoc/slide-bar.cn.md +0 -7
- package/demos/pc/app/slide-bar/webdoc/slide-bar.en.md +0 -7
- package/demos/pc/app/slide-bar/webdoc/slide-bar.js +0 -72
- package/demos/pc/app/slide-bar/wheel-blocks-composition-api.vue +0 -21
- package/demos/pc/app/slide-bar/wheel-blocks.spec.ts +0 -13
- package/demos/pc/app/slide-bar/wheel-blocks.vue +0 -29
- package/demos/pc/overviewimage/credit-card-form.svg +0 -91
- package/demos/pc/overviewimage/detail-page.svg +0 -90
- package/demos/pc/overviewimage/slide-bar.svg +0 -96
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
## Adapter AUI
|
|
2
|
+
|
|
3
|
+
### Dependency mapping table
|
|
4
|
+
|
|
5
|
+
Currently, TinyVue is compatible with AUI. You only need to replace the package name and configure the style theme to get a consistent experience with AUI. The following is the mapping relationship between TinyVue packages and AUI packages.
|
|
6
|
+
|
|
7
|
+
| TinyVue package | AUI package |
|
|
8
|
+
| ------------------------ | --------------------- |
|
|
9
|
+
| @opentiny/vue | @aurora/vue |
|
|
10
|
+
| @opentiny/vue-renderless | @aurora/renderless |
|
|
11
|
+
| @opentiny/vue-theme | @aurora/theme |
|
|
12
|
+
| @opentiny/vue-theme-saas | @aurora/theme-sass |
|
|
13
|
+
| @opentiny/vue-icon | @aurora/vue-icon |
|
|
14
|
+
| @opentiny/vue-icon-saas | @aurora/vue-icon-saas |
|
|
15
|
+
|
|
16
|
+
### Using Saas themes
|
|
17
|
+
|
|
18
|
+
#### background
|
|
19
|
+
|
|
20
|
+
- With the prosperity of the application ecology, especially the mobile application ecology, and the development of diversified device ecology, ‘multi-terminal’ and ‘multi-theme’ are put on the agenda;
|
|
21
|
+
- The theme solution launched by the original AUI is too bloated (users need to set a bunch of `cssvar` variables to customize the theme, because the colors are not unified, and the threshold for configuring multiple themes is relatively high). Later, it will be based on [tailwindcss](https:// github.com/tailwindlabs/tailwindcss) Collect theme variables (simplifying developer configuration) and engineer them to make it easier to customize multiple themes. Currently, there is a relatively mature theme solution in the industry [daisyui](https://github.com/saadeghi/daisyui).
|
|
22
|
+
|
|
23
|
+
In view of the above reasons, the `SaaS` theme is launched. If you want to experience the `SaaS` theme, you can make packaging configuration changes according to the following documents:
|
|
24
|
+
|
|
25
|
+
#### method one
|
|
26
|
+
|
|
27
|
+
Option 1 requires additional installation of the following dependencies:
|
|
28
|
+
|
|
29
|
+
- `@opentiny/vue-theme-saas` Theme will make minor adjustments to existing component styles without affecting the original DOM structure and API.
|
|
30
|
+
- `@opentiny/vue-icon-saas` is an icon component matching the `SaaS` theme style.
|
|
31
|
+
- `@opentiny/vue-design-saas` is the design specification configuration matching the theme style of `SaaS`.
|
|
32
|
+
|
|
33
|
+
1. Install the SaaS theme package:
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
yarn add @opentiny/vue-theme-saas @opentiny/vue-icon-saas @opentiny/vue-design-saas
|
|
37
|
+
# Or npm install @opentiny/vue-theme-saas @opentiny/vue-icon-saas @opentiny/vue-design-saas
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
2. Switch to the SaaS theme package:
|
|
41
|
+
|
|
42
|
+
```js
|
|
43
|
+
// (webpack) vue.config.js
|
|
44
|
+
module.exports = {
|
|
45
|
+
chainWebpack: (config) => {
|
|
46
|
+
config.resolve.alias.set('@opentiny/vue-theme', '@opentiny/vue-theme-saas')
|
|
47
|
+
config.resolve.alias.set('@opentiny/vue-icon', '@opentiny/vue-icon-saas')
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// (vite) vite.config.js
|
|
52
|
+
export default defineConfig({
|
|
53
|
+
resolve: {
|
|
54
|
+
alias: {
|
|
55
|
+
'@opentiny/vue-theme': '@opentiny/vue-theme-saas',
|
|
56
|
+
'@opentiny/vue-icon': '@opentiny/vue-icon-saas'
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
})
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
3. Switch to Saas design specification configuration:
|
|
63
|
+
|
|
64
|
+
```html
|
|
65
|
+
<script setup>
|
|
66
|
+
import { ConfigProvider } from '@opentiny/vue'
|
|
67
|
+
import designSaasConfig from '@opentiny/vue-design-saas'
|
|
68
|
+
</script>
|
|
69
|
+
|
|
70
|
+
<template>
|
|
71
|
+
<!-- Inject saas design specification configuration -->
|
|
72
|
+
<config-provider :design="designSaasConfig">
|
|
73
|
+
<my-app></my-app>
|
|
74
|
+
</config-provider>
|
|
75
|
+
</template>
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Method Two
|
|
79
|
+
|
|
80
|
+
Method 2 requires additional installation of the following dependencies:
|
|
81
|
+
|
|
82
|
+
- `@opentiny/vue-theme-saas` Theme will make minor adjustments to existing component styles without affecting the original DOM structure and API.
|
|
83
|
+
- `@opentiny/vue-icon-saas` is an icon component matching the `SaaS` theme style.
|
|
84
|
+
- `@opentiny/vue-common-saas` is an adaptation layer matching the `SaaS` theme style, and is inlined with the `@opentiny/vue-design-saas` of method 1.
|
|
85
|
+
|
|
86
|
+
1. Install the SaaS theme package:
|
|
87
|
+
|
|
88
|
+
```sh
|
|
89
|
+
yarn add @opentiny/vue-theme-saas @opentiny/vue-icon-saas @opentiny/vue-common-saas
|
|
90
|
+
# Or npm install @opentiny/vue-theme-saas @opentiny/vue-icon-saas @opentiny/vue-common-saas
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
2. Switch to the SaaS theme package:
|
|
94
|
+
|
|
95
|
+
```js
|
|
96
|
+
// (webpack) vue.config.js
|
|
97
|
+
module.exports = {
|
|
98
|
+
chainWebpack: (config) => {
|
|
99
|
+
config.resolve.alias.set('@opentiny/vue-theme', '@opentiny/vue-theme-saas')
|
|
100
|
+
config.resolve.alias.set('@opentiny/vue-icon', '@opentiny/vue-icon-saas')
|
|
101
|
+
config.resolve.alias.set('@opentiny/vue-common', '@opentiny/vue-common-saas')
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// (vite) vite.config.js
|
|
106
|
+
export default defineConfig({
|
|
107
|
+
resolve: {
|
|
108
|
+
alias: {
|
|
109
|
+
'@opentiny/vue-theme': '@opentiny/vue-theme-saas',
|
|
110
|
+
'@opentiny/vue-icon': '@opentiny/vue-icon-saas',
|
|
111
|
+
'@opentiny/vue-common': '@opentiny/vue-common-saas'
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
})
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## Multi-mode introduction
|
|
118
|
+
|
|
119
|
+
TinyVue provides PC and Mobile component libraries. The two component libraries rely on the same external dependency `@opentiny/vue`. The component with the same name switches the component mode through `tiny_mode`.
|
|
120
|
+
For SaaS business scenarios, TinyVue provides multi-terminal components based on `tailwind`.
|
|
121
|
+
Based on TinyVue, a new `multi-terminal mode` is added to support business switching of components with the same name. By default, the component with the same name is `desktop mode`, that is, `PC component`.
|
|
122
|
+
|
|
123
|
+
### Pattern classification
|
|
124
|
+
|
|
125
|
+
The AUI component library provides three component modes: `desktop mode`, `mobile mode`, `multi-terminal mode`
|
|
126
|
+
|
|
127
|
+
| Mode | Mode introduction | Mode configuration |
|
|
128
|
+
| ------------------- | -------------------------- | ------------------ |
|
|
129
|
+
| Desktop mode | Pure PC | pc |
|
|
130
|
+
| mobile mode | pure mobile | mobile |
|
|
131
|
+
| Multi-terminal mode | Multi-terminal consistency | mobile-first |
|
|
132
|
+
|
|
133
|
+
### Mode switch
|
|
134
|
+
|
|
135
|
+
AUI component mode setting priority
|
|
136
|
+
|
|
137
|
+
`Single component switching` > `Mode transparent transmission` > `Global switching` > `Component default mode`
|
|
138
|
+
|
|
139
|
+
#### Single component switching
|
|
140
|
+
|
|
141
|
+
You can configure the `tiny_mode` attribute on the component tag, specify the component mode, and the corresponding template will be selected for rendering:
|
|
142
|
+
|
|
143
|
+
- Desktop mode: `pc`
|
|
144
|
+
- Mobile mode: `mobile`
|
|
145
|
+
- Multi-terminal mode: `mobile-first`
|
|
146
|
+
|
|
147
|
+
Reference examples are as follows:
|
|
148
|
+
|
|
149
|
+
```html
|
|
150
|
+
<tiny-button tiny_mode="mobile-first">Default button</tiny-button>
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
#### Global switch
|
|
154
|
+
|
|
155
|
+
By setting tiny_mode globally on Vue's prototype, you can specify the default mode for all components with the same name.
|
|
156
|
+
After importing the Vue dependency in the project entry `src/main.js` file, add the following configuration:
|
|
157
|
+
|
|
158
|
+
```js
|
|
159
|
+
// Vue 2.0
|
|
160
|
+
Vue.prototype.tiny_mode = { value: 'mobile-first' }
|
|
161
|
+
|
|
162
|
+
// Vue 3.0
|
|
163
|
+
app.config.globalProperties.tiny_mode = { value: 'mobile-first' }
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
#### Mode transparent transmission
|
|
167
|
+
|
|
168
|
+
If you want to switch modes in some areas of the page, such as card-level control,
|
|
169
|
+
You can add the `tiny_mode_root` attribute to the outer AUI component to transparently transmit the `tiny_mode` configuration of the current AUI component to all child AUI components.
|
|
170
|
+
The reference demo example is as follows:
|
|
171
|
+
|
|
172
|
+
```html
|
|
173
|
+
<template>
|
|
174
|
+
<div>
|
|
175
|
+
<tiny-layout>
|
|
176
|
+
<tiny-row tiny_mode="pc" tiny_mode_root>
|
|
177
|
+
<tiny-button>PC button</tiny-button>
|
|
178
|
+
<tiny-button type="primary" native-type="submit">Primary button</tiny-button>
|
|
179
|
+
<tiny-button type="success">Success button</tiny-button>
|
|
180
|
+
<tiny-button type="info">Information button</tiny-button>
|
|
181
|
+
<tiny-button type="warning">Warning button</tiny-button>
|
|
182
|
+
<tiny-button type="danger">Danger button</tiny-button>
|
|
183
|
+
</tiny-row>
|
|
184
|
+
<tiny-row tiny_mode="mobile-first" tiny_mode_root>
|
|
185
|
+
<tiny-button>Multi-terminal button</tiny-button>
|
|
186
|
+
<tiny-button type="primary" native-type="submit">Primary button</tiny-button>
|
|
187
|
+
<tiny-button type="success">Success button</tiny-button>
|
|
188
|
+
<tiny-button type="info">Information button</tiny-button>
|
|
189
|
+
<tiny-button type="warning">Warning button</tiny-button>
|
|
190
|
+
<tiny-button type="danger">Danger button</tiny-button>
|
|
191
|
+
</tiny-row>
|
|
192
|
+
</tiny-layout>
|
|
193
|
+
</div>
|
|
194
|
+
</template>
|
|
195
|
+
|
|
196
|
+
<script>
|
|
197
|
+
import { Button, Layout, Row } from '@opentiny/vue'
|
|
198
|
+
|
|
199
|
+
export default {
|
|
200
|
+
components: {
|
|
201
|
+
TinyButton: Button,
|
|
202
|
+
TinyLayout: Layout,
|
|
203
|
+
TinyRow: Row
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
</script>
|
|
207
|
+
```
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
## 适配 AUI
|
|
2
|
+
|
|
3
|
+
### 依赖映射表
|
|
4
|
+
|
|
5
|
+
目前 TinyVue 已经兼容 AUI,只需替换一下包名和配置一下样式主题,即可获得于 AUI 一致的体验,以下是 TinyVue 包和 AUI 包的映射关系
|
|
6
|
+
|
|
7
|
+
| TinyVue 包 | AUI 包 |
|
|
8
|
+
| ------------------------ | --------------------- |
|
|
9
|
+
| @opentiny/vue | @aurora/vue |
|
|
10
|
+
| @opentiny/vue-renderless | @aurora/renderless |
|
|
11
|
+
| @opentiny/vue-theme | @aurora/theme |
|
|
12
|
+
| @opentiny/vue-theme-saas | @aurora/theme-sass |
|
|
13
|
+
| @opentiny/vue-icon | @aurora/vue-icon |
|
|
14
|
+
| @opentiny/vue-icon-saas | @aurora/vue-icon-saas |
|
|
15
|
+
|
|
16
|
+
### 使用 Saas 主题
|
|
17
|
+
|
|
18
|
+
#### 背景
|
|
19
|
+
|
|
20
|
+
- 随着应用生态特别是手机应用生态的繁荣,以及多样化设备生态的发展,`多端`、`多主题`被提上日程;
|
|
21
|
+
- 原有 AUI 推出的主题方案过于臃肿(用户定制主题需要设置一堆的 `cssvar` 变量,因为颜色没有统一,配置多主题的门槛也比较高),后期会基于 [tailwindcss](https://github.com/tailwindlabs/tailwindcss) 对主题变量进行收拢(简化开发者配置)以及工程化改造,使得定制多主题更加简单。目前业内比较成熟的主题方案 [daisyui](https://github.com/saadeghi/daisyui)。
|
|
22
|
+
|
|
23
|
+
鉴于以上原因, 推出 `SaaS` 主题,如果想体验 `SaaS` 主题可以按照下述文档,进行打包配置更改:
|
|
24
|
+
|
|
25
|
+
#### 方法一
|
|
26
|
+
|
|
27
|
+
方案一需要额外安装以下依赖:
|
|
28
|
+
|
|
29
|
+
- `@opentiny/vue-theme-saas` 主题会对现有组件样式进行细微调整,不会影响原有 DOM 结构以及 API 。
|
|
30
|
+
- `@opentiny/vue-icon-saas` 是 `SaaS` 主题风格配套的 icon 图标组件。
|
|
31
|
+
- `@opentiny/vue-design-saas` 是 `SaaS` 主题风格配套的设计规范配置。
|
|
32
|
+
|
|
33
|
+
一、安装 SaaS 主题包:
|
|
34
|
+
|
|
35
|
+
```shell
|
|
36
|
+
yarn add @opentiny/vue-theme-saas @opentiny/vue-icon-saas @opentiny/vue-design-saas
|
|
37
|
+
# 或者 npm install @opentiny/vue-theme-saas @opentiny/vue-icon-saas @opentiny/vue-design-saas
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
二、切换到 SaaS 主题包:
|
|
41
|
+
|
|
42
|
+
```js
|
|
43
|
+
// (webpack) vue.config.js
|
|
44
|
+
module.exports = {
|
|
45
|
+
chainWebpack: (config) => {
|
|
46
|
+
config.resolve.alias.set('@opentiny/vue-theme', '@opentiny/vue-theme-saas')
|
|
47
|
+
config.resolve.alias.set('@opentiny/vue-icon', '@opentiny/vue-icon-saas')
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// (vite) vite.config.js
|
|
52
|
+
export default defineConfig({
|
|
53
|
+
resolve: {
|
|
54
|
+
alias: {
|
|
55
|
+
'@opentiny/vue-theme': '@opentiny/vue-theme-saas',
|
|
56
|
+
'@opentiny/vue-icon': '@opentiny/vue-icon-saas'
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
})
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
三、切换到 Saas 设计规范配置:
|
|
63
|
+
|
|
64
|
+
```html
|
|
65
|
+
<script setup>
|
|
66
|
+
import { ConfigProvider } from '@opentiny/vue'
|
|
67
|
+
import designSaasConfig from '@opentiny/vue-design-saas'
|
|
68
|
+
</script>
|
|
69
|
+
|
|
70
|
+
<template>
|
|
71
|
+
<!-- 注入saas设计规范配置 -->
|
|
72
|
+
<config-provider :design="designSaasConfig">
|
|
73
|
+
<my-app></my-app>
|
|
74
|
+
</config-provider>
|
|
75
|
+
</template>
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### 方法二
|
|
79
|
+
|
|
80
|
+
方法二需要额外安装以下依赖:
|
|
81
|
+
|
|
82
|
+
- `@opentiny/vue-theme-saas` 主题会对现有组件样式进行细微调整,不会影响原有 DOM 结构以及 API 。
|
|
83
|
+
- `@opentiny/vue-icon-saas` 是 `SaaS` 主题风格配套的 icon 图标组件。
|
|
84
|
+
- `@opentiny/vue-common-saas` 是 `SaaS` 主题风格配套的适配层,内联了方法一的`@opentiny/vue-design-saas`。
|
|
85
|
+
|
|
86
|
+
一、安装 SaaS 主题包:
|
|
87
|
+
|
|
88
|
+
```shell
|
|
89
|
+
yarn add @opentiny/vue-theme-saas @opentiny/vue-icon-saas @opentiny/vue-common-saas
|
|
90
|
+
# 或者 npm install @opentiny/vue-theme-saas @opentiny/vue-icon-saas @opentiny/vue-common-saas
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
二、切换到 SaaS 主题包:
|
|
94
|
+
|
|
95
|
+
```js
|
|
96
|
+
// (webpack) vue.config.js
|
|
97
|
+
module.exports = {
|
|
98
|
+
chainWebpack: (config) => {
|
|
99
|
+
config.resolve.alias.set('@opentiny/vue-theme', '@opentiny/vue-theme-saas')
|
|
100
|
+
config.resolve.alias.set('@opentiny/vue-icon', '@opentiny/vue-icon-saas')
|
|
101
|
+
config.resolve.alias.set('@opentiny/vue-common', '@opentiny/vue-common-saas')
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// (vite) vite.config.js
|
|
106
|
+
export default defineConfig({
|
|
107
|
+
resolve: {
|
|
108
|
+
alias: {
|
|
109
|
+
'@opentiny/vue-theme': '@opentiny/vue-theme-saas',
|
|
110
|
+
'@opentiny/vue-icon': '@opentiny/vue-icon-saas',
|
|
111
|
+
'@opentiny/vue-common': '@opentiny/vue-common-saas'
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
})
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## 多模式介绍
|
|
118
|
+
|
|
119
|
+
TinyVue 提供了 PC 和 Mobile 组件库,两套组件库对外是同一份依赖`@opentiny/vue`,同名组件通过`tiny_mode`切换组件模式。
|
|
120
|
+
针对 SaaS 业务场景,TinyVue 提供了基于`tailwind`实现的多端组件,
|
|
121
|
+
在 TinyVue 基础上新增`多端模式`,支持业务切换同名组件,同名组件默认情况下是`桌面模式`即`PC 组件`。
|
|
122
|
+
|
|
123
|
+
### 模式分类
|
|
124
|
+
|
|
125
|
+
AUI 组件库提供了三种组件模式:`桌面模式`、`移动模式`、`多端模式`
|
|
126
|
+
|
|
127
|
+
| 模式 | 模式介绍 | 模式配置 |
|
|
128
|
+
| -------- | --------- | ------------ |
|
|
129
|
+
| 桌面模式 | 纯 PC | pc |
|
|
130
|
+
| 移动模式 | 纯 mobile | mobile |
|
|
131
|
+
| 多端模式 | 多端一致 | mobile-first |
|
|
132
|
+
|
|
133
|
+
### 模式切换
|
|
134
|
+
|
|
135
|
+
AUI 组件模式设置优先级
|
|
136
|
+
|
|
137
|
+
`单组件切换` > `模式透传` > `全局切换` > `组件默认模式`
|
|
138
|
+
|
|
139
|
+
#### 单组件切换
|
|
140
|
+
|
|
141
|
+
可在组件标签上配置`tiny_mode`属性,指定组件模式,就会选择对应模板渲染:
|
|
142
|
+
|
|
143
|
+
- 桌面模式:`pc`
|
|
144
|
+
- 移动模式:`mobile`
|
|
145
|
+
- 多端模式:`mobile-first`
|
|
146
|
+
|
|
147
|
+
参考示例如下:
|
|
148
|
+
|
|
149
|
+
```html
|
|
150
|
+
<tiny-button tiny_mode="mobile-first">默认按钮</tiny-button>
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
#### 全局切换
|
|
154
|
+
|
|
155
|
+
通过在 Vue 的原型上全局设置`tiny_mode`,可以指定所有同名组件的默认模式。
|
|
156
|
+
在项目入口 `src/main.js` 文件中导入 Vue 依赖后,增加如下配置:
|
|
157
|
+
|
|
158
|
+
```js
|
|
159
|
+
// Vue 2.0
|
|
160
|
+
Vue.prototype.tiny_mode = { value: 'mobile-first' }
|
|
161
|
+
|
|
162
|
+
// Vue 3.0
|
|
163
|
+
app.config.globalProperties.tiny_mode = { value: 'mobile-first' }
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
#### 模式透传
|
|
167
|
+
|
|
168
|
+
如果想在页面部分区域切换模式,如卡片级控制,
|
|
169
|
+
可以在外层 AUI 组件上添加`tiny_mode_root`属性,透传当前 AUI 组件的`tiny_mode`配置到所有子级 AUI 组件上,
|
|
170
|
+
参考 demo 示例如下:
|
|
171
|
+
|
|
172
|
+
```html
|
|
173
|
+
<template>
|
|
174
|
+
<div>
|
|
175
|
+
<tiny-layout>
|
|
176
|
+
<tiny-row tiny_mode="pc" tiny_mode_root>
|
|
177
|
+
<tiny-button>PC按钮</tiny-button>
|
|
178
|
+
<tiny-button type="primary" native-type="submit">主要按钮</tiny-button>
|
|
179
|
+
<tiny-button type="success">成功按钮</tiny-button>
|
|
180
|
+
<tiny-button type="info">信息按钮</tiny-button>
|
|
181
|
+
<tiny-button type="warning">警告按钮</tiny-button>
|
|
182
|
+
<tiny-button type="danger">危险按钮</tiny-button>
|
|
183
|
+
</tiny-row>
|
|
184
|
+
<tiny-row tiny_mode="mobile-first" tiny_mode_root>
|
|
185
|
+
<tiny-button>多端按钮</tiny-button>
|
|
186
|
+
<tiny-button type="primary" native-type="submit">主要按钮</tiny-button>
|
|
187
|
+
<tiny-button type="success">成功按钮</tiny-button>
|
|
188
|
+
<tiny-button type="info">信息按钮</tiny-button>
|
|
189
|
+
<tiny-button type="warning">警告按钮</tiny-button>
|
|
190
|
+
<tiny-button type="danger">危险按钮</tiny-button>
|
|
191
|
+
</tiny-row>
|
|
192
|
+
</tiny-layout>
|
|
193
|
+
</div>
|
|
194
|
+
</template>
|
|
195
|
+
|
|
196
|
+
<script>
|
|
197
|
+
import { Button, Layout, Row } from '@opentiny/vue'
|
|
198
|
+
|
|
199
|
+
export default {
|
|
200
|
+
components: {
|
|
201
|
+
TinyButton: Button,
|
|
202
|
+
TinyLayout: Layout,
|
|
203
|
+
TinyRow: Row
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
</script>
|
|
207
|
+
```
|
|
@@ -1,5 +1,68 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
+
## v2.15.0/v3.15.0
|
|
4
|
+
|
|
5
|
+
`2024/04/08`
|
|
6
|
+
|
|
7
|
+
## What's Changed
|
|
8
|
+
|
|
9
|
+
### Exciting New Features 🎉
|
|
10
|
+
|
|
11
|
+
- feat(sites): add theme route by @gimmyhehe in https://github.com/opentiny/tiny-vue/pull/1478
|
|
12
|
+
- Cgm/add theme route by @gimmyhehe in https://github.com/opentiny/tiny-vue/pull/1479
|
|
13
|
+
- fix(transfer ): update transfer xdesign by @James-9696 in https://github.com/opentiny/tiny-vue/pull/1496
|
|
14
|
+
- feat(form): [form] add xDesign theme by @gimmyhehe in https://github.com/opentiny/tiny-vue/pull/1507
|
|
15
|
+
- feat(action-menu): [action-menu] add XDesign theme by @gimmyhehe in https://github.com/opentiny/tiny-vue/pull/1514
|
|
16
|
+
- feat(date-picker): [date-picker] date picker add quarter type by @kagol in https://github.com/opentiny/tiny-vue/pull/1513
|
|
17
|
+
- feat(statistic): statistic component by @James-9696 in https://github.com/opentiny/tiny-vue/pull/1491
|
|
18
|
+
- feat(select): add show-proportion props of select component by @James-9696 in https://github.com/opentiny/tiny-vue/pull/1503
|
|
19
|
+
- feat(rich-text-editor): [rich-text-editor] add image drag adjustment by @HAOUEHF in https://github.com/opentiny/tiny-vue/pull/1504
|
|
20
|
+
- feat(grid): [grid] add XDesign theme by @gimmyhehe in https://github.com/opentiny/tiny-vue/pull/1518
|
|
21
|
+
- feat: Adapting to the X-design theme by @zzcr in https://github.com/opentiny/tiny-vue/pull/1534
|
|
22
|
+
- feat(charts): refactor chart components and replace chart-core with hui-charts by @Davont
|
|
23
|
+
- refactored the underlying chart-core library which is used by all chart components
|
|
24
|
+
- chart-core uses hui-charts instead of echarts as the underlying logic of the chart
|
|
25
|
+
- chart components add a unified entry `option` based on the original API to facilitate unified calls
|
|
26
|
+
- improved documentation and demos for all chart components
|
|
27
|
+
- add theme switching function to adapt to different business needs
|
|
28
|
+
- add chart status function `chartInstance`, providing 5 states: `loading`, `error`, `empty`, `stateEmpty`, `customize`
|
|
29
|
+
|
|
30
|
+
### Bug Fixes 🐛
|
|
31
|
+
|
|
32
|
+
- fix(site): anchor offset by @GaoNeng-wWw in https://github.com/opentiny/tiny-vue/pull/1477
|
|
33
|
+
- fix(select): fix select/picker bugs by @zzcr in https://github.com/opentiny/tiny-vue/pull/1487
|
|
34
|
+
- fix(vue-component): [mind-map] border-radius & border by @GaoNeng-wWw in https://github.com/opentiny/tiny-vue/pull/1510
|
|
35
|
+
- fix(quarter-panel): [date-picker] add mono: true by @kagol in https://github.com/opentiny/tiny-vue/pull/1519
|
|
36
|
+
- fix: Custom header height of dialog-box by @James-9696 in https://github.com/opentiny/tiny-vue/pull/1530
|
|
37
|
+
- fix(search): [search] fixed the maxlength attribute bug in search by @chenxi-20 in https://github.com/opentiny/tiny-vue/pull/1528
|
|
38
|
+
- fix(rich-text-editor): fix right package name by @shenjunjian in https://github.com/opentiny/tiny-vue/pull/1535
|
|
39
|
+
- fix(docs): fix the issue of the theme switch button not being centered by @chenxi-20 in https://github.com/opentiny/tiny-vue/pull/1533
|
|
40
|
+
- fix(AMap): fix the problem of failure to display the AMap case in the document by @Davont
|
|
41
|
+
- fix(chart-heatMap): fix tooltip display error in bar-chart by @Davont
|
|
42
|
+
- fix(chart-bar): fix the problem of abnormal gap display when the histogram width is too low by @Davont
|
|
43
|
+
- fix(chart-histogram): fix the problem of histogram chart displaying blank in special scenarios by @Davont
|
|
44
|
+
|
|
45
|
+
### Other Changes
|
|
46
|
+
|
|
47
|
+
- docs(sites): add deep style in scoped by @gimmyhehe in https://github.com/opentiny/tiny-vue/pull/1473
|
|
48
|
+
- fix(ip-address): [ip-address] add spaces by @wuyiping0628 in https://github.com/opentiny/tiny-vue/pull/1475
|
|
49
|
+
- docs(steps): optimization of steps docs by @Huangyilin19 in https://github.com/opentiny/tiny-vue/pull/1474
|
|
50
|
+
- docs: add project name to issue template by @kagol in https://github.com/opentiny/tiny-vue/pull/1486
|
|
51
|
+
- docs(grid): [grid] fix tree-grid-insert-delete-update demo by @gimmyhehe in https://github.com/opentiny/tiny-vue/pull/1495
|
|
52
|
+
- docs(sites): fix site overview input error by @gimmyhehe in https://github.com/opentiny/tiny-vue/pull/1499
|
|
53
|
+
- docs: update changelog by @kagol in https://github.com/opentiny/tiny-vue/pull/1501
|
|
54
|
+
- [select] Optimized remote search demo by @Huangyilin19 in https://github.com/opentiny/tiny-vue/pull/1488
|
|
55
|
+
- ci(publish): add github action auto publish by @zzcr in https://github.com/opentiny/tiny-vue/pull/1512
|
|
56
|
+
- docs(date-picker): [date-picker] fix format docs by @kagol in https://github.com/opentiny/tiny-vue/pull/1522
|
|
57
|
+
- docs(Numeric): [examples] add the description of change-compat for ch… by @AcWrong02 in https://github.com/opentiny/tiny-vue/pull/1521
|
|
58
|
+
- docs(sites): add aui adapter document by @gimmyhehe in https://github.com/opentiny/tiny-vue/pull/1516
|
|
59
|
+
- ci(publish): add dispatch publish action by @zzcr in https://github.com/opentiny/tiny-vue/pull/1517
|
|
60
|
+
- fix: update numeric demo style by @James-9696 in https://github.com/opentiny/tiny-vue/pull/1526
|
|
61
|
+
|
|
62
|
+
## New Contributors
|
|
63
|
+
|
|
64
|
+
- @HAOUEHF made their first contribution in https://github.com/opentiny/tiny-vue/pull/1504
|
|
65
|
+
|
|
3
66
|
## v2.14.0/v3.14.0
|
|
4
67
|
|
|
5
68
|
`2024/03/07`
|
|
@@ -9,6 +72,10 @@
|
|
|
9
72
|
### Exciting New Features 🎉
|
|
10
73
|
|
|
11
74
|
- feat(vue): [mind-map] mindmap by @GaoNeng-wWw in https://github.com/opentiny/tiny-vue/pull/1207
|
|
75
|
+
- feat(skeleton): skeleton component by @mengqiuleo in https://github.com/opentiny/tiny-vue/pull/1345
|
|
76
|
+
- feat(float-button): [float-button] add float-button by @fanbingbing16 in https://github.com/opentiny/tiny-vue/pull/1394
|
|
77
|
+
- feat(card): add card component by @shenjunjian
|
|
78
|
+
- feat auto import plugin by @mengqiuleo in https://github.com/opentiny/tiny-vue/pull/1397
|
|
12
79
|
- feat(time-line): refresh ui by @MNZhu in https://github.com/opentiny/tiny-vue/pull/1281
|
|
13
80
|
- feat(numeric): refresh ui by @MNZhu in https://github.com/opentiny/tiny-vue/pull/1258
|
|
14
81
|
- styles(action-sheet): [action-sheet] add action-sheet type by @jxhhdx in https://github.com/opentiny/tiny-vue/pull/1307
|
|
@@ -26,18 +93,15 @@
|
|
|
26
93
|
- styles(async-flowchart): [async-flowchart] add async-flowchart types by @jxhhdx in https://github.com/opentiny/tiny-vue/pull/1312
|
|
27
94
|
- styles(area): [area] add area types by @jxhhdx in https://github.com/opentiny/tiny-vue/pull/1311
|
|
28
95
|
- feat(dialog-box): [dialog-box] make the dialogBox drag outside the window by @wNing50 in https://github.com/opentiny/tiny-vue/pull/1268
|
|
29
|
-
- feat(skeleton): skeleton component by @mengqiuleo in https://github.com/opentiny/tiny-vue/pull/1345
|
|
30
96
|
- style(user-head): [user-head] improve typescript declaration of compo… by @Floyd-bit in https://github.com/opentiny/tiny-vue/pull/1380
|
|
31
97
|
- fix(carousel ): [carousel] update carousel xdesign by @James-9696 in https://github.com/opentiny/tiny-vue/pull/1422
|
|
32
98
|
- fix(badge): [badge] update badge xdesign by @You-Hw-Y in https://github.com/opentiny/tiny-vue/pull/1420
|
|
33
99
|
- feat(date-picker): [date-picker] support xdesign by @kagol in https://github.com/opentiny/tiny-vue/pull/1417
|
|
34
100
|
- feat(slider): [slider] marks supported, input range supported by @yoyo201626 in https://github.com/opentiny/tiny-vue/pull/1429
|
|
35
|
-
- feat auto import plugin by @mengqiuleo in https://github.com/opentiny/tiny-vue/pull/1397
|
|
36
101
|
- [drawer] fix smb theme by @Huangyilin19 in https://github.com/opentiny/tiny-vue/pull/1411
|
|
37
102
|
- feat(vue): add vue sub packages dependencies by @gimmyhehe in https://github.com/opentiny/tiny-vue/pull/1424
|
|
38
103
|
- fix(transfer ): [transfer] update transfer xdesign by @James-9696 in https://github.com/opentiny/tiny-vue/pull/1419
|
|
39
104
|
- fix(skeleton): [skeleton]add skeleton of smb theme by @James-9696 in https://github.com/opentiny/tiny-vue/pull/1410
|
|
40
|
-
- feat(float-button): [float-button] add float-button by @fanbingbing16 in https://github.com/opentiny/tiny-vue/pull/1394
|
|
41
105
|
- feat(loading): [loading] smb theme by @yoyo201626 in https://github.com/opentiny/tiny-vue/pull/1431
|
|
42
106
|
- fix(Switch): [Switch] add keydown support and improth the accessibility by @AcWrong02 in https://github.com/opentiny/tiny-vue/pull/1428
|
|
43
107
|
- feat(vue): [popconfirm] add popper-options props by @gimmyhehe in https://github.com/opentiny/tiny-vue/pull/1439
|
package/demos/saas/menus.js
CHANGED
|
@@ -8,8 +8,6 @@ const noSaasComponents = [
|
|
|
8
8
|
'ColorPicker',
|
|
9
9
|
'ColorSelectPanel',
|
|
10
10
|
'ConfigProvider',
|
|
11
|
-
'CreditCard',
|
|
12
|
-
'CreditCardForm',
|
|
13
11
|
'DatePickerMobileFirst',
|
|
14
12
|
'Divider',
|
|
15
13
|
'IndexBar',
|
|
@@ -26,7 +24,8 @@ const noSaasComponents = [
|
|
|
26
24
|
'TopBox',
|
|
27
25
|
'Watermark',
|
|
28
26
|
'Wheel',
|
|
29
|
-
'Skeleton'
|
|
27
|
+
'Skeleton',
|
|
28
|
+
'Statistic'
|
|
30
29
|
]
|
|
31
30
|
|
|
32
31
|
// mobile-first上所有分类,pc上都有,因此可以用pc端menu分类进行合并
|
package/index.html
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<app-root></app-root>
|
|
19
19
|
<div id="app" class="wp100 hp100 pt60 of-hidden"></div>
|
|
20
20
|
<!-- prettier-ignore -->
|
|
21
|
-
<script id="tinyui-design-common" src="https://
|
|
21
|
+
<script id="tinyui-design-common" src="https://test-static-resource.obs.cn-north-7.ulanqab.huawei.com/tinyui-design-common/1.0.5.20240330164329/tinyui-design-common.min.js"></script>
|
|
22
22
|
<script type="module" src="./src/main.js"></script>
|
|
23
23
|
</body>
|
|
24
24
|
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-docs",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.21",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@unocss/reset": "0.38.2",
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
"marked": "^4.3.0",
|
|
17
17
|
"sortablejs": "1.15.0",
|
|
18
18
|
"@opentiny/vue-repl": "^1.1.0",
|
|
19
|
-
"@opentiny/vue": "~3.
|
|
20
|
-
"@opentiny/vue-common": "~3.
|
|
21
|
-
"@opentiny/vue
|
|
22
|
-
"@opentiny/vue-
|
|
23
|
-
"@opentiny/vue-
|
|
24
|
-
"@opentiny/vue-design-
|
|
25
|
-
"@opentiny/vue-
|
|
26
|
-
"@opentiny/vue-theme
|
|
27
|
-
"@opentiny/vue-design-aurora": "~3.14.0",
|
|
19
|
+
"@opentiny/vue-icon": "~3.15.0",
|
|
20
|
+
"@opentiny/vue-common": "~3.15.0",
|
|
21
|
+
"@opentiny/vue": "~3.15.0",
|
|
22
|
+
"@opentiny/vue-icon-saas": "~3.15.0",
|
|
23
|
+
"@opentiny/vue-design-smb": "~3.15.0",
|
|
24
|
+
"@opentiny/vue-design-aurora": "~3.15.0",
|
|
25
|
+
"@opentiny/vue-design-saas": "~3.15.0",
|
|
26
|
+
"@opentiny/vue-theme": "~3.15.0",
|
|
28
27
|
"@opentiny/vue-vite-import": "~1.1.5",
|
|
29
|
-
"@opentiny/vue-theme-
|
|
28
|
+
"@opentiny/vue-theme-mobile": "~3.15.0",
|
|
29
|
+
"@opentiny/vue-theme-saas": "~3.15.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/markdown-it": "^12.2.3",
|
package/src/tools/useApiMode.js
CHANGED
|
@@ -4,7 +4,7 @@ import { $local } from './storage'
|
|
|
4
4
|
const _modeKey = 'tiny-vue-api-mode'
|
|
5
5
|
const _demoModeKey = 'tiny-vue-demo-mode'
|
|
6
6
|
const apiModeState = reactive({
|
|
7
|
-
apiMode: $local[_modeKey] || 'Composition',
|
|
7
|
+
apiMode: $local[_modeKey] || 'Composition', // 示例风格: Options: 组合式; Composition: 选项式
|
|
8
8
|
demoMode: $local[_demoModeKey] || 'default' // 示例展示: default:多示例, single:单示例
|
|
9
9
|
})
|
|
10
10
|
|