diff --git a/.vscode/settings.json b/.vscode/settings.json index 9d569a482..121757779 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -22,5 +22,12 @@ "editor.formatOnSave": true, "editor.defaultFormatter": "dbaeumer.vscode-eslint" }, - "cSpell.words": ["tdesign", "popconfirm", "swiper", "cascader"] + "cSpell.words": [ + "cascader", + "popconfirm", + "swiper", + "tdesign", + "vnode", + "qrcode" + ] } diff --git a/CHANGELOG.md b/CHANGELOG.md index 82778d431..4b9ec79b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,30 @@ toc: false docClass: timeline --- +## 🌈 1.13.0 `2025-08-07` +### 🚀 Features +- `QRCode`: 新增 `QRCode` 二维码组件 @Wesley-0808 ([#3652](https://github.com/Tencent/tdesign-vue/pull/3652)) +- `Alert`: 新增 `closeBtn` API,与其他组件保持一致,`close` 将在未来版本废弃,请尽快调整为 `closeBtn` 使用 @ngyyuusora ([#3631](https://github.com/Tencent/tdesign-vue/pull/3631)) +- `Tree`: 多选场景下每个节点新增 hover 提示,与单选场景保持一致 @RSS1102 ([#3633](https://github.com/Tencent/tdesign-vue/pull/3633)) +- `Upload`: 扩大单文件/图片风格的点击事件触发热区至整个卡片区域 @RSS1102 ([#3614](https://github.com/Tencent/tdesign-vue/pull/3614)) +### 🐞 Bug Fixes +- `Cascader`: 修复 `value-type="full"` ,value 为 undefined时组件内部报错 @liweijie0812 ([#3622](https://github.com/Tencent/tdesign-vue/pull/3622)) +- `ColorPicker`: 减少颜色跨色彩空间的多次转换,降低误差 @RylanBot ([#3661](https://github.com/Tencent/tdesign-vue/pull/3661)) +- `DatePicker`: + - 修复多选情况下周和季度模式的标签删除异常和可以重复选择的问题 @betavs ([#3653](https://github.com/Tencent/tdesign-vue/pull/3653)) + - 修复多选情况下周模式可以重复选择的问题 @betavs ([#3658](https://github.com/Tencent/tdesign-vue/pull/3658)) +- `Descriptions`: 修复无边框模式下左右内边距的异常问题 @liweijie0812 ([common#2219](https://github.com/Tencent/tdesign-common/pull/2219)) +- `Image`: 修复 `1.12.1` 版本后控制台报错的问题 @betavs ([#3670](https://github.com/Tencent/tdesign-vue/pull/3670)) +- `ImageViewer`: 修复在多图预览中点击对应图片与预览图片不一致的问题 @betavs ([#3670](https://github.com/Tencent/tdesign-vue/pull/3670)) +- `Loading`: 修复在 iPad 微信上图标位置错误的问题 @Nero978([#3650](https://github.com/Tencent/tdesign-vue/pull/3650)) +- `Menu`: 修复多级菜单在子组件存在多层封装后无法正常高亮的问题 @uyarn ([#3675](https://github.com/Tencent/tdesign-vue/pull/3675)) +- `Popconfirm`: 当初始 `visible` 为 true 时,点击外部时弹出窗口不关闭的问题 @RSS1102 ([#3659](https://github.com/Tencent/tdesign-vue/pull/3659)) +- `Popup`: 当初始 `visible` 为 true 时,点击外部时弹出窗口不关闭的问题 @RSS1102 ([#3659](https://github.com/Tencent/tdesign-vue/pull/3659)) +- `Select`: 修复虚拟滚动搜索后出现空白区域的问题 @betavs ([#3669](https://github.com/Tencent/tdesign-vue/pull/3669)) +- `Statistic`: 修改 color 属性类型为字符串,以支持任何 [CSS color](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value) 支持的颜色值 @RSS1102 ([#3671](https://github.com/Tencent/tdesign-vue/pull/3671)) +- `Table`: 修复 `resizable` 开启时,列边框线引起的列名内容移动的问题 @QuentinHsu ([common#2224](https://github.com/Tencent/tdesign-common/pull/2224)) + + ## 🌈 1.12.1 `2025-07-03` ### 🚀 Features - `locale`: 支持内置多语言的英文版本的单复数场景正常展示 @YunYouJun ([#3641](https://github.com/Tencent/tdesign-vue/pull/3641)) diff --git a/global.d.ts b/global.d.ts index b6979d7fe..8c5521d9e 100644 --- a/global.d.ts +++ b/global.d.ts @@ -83,6 +83,7 @@ declare module '@vue/runtime-dom' { TPopup: typeof import('tdesign-vue')['Popup']; TPrimaryTable: typeof import('tdesign-vue')['PrimaryTable']; TProgress: typeof import('tdesign-vue')['Progress']; + TQrcode: typeof import('tdesign-vue')['QRCode']; TRadio: typeof import('tdesign-vue')['Radio']; TRadioButton: typeof import('tdesign-vue')['RadioButton']; TRadioGroup: typeof import('tdesign-vue')['RadioGroup']; diff --git a/package.json b/package.json index a56089ee0..aff2d334c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "tdesign-vue", "purename": "tdesign", - "version": "1.12.1-naruto", + "version": "1.13.0-naruto", "description": "tdesign-vue", "title": "tdesign-vue", "keywords": [ @@ -96,7 +96,7 @@ "mitt": "^3.0.0", "raf": "^3.4.1", "sortablejs": "^1.15.0", - "tdesign-icons-vue": "^0.3.5", + "tdesign-icons-vue": "^0.3.6", "tinycolor2": "^1.4.2", "validator": "^13.5.1" }, @@ -179,7 +179,7 @@ "rollup-plugin-styles": "^4.0.0", "rollup-plugin-terser": "~7.0.2", "rollup-plugin-vue": "^5.1.9", - "tdesign-icons-view": "^0.3.6", + "tdesign-icons-view": "^0.3.7", "tdesign-publish-cli": "^0.0.12", "tdesign-site-components": "^0.13.0", "tdesign-theme-generator": "^1.0.5", diff --git a/site/docs/getting-started.en-US.md b/site/docs/getting-started.en-US.md index dc98dd2e2..af6da3c7c 100644 --- a/site/docs/getting-started.en-US.md +++ b/site/docs/getting-started.en-US.md @@ -81,7 +81,7 @@ import 'tdesign-vue/es/style/index.css'; Vue.use(VueCompositionAPI); // must be the first one ``` -install `unplugin-vue-components` and `unplugin-auto-import` +install `@tdesign-vue-next/auto-import-resolver`,`unplugin-vue-components` and `unplugin-auto-import` ```bash npm install -D unplugin-vue-components unplugin-auto-import @@ -94,7 +94,7 @@ Then, add the above plugins to the corresponding configuration files of Webpack ```js import AutoImport from 'unplugin-auto-import/vite'; import Components from 'unplugin-vue-components/vite'; -import { TDesignResolver } from 'unplugin-vue-components/resolvers'; +import { TDesignResolver } from '@tdesign-vue-next/auto-import-resolver'; export default { plugins: [ @@ -114,7 +114,7 @@ export default { ```js const AutoImport = require('unplugin-auto-import/webpack'); const Components = require('unplugin-vue-components/webpack'); -const { TDesignResolver } = require('unplugin-vue-components/resolvers'); +const { TDesignResolver } = require('@tdesign-vue-next/auto-import-resolver'); module.exports = { // ... @@ -129,7 +129,7 @@ module.exports = { }; ``` -> You can click on this [link](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/tdesign.ts#L4) for the configuration supported by `TDesignResolver`. +> You can click on this [link](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/auto-import-resolver/README.md#%E9%80%89%E9%A1%B9) for the configuration supported by `TDesignResolver`. ## Starter Kit diff --git a/site/docs/getting-started.md b/site/docs/getting-started.md index c7f4d622e..2d399cea1 100644 --- a/site/docs/getting-started.md +++ b/site/docs/getting-started.md @@ -91,10 +91,10 @@ import 'tdesign-vue/es/style/index.css'; Vue.use(VueCompositionAPI); // 必须是项目的第一个 use ``` -并安装两个 unplugin 相关的第三方包 +并安装 `@tdesign-vue-next/auto-import-resolver` 和两个 unplugin 相关的第三方包 ```bash -npm install -D unplugin-vue-components unplugin-auto-import +npm install -D @tdesign-vue-next/auto-import-resolver unplugin-vue-components unplugin-auto-import ``` 然后在 Webpack 或 Vite 对应的配置文件添加上述插件。 @@ -104,7 +104,7 @@ npm install -D unplugin-vue-components unplugin-auto-import ```js import AutoImport from 'unplugin-auto-import/vite'; import Components from 'unplugin-vue-components/vite'; -import { TDesignResolver } from 'unplugin-vue-components/resolvers'; +import { TDesignResolver } from '@tdesign-vue-next/auto-import-resolver'; export default { plugins: [ @@ -124,7 +124,7 @@ export default { ```js const AutoImport = require('unplugin-auto-import/webpack'); const Components = require('unplugin-vue-components/webpack'); -const { TDesignResolver } = require('unplugin-vue-components/resolvers'); +const { TDesignResolver } = require('@tdesign-vue-next/auto-import-resolver'); module.exports = { // ... @@ -139,7 +139,7 @@ module.exports = { }; ``` -> `TDesignResolver` 支持的配置,可以点击此[链接](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/tdesign.ts#L4)。 +> `TDesignResolver` 支持的配置,可以点击此[链接](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/auto-import-resolver/README.md#%E9%80%89%E9%A1%B9)。 ## 快速体验 diff --git a/site/plugins/plugin-tdoc/md-to-vue.js b/site/plugins/plugin-tdoc/md-to-vue.js index bfa4cf94c..923bc1cc9 100644 --- a/site/plugins/plugin-tdoc/md-to-vue.js +++ b/site/plugins/plugin-tdoc/md-to-vue.js @@ -179,7 +179,7 @@ async function customRender({ source, file, md }) { // const usageObj = compileUsage({ // componentName, // usage: pageData.usage, - // demoPath: path.posix.resolve(__dirname, `../../src/${componentName}/_usage/index.vue`), + // demoPath: path.posix.resolve(__dirname, `../../../src/${componentName}/_usage/index.vue`), // }); // if (usageObj) { // mdSegment.usage = usageObj; @@ -205,7 +205,7 @@ async function customRender({ source, file, md }) { // 设计指南内容 不展示 design Tab 则不解析 if (pageData.isComponent && pageData.tdDocTabs.some((item) => item.tab === 'design')) { - const designDocPath = path.resolve(__dirname, `../../src/_common/docs/web/design/${componentName}.md`); + const designDocPath = path.resolve(__dirname, `../../../src/_common/docs/web/design/${componentName}.md`); if (fs.existsSync(designDocPath)) { const designDocLastUpdated = diff --git a/site/site.config.mjs b/site/site.config.mjs index 19cbf778c..b7a6d568e 100644 --- a/site/site.config.mjs +++ b/site/site.config.mjs @@ -512,6 +512,23 @@ const docs = [ component: () => import('tdesign-vue/progress/progress.md'), componentEn: () => import('tdesign-vue/progress/progress.en-US.md'), }, + { + title: 'QRCode 二维码', + titleEn: 'QRCode', + name: 'qrcode', + path: '/vue/components/qrcode', + component: () => import('tdesign-vue/qrcode/qrcode.md'), + componentEn: () => import('tdesign-vue/qrcode/qrcode.en-US.md'), + }, + { + title: 'Rate 评分', + titleEn: 'Rate', + name: 'rate', + docType: 'data', + path: '/vue/components/rate', + component: () => import('tdesign-vue/rate/rate.md'), + componentEn: () => import('tdesign-vue/rate/rate.en-US.md'), + }, { title: 'Skeleton 骨架屏', titleEn: 'Skeleton', @@ -584,15 +601,6 @@ const docs = [ component: () => import('tdesign-vue/watermark/watermark.md'), componentEn: () => import('tdesign-vue/watermark/watermark.en-US.md'), }, - { - title: 'Rate 评分', - titleEn: 'Rate', - name: 'rate', - docType: 'data', - path: '/vue/components/rate', - component: () => import('tdesign-vue/rate/rate.md'), - componentEn: () => import('tdesign-vue/rate/rate.en-US.md'), - }, ], }, { diff --git a/site/src/routes.js b/site/src/routes.js index d98eca5c3..d63646137 100644 --- a/site/src/routes.js +++ b/site/src/routes.js @@ -33,7 +33,7 @@ const routes = [ redirect: '/vue/overview', }, { - name: 'demos', + name: 'demosComponent', path: '/vue/demos/:componentName/', component: () => import('./components/demo-page.vue'), }, diff --git a/site/test-coverage.js b/site/test-coverage.js index 5ed2113f1..129321ae0 100644 --- a/site/test-coverage.js +++ b/site/test-coverage.js @@ -1,185 +1,414 @@ module.exports = { - '': '97.95%', - 'common/js': '87.23%', - 'common/js/colorPicker': '60.93%', - 'common/js/datePicker': '62.36%', - 'common/js/globalConfig': '100%', - 'common/js/globalConfig/locale': '100%', - 'common/js/inputNumber': '34.52%', - 'common/js/loading': '65.85%', - 'common/js/log': '72.72%', - 'common/js/slider': '24.07%', - 'common/js/statistic': '93.9%', - 'common/js/table': '19.27%', - 'common/js/tabs': '71.79%', - 'common/js/timePicker': '64.21%', - 'common/js/tree': '93.82%', - 'common/js/upload': '81.51%', - 'common/js/utils': '53.72%', - 'common/js/watermark': '100%', - affix: '87.44%', - 'affix/style': '100%', - alert: '97.94%', - 'alert/style': '100%', - anchor: '94.04%', - 'anchor/style': '100%', - autoComplete: '97.62%', - 'autoComplete/style': '100%', - avatar: '95.88%', - 'avatar/style': '100%', - backTop: '87.76%', - 'backTop/style': '100%', - badge: '98.05%', - 'badge/style': '100%', - breadcrumb: '96.7%', - 'breadcrumb/style': '100%', - button: '100%', - 'button/style': '100%', - calendar: '86.17%', - 'calendar/style': '100%', - card: '96.07%', - 'card/style': '100%', - cascader: '91.18%', - 'cascader/components': '79.07%', - 'cascader/core': '65.84%', - 'cascader/style': '100%', - checkbox: '93.93%', - 'checkbox/hooks': '44.44%', - 'checkbox/style': '100%', + '': '83.33%', + common: '0%', + 'common/docs/compile': '0%', + 'common/docs/mobile/Design': '0%', + 'common/docs/plugins/changelogToJson': '0%', + 'common/docs/web/Design': '0%', + 'common/js': '100%', + 'common/js/avatar': '0%', + 'common/js/colorPicker': '62.05%', + 'common/js/datePicker': '70.01%', + 'common/js/drawer': '4.87%', + 'common/js/globalConfig': '85.29%', + 'common/js/globalConfig/locale': '12.48%', + 'common/js/globalConfig/mobile': '0%', + 'common/js/globalConfig/mobile/locale': '0%', + 'common/js/inputNumber': '34.16%', + 'common/js/loading': '77.41%', + 'common/js/log': '74.07%', + 'common/js/progress': '0%', + 'common/js/qrcode': '86.65%', + 'common/js/slider': '9.75%', + 'common/js/statistic': '14.91%', + 'common/js/table': '7.92%', + 'common/js/tabs': '60%', + 'common/js/timePicker': '75.34%', + 'common/js/tree': '89.67%', + 'common/js/treeSelect': '0%', + 'common/js/treeV1': '0%', + 'common/js/upload': '81.49%', + 'common/js/utils': '22.06%', + 'common/js/watermark': '0%', + 'common/style/mobile': '0%', + 'common/test/unit/tree': '0%', + affix: '85.6%', + 'affix/ExampleComposition': '0%', + 'affix/style': '50%', + alert: '91.62%', + 'alert/Example': '0%', + 'alert/ExampleComposition': '0%', + 'alert/Usage': '0%', + 'alert/style': '50%', + anchor: '91.82%', + 'anchor/Example': '0%', + 'anchor/ExampleComposition': '0%', + 'anchor/Usage': '0%', + 'anchor/style': '50%', + autoComplete: '98.5%', + 'autoComplete/Example': '0%', + 'autoComplete/ExampleComposition': '0%', + 'autoComplete/Usage': '0%', + 'autoComplete/style': '66.66%', + avatar: '94.53%', + 'avatar/Example': '0%', + 'avatar/ExampleComposition': '0%', + 'avatar/Usage': '0%', + 'avatar/style': '50%', + backTop: '81.54%', + 'backTop/Example': '0%', + 'backTop/ExampleComposition': '0%', + 'backTop/style': '50%', + badge: '94.64%', + 'badge/Example': '0%', + 'badge/ExampleComposition': '0%', + 'badge/Usage': '0%', + 'badge/style': '50%', + breadcrumb: '95.54%', + 'breadcrumb/Example': '0%', + 'breadcrumb/ExampleComposition': '0%', + 'breadcrumb/style': '50%', + button: '97.38%', + 'button/Example': '0%', + 'button/ExampleComposition': '0%', + 'button/Usage': '0%', + 'button/style': '50%', + calendar: '92.51%', + 'calendar/Example': '0%', + 'calendar/ExampleComposition': '0%', + 'calendar/Usage': '0%', + 'calendar/style': '50%', + card: '99.5%', + 'card/Example': '0%', + 'card/ExampleComposition': '0%', + 'card/style': '50%', + cascader: '85.64%', + 'cascader/Example': '0%', + 'cascader/ExampleComposition': '0%', + 'cascader/Usage': '0%', + 'cascader/components': '77.77%', + 'cascader/components/style': '0%', + 'cascader/core': '66.24%', + 'cascader/style': '50%', + checkbox: '92.84%', + 'checkbox/Example': '0%', + 'checkbox/ExampleComposition': '0%', + 'checkbox/Usage': '0%', + 'checkbox/hooks': '50%', + 'checkbox/style': '50%', collapse: '100%', - 'collapse/style': '100%', - colorPicker: '94.54%', - 'colorPicker/panel': '63.42%', - 'colorPicker/panel/format': '87.25%', - 'colorPicker/style': '100%', - 'colorPicker/utils': '100%', - comment: '83.14%', - 'comment/style': '100%', + 'collapse/Example': '0%', + 'collapse/ExampleComposition': '0%', + 'collapse/Usage': '0%', + 'collapse/style': '50%', + colorPicker: '94.28%', + 'colorPicker/ExampleComposition': '0%', + 'colorPicker/Usage': '0%', + 'colorPicker/panel': '60.86%', + 'colorPicker/panel/format': '60.26%', + 'colorPicker/panel/format/style': '0%', + 'colorPicker/panel/style': '0%', + 'colorPicker/style': '50%', + 'colorPicker/utils': '1.63%', + comment: '86.17%', + 'comment/Example': '0%', + 'comment/ExampleComposition': '0%', + 'comment/style': '50%', commonComponents: '100%', - configProvider: '95.5%', - datePicker: '49.66%', - 'datePicker/base': '77.09%', - 'datePicker/hooks': '86.17%', - 'datePicker/panel': '81.78%', - 'datePicker/style': '100%', - descriptions: '74.5%', + configProvider: '49.89%', + 'configProvider/Example': '0%', + 'configProvider/ExampleComposition': '0%', + datePicker: '30.4%', + 'datePicker/Example': '0%', + 'datePicker/ExampleComposition': '0%', + 'datePicker/Usage': '0%', + 'datePicker/base': '77.91%', + 'datePicker/base/style': '0%', + 'datePicker/hooks': '44.22%', + 'datePicker/panel': '64%', + 'datePicker/panel/style': '0%', + 'datePicker/style': '50%', + descriptions: '37.06%', + 'descriptions/Example': '0%', + 'descriptions/ExampleComposition': '0%', + 'descriptions/Usage': '0%', 'descriptions/const': '100%', - 'descriptions/style': '100%', - 'descriptions/utils': '54.38%', - dialog: '81.8%', - 'dialog/style': '100%', - divider: '98.46%', - 'divider/style': '100%', - drawer: '83.92%', - 'drawer/style': '100%', - dropdown: '86.53%', - 'dropdown/hooks': '78.94%', - 'dropdown/style': '100%', - empty: '96.41%', - 'empty/assets': '100%', - 'empty/style': '100%', - form: '87.04%', - 'form/style': '100%', - grid: '82.25%', - 'grid/style': '100%', - guide: '97.46%', - 'guide/style': '100%', - 'guide/utils': '80.18%', - hooks: '55.24%', - icon: '100%', - image: '94.43%', - imageViewer: '83.62%', - 'imageViewer/base': '92.65%', - 'imageViewer/style': '100%', - 'image/style': '100%', - input: '97.37%', - inputAdornment: '91.91%', - 'inputAdornment/style': '100%', - inputNumber: '92.53%', - 'inputNumber/style': '100%', - 'input/style': '100%', - layout: '95.9%', - 'layout/style': '100%', + 'descriptions/style': '50%', + 'descriptions/utils': '57.77%', + dialog: '76.68%', + 'dialog/Example': '0%', + 'dialog/ExampleComposition': '0%', + 'dialog/ExampleComposition/custom': '0%', + 'dialog/Example/custom': '0%', + 'dialog/Usage': '0%', + 'dialog/style': '50%', + divider: '91.93%', + 'divider/Example': '0%', + 'divider/ExampleComposition': '0%', + 'divider/Usage': '0%', + 'divider/style': '50%', + drawer: '74.17%', + 'drawer/Example': '0%', + 'drawer/ExampleComposition': '0%', + 'drawer/Usage': '0%', + 'drawer/style': '50%', + dropdown: '84.65%', + 'dropdown/Example': '0%', + 'dropdown/ExampleComposition': '0%', + 'dropdown/Usage': '0%', + 'dropdown/hooks': '82.45%', + 'dropdown/style': '50%', + empty: '96.5%', + 'empty/Example': '0%', + 'empty/ExampleComposition': '0%', + 'empty/assets': '64.78%', + 'empty/style': '50%', + form: '83.07%', + 'form/Example': '0%', + 'form/ExampleComposition': '0%', + 'form/Usage': '0%', + 'form/style': '50%', + grid: '75%', + 'grid/Example': '0%', + 'grid/ExampleComposition': '0%', + 'grid/style': '50%', + guide: '96.25%', + 'guide/Example': '0%', + 'guide/ExampleComposition': '0%', + 'guide/style': '50%', + 'guide/utils': '67.94%', + hooks: '51.93%', + icon: '6.38%', + 'icon/ExampleComposition': '0%', + image: '93.75%', + imageViewer: '77.38%', + 'imageViewer/Example': '0%', + 'imageViewer/ExampleComposition': '0%', + 'imageViewer/base': '94.84%', + 'imageViewer/base/style': '0%', + 'imageViewer/style': '50%', + 'image/Example': '0%', + 'image/ExampleComposition': '0%', + 'image/Usage': '0%', + 'image/style': '50%', + input: '96.33%', + inputAdornment: '84.9%', + 'inputAdornment/Example': '0%', + 'inputAdornment/ExampleComposition': '0%', + 'inputAdornment/style': '50%', + inputNumber: '88.53%', + 'inputNumber/Example': '0%', + 'inputNumber/ExampleComposition': '0%', + 'inputNumber/Usage': '0%', + 'inputNumber/style': '50%', + 'input/Example': '0%', + 'input/ExampleComposition': '0%', + 'input/Usage': '0%', + 'input/style': '50%', + layout: '91.19%', + 'layout/Example': '0%', + 'layout/ExampleComposition': '0%', + 'layout/style': '50%', link: '100%', - 'link/style': '100%', - list: '97.42%', - 'list/hooks': '81.17%', - 'list/style': '100%', - loading: '78.54%', - 'loading/icon': '95.12%', - 'loading/style': '100%', - menu: '75.52%', - 'menu/style': '100%', - message: '87.29%', - 'message/style': '100%', - notification: '96.04%', - 'notification/style': '100%', - pagination: '99.01%', - 'pagination/style': '100%', - popconfirm: '95.34%', - 'popconfirm/style': '100%', - popup: '73.99%', - 'popup/style': '100%', - progress: '94.2%', - 'progress/style': '100%', - radio: '94.67%', - 'radio/style': '100%', - rangeInput: '88.29%', - 'rangeInput/style': '100%', - rate: '87.41%', - 'rate/style': '100%', - select: '73.53%', - selectInput: '98.23%', - 'selectInput/style': '100%', - 'select/hooks': '79.33%', - 'select/style': '100%', - skeleton: '93.75%', - 'skeleton/style': '100%', - slider: '69.74%', - 'slider/style': '100%', - space: '97.07%', - 'space/style': '100%', - statistic: '87.17%', - 'statistic/style': '100%', - steps: '96.92%', - 'steps/style': '100%', - stickyTool: '65.78%', - 'stickyTool/style': '100%', - swiper: '76.67%', - 'swiper/style': '100%', - switch: '69.32%', - 'switch/style': '100%', - table: '79.48%', - 'table/hooks': '49.97%', - 'table/style': '100%', - tabs: '92.85%', - 'tabs/style': '100%', - tag: '85.9%', - tagInput: '96.06%', - 'tagInput/hooks': '55.91%', - 'tagInput/style': '100%', - 'tag/style': '100%', - textarea: '86.18%', - 'textarea/style': '100%', - timePicker: '82.35%', - 'timePicker/panel': '72.46%', - 'timePicker/style': '100%', - timeline: '98.83%', - 'timeline/style': '100%', - tooltip: '89.25%', - 'tooltip/style': '100%', - transfer: '95.11%', - 'transfer/components': '75.32%', - 'transfer/style': '100%', - tree: '96.59%', - treeSelect: '96.91%', - 'treeSelect/style': '100%', - 'tree/hooks': '77.79%', - 'tree/style': '100%', - upload: '100%', - 'upload/hooks': '96.1%', - 'upload/style': '100%', - 'upload/themes': '92.9%', - utils: '69.44%', - watermark: '49.01%', + 'link/Example': '0%', + 'link/ExampleComposition': '0%', + 'link/Usage': '0%', + 'link/style': '50%', + list: '97.04%', + 'list/Example': '0%', + 'list/ExampleComposition': '0%', + 'list/Usage': '0%', + 'list/hooks': '78.94%', + 'list/style': '50%', + loading: '72.02%', + 'loading/Example': '0%', + 'loading/ExampleComposition': '0%', + 'loading/Usage': '0%', + 'loading/icon': '97.05%', + 'loading/style': '50%', + locale: '0%', + menu: '70.52%', + 'menu/Example': '0%', + 'menu/ExampleComposition': '0%', + 'menu/Usage': '0%', + 'menu/style': '50%', + message: '81.81%', + 'message/Example': '0%', + 'message/ExampleComposition': '0%', + 'message/Usage': '0%', + 'message/style': '50%', + notification: '93.28%', + 'notification/Example': '0%', + 'notification/ExampleComposition': '0%', + 'notification/Usage': '0%', + 'notification/style': '50%', + pagination: '98.07%', + 'pagination/Example': '0%', + 'pagination/ExampleComposition': '0%', + 'pagination/Usage': '0%', + 'pagination/style': '50%', + popconfirm: '94.57%', + 'popconfirm/Example': '0%', + 'popconfirm/ExampleComposition': '0%', + 'popconfirm/Usage': '0%', + 'popconfirm/style': '50%', + popup: '69.97%', + 'popup/Example': '0%', + 'popup/ExampleComposition': '0%', + 'popup/Usage': '0%', + 'popup/style': '50%', + progress: '92.17%', + 'progress/Example': '0%', + 'progress/ExampleComposition': '0%', + 'progress/Usage': '0%', + 'progress/style': '50%', + qrcode: '98.63%', + 'qrcode/Example': '0%', + 'qrcode/ExampleComposition': '0%', + 'qrcode/Usage': '0%', + 'qrcode/components': '85.05%', + 'qrcode/components/style': '0%', + 'qrcode/hooks': '100%', + 'qrcode/style': '50%', + radio: '93.37%', + 'radio/Example': '0%', + 'radio/ExampleComposition': '0%', + 'radio/Usage': '0%', + 'radio/style': '50%', + rangeInput: '77.6%', + 'rangeInput/Example': '0%', + 'rangeInput/ExampleComposition': '0%', + 'rangeInput/Usage': '0%', + 'rangeInput/style': '50%', + rate: '86.66%', + 'rate/ExampleComposition': '0%', + 'rate/Usage': '0%', + 'rate/style': '50%', + select: '65.82%', + selectInput: '97.6%', + 'selectInput/Example': '0%', + 'selectInput/ExampleComposition': '0%', + 'selectInput/Usage': '0%', + 'selectInput/style': '50%', + 'select/Example': '0%', + 'select/ExampleComposition': '0%', + 'select/Usage': '0%', + 'select/hooks': '91.96%', + 'select/hooks/style': '0%', + 'select/style': '50%', + skeleton: '90.85%', + 'skeleton/Example': '0%', + 'skeleton/ExampleComposition': '0%', + 'skeleton/Usage': '0%', + 'skeleton/style': '50%', + slider: '68.36%', + 'slider/Example': '0%', + 'slider/ExampleComposition': '0%', + 'slider/Usage': '0%', + 'slider/style': '50%', + space: '94.28%', + 'space/Example': '0%', + 'space/ExampleComposition': '0%', + 'space/Usage': '0%', + 'space/style': '50%', + statistic: '79.16%', + 'statistic/Example': '0%', + 'statistic/ExampleComposition': '0%', + 'statistic/style': '50%', + steps: '95.27%', + 'steps/Example': '0%', + 'steps/ExampleComposition': '0%', + 'steps/Usage': '0%', + 'steps/style': '50%', + stickyTool: '51.46%', + 'stickyTool/Example': '0%', + 'stickyTool/ExampleComposition': '0%', + 'stickyTool/style': '50%', + style: '0%', + swiper: '70.79%', + 'swiper/Example': '0%', + 'swiper/ExampleComposition': '0%', + 'swiper/Usage': '0%', + 'swiper/style': '50%', + switch: '44.25%', + 'switch/Example': '0%', + 'switch/ExampleComposition': '0%', + 'switch/Usage': '0%', + 'switch/style': '50%', + table: '68.08%', + 'table/Example': '0%', + 'table/ExampleComposition': '0%', + 'table/Usage': '0%', + 'table/hooks': '48.05%', + 'table/hooks/style': '0%', + 'table/style': '50%', + tabs: '92.66%', + 'tabs/Example': '0%', + 'tabs/ExampleComposition': '0%', + 'tabs/Usage': '0%', + 'tabs/style': '50%', + tag: '81.67%', + tagInput: '96.39%', + 'tagInput/Example': '0%', + 'tagInput/ExampleComposition': '0%', + 'tagInput/Usage': '0%', + 'tagInput/hooks': '46.27%', + 'tagInput/style': '50%', + 'tag/Example': '0%', + 'tag/ExampleComposition': '0%', + 'tag/Usage': '0%', + 'tag/style': '50%', + textarea: '72.49%', + 'textarea/Example': '0%', + 'textarea/ExampleComposition': '0%', + 'textarea/Usage': '0%', + 'textarea/style': '50%', + timePicker: '59.42%', + 'timePicker/Example': '0%', + 'timePicker/ExampleComposition': '0%', + 'timePicker/Usage': '0%', + 'timePicker/panel': '74.94%', + 'timePicker/panel/style': '0%', + 'timePicker/style': '50%', + timeline: '99.64%', + 'timeline/Example': '0%', + 'timeline/ExampleComposition': '0%', + 'timeline/Usage': '0%', + 'timeline/style': '50%', + 'timeline/usage': '0%', + tooltip: '87.68%', + 'tooltip/Example': '0%', + 'tooltip/ExampleComposition': '0%', + 'tooltip/Usage': '0%', + 'tooltip/style': '50%', + transfer: '89.97%', + 'transfer/Example': '0%', + 'transfer/ExampleComposition': '0%', + 'transfer/Usage': '0%', + 'transfer/components': '77.35%', + 'transfer/components/style': '0%', + 'transfer/style': '50%', + tree: '93.85%', + treeSelect: '97.08%', + 'treeSelect/Example': '0%', + 'treeSelect/ExampleComposition': '0%', + 'treeSelect/Usage': '0%', + 'treeSelect/style': '50%', + 'tree/Example': '0%', + 'tree/ExampleComposition': '0%', + 'tree/Usage': '0%', + 'tree/hooks': '75.18%', + 'tree/hooks/style': '0%', + 'tree/style': '50%', + upload: '99.3%', + 'upload/ExampleComposition': '0%', + 'upload/Usage': '0%', + 'upload/hooks': '97.26%', + 'upload/style': '50%', + 'upload/themes': '92.75%', + 'upload/themes/style': '0%', + utils: '63.3%', + watermark: '34.91%', + 'watermark/Example': '0%', + 'watermark/style': '0%', }; diff --git a/src/_common b/src/_common index 56ea3a5df..1af6603ee 160000 --- a/src/_common +++ b/src/_common @@ -1 +1 @@ -Subproject commit 56ea3a5df3b9eb7caa451e702e8310fa24d47c58 +Subproject commit 1af6603ee0dcc03c34875709c2d090640cc9fdf4 diff --git a/src/alert/__tests__/index.test.jsx b/src/alert/__tests__/index.test.jsx index 675fed62b..761eb14f3 100644 --- a/src/alert/__tests__/index.test.jsx +++ b/src/alert/__tests__/index.test.jsx @@ -23,10 +23,10 @@ describe('Alert', () => { expect(wrapper.find('.t-alert__description').text()).toBe('text'); }); - it(':close', () => { + it(':closeBtn', () => { const wrapper = mount({ render() { - return text; + return text; }, }); const close = wrapper.find('.t-alert__close'); @@ -178,7 +178,7 @@ describe('Alert', () => { const wrapper = mount({ render() { return ( - + text ); diff --git a/src/alert/_example-composition/close.vue b/src/alert/_example-composition/close.vue index 1a5c3ba97..c2e884d8f 100644 --- a/src/alert/_example-composition/close.vue +++ b/src/alert/_example-composition/close.vue @@ -1,16 +1,18 @@ diff --git a/src/alert/_example-composition/collapse.vue b/src/alert/_example-composition/collapse.vue index 6d23d63ed..e2f3e7f5d 100644 --- a/src/alert/_example-composition/collapse.vue +++ b/src/alert/_example-composition/collapse.vue @@ -1,6 +1,6 @@