diff --git a/examples/sites/demos/pc/app/icon/show-title-composition-api.vue b/examples/sites/demos/pc/app/icon/show-title-composition-api.vue index d598871bfd..b494e888f6 100644 --- a/examples/sites/demos/pc/app/icon/show-title-composition-api.vue +++ b/examples/sites/demos/pc/app/icon/show-title-composition-api.vue @@ -1,6 +1,10 @@ @@ -11,8 +15,11 @@ const TinyIconCopy = iconCopy() diff --git a/examples/sites/demos/pc/app/icon/show-title.spec.ts b/examples/sites/demos/pc/app/icon/show-title.spec.ts index 119356d615..3a4453acb0 100644 --- a/examples/sites/demos/pc/app/icon/show-title.spec.ts +++ b/examples/sites/demos/pc/app/icon/show-title.spec.ts @@ -4,5 +4,5 @@ test('显示title', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) await page.goto('icon#show-title') - await expect(page.getByTitle('复制')).toHaveCount(1) + await expect(page.getByTitle('可见提示')).toHaveCount(1) }) diff --git a/examples/sites/demos/pc/app/icon/show-title.vue b/examples/sites/demos/pc/app/icon/show-title.vue index 881008f659..a6688d4e69 100644 --- a/examples/sites/demos/pc/app/icon/show-title.vue +++ b/examples/sites/demos/pc/app/icon/show-title.vue @@ -1,6 +1,10 @@ @@ -9,14 +13,17 @@ import { IconCopy } from '@opentiny/vue-icon' export default { components: { - IconCopy: IconCopy() + TinyIconCopy: IconCopy() } } diff --git a/examples/sites/demos/pc/app/icon/webdoc/icon.js b/examples/sites/demos/pc/app/icon/webdoc/icon.js index b103994bf9..96a43654c2 100644 --- a/examples/sites/demos/pc/app/icon/webdoc/icon.js +++ b/examples/sites/demos/pc/app/icon/webdoc/icon.js @@ -42,7 +42,7 @@ export default { }, desc: { 'zh-CN': - '图标组件自身上指定 title 属性无效,需要通过给其父元素的 title 属性实现提示功能。', + '图标组件自身上指定 title 属性无效,需要通过其父元素的 title 属性实现提示功能。', 'en-US': 'The title attribute specified on the icon component is invalid. You need to give the title attribute of its parent element to realize the prompt function.' }, diff --git a/packages/theme/build/release.js b/packages/theme/build/release.js index 144cc1c4ff..064540419d 100644 --- a/packages/theme/build/release.js +++ b/packages/theme/build/release.js @@ -21,7 +21,7 @@ let cssStr = fs.readFileSync(path.resolve(root, 'dist/old-theme-index.css'), 'ut jsStr = jsStr.replace('#CSS#', cssStr) fs.writeFileSync(path.resolve(root, 'src/old-theme-index.js'), jsStr) // 供开发时(pnpm site), 可以访问到最新的定制主题变量 -fs.writeFileSync(path.resolve(root, 'dist/old-theme-index.js'), jsStr) +fs.writeFileSync(path.resolve(root, 'dist/old-theme-index.js'), jsStr) // 打包发布用 // 3、复制 package.json const content = fs.readFileSync(path.resolve(root, 'package.json'), 'utf8') diff --git a/packages/theme/src/button/vars.less b/packages/theme/src/button/vars.less index 1fcbc886cb..569638a781 100644 --- a/packages/theme/src/button/vars.less +++ b/packages/theme/src/button/vars.less @@ -26,7 +26,7 @@ // 圆形时按钮圆角 --tv-Button-border-radius-circle: var(--tv-border-radius-round); // 50% 会造成椭圆,此次common变量用 999px代替 - //------------------------------------------------------ 场景2、尺寸 height, font-size,padding-x,min-width---- + //--------------------------------------------------- 场景2、尺寸 height, font-size,padding-x,min-width,仅图标时的 icon-size // 默认时按钮字号 --tv-Button-font-size: var(--tv-font-size-md); // 默认时按钮高度 @@ -78,7 +78,7 @@ // 超小按钮内图标的大小 --tv-Button-size-icon-font-size-mini: 12px; - //------------------------------------------------------ 场景3、颜色 text-color bg-color border-color icon-color---- + //------------------------------------------------------ 场景3、颜色 text-color bg-color border-color icon-color //------ 状态: 默认+primary+4主题 ghost plain (hover active) disabled // 1、ghost中只影响 bg 2、active 只影响(主题+plain) 3、 disabled 优先级高过 (主题+plain+激活)