From c7618314f2a8546e9cdac9633583e791fc73c2e2 Mon Sep 17 00:00:00 2001 From: ajaxzheng <894103554@qq.com> Date: Mon, 26 Feb 2024 09:30:53 +0800 Subject: [PATCH] fix(mobile-first): fix mobile-first components bugs (#1426) --- examples/docs/newsrc/mobile-first.vue | 31 +- examples/docs/newsrc/mobile.vue | 32 +- examples/docs/newsrc/pc.vue | 34 +- examples/docs/newsrc/resourceMobile.js | 4 +- examples/docs/newsrc/resourceMobileFirst.js | 4 +- examples/docs/newsrc/resourcePc.js | 4 +- examples/docs/newsrc/utils/componentsDoc.js | 40 + examples/sites/demos/apis/dialog-box.js | 5 +- examples/sites/demos/apis/grid.js | 80 +- examples/sites/demos/apis/ip-address.js | 4 +- examples/sites/demos/apis/numeric.js | 13 + examples/sites/demos/apis/tree-menu.js | 10 +- .../mobile-first/app/select/filter-method.vue | 65 +- .../demos/mobile/app/loading/background.vue | 24 + .../sites/demos/mobile/app/loading/base.vue | 22 +- .../demos/mobile/app/loading/custom-class.vue | 29 + .../mobile/app/loading/global-registry.vue | 61 + .../sites/demos/mobile/app/loading/size.vue | 59 + .../demos/mobile/app/loading/spinner.vue | 26 + .../demos/mobile/app/loading/tip-text.vue | 23 + .../mobile/app/loading/webdoc/loading.js | 164 +- .../alert/custom-close-composition-api.vue | 9 +- .../demos/pc/app/alert/custom-close.spec.ts | 2 +- .../sites/demos/pc/app/alert/custom-close.vue | 9 +- .../pc/app/file-upload/custom-prefix.spec.ts | 2 +- .../pc/app/file-upload/manual-upload.spec.ts | 2 +- .../pc/app/file-upload/picture-card.spec.ts | 3 +- .../pc/app/file-upload/picture-list.spec.ts | 2 +- .../app/file-upload/upload-file-list.spec.ts | 2 +- .../app/grid/custom/ordercolumn-local.spec.js | 4 +- .../static-data-composition-api.vue | 2 +- .../app/grid/data-source/static-data.spec.js | 2 +- .../pc/app/grid/data-source/static-data.vue | 2 +- .../grid/edit/grid-equals-composition-api.vue | 50 + .../pc/app/grid/edit/grid-equals.spec.js | 10 + .../demos/pc/app/grid/edit/grid-equals.vue | 60 + .../pc/app/grid/edit/has-row-change.spec.js | 4 +- .../pc/app/grid/event/get-row-method.spec.js | 8 +- .../demos/pc/app/grid/fixed/left-fixed.vue | 2 +- .../pc/app/grid/large-data/column-anchor.vue | 132 ++ .../pc/app/grid/large-data/scroll-to.spec.js | 2 +- .../app/grid/loading/grid-loading-tip.spec.js | 2 +- .../pager/show-save-msg-composition-api.vue | 2 +- .../demos/pc/app/grid/pager/show-save-msg.vue | 2 +- .../inner-renderer-date-composition-api.vue | 40 + .../grid/renderer/inner-renderer-date.spec.js | 9 + .../app/grid/renderer/inner-renderer-date.vue | 50 + .../grid/size/grid-size-composition-api.vue | 59 +- .../demos/pc/app/grid/size/grid-size.spec.js | 10 +- .../demos/pc/app/grid/size/grid-size.vue | 60 +- .../sites/demos/pc/app/grid/sort/sort.vue | 1 - ...d-full-screen-teleport-composition-api.vue | 65 + .../toolbar/grid-full-screen-teleport.spec.js | 10 + .../toolbar/grid-full-screen-teleport.vue | 73 + .../tree-grid-insert-delete-update.spec.js | 2 +- .../before-submit-validation.spec.js | 2 +- .../demos/pc/app/grid/webdoc/grid-edit.js | 11 + .../pc/app/grid/webdoc/grid-large-data.js | 50 +- .../demos/pc/app/grid/webdoc/grid-renderer.js | 11 + .../demos/pc/app/grid/webdoc/grid-toolbar.js | 11 +- .../app/modal/prop-slots-composition-api.vue | 4 +- .../numeric/change-event-composition-api.vue | 11 +- .../demos/pc/app/numeric/change-event.vue | 13 +- .../app/numeric/precision-composition-api.vue | 2 +- .../demos/pc/app/numeric/precision.spec.ts | 21 +- .../pc/app/pager/before-page-change.spec.ts | 2 +- .../pc/app/pager/disabled-and-size.spec.ts | 2 +- .../steps/advanced-steps-composition-api.vue | 2 +- .../demos/pc/app/steps/advanced-steps.spec.ts | 6 +- .../demos/pc/app/steps/advanced-steps.vue | 2 +- .../app/time-line/shape-composition-api.vue | 7 +- .../demos/pc/app/time-line/shape.spec.ts | 2 + .../sites/demos/pc/app/time-line/shape.vue | 6 +- .../pc/app/tooltip/theme-composition-api.vue | 54 +- examples/sites/demos/pc/app/tooltip/theme.vue | 54 +- .../contact-espace-composition-api.vue | 1 + .../pc/app/watermark/webdoc/watermark.js | 2 +- examples/sites/package.json | 4 +- examples/sites/playground/App.vue | 18 +- .../sites/src/views/components/components.vue | 1 + examples/vue2/package.json | 4 +- internals/cli/src/commands/build/build-ui.ts | 51 +- package.json | 6 +- packages/design/aurora/index.ts | 6 +- packages/design/aurora/package.json | 2 +- .../design/aurora/src/dialog-box/index.ts | 6 + packages/design/aurora/src/loading/index.ts | 7 + packages/design/saas/index.ts | 4 +- packages/design/saas/package.json | 2 +- packages/design/saas/src/dialog-box/index.ts | 5 + packages/design/smb/package.json | 2 +- packages/openinula/src/common/src/utils.ts | 4 +- packages/react/src/common/src/utils.ts | 4 +- packages/renderless/package.json | 2 +- packages/renderless/src/cascader/index.ts | 2 +- packages/renderless/src/common/date.ts | 18 +- .../src/common/deps/clickoutside.ts | 9 +- packages/renderless/src/common/deps/popper.ts | 25 +- .../src/common/deps/requestAnimationFrame.ts | 45 - .../src/common/deps/tree-model/node.ts | 2 +- .../renderless/src/common/deps/vue-popper.ts | 15 +- packages/renderless/src/common/index.ts | 2 +- packages/renderless/src/common/string.ts | 4 +- packages/renderless/src/dialog-box/index.ts | 40 +- packages/renderless/src/dialog-box/vue.ts | 37 +- packages/renderless/src/form-item/index.ts | 2 +- .../renderless/src/grid/plugins/export.ts | 9 +- packages/renderless/src/grid/utils/column.ts | 1 + packages/renderless/src/image/index.ts | 1 - packages/renderless/src/menu/index.ts | 21 +- packages/renderless/src/menu/vue.ts | 44 +- .../renderless/src/multi-select-item/index.ts | 8 + .../renderless/src/multi-select-item/vue.ts | 2 +- packages/renderless/src/multi-select/index.ts | 70 +- packages/renderless/src/multi-select/vue.ts | 24 +- packages/renderless/src/numeric/index.ts | 10 +- packages/renderless/src/numeric/vue.ts | 2 +- packages/renderless/src/option/vue.ts | 2 +- .../renderless/src/rich-text/clipboard.ts | 66 + packages/renderless/src/rich-text/index.ts | 254 +++ .../src/rich-text/module/file-upload.ts | 122 ++ .../src/rich-text/module/image-drop.ts | 63 + .../src/rich-text/module/image-upload.ts | 101 + packages/renderless/src/rich-text/options.ts | 140 ++ .../renderless/src/rich-text/table-module.ts | 508 +++++ packages/renderless/src/rich-text/vue.ts | 116 ++ packages/renderless/src/split/index.ts | 7 +- packages/renderless/src/time-range/index.ts | 2 +- packages/renderless/src/time/index.ts | 4 +- .../renderless/src/upload-dragger/index.ts | 53 +- packages/renderless/src/upload-list/index.ts | 6 +- packages/renderless/types/dialog-box.type.ts | 6 + packages/theme-mobile/package.json | 2 +- packages/theme-mobile/src/images/loading.png | Bin 0 -> 51611 bytes packages/theme-mobile/src/loading/index.less | 98 +- packages/theme-mobile/src/loading/vars.less | 42 +- packages/theme-mobile/src/mask/vars.less | 2 +- .../src/multi-select-item/index.less | 16 +- .../src/multi-select-item/vars.less | 14 +- .../theme-mobile/src/multi-select/index.less | 44 +- packages/theme-saas/package.json | 2 +- packages/theme-saas/src/alert/index.less | 16 +- packages/theme-saas/src/dialog-box/index.less | 6 +- packages/theme-saas/src/form-item/index.less | 4 + packages/theme-saas/src/form/index.less | 13 +- packages/theme-saas/src/grid/header.less | 3 + .../theme-saas/src/grid/table-global.less | 17 +- packages/theme-saas/src/grid/table.less | 35 +- packages/theme-saas/src/index.less | 2 + packages/theme-saas/src/input/index.less | 7 +- packages/theme-saas/src/pager/index.less | 32 +- packages/theme-saas/src/select/index.less | 2 +- packages/theme-saas/src/svgs/activation.svg | 5 + .../theme-saas/src/svgs/administrator-o.svg | 7 +- packages/theme-saas/src/svgs/area-chart.svg | 7 +- packages/theme-saas/src/svgs/audio.svg | 7 +- packages/theme-saas/src/svgs/bar-chart.svg | 7 +- packages/theme-saas/src/svgs/busy.svg | 7 +- packages/theme-saas/src/svgs/check-out.svg | 7 +- .../theme-saas/src/svgs/checked-linear.svg | 7 +- packages/theme-saas/src/svgs/checked-true.svg | 7 +- packages/theme-saas/src/svgs/course.svg | 9 +- packages/theme-saas/src/svgs/cue-l-o.svg | 14 +- packages/theme-saas/src/svgs/custom.svg | 7 +- packages/theme-saas/src/svgs/deleted.svg | 9 +- .../theme-saas/src/svgs/download-link.svg | 7 +- packages/theme-saas/src/svgs/excel-type.svg | 11 +- packages/theme-saas/src/svgs/exclamation.svg | 7 +- .../theme-saas/src/svgs/execution-phase.svg | 11 +- packages/theme-saas/src/svgs/file-type.svg | 7 +- packages/theme-saas/src/svgs/flag.svg | 7 +- .../theme-saas/src/svgs/folder-opened.svg | 7 +- packages/theme-saas/src/svgs/freeze-right.svg | 42 +- packages/theme-saas/src/svgs/generating.svg | 6 + packages/theme-saas/src/svgs/image-add.svg | 7 +- packages/theme-saas/src/svgs/info.svg | 7 +- packages/theme-saas/src/svgs/information.svg | 7 +- packages/theme-saas/src/svgs/leave.svg | 7 +- packages/theme-saas/src/svgs/male.svg | 7 +- packages/theme-saas/src/svgs/milestone.svg | 11 +- packages/theme-saas/src/svgs/new.svg | 7 +- packages/theme-saas/src/svgs/off-line.svg | 7 +- packages/theme-saas/src/svgs/on-line.svg | 7 +- packages/theme-saas/src/svgs/pager-first.svg | 18 +- packages/theme-saas/src/svgs/pager-last.svg | 18 +- packages/theme-saas/src/svgs/pdf-type.svg | 7 +- packages/theme-saas/src/svgs/picture-type.svg | 7 +- packages/theme-saas/src/svgs/ppt-type.svg | 7 +- packages/theme-saas/src/svgs/processing.svg | 6 + .../theme-saas/src/svgs/report-submission.svg | 6 + packages/theme-saas/src/svgs/setting-data.svg | 6 +- packages/theme-saas/src/svgs/sort-o.svg | 16 +- packages/theme-saas/src/svgs/sort.svg | 14 +- packages/theme-saas/src/svgs/split.svg | 6 +- packages/theme-saas/src/svgs/start-o.svg | 6 + packages/theme-saas/src/svgs/teams.svg | 5 + .../theme-saas/src/svgs/telephone-circle.svg | 7 +- packages/theme-saas/src/svgs/text-type.svg | 6 +- packages/theme-saas/src/svgs/turn-on.svg | 6 + packages/theme-saas/src/svgs/video-type.svg | 32 +- packages/theme-saas/src/svgs/warn.svg | 9 +- packages/theme-saas/src/svgs/warning-o.svg | 6 + .../theme-saas/src/svgs/warning-triangle.svg | 7 +- packages/theme-saas/src/svgs/word-type.svg | 6 +- packages/theme-saas/src/svgs/work-package.svg | 11 +- packages/theme-saas/src/svgs/zip-type.svg | 3 +- packages/theme-saas/src/tabs/index.less | 1 + packages/theme/package.json | 2 +- packages/theme/src/alert/aurora-theme.js | 2 +- packages/theme/src/alert/index.less | 4 +- packages/theme/src/alert/smb-theme.js | 35 +- packages/theme/src/alert/vars.less | 21 +- packages/theme/src/breadcrumb/index.less | 4 + packages/theme/src/button-group/index.less | 25 +- packages/theme/src/button-group/smb-theme.js | 44 +- packages/theme/src/button-group/vars.less | 54 +- .../theme/src/cascader-node/aurora-theme.js | 5 +- packages/theme/src/cascader/aurora-theme.js | 3 +- packages/theme/src/cascader/index.less | 2 +- packages/theme/src/cascader/vars.less | 2 + .../theme/src/collapse-item/aurora-theme.js | 2 +- packages/theme/src/collapse/index.less | 2 + packages/theme/src/dialog-box/aurora-theme.js | 5 +- packages/theme/src/dialog-box/index.less | 6 +- packages/theme/src/dialog-box/vars.less | 6 + packages/theme/src/drawer/aurora-theme.js | 21 +- packages/theme/src/drawer/index.less | 8 +- packages/theme/src/drawer/vars.less | 20 +- packages/theme/src/fall-menu/aurora-theme.js | 3 +- packages/theme/src/form-item/index.less | 4 + packages/theme/src/form/aurora-theme.js | 6 + packages/theme/src/form/index.less | 3 + packages/theme/src/form/vars.less | 6 +- packages/theme/src/grid/aurora-theme.js | 4 +- packages/theme/src/grid/table.less | 9 +- packages/theme/src/grid/vars.less | 4 + packages/theme/src/index.less | 1 + packages/theme/src/input/aurora-theme.js | 3 +- packages/theme/src/input/index.less | 1 + packages/theme/src/ip-address/aurora-theme.js | 2 +- packages/theme/src/modal/aurora-theme.js | 15 + packages/theme/src/modal/index.less | 3 +- packages/theme/src/modal/vars.less | 4 + packages/theme/src/nav-menu/index.less | 1 + packages/theme/src/pager/aurora-theme.js | 3 +- packages/theme/src/pager/index.less | 4 + packages/theme/src/pager/vars.less | 2 +- packages/theme/src/rich-text/index.less | 1792 +++++++++++++++++ packages/theme/src/steps/aurora-theme.js | 39 +- packages/theme/src/steps/index.less | 183 +- packages/theme/src/steps/smb-theme.js | 9 +- packages/theme/src/steps/vars.less | 12 +- packages/theme/src/svgs/activation.svg | 5 + .../theme/src/svgs/fillet-external-link.svg | 13 +- packages/theme/src/svgs/generating.svg | 6 + packages/theme/src/svgs/processing.svg | 6 + packages/theme/src/svgs/report-submission.svg | 6 + packages/theme/src/svgs/start-o.svg | 6 + packages/theme/src/svgs/teams.svg | 5 + packages/theme/src/svgs/turn-on.svg | 6 + packages/theme/src/svgs/warning-o.svg | 6 + packages/theme/src/text-popup/aurora-theme.js | 1 + packages/theme/src/textarea/smb-theme.js | 2 - packages/theme/src/textarea/vars.less | 2 - packages/theme/src/theme.config.js | 3 +- .../theme/src/toggle-menu/aurora-theme.js | 5 + packages/theme/src/tooltip/aurora-theme.js | 4 +- packages/theme/src/tree-menu/index.less | 6 +- packages/theme/src/user-contact/index.less | 6 +- packages/vue-common/package.json | 2 +- packages/vue-common/src/adapter/utils.ts | 8 +- .../vue-common/src/adapter/vue2/package.json | 2 +- packages/vue-icon-saas/index.ts | 32 + packages/vue-icon-saas/package.json | 2 +- packages/vue-icon/index.ts | 32 + packages/vue-icon/package.json | 2 +- packages/vue-icon/src/activation/index.ts | 15 + packages/vue-icon/src/generating/index.ts | 15 + packages/vue-icon/src/processing/index.ts | 15 + .../vue-icon/src/report-submission/index.ts | 15 + packages/vue-icon/src/start-o/index.ts | 15 + .../src/teams/index.ts} | 5 +- packages/vue-icon/src/turn-on/index.ts | 15 + packages/vue-icon/src/warning-o/index.ts | 15 + packages/vue-locale/package.json | 2 +- packages/vue-locale/src/lang/en.ts | 13 +- packages/vue-locale/src/lang/zh-CN.ts | 12 +- packages/vue-saas-common/package.json | 4 +- packages/vue/package.json | 4 +- packages/vue/src/alert/src/mobile-first.vue | 5 +- packages/vue/src/alert/src/pc.vue | 2 +- packages/vue/src/cascader/src/index.ts | 2 +- packages/vue/src/cascader/src/pc-first.vue | 6 +- .../src/chart-beta/chart-core/base/chart.ts | 7 +- .../base/components/AutonaviMapChart/index.ts | 4 + .../base/components/BaiduMapChart/index.ts | 24 +- .../base/components/BarChart/chartToken.ts | 10 +- .../base/components/BarChart/handleSeries.ts | 41 +- .../components/BarChart/handleVisualMap.ts | 2 +- .../base/components/BarChart/index.ts | 5 +- .../components/BoxplotChart/chartToken.ts | 16 + .../components/BoxplotChart/handleSeries.ts | 11 +- .../base/components/BoxplotChart/index.ts | 6 +- .../base/components/BubbleChart/chartToken.ts | 19 + .../components/BubbleChart/handleSeries.ts | 22 +- .../components/BubbleChart/handleTrendLine.ts | 5 +- .../base/components/BubbleChart/index.ts | 14 +- .../components/CandlestickChart/chartToken.ts | 21 + .../CandlestickChart/hanleOption.ts | 8 +- .../CandlestickChart/hanleSeries.ts | 8 +- .../base/components/CandlestickChart/index.ts | 3 +- .../base/components/FunnelChart/chartToken.ts | 18 + .../components/FunnelChart/handleLegend.ts | 2 +- .../components/FunnelChart/handleSeries.ts | 13 +- .../base/components/FunnelChart/index.ts | 6 +- .../base/components/GaugeChart/chartToken.ts | 31 + .../components/GaugeChart/handleSeries.ts | 40 +- .../components/HeatMapChart/chartToken.ts | 28 + .../components/HeatMapChart/handleOptipn.ts | 5 +- .../components/HeatMapChart/handleSeries.ts | 6 +- .../HeatMapChart/handleVisualMap.ts | 4 +- .../LineChart/AreaChart/bottomArea.ts | 2 +- .../LineChart/AreaChart/chartToken.ts | 10 +- .../components/LineChart/AreaChart/topArea.ts | 2 +- .../base/components/LineChart/chartToken.ts | 22 +- .../base/components/LineChart/handleOptipn.ts | 2 +- .../components/LineChart/handlePredict.ts | 7 +- .../base/components/LineChart/handleSeries.ts | 18 +- .../components/LineChart/handleVisualMap.ts | 2 +- .../base/components/LineChart/index.ts | 2 +- .../components/LiquidfillChart/chartToken.ts | 21 + .../LiquidfillChart/handleSeries.ts | 48 +- .../base/components/PieChart/chartToken.ts | 14 +- .../base/components/PieChart/handleLabel.ts | 83 + .../base/components/PieChart/handleSeries.ts | 160 +- .../base/components/PieChart/index.ts | 5 +- .../base/components/RadarChart/BaseOption.ts | 11 - .../base/components/RadarChart/chartToken.ts | 59 +- .../base/components/RadarChart/getRadar.ts | 62 + .../components/RadarChart/handleOptipn.ts | 649 +++--- .../components/RadarChart/handleSeries.ts | 150 +- .../base/components/RadarChart/index.ts | 23 +- .../base/components/RegionChart/chartToken.ts | 18 + .../components/RegionChart/handleOption.ts | 6 +- .../base/components/RegionChart/index.ts | 3 +- .../base/components/SankeyChart/chartToken.ts | 16 + .../components/SankeyChart/handleColor.ts | 11 +- .../components/SankeyChart/handleOption.ts | 4 +- .../base/components/SankeyChart/index.ts | 1 - .../components/SunburstChart/chartToken.ts | 2 +- .../base/components/TreeChart/chartToken.ts | 21 + .../base/components/TreeChart/handleOptipn.ts | 8 - .../base/components/TreeChart/handleSeries.ts | 10 +- .../base/components/TreeChart/index.ts | 6 +- .../components/WordCloudChart/chartToken.ts | 18 + .../components/WordCloudChart/handleSeries.ts | 21 +- .../base/components/WordCloudChart/index.ts | 2 - .../src/chart-beta/chart-core/base/core.ts | 11 +- .../chart-core/base/feature/axistip/index.ts | 79 + .../chart-core/base/feature/drag/index.less | 41 + .../chart-core/base/feature/drag/index.ts | 226 +++ .../base/feature/mediaScreen/index.ts | 6 + .../feature/theme/basic/basicToken/border.ts | 64 - .../feature/theme/basic/basicToken/font.ts | 44 - .../feature/theme/basic/basicToken/index.ts | 13 - .../feature/theme/basic/basicToken/line.ts | 15 - .../feature/theme/basic/basicToken/space.ts | 26 - .../theme/basic/chartsToken/AreaChart.ts | 10 - .../theme/basic/chartsToken/BarChart.ts | 27 - .../theme/basic/chartsToken/BubbleChart.ts | 20 - .../theme/basic/chartsToken/FunnelChart.ts | 11 - .../theme/basic/chartsToken/GraphTreeChart.ts | 10 - .../theme/basic/chartsToken/HillChart.ts | 21 - .../theme/basic/chartsToken/JadeJueChart.ts | 11 - .../theme/basic/chartsToken/LineChart.ts | 37 - .../theme/basic/chartsToken/PieChart.ts | 35 - .../theme/basic/chartsToken/PolarBarChart.ts | 15 - .../theme/basic/chartsToken/ProcessChart.ts | 20 - .../theme/basic/chartsToken/RadarChart.ts | 46 - .../theme/basic/chartsToken/SankeyChart.ts | 12 - .../theme/basic/chartsToken/TreeChart.ts | 16 - .../feature/theme/basic/chartsToken/index.ts | 37 - .../base/feature/theme/basic/index.ts | 8 - .../feature/theme/bpit/dark/basicToken.ts | 10 - .../feature/theme/bpit/dark/chartsToken.ts | 10 - .../base/feature/theme/bpit/dark/index.ts | 14 - .../base/feature/theme/bpit/dark/mapToken.ts | 9 - .../feature/theme/bpit/dark/modelToken.ts | 8 - .../base/feature/theme/bpit/getMapToken.ts | 149 -- .../base/feature/theme/bpit/getModelToken.ts | 264 --- .../feature/theme/bpit/light/basicToken.ts | 10 - .../feature/theme/bpit/light/chartsToken.ts | 10 - .../base/feature/theme/bpit/light/index.ts | 14 - .../base/feature/theme/bpit/light/mapToken.ts | 9 - .../feature/theme/bpit/light/modelToken.ts | 8 - .../chart-core/base/feature/theme/bpitDark.ts | 55 - .../base/feature/theme/bpitLight.ts | 61 - .../feature/theme/cloud/dark/basicToken.ts | 10 - .../feature/theme/cloud/dark/chartsToken.ts | 10 - .../base/feature/theme/cloud/dark/index.ts | 19 - .../base/feature/theme/cloud/dark/mapToken.ts | 9 - .../feature/theme/cloud/dark/modelToken.ts | 8 - .../base/feature/theme/cloud/getMapToken.ts | 154 -- .../base/feature/theme/cloud/getModelToken.ts | 265 --- .../feature/theme/cloud/light/basicToken.ts | 10 - .../feature/theme/cloud/light/chartsToken.ts | 10 - .../base/feature/theme/cloud/light/index.ts | 14 - .../feature/theme/cloud/light/mapToken.ts | 9 - .../feature/theme/cloud/light/modelToken.ts | 8 - .../base/feature/theme/cloudDark.ts | 55 - .../base/feature/theme/cloudLight.ts | 65 - .../base/feature/theme/color/bpit/dark.ts | 30 - .../base/feature/theme/color/bpit/gray.ts | 18 - .../base/feature/theme/color/bpit/light.ts | 29 - .../base/feature/theme/color/cloud/dark.ts | 30 - .../base/feature/theme/color/cloud/gray.ts | 18 - .../base/feature/theme/color/cloud/light.ts | 29 - .../base/feature/theme/color/ict/dark.ts | 29 - .../base/feature/theme/color/ict/gray.ts | 18 - .../base/feature/theme/color/ict/light.ts | 29 - .../base/feature/theme/constants.ts | 20 - .../base/feature/theme/ict/dark/basicToken.ts | 10 - .../feature/theme/ict/dark/chartsToken.ts | 10 - .../base/feature/theme/ict/dark/index.ts | 14 - .../base/feature/theme/ict/dark/mapToken.ts | 8 - .../base/feature/theme/ict/dark/modelToken.ts | 8 - .../base/feature/theme/ict/getMapToken.ts | 152 -- .../base/feature/theme/ict/getModelToken.ts | 253 --- .../feature/theme/ict/light/baiscToken.ts | 10 - .../feature/theme/ict/light/chartsToken.ts | 10 - .../base/feature/theme/ict/light/index.ts | 14 - .../base/feature/theme/ict/light/mapToken.ts | 8 - .../feature/theme/ict/light/modelToken.ts | 8 - .../chart-core/base/feature/theme/ictDark.ts | 55 - .../chart-core/base/feature/theme/ictLight.ts | 55 - .../base/feature/theme/mergeThemeConfig.ts | 125 -- .../chart-core/base/feature/theme/readme.md | 15 - .../base/feature/token/color/bpit/dark.ts | 46 + .../base/feature/token/color/bpit/index.ts | 9 + .../base/feature/token/color/bpit/light.ts | 46 + .../base/feature/token/color/cloud/board.ts | 263 +++ .../base/feature/token/color/cloud/dark.ts | 43 + .../base/feature/token/color/cloud/index.ts | 9 + .../base/feature/token/color/cloud/light.ts | 42 + .../base/feature/token/color/hdesign/board.ts | 193 ++ .../base/feature/token/color/hdesign/dark.ts | 44 + .../base/feature/token/color/hdesign/index.ts | 9 + .../base/feature/token/color/hdesign/light.ts | 44 + .../base/feature/token/color/ict/board.ts | 179 ++ .../base/feature/token/color/ict/dark.ts | 41 + .../base/feature/token/color/ict/index.ts | 9 + .../base/feature/token/color/ict/light.ts | 41 + .../base/feature/token/color/index.ts | 18 + .../base/feature/token/color/util.ts | 28 + .../base/feature/token/constants.ts | 51 + .../token/factory/chartsToken/AreaChart.ts | 10 + .../chartsToken/AssembleBubbleChart.ts | 16 + .../token/factory/chartsToken/BarChart.ts | 20 + .../token/factory/chartsToken/BoxplotChart.ts | 11 + .../token/factory/chartsToken/BubbleChart.ts | 12 + .../factory/chartsToken/CandlestickChart.ts | 13 + .../factory/chartsToken/CircleProcessChart.ts | 11 + .../token/factory/chartsToken/FunnelChart.ts | 13 + .../token/factory/chartsToken/GaugeChart.ts | 26 + .../token/factory/chartsToken/HeatMapChart.ts | 26 + .../token/factory/chartsToken/HillChart.ts | 13 + .../token/factory/chartsToken/JadeJueChart.ts | 13 + .../token/factory/chartsToken/LineChart.ts | 26 + .../factory/chartsToken/LiquidfillChart.ts | 14 + .../token/factory/chartsToken/PieChart.ts | 35 + .../factory/chartsToken/PolarBarChart.ts | 12 + .../token/factory/chartsToken/ProcessChart.ts | 23 + .../token/factory/chartsToken/RadarChart.ts | 25 + .../token/factory/chartsToken/RegionChart.ts | 13 + .../token/factory/chartsToken/SankeyChart.ts | 11 + .../token/factory/chartsToken/ScatterChart.ts | 11 + .../factory}/chartsToken/SunburstChart.ts | 0 .../token/factory/chartsToken/TreeChart.ts | 13 + .../token/factory/chartsToken/WaveChart.ts | 11 + .../factory/chartsToken/WordCloudChart.ts | 13 + .../token/factory/chartsToken/index.ts | 62 + .../feature/token/factory/getAliasToken.ts | 31 + .../feature/token/factory/getGlobalToken.ts | 13 + .../feature/token/factory/getModelToken.ts | 303 +++ .../token/factory/globalToken/border.ts | 11 + .../token/factory/globalToken/borderRadius.ts | 59 + .../feature/token/factory/globalToken/font.ts | 53 + .../token/factory/globalToken/index.ts | 17 + .../token/factory/globalToken/lineType.ts | 8 + .../feature/token/factory/globalToken/size.ts | 11 + .../token/factory/globalToken/space.ts | 15 + .../base/feature/token/factory/index.ts | 23 + .../base/feature/token/factory/mergeToken.ts | 61 + .../base/feature/{theme => token}/index.ts | 104 +- .../chart-core/base/feature/token/readme.md | 15 + .../feature/token/theme/bpit/getAliasToken.ts | 179 ++ .../base/feature/token/theme/bpit/index.ts | 8 + .../token/theme/cloud/getAliasToken.ts | 179 ++ .../base/feature/token/theme/cloud/index.ts | 8 + .../token/theme/hdesign/getAliasToken.ts | 183 ++ .../base/feature/token/theme/hdesign/index.ts | 8 + .../feature/token/theme/ict/getAliasToken.ts | 179 ++ .../base/feature/token/theme/ict/index.ts | 8 + .../src/chart-beta/chart-core/base/index.less | 11 + .../src/chart-beta/chart-core/base/index.ts | 26 +- .../base/option/config/angleAxis/base.ts | 2 +- .../base/option/config/datazoom/base.ts | 13 +- .../base/option/config/datazoom/index.ts | 1 + .../base/option/config/legend/base.ts | 12 +- .../base/option/config/legend/icon.ts | 4 +- .../base/option/config/legend/pageIcon.ts | 43 + .../base/option/config/mark/index.ts | 6 +- .../base/option/config/polarTitle/base.ts | 2 +- .../base/option/config/radiusAxis/base.ts | 2 +- .../base/option/config/radiusAxis/index.ts | 2 +- .../base/option/config/rectTitle/base.ts | 2 +- .../base/option/config/rectTitle/index.ts | 10 +- .../option/config/rectTitle/titlePadding.ts | 25 + .../base/option/config/tooltip/axisPointer.ts | 4 +- .../base/option/config/tooltip/base.ts | 15 +- .../base/option/config/xAxis/base.ts | 2 +- .../base/option/config/yAxis/base.ts | 2 +- .../base/option/config/yAxis/index.ts | 4 +- .../chart-core/base/option/init/index.ts | 2 +- .../chart-beta/chart-core/base/register.ts | 86 +- .../chart-core/base/util/baseOption.ts | 13 - .../chart-core/base/util/convert.ts | 27 + .../chart-beta/chart-core/base/util/dom.ts | 14 +- .../chart-core/base/util/init/insert.ts | 14 +- .../chart-beta/chart-core/base/util/math.ts | 7 +- .../chart-beta/chart-core/common/extend.ts | 16 +- .../chart-histogram/src/histogram.ts | 12 +- .../src/chart-beta/chart-radar/src/radar.ts | 3 +- .../src/collapse-item/src/mobile-first.vue | 7 +- .../column-list-group/src/mobile-first.vue | 2 +- packages/vue/src/date-panel/src/pc.vue | 1 + packages/vue/src/date-range/src/pc.vue | 1 + packages/vue/src/dialog-box/src/pc.vue | 8 +- .../vue/src/file-upload/src/mobile-first.vue | 3 +- packages/vue/src/file-upload/src/pc.vue | 14 +- packages/vue/src/form-item/src/index.ts | 2 +- packages/vue/src/form-item/src/pc.vue | 2 +- packages/vue/src/form/src/mobile-first.vue | 1 - packages/vue/src/form/src/pc.vue | 1 - packages/vue/src/grid/__tests__/grid.test.tsx | 2 +- packages/vue/src/grid/src/body/src/body.tsx | 31 +- .../src/grid/src/column-anchor/src/methods.ts | 70 +- .../vue/src/grid/src/column/src/column.ts | 6 +- .../vue/src/grid/src/dragger/src/methods.ts | 37 +- packages/vue/src/grid/src/edit/src/methods.ts | 6 +- .../src/grid/src/fetch-data/src/methods.ts | 7 - packages/vue/src/grid/src/grid/grid.ts | 42 +- .../vue/src/grid/src/header/src/header.ts | 19 +- .../vue/src/grid/src/keyboard/src/methods.ts | 12 +- .../vue/src/grid/src/pager/src/methods.ts | 7 +- .../vue/src/grid/src/table/src/methods.ts | 63 +- packages/vue/src/grid/src/table/src/table.ts | 40 +- .../grid/src/table/src/utils/autoCellWidth.ts | 17 +- .../vue/src/grid/src/toolbar/src/methods.ts | 15 +- packages/vue/src/grid/src/tools/formatter.ts | 21 + packages/vue/src/grid/src/tools/index.ts | 15 +- packages/vue/src/grid/src/tools/logger.ts | 14 + packages/vue/src/input/src/pc.vue | 3 + packages/vue/src/link/src/pc.vue | 1 + packages/vue/src/loading/src/directive.ts | 7 + packages/vue/src/loading/src/index.ts | 7 + packages/vue/src/loading/src/mobile-first.vue | 15 +- packages/vue/src/loading/src/mobile.vue | 45 +- packages/vue/src/loading/src/pc.vue | 14 +- packages/vue/src/menu/src/mobile-first.vue | 12 +- packages/vue/src/modal/src/mobile-first.vue | 4 +- packages/vue/src/modal/src/pc.vue | 2 +- packages/vue/src/month-range/src/pc.vue | 1 + .../vue/src/multi-select-item/package.json | 5 +- packages/vue/src/multi-select/package.json | 5 +- packages/vue/src/multi-select/src/index.ts | 13 + packages/vue/src/multi-select/src/mobile.vue | 56 +- packages/vue/src/numeric/src/index.ts | 4 + packages/vue/src/numeric/src/mobile-first.vue | 3 +- packages/vue/src/numeric/src/mobile.vue | 3 +- packages/vue/src/numeric/src/pc.vue | 3 +- packages/vue/src/pager/src/pc.vue | 2 +- packages/vue/src/select/src/mobile-first.vue | 19 +- packages/vue/src/select/src/pc.vue | 2 +- .../mobile-first/mobile-first-advanced.vue | 2 +- .../src/mobile-first/mobile-first-normal.vue | 7 +- .../src/mobile-first/token/advanced-token.ts | 20 +- .../src/mobile-first/token/normal-token.ts | 12 +- packages/vue/src/steps/src/pc/pc-advanced.vue | 2 +- packages/vue/src/steps/src/pc/pc-line.vue | 2 +- packages/vue/src/steps/src/pc/pc-standard.vue | 3 +- packages/vue/src/time-line/src/pc.vue | 7 +- packages/vue/src/timeline-item/src/pc.vue | 4 +- packages/vue/src/tooltip/src/index.ts | 2 +- packages/vue/src/tooltip/src/pc.vue | 112 +- packages/vue/src/transfer/src/index.ts | 2 + packages/vue/src/tree-menu/src/pc.vue | 16 +- packages/vue/src/tree/src/pc.vue | 6 +- .../vue/src/upload-list/src/mobile-first.vue | 23 +- packages/vue/src/upload-list/src/pc.vue | 9 +- packages/vue/src/year-range/src/pc.vue | 1 + tsconfig.json | 2 +- tsconfig.vue2.7.json | 25 +- tsconfig.vue2.json | 25 +- tsconfig.vue3.json | 25 +- 605 files changed, 11140 insertions(+), 5540 deletions(-) create mode 100644 examples/docs/newsrc/utils/componentsDoc.js create mode 100644 examples/sites/demos/mobile/app/loading/background.vue create mode 100644 examples/sites/demos/mobile/app/loading/custom-class.vue create mode 100644 examples/sites/demos/mobile/app/loading/global-registry.vue create mode 100644 examples/sites/demos/mobile/app/loading/size.vue create mode 100644 examples/sites/demos/mobile/app/loading/spinner.vue create mode 100644 examples/sites/demos/mobile/app/loading/tip-text.vue create mode 100644 examples/sites/demos/pc/app/grid/edit/grid-equals-composition-api.vue create mode 100644 examples/sites/demos/pc/app/grid/edit/grid-equals.spec.js create mode 100644 examples/sites/demos/pc/app/grid/edit/grid-equals.vue create mode 100644 examples/sites/demos/pc/app/grid/large-data/column-anchor.vue create mode 100644 examples/sites/demos/pc/app/grid/renderer/inner-renderer-date-composition-api.vue create mode 100644 examples/sites/demos/pc/app/grid/renderer/inner-renderer-date.spec.js create mode 100644 examples/sites/demos/pc/app/grid/renderer/inner-renderer-date.vue create mode 100644 examples/sites/demos/pc/app/grid/toolbar/grid-full-screen-teleport-composition-api.vue create mode 100644 examples/sites/demos/pc/app/grid/toolbar/grid-full-screen-teleport.spec.js create mode 100644 examples/sites/demos/pc/app/grid/toolbar/grid-full-screen-teleport.vue create mode 100644 packages/design/aurora/src/dialog-box/index.ts create mode 100644 packages/design/aurora/src/loading/index.ts create mode 100644 packages/design/saas/src/dialog-box/index.ts delete mode 100644 packages/renderless/src/common/deps/requestAnimationFrame.ts create mode 100644 packages/renderless/src/rich-text/clipboard.ts create mode 100644 packages/renderless/src/rich-text/index.ts create mode 100644 packages/renderless/src/rich-text/module/file-upload.ts create mode 100644 packages/renderless/src/rich-text/module/image-drop.ts create mode 100644 packages/renderless/src/rich-text/module/image-upload.ts create mode 100644 packages/renderless/src/rich-text/options.ts create mode 100644 packages/renderless/src/rich-text/table-module.ts create mode 100644 packages/renderless/src/rich-text/vue.ts create mode 100644 packages/theme-mobile/src/images/loading.png create mode 100644 packages/theme-saas/src/svgs/activation.svg create mode 100644 packages/theme-saas/src/svgs/generating.svg create mode 100644 packages/theme-saas/src/svgs/processing.svg create mode 100644 packages/theme-saas/src/svgs/report-submission.svg create mode 100644 packages/theme-saas/src/svgs/start-o.svg create mode 100644 packages/theme-saas/src/svgs/teams.svg create mode 100644 packages/theme-saas/src/svgs/turn-on.svg create mode 100644 packages/theme-saas/src/svgs/warning-o.svg create mode 100644 packages/theme/src/form/aurora-theme.js create mode 100644 packages/theme/src/modal/aurora-theme.js create mode 100644 packages/theme/src/rich-text/index.less create mode 100644 packages/theme/src/svgs/activation.svg create mode 100644 packages/theme/src/svgs/generating.svg create mode 100644 packages/theme/src/svgs/processing.svg create mode 100644 packages/theme/src/svgs/report-submission.svg create mode 100644 packages/theme/src/svgs/start-o.svg create mode 100644 packages/theme/src/svgs/teams.svg create mode 100644 packages/theme/src/svgs/turn-on.svg create mode 100644 packages/theme/src/svgs/warning-o.svg create mode 100644 packages/theme/src/toggle-menu/aurora-theme.js create mode 100644 packages/vue-icon/src/activation/index.ts create mode 100644 packages/vue-icon/src/generating/index.ts create mode 100644 packages/vue-icon/src/processing/index.ts create mode 100644 packages/vue-icon/src/report-submission/index.ts create mode 100644 packages/vue-icon/src/start-o/index.ts rename packages/{renderless/src/common/deps/modal-queue.ts => vue-icon/src/teams/index.ts} (73%) create mode 100644 packages/vue-icon/src/turn-on/index.ts create mode 100644 packages/vue-icon/src/warning-o/index.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/components/BoxplotChart/chartToken.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/components/BubbleChart/chartToken.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/components/CandlestickChart/chartToken.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/components/FunnelChart/chartToken.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/components/GaugeChart/chartToken.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/components/HeatMapChart/chartToken.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/components/LiquidfillChart/chartToken.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/components/PieChart/handleLabel.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/components/RadarChart/BaseOption.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/components/RadarChart/getRadar.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/components/RegionChart/chartToken.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/components/SankeyChart/chartToken.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/components/TreeChart/chartToken.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/components/WordCloudChart/chartToken.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/axistip/index.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/drag/index.less create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/drag/index.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/basic/basicToken/border.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/basic/basicToken/font.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/basic/basicToken/index.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/basic/basicToken/line.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/basic/basicToken/space.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/basic/chartsToken/AreaChart.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/basic/chartsToken/BarChart.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/basic/chartsToken/BubbleChart.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/basic/chartsToken/FunnelChart.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/basic/chartsToken/GraphTreeChart.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/basic/chartsToken/HillChart.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/basic/chartsToken/JadeJueChart.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/basic/chartsToken/LineChart.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/basic/chartsToken/PieChart.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/basic/chartsToken/PolarBarChart.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/basic/chartsToken/ProcessChart.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/basic/chartsToken/RadarChart.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/basic/chartsToken/SankeyChart.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/basic/chartsToken/TreeChart.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/basic/chartsToken/index.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/basic/index.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/bpit/dark/basicToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/bpit/dark/chartsToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/bpit/dark/index.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/bpit/dark/mapToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/bpit/dark/modelToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/bpit/getMapToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/bpit/getModelToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/bpit/light/basicToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/bpit/light/chartsToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/bpit/light/index.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/bpit/light/mapToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/bpit/light/modelToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/bpitDark.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/bpitLight.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/cloud/dark/basicToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/cloud/dark/chartsToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/cloud/dark/index.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/cloud/dark/mapToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/cloud/dark/modelToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/cloud/getMapToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/cloud/getModelToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/cloud/light/basicToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/cloud/light/chartsToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/cloud/light/index.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/cloud/light/mapToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/cloud/light/modelToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/cloudDark.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/cloudLight.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/color/bpit/dark.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/color/bpit/gray.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/color/bpit/light.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/color/cloud/dark.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/color/cloud/gray.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/color/cloud/light.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/color/ict/dark.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/color/ict/gray.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/color/ict/light.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/constants.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/ict/dark/basicToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/ict/dark/chartsToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/ict/dark/index.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/ict/dark/mapToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/ict/dark/modelToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/ict/getMapToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/ict/getModelToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/ict/light/baiscToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/ict/light/chartsToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/ict/light/index.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/ict/light/mapToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/ict/light/modelToken.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/ictDark.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/ictLight.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/mergeThemeConfig.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/theme/readme.md create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/color/bpit/dark.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/color/bpit/index.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/color/bpit/light.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/color/cloud/board.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/color/cloud/dark.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/color/cloud/index.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/color/cloud/light.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/color/hdesign/board.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/color/hdesign/dark.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/color/hdesign/index.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/color/hdesign/light.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/color/ict/board.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/color/ict/dark.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/color/ict/index.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/color/ict/light.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/color/index.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/color/util.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/constants.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/chartsToken/AreaChart.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/chartsToken/AssembleBubbleChart.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/chartsToken/BarChart.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/chartsToken/BoxplotChart.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/chartsToken/BubbleChart.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/chartsToken/CandlestickChart.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/chartsToken/CircleProcessChart.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/chartsToken/FunnelChart.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/chartsToken/GaugeChart.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/chartsToken/HeatMapChart.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/chartsToken/HillChart.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/chartsToken/JadeJueChart.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/chartsToken/LineChart.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/chartsToken/LiquidfillChart.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/chartsToken/PieChart.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/chartsToken/PolarBarChart.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/chartsToken/ProcessChart.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/chartsToken/RadarChart.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/chartsToken/RegionChart.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/chartsToken/SankeyChart.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/chartsToken/ScatterChart.ts rename packages/vue/src/chart-beta/chart-core/base/feature/{theme/basic => token/factory}/chartsToken/SunburstChart.ts (100%) create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/chartsToken/TreeChart.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/chartsToken/WaveChart.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/chartsToken/WordCloudChart.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/chartsToken/index.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/getAliasToken.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/getGlobalToken.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/getModelToken.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/globalToken/border.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/globalToken/borderRadius.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/globalToken/font.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/globalToken/index.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/globalToken/lineType.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/globalToken/size.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/globalToken/space.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/index.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/factory/mergeToken.ts rename packages/vue/src/chart-beta/chart-core/base/feature/{theme => token}/index.ts (50%) create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/readme.md create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/theme/bpit/getAliasToken.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/theme/bpit/index.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/theme/cloud/getAliasToken.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/theme/cloud/index.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/theme/hdesign/getAliasToken.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/theme/hdesign/index.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/theme/ict/getAliasToken.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/feature/token/theme/ict/index.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/index.less create mode 100644 packages/vue/src/chart-beta/chart-core/base/option/config/legend/pageIcon.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/option/config/rectTitle/titlePadding.ts delete mode 100644 packages/vue/src/chart-beta/chart-core/base/util/baseOption.ts create mode 100644 packages/vue/src/chart-beta/chart-core/base/util/convert.ts create mode 100644 packages/vue/src/grid/src/tools/logger.ts diff --git a/examples/docs/newsrc/mobile-first.vue b/examples/docs/newsrc/mobile-first.vue index 0c0f827d4..025e2a55a 100644 --- a/examples/docs/newsrc/mobile-first.vue +++ b/examples/docs/newsrc/mobile-first.vue @@ -25,6 +25,7 @@
@@ -34,8 +35,7 @@
-
组件API
- +
组件API
@@ -53,8 +53,8 @@ - - + + @@ -102,10 +102,11 @@ import { hooks } from '@opentiny/vue-common' import { Floatbar, TreeMenu, Button, Tooltip, ConfigProvider } from '@opentiny/vue' import { iconStarActive, iconSelect } from '@opentiny/vue-icon' -import { menuData, apis, demoStr, demoVue, mds } from './resourceMobileFirst.js' -import { useModeCtx } from './uses' import designAuroraConfig from '@opentiny/vue-design-aurora' import designSaasConfig from '@opentiny/vue-design-saas' +import { menuData, demos, demoStr, demoVue, mds } from './resourceMobileFirst.js' +import { useModeCtx } from './uses' +import { getDemosConfig, getApisConfig } from './utils/componentsDoc' const isSaasMode = process.env.VITE_TINY_THEME === 'saas' @@ -165,18 +166,12 @@ export default { // 以下私有方法,无须传递给vue模板的。 async function _switchPath() { - // 查找API - const apiModule = apis[`../../sites/demos/mobile-first/app/${modeState.pathName}/webdoc/${modeState.pathName}.js`] - if (apiModule) { - const module = await apiModule() - const apiRoot = module.default - state.currApi = apiRoot.apis - state.demos = apiRoot.demos || [] - state.currDemo = state.demos.find((d) => d.demoId === modeState.demoId) || state.demos?.[0] - } else { - state.currApi = null - state.currDemos = [] - } + const demosModule = + demos[`../../sites/demos/mobile-first/app/${modeState.pathName}/webdoc/${modeState.pathName}.js`] + const demosConfig = await getDemosConfig(demosModule) + state.demos = demosConfig.demos + state.currDemo = state.demos.find((d) => d.demoId === modeState.demoId) || state.demos?.[0] + state.currApi = (await getApisConfig(modeState.pathName, 'mobile-first')).apis await _switchDemo() } async function _switchDemo() { diff --git a/examples/docs/newsrc/mobile.vue b/examples/docs/newsrc/mobile.vue index bc304aa9f..fd01522ff 100644 --- a/examples/docs/newsrc/mobile.vue +++ b/examples/docs/newsrc/mobile.vue @@ -22,7 +22,7 @@
-
+
@@ -31,8 +31,7 @@
-
组件API
- +
组件API
@@ -47,12 +46,11 @@
{{ key }}
-
名称类型名称类型 默认值 说明
- - + + @@ -76,7 +74,7 @@ - +
d.demoId === modeState.demoId) || state.demos?.[0] - } else { - state.currApi = null - state.currDemos = [] - } + const demosModule = demos[`../../sites/demos/mobile/app/${modeState.pathName}/webdoc/${modeState.pathName}.js`] + const demosConfig = await getDemosConfig(demosModule) + state.demos = demosConfig.demos + state.currDemo = state.demos.find((d) => d.demoId === modeState.demoId) || state.demos?.[0] + state.currApi = (await getApisConfig(modeState.pathName, 'mobile')).apis await _switchDemo() } async function _switchDemo() { diff --git a/examples/docs/newsrc/pc.vue b/examples/docs/newsrc/pc.vue index 21077de9d..1f410f450 100644 --- a/examples/docs/newsrc/pc.vue +++ b/examples/docs/newsrc/pc.vue @@ -24,7 +24,7 @@
-
+
@@ -154,21 +154,13 @@ import Loading from '@opentiny/vue-loading' import designSmbConfig from '@opentiny/vue-design-smb' import designAuroraConfig from '@opentiny/vue-design-aurora' import designSaasConfig from '@opentiny/vue-design-saas' -import { menuData, apis, demoStr, demoVue, mds } from './resourcePc.js' +import { menuData, demoStr, demoVue, mds, demos } from './resourcePc.js' import { useTheme, useModeCtx } from './uses' +import { getDemosConfig, getPath, getApisConfig } from './utils/componentsDoc' import SvgTheme from './assets/theme.svg' const isSaasMode = process.env.VITE_TINY_THEME === 'saas' -const getPath = (path) => { - if (path.startsWith('grid-')) { - return 'grid' - } else if (path.startsWith('chart-')) { - return 'chart' - } - return path -} - export default { props: { showFixedMenu: Boolean @@ -235,20 +227,14 @@ export default { // 以下私有方法,无须传递给vue模板的。 async function _switchPath() { state.demoLoading = true - // 查找API - const apiModule = apis[`../../sites/demos/pc/app/${getPath(modeState.pathName)}/webdoc/${modeState.pathName}.js`] - - if (apiModule) { - const module = await apiModule() - const apiRoot = module.default - state.currApi = apiRoot.apis - state.demos = apiRoot.demos || [] - state.currDemo = state.demos.find((d) => d.demoId === modeState.demoId) || state.demos?.[0] - } else { - state.currApi = null - state.currDemos = [] - } + const componentName = getPath(modeState.pathName) + // 查找demos配置 + const demosModule = demos[`../../sites/demos/pc/app/${componentName}/webdoc/${modeState.pathName}.js`] + const demosConfig = await getDemosConfig(demosModule) + state.demos = demosConfig.demos + state.currDemo = state.demos.find((d) => d.demoId === modeState.demoId) || state.demos?.[0] + state.currApi = (await getApisConfig(componentName, 'pc')).apis await _switchDemo() } async function _switchDemo() { diff --git a/examples/docs/newsrc/resourceMobile.js b/examples/docs/newsrc/resourceMobile.js index fd7412225..e60b93572 100644 --- a/examples/docs/newsrc/resourceMobile.js +++ b/examples/docs/newsrc/resourceMobile.js @@ -8,8 +8,8 @@ import { cmpMenus } from '../../sites/demos/mobile/menus.js' export const demoStr = import.meta.glob('../../sites/demos/mobile/app/**/*.vue', { eager: false, as: 'raw' }) export const demoVue = import.meta.glob('../../sites/demos/mobile/app/**/*.vue', { eager: false }) -// api属性 -export const apis = import.meta.glob('../../sites/demos/mobile/app/*/webdoc/*.js', { eager: false }) +// demos配置 +export const demos = import.meta.glob('../../sites/demos/mobile/app/*/webdoc/*.js', { eager: false }) // 组件的md const allMD = import.meta.glob('../../sites/demos/mobile/app/*/webdoc/*.cn.md', { eager: true }) diff --git a/examples/docs/newsrc/resourceMobileFirst.js b/examples/docs/newsrc/resourceMobileFirst.js index 9ee733f43..626930a78 100644 --- a/examples/docs/newsrc/resourceMobileFirst.js +++ b/examples/docs/newsrc/resourceMobileFirst.js @@ -3,8 +3,8 @@ import { cmpMenus } from '../../sites/demos/mobile-first/menus.js' export const demoStr = import.meta.glob('../../sites/demos/mobile-first/app/**/*.vue', { eager: false, as: 'raw' }) export const demoVue = import.meta.glob('../../sites/demos/mobile-first/app/**/*.vue', { eager: false }) -// api属性 -export const apis = import.meta.glob('../../sites/demos/mobile-first/app/*/webdoc/*.js', { eager: false }) +// demos配置 +export const demos = import.meta.glob('../../sites/demos/mobile-first/app/*/webdoc/*.js', { eager: false }) // 组件的md const allMD = import.meta.glob('../../sites/demos/mobile-first/app/*/webdoc/*.cn.md', { eager: true }) diff --git a/examples/docs/newsrc/resourcePc.js b/examples/docs/newsrc/resourcePc.js index af18694c7..83aea46e7 100644 --- a/examples/docs/newsrc/resourcePc.js +++ b/examples/docs/newsrc/resourcePc.js @@ -8,8 +8,8 @@ import { cmpMenus } from '../../sites/demos/pc/menus.js' export const demoStr = import.meta.glob('../../sites/demos/pc/app/**/*.vue', { eager: false, as: 'raw' }) export const demoVue = import.meta.glob('../../sites/demos/pc/app/**/*.vue', { eager: false }) -// api属性 -export const apis = import.meta.glob('../../sites/demos/pc/app/*/webdoc/*.js', { eager: false }) +// demos配置 +export const demos = import.meta.glob('../../sites/demos/pc/app/*/webdoc/*.js', { eager: false }) // 组件的md const allMD = import.meta.glob('../../sites/demos/pc/app/*/webdoc/*.cn.md', { eager: true }) diff --git a/examples/docs/newsrc/utils/componentsDoc.js b/examples/docs/newsrc/utils/componentsDoc.js new file mode 100644 index 000000000..10afff879 --- /dev/null +++ b/examples/docs/newsrc/utils/componentsDoc.js @@ -0,0 +1,40 @@ +export const apis = import.meta.glob('../../../sites/demos/apis/*.js', { eager: false }) + +export const getPath = (path) => { + if (path.startsWith('grid-')) { + return 'grid' + } else if (path.startsWith('chart-')) { + return 'chart' + } + return path +} + +export const getApisConfig = async (component, mode) => { + const apisModule = apis[`../../../sites/demos/apis/${component}.js`] + if (apisModule) { + const apisConfig = (await apisModule()).default + const demoKey = mode === 'mobile-first' ? 'mfDemo' : `${mode}Demo` + const apis = apisConfig.apis.map((item) => { + Object.keys(item).forEach((key) => { + const apiItem = item[key] + if (Array.isArray(apiItem)) { + item[key] = apiItem + .filter((i) => !i.mode || i.mode.includes(mode)) + .map((filterItem) => ({ ...filterItem, demoId: filterItem[demoKey] })) + } + }) + return item + }) + return { ...apisConfig, apis } + } + return {} +} + +export const getDemosConfig = async (module) => { + if (module) { + const demosModule = await module() + const demosConfig = demosModule.default + return demosConfig + } + return { demos: [] } +} diff --git a/examples/sites/demos/apis/dialog-box.js b/examples/sites/demos/apis/dialog-box.js index 9c8a27192..6b39c6c88 100644 --- a/examples/sites/demos/apis/dialog-box.js +++ b/examples/sites/demos/apis/dialog-box.js @@ -200,8 +200,7 @@ export default { defaultValue: '', desc: { 'zh-CN': '弹出框标题', - 'en-US': - 'Height between the pop-up box and the top of the window. The default value is 15% of the screen height' + 'en-US': 'Pop-up Box Title' }, mode: ['pc'], pcDemo: 'custom-dialog-title' @@ -212,7 +211,7 @@ export default { defaultValue: '15vh', desc: { 'zh-CN': '设置弹出框距离窗口顶部的高度', - 'en-US': 'Display and close pop-up boxes' + 'en-US': 'Set the height of the popup from the top of the window' }, mode: ['pc'], pcDemo: 'dialog-top-height' diff --git a/examples/sites/demos/apis/grid.js b/examples/sites/demos/apis/grid.js index 54876eac4..3c5da42c2 100644 --- a/examples/sites/demos/apis/grid.js +++ b/examples/sites/demos/apis/grid.js @@ -565,7 +565,7 @@ export default { type: 'number | string', defaultValue: '', desc: { - 'zh-CN': '设置表格内容区域(不含表格头部,底部)的最小高度。', + 'zh-CN': '设置表格内容区域(不含表格头部,底部)的最小高度', 'en-US': 'Set the minimum height of the table content area (excluding the table header and bottom).' }, mode: ['pc', 'mobile-first'], @@ -1019,6 +1019,7 @@ export default { { name: 'tooltip-config', type: 'IToolTipConfig', + typeAnchorName: 'IToolTipConfig', defaultValue: '', desc: { 'zh-CN': 'Grid 内置 tooltip 配置项,请参考 Tooltip 组件属性说明', @@ -2497,7 +2498,7 @@ export default { type: '', defaultValue: '', desc: { - 'zh-CN': '在表格中新增数据。 ', + 'zh-CN': '在表格中新增数据', 'en-US': '' }, mode: ['mobile-first'], @@ -3330,7 +3331,7 @@ export default { type: "'left' | 'center' | 'right'", defaultValue: "'left'", desc: { - 'zh-CN': '列对其方式', + 'zh-CN': '列对齐方式', 'en-US': 'Column pair mode; The optional values for this property are left, center, right' }, mode: ['pc'], @@ -3416,7 +3417,7 @@ export default { type: 'IFormatConfig', defaultValue: '', desc: { - 'zh-CN': '开启该列数据异步渲染。', + 'zh-CN': '开启该列数据异步渲染', 'en-US': 'Enable the asynchronous rendering of the column data' }, mode: ['pc'], @@ -3824,7 +3825,7 @@ export default { type: 'boolean', defaultValue: '', desc: { - 'zh-CN': '工具栏组件开启表格刷新功能。', + 'zh-CN': '工具栏组件开启表格刷新功能', 'en-US': 'The table refresh function is enabled for the toolbar component.' }, mode: ['pc'], @@ -3898,7 +3899,7 @@ export default { type: '()=> void', defaultValue: '', desc: { - 'zh-CN': '点击个性化面板的重置按钮触发该事件。', + 'zh-CN': '点击个性化面板的重置按钮触发该事件', 'en-US': 'Click the Reset button on the personalized panel to trigger the event.' }, mode: ['pc'], @@ -4030,6 +4031,21 @@ interface IToolbarConfig { code: string name: string }[] +} + ` + }, + { + name: 'IToolTipConfig', + type: 'type', + code: ` +interface IToolTipConfig { + placement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end' + visibleArrow?: boolean + enterable?: boolean + type?: 'normal' | 'warning' | 'error' | 'info' | 'success' + effect?: 'dark' | 'light' + // 自定义提示内容 + contentMethod?: ()=> string | VNode } ` }, @@ -4379,27 +4395,11 @@ interface IToolbarButtonClickArgs { code: ` interface ICellClickArgs { // 当前行 - row: object, + row: IRow, // 当前行的下标 rowIndex: number // 当前列 - column: object - // 当前列的下标 - columnIndex: number -} - ` - }, - { - name: 'ICellClickArgs', - type: 'type', - code: ` -interface ICellClickArgs { - // 当前行 - row: object - // 当前行的下标 - rowIndex: number - // 当前列 - column: object + column: IColumnConfig // 当前列的下标 columnIndex: number } @@ -4411,7 +4411,7 @@ interface ICellClickArgs { code: ` interface ICellContextMenuArgs { // 当前行 - row: object + row: IRow } ` }, @@ -4421,11 +4421,11 @@ interface ICellContextMenuArgs { code: ` interface ICellArgs { //当前行 - row: object + row: IRow //当前行的下标 rowIndex: number // 当前列 - column: object + column: IColumnConfig // 当前列的下标 columnIndex: number } @@ -4437,7 +4437,7 @@ interface ICellArgs { code: ` interface ICurrentChangeArgs { // 当前行 - row: object + row: IRow } ` }, @@ -4447,9 +4447,9 @@ interface ICurrentChangeArgs { code: ` interface IEditActivedArgs { // 当前行 - row: object + row: IRow // 当前列 - column: object + column: IColumnConfig } ` }, @@ -4459,9 +4459,9 @@ interface IEditActivedArgs { code: ` interface IEditClosedArgs { // 当前行 - row: object + row: IRow // 当前列 - column: object + column: IColumnConfig } ` }, @@ -4471,9 +4471,9 @@ interface IEditClosedArgs { code: ` interface IEditDisabledArgs { //当前行 - row: object + row: IRow // 当前列 - column: object + column: IColumnConfig } ` }, @@ -4501,7 +4501,7 @@ interface IFooterCellClickArgs { // 当前单元格节点 cell: HTMLElement // 当前列信息 - column: object + column: IColumnConfig columnIndex: number } ` @@ -4518,7 +4518,7 @@ interface IContextMenuArgs { // 当前单元格节点 cell: HTMLElement // 当前列信息 - column: object + column: IColumnConfig columnIndex: number // 配置清除等功能信息 options: object[] @@ -4539,7 +4539,7 @@ interface IFooterCellDblClickArgs { // 当前单元格节点 cell: HTMLElement // 当前列信息 - column: object + column: IColumnConfig columnIndex: number } ` @@ -4556,7 +4556,7 @@ interface IHeaderCellClickArgs { // 点击表头单元格 cell: HTMLElement // 当前列信息 - column: object + column: IColumnConfig columnIndex: number // 当前点击节点过滤标识 triggerFilter: boolean @@ -4571,7 +4571,7 @@ interface IHeaderCellClickArgs { code: ` interface IHeaderCellDblClickArgs { // 列数据 - column: object + column: IColumnConfig // 列索引 columnIndex: number // table组件 vue实例 @@ -4589,7 +4589,7 @@ interface IResizableChangeArgs { // table组件的vue 实例 $table: Component, // 列配置信息 - column: object + column: IColumnConfig // 拖动列的索引 columnIndex: number // 是否固定列 diff --git a/examples/sites/demos/apis/ip-address.js b/examples/sites/demos/apis/ip-address.js index 228606df5..418fb820b 100644 --- a/examples/sites/demos/apis/ip-address.js +++ b/examples/sites/demos/apis/ip-address.js @@ -10,7 +10,7 @@ export default { type: 'Component', defaultValue: '', desc: { - 'zh-CN': '设置IP段之间的分隔符,默认图标为IconDotIpv4', + 'zh-CN': '设置 ip 段之间的分隔符,默认图标为 IconDotIpv4 ', 'en-US': 'Set the separator between IP segments, default icon is icon-dot-ipv4' }, mode: ['pc'], @@ -54,7 +54,7 @@ export default { type: "'IPv4' | 'IPv6'", defaultValue: "'IPv4'", desc: { - 'zh-CN': '设置 ip 地址输入框的 类型', + 'zh-CN': '设置 ip 地址输入框的类型', 'en-US': 'Sets the type attribute in the IpAddress box' }, mode: ['pc'], diff --git a/examples/sites/demos/apis/numeric.js b/examples/sites/demos/apis/numeric.js index ec8523f27..d50a399e8 100644 --- a/examples/sites/demos/apis/numeric.js +++ b/examples/sites/demos/apis/numeric.js @@ -369,6 +369,19 @@ export default { pcDemo: 'basic-usage', mfDemo: '' }, + { + name: 'change-compat', + type: 'boolean', + defaultValue: 'false', + desc: { + 'zh-CN': '设置除加减按钮及直接输入数值之外,值改变后是否触发change事件', + 'en-US': + 'Set whether to trigger the change event after the value is changed, except for the plus and minus buttons and direct input of values.' + }, + mode: ['pc', 'mobile-first', 'mobile'], + pcDemo: 'change-event', + mfDemo: '' + }, { name: 'validate-event', type: 'Boolean', diff --git a/examples/sites/demos/apis/tree-menu.js b/examples/sites/demos/apis/tree-menu.js index 4ac48aed7..3156c6841 100644 --- a/examples/sites/demos/apis/tree-menu.js +++ b/examples/sites/demos/apis/tree-menu.js @@ -403,7 +403,7 @@ export default { { name: 'check-change', typeAnchorName: 'ITreeNodeVm', - type: '(node:ITreeNodeVm,checked:boolean,indeterminate:boolean) => void', + type: '(node:ITreeNodeVm, checked:boolean, indeterminate:boolean) => void', defaultValue: '', desc: { 'zh-CN': '监听可勾选节点的勾选状态发生变化时的事件', @@ -415,7 +415,7 @@ export default { { name: 'current-change', typeAnchorName: 'ITreeNodeVm', - type: '(nodeData:ITreeNodeData,node:ITreeNodeVm) => void', + type: '(nodeData:ITreeNodeData, node:ITreeNodeVm) => void', defaultValue: '', desc: { 'zh-CN': '监听当前选中节点发生变化时的事件', @@ -427,7 +427,7 @@ export default { { name: 'node-click', typeAnchorName: 'ITreeNodeVm', - type: '(nodeData:ITreeNodeData,node:ITreeNodeVm) => void', + type: '(nodeData:ITreeNodeData, node:ITreeNodeVm) => void', defaultValue: '', desc: { 'zh-CN': '监听节点被点击时的事件', @@ -439,7 +439,7 @@ export default { { name: 'node-collapse', typeAnchorName: 'ITreeNodeVm', - type: '(nodeData:ITreeNodeData,node:ITreeNodeVm) => void', + type: '(nodeData:ITreeNodeData, node:ITreeNodeVm) => void', defaultValue: '', desc: { 'zh-CN': '监听节点被点击收起时的事件;', @@ -475,7 +475,7 @@ export default { { name: 'node-expand', typeAnchorName: 'ITreeNodeVm', - type: '(nodeData:ITreeNodeData,node:ITreeNodeVm) => void', + type: '(nodeData:ITreeNodeData, node:ITreeNodeVm) => void', defaultValue: '', desc: { 'zh-CN': '监听节点被点击展开时的事件;', diff --git a/examples/sites/demos/mobile-first/app/select/filter-method.vue b/examples/sites/demos/mobile-first/app/select/filter-method.vue index c16b1f5ce..edfbf4bed 100644 --- a/examples/sites/demos/mobile-first/app/select/filter-method.vue +++ b/examples/sites/demos/mobile-first/app/select/filter-method.vue @@ -1,22 +1,50 @@ + + diff --git a/examples/sites/demos/mobile/app/loading/base.vue b/examples/sites/demos/mobile/app/loading/base.vue index 52b0f652c..9318e411c 100644 --- a/examples/sites/demos/mobile/app/loading/base.vue +++ b/examples/sites/demos/mobile/app/loading/base.vue @@ -1,14 +1,17 @@ - + + diff --git a/examples/sites/demos/mobile/app/loading/custom-class.vue b/examples/sites/demos/mobile/app/loading/custom-class.vue new file mode 100644 index 000000000..f5ee4a6c8 --- /dev/null +++ b/examples/sites/demos/mobile/app/loading/custom-class.vue @@ -0,0 +1,29 @@ + + + + + diff --git a/examples/sites/demos/mobile/app/loading/global-registry.vue b/examples/sites/demos/mobile/app/loading/global-registry.vue new file mode 100644 index 000000000..d77db605e --- /dev/null +++ b/examples/sites/demos/mobile/app/loading/global-registry.vue @@ -0,0 +1,61 @@ + + + + + diff --git a/examples/sites/demos/mobile/app/loading/size.vue b/examples/sites/demos/mobile/app/loading/size.vue new file mode 100644 index 000000000..9e5f285be --- /dev/null +++ b/examples/sites/demos/mobile/app/loading/size.vue @@ -0,0 +1,59 @@ + + + + + diff --git a/examples/sites/demos/mobile/app/loading/spinner.vue b/examples/sites/demos/mobile/app/loading/spinner.vue new file mode 100644 index 000000000..44f1737af --- /dev/null +++ b/examples/sites/demos/mobile/app/loading/spinner.vue @@ -0,0 +1,26 @@ + + + + + diff --git a/examples/sites/demos/mobile/app/loading/tip-text.vue b/examples/sites/demos/mobile/app/loading/tip-text.vue new file mode 100644 index 000000000..57609b212 --- /dev/null +++ b/examples/sites/demos/mobile/app/loading/tip-text.vue @@ -0,0 +1,23 @@ + + + + + diff --git a/examples/sites/demos/mobile/app/loading/webdoc/loading.js b/examples/sites/demos/mobile/app/loading/webdoc/loading.js index f4487e8b7..185ad7892 100644 --- a/examples/sites/demos/mobile/app/loading/webdoc/loading.js +++ b/examples/sites/demos/mobile/app/loading/webdoc/loading.js @@ -6,25 +6,171 @@ export default { demoId: 'base', name: { 'zh-CN': '基础用法', - 'en-US': 'button type' + 'en-US': 'Basic usage' }, desc: { - 'zh-CN': '

基础用法

', - 'en-US': '

button type

' + 'zh-CN': '

通过 service 方法显示 Loading ,再通过 close 方法关闭。

', + 'en-US': + '

Use the service method to display Loading, then close it using the close method.

' }, codeFiles: ['base.vue'] }, { - demoId: 'type', + demoId: 'spinner', name: { - 'zh-CN': '类型', - 'en-US': 'button type' + 'zh-CN': '自定义加载图标', + 'en-US': 'Custom Icon' }, desc: { - 'zh-CN': '

类型

', - 'en-US': '

button type

' + 'zh-CN': '

通过 spinner 属性自定义加载图标。

', + 'en-US': '

Customize loading icon using the spinner attribute.

' }, - codeFiles: ['type.vue'] + codeFiles: ['spinner.vue'] + }, + { + demoId: 'tip-text', + name: { + 'zh-CN': '自定义加载提示', + 'en-US': 'Custom Tip' + }, + desc: { + 'zh-CN': '

通过 text 自定义加载文字的提示文本。

', + 'en-US': '

Use text to customize loading tip.

' + }, + codeFiles: ['tip-text.vue'] + }, + { + demoId: 'background', + name: { + 'zh-CN': '自定义遮罩背景色', + 'en-US': 'CUstom Mask Background' + }, + desc: { + 'zh-CN': '

通过 background 自定义遮罩层背景颜色。

', + 'en-US': '

Use background property to customize background color of mask.

' + }, + codeFiles: ['background.vue'] + }, + { + demoId: 'custom-class', + name: { + 'zh-CN': '自定义样式', + 'en-US': 'events' + }, + desc: { + 'zh-CN': '

通过 custom-class 指定类名进行样式修改。

', + 'en-US': '

Specify the class name using custom-class to modify the style.

' + }, + codeFiles: ['custom-class.vue'] + }, + { + demoId: 'size', + name: { + 'zh-CN': '尺寸', + 'en-US': 'Size' + }, + desc: { + 'zh-CN': + '

通过在 Loading.service 中设置 size 属性加载不同的大小尺寸,包括 large | medium | small | mini 四种不同大小。不设置时为默认尺寸。

', + 'en-US': + '

By setting the size attribute in the Loading.service, different size dimensions can be loaded, including large, medium, small and mini. If not set, the default size will be used.

' + }, + codeFiles: ['size.vue'] + }, + { + demoId: 'global-registry.', + name: { + 'zh-CN': '全局加载', + 'en-US': 'Global Registry' + }, + desc: { + 'zh-CN': `

通过 v-loading.lock.fullscreen 指令方式或者服务方式进行全局加载,如需使用指令方式全局加载需要如下操作: +

在 Vue 2 版本环境中添加 Vue.use(Loading)

在Vue 3 版本环境中添加 app.use(Loading).

`, + 'en-US': `

Global loading can be achieved through the v-loading.lock.fullscreen directive or service. To use the directive for global loading, follow these steps:

For Vue 2 environment, add Vue.use(Loading);

For Vue 3 environment, add app.use(Loading).

` + }, + codeFiles: ['global-registry.vue'] + } + ], + apis: [ + { + name: 'Loading', // 组件名称展示使用 + type: 'loading', // API 类型 + properties: [ + { + name: 'type', + type: 'string', + defaultValue: 'primary', + desc: { + 'zh-CN': '

通过type设置不同的加载样式

', + 'en-US': 'display different button' + }, + demoId: 'type' + }, + { + name: 'background', + type: 'string', + defaultValue: `'#0000004b'`, + desc: { + 'zh-CN': '遮罩层背景色', + 'en-US': 'mask background color' + }, + demoId: 'background' + }, + { + name: 'custom-class', + type: 'string', + defaultValue: '--', + desc: { + 'zh-CN': '自定义类名', + 'en-US': 'Custom class name' + }, + demoId: 'custom-class' + }, + { + name: 'spinner', + type: 'Component', + defaultValue: '--', + desc: { + 'zh-CN': '自定义加载图标', + 'en-US': 'display different button' + }, + demoId: 'spinner' + }, + { + name: 'target', + type: 'DOM', + defaultValue: 'document.body', + desc: { + 'zh-CN': + '需要覆盖的 DOM 节点。可传入一个 DOM 对象或字符串;若传入字符串,则会将其作为参数传入 document.querySelector 以获取到对应 DOM 节点', + 'en-US': + 'The DOM node to be targeted for coverage. It can be a DOM object or a string; if a string is passed, it will be used as a parameter for document.querySelector to obtain the corresponding DOM node' + }, + demoId: 'base' + } + ], + method: [ + { + name: 'close', + type: '() => void', + defaultValue: '', + desc: { + 'zh-CN': '关闭 Loading', + 'en-US': 'close loading' + }, + demoId: 'base' + }, + { + name: 'service', + type: '() => Component', + defaultValue: '', + desc: { + 'zh-CN': '创建一个 Loading 组件实例并展示', + 'en-US': 'Create a Loading component instance and display it' + }, + demoId: 'base' + } + ] } ] } diff --git a/examples/sites/demos/pc/app/alert/custom-close-composition-api.vue b/examples/sites/demos/pc/app/alert/custom-close-composition-api.vue index 04214de2f..128809531 100644 --- a/examples/sites/demos/pc/app/alert/custom-close-composition-api.vue +++ b/examples/sites/demos/pc/app/alert/custom-close-composition-api.vue @@ -14,7 +14,7 @@ diff --git a/examples/sites/demos/pc/app/alert/custom-close.spec.ts b/examples/sites/demos/pc/app/alert/custom-close.spec.ts index 4a804c880..27b7382ce 100644 --- a/examples/sites/demos/pc/app/alert/custom-close.spec.ts +++ b/examples/sites/demos/pc/app/alert/custom-close.spec.ts @@ -49,7 +49,7 @@ test('关闭按钮事件', async ({ page }) => { // 点击关闭后警告消失,自定义事件modalBox提示出现 await close.click() await expect(alertWarning).not.toBeVisible() - await expect(page.locator('.tiny-modal__box').getByText('关闭了')).toBeVisible() + await expect(page.locator('.tiny-notify__content').getByText('触发关闭事件')).toBeVisible() }) test('不可关闭警告', async ({ page }) => { diff --git a/examples/sites/demos/pc/app/alert/custom-close.vue b/examples/sites/demos/pc/app/alert/custom-close.vue index 05a816317..0151f789a 100644 --- a/examples/sites/demos/pc/app/alert/custom-close.vue +++ b/examples/sites/demos/pc/app/alert/custom-close.vue @@ -13,7 +13,7 @@ diff --git a/examples/sites/demos/pc/app/grid/edit/grid-equals.spec.js b/examples/sites/demos/pc/app/grid/edit/grid-equals.spec.js new file mode 100644 index 000000000..9dd2842f4 --- /dev/null +++ b/examples/sites/demos/pc/app/grid/edit/grid-equals.spec.js @@ -0,0 +1,10 @@ +import { test, expect } from '@playwright/test' + +test('自定义比较方法', async ({ page }) => { + page.on('pageerror', (exception) => expect(exception).toBeNull()) + await page.goto('grid-edit#edit-grid-equals') + await page.getByText('800').click() + await page.getByRole('row', { name: '1 2014-04-30 00:56:00' }).getByRole('textbox').fill('800') + await page.getByRole('cell', { name: '人数' }).locator('div').first().click() + await expect(page.locator('.tiny-grid .col__dirty')).toHaveCount(0) +}) diff --git a/examples/sites/demos/pc/app/grid/edit/grid-equals.vue b/examples/sites/demos/pc/app/grid/edit/grid-equals.vue new file mode 100644 index 000000000..101c183be --- /dev/null +++ b/examples/sites/demos/pc/app/grid/edit/grid-equals.vue @@ -0,0 +1,60 @@ + + + diff --git a/examples/sites/demos/pc/app/grid/edit/has-row-change.spec.js b/examples/sites/demos/pc/app/grid/edit/has-row-change.spec.js index 81fc775a3..7c8484ee2 100644 --- a/examples/sites/demos/pc/app/grid/edit/has-row-change.spec.js +++ b/examples/sites/demos/pc/app/grid/edit/has-row-change.spec.js @@ -7,7 +7,7 @@ test('检查数据是否改变', async ({ page }) => { await page.getByRole('row', { name: '1 保存' }).locator('input[type="text"]').fill('sdf') await page.getByRole('row', { name: '1 保存' }).getByRole('button', { name: '保存' }).click() await expect(page.getByText('保存成功!')).toBeVisible() - await page.getByRole('button', { name: '确认' }).click() + await page.getByRole('button', { name: '确定' }).click() await page .getByRole('row', { name: '2 WWWW科技YX公司 华南区 深圳福田区 公司技术和研发实力雄厚,是国家863项目的参与者,并被政府认定为“高新技术企业”。 保存' @@ -15,5 +15,5 @@ test('检查数据是否改变', async ({ page }) => { .getByRole('button', { name: '保存' }) .click() await expect(page.getByText('当前数据未改变!')).toBeVisible() - await page.getByRole('button', { name: '确认' }).click() + await page.getByRole('button', { name: '确定' }).click() }) diff --git a/examples/sites/demos/pc/app/grid/event/get-row-method.spec.js b/examples/sites/demos/pc/app/grid/event/get-row-method.spec.js index 63eee1f18..4db5d5e52 100644 --- a/examples/sites/demos/pc/app/grid/event/get-row-method.spec.js +++ b/examples/sites/demos/pc/app/grid/event/get-row-method.spec.js @@ -14,23 +14,23 @@ test('获取表格行方法', async ({ page }) => { await expect( page.getByText('当前行数据是:{"id":"1","name":"GFD科技YX公司","area":"华东区","address":"福州","introduction":"') ).toBeVisible() - await page.getByRole('button', { name: '确认' }).click() + await page.getByRole('button', { name: '确定' }).click() await page.getByRole('button', { name: '当前行号' }).click() await expect(page.getByText('当前选中行号是:0')).toBeVisible() - await page.getByRole('button', { name: '确认' }).click() + await page.getByRole('button', { name: '确定' }).click() await page.getByRole('button', { name: 'Radio单选选中行' }).click() await expect( page.getByText('单选选中行数据是:{"id":"1","name":"GFD科技YX公司","area":"华东区","address":"福州","introduction"') ).toBeVisible() - await page.getByRole('button', { name: '确认' }).click() + await page.getByRole('button', { name: '确定' }).click() await page.getByRole('button', { name: 'rowId获取当前行' }).click() await expect( page.getByText('根据 rowId 获取的当前行:{"id":"1","name":"GFD科技YX公司","area":"华东区","address":"福州","introd') ).toBeVisible() - await page.getByRole('button', { name: '确认' }).click() + await page.getByRole('button', { name: '确定' }).click() await page.getByRole('button', { name: 'tr元素获取行信息' }).click() await expect( diff --git a/examples/sites/demos/pc/app/grid/fixed/left-fixed.vue b/examples/sites/demos/pc/app/grid/fixed/left-fixed.vue index 251ee7aa8..d1654cfe2 100644 --- a/examples/sites/demos/pc/app/grid/fixed/left-fixed.vue +++ b/examples/sites/demos/pc/app/grid/fixed/left-fixed.vue @@ -1,5 +1,5 @@
名称类型名称类型 默认值 说明