Skip to content

Commit

Permalink
feat(AvatarGroup): support onCollapsedItemClick event (#1571)
Browse files Browse the repository at this point in the history
* feat(AvatarGroup): support onCollapsedItemClick event

* chore: update common

* feat(AvatarGroup): support shape props

* test: update snapshots

* chore: update docs

* feat: use common isValidSize

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: 黎伟杰 <674416404@qq.com>
  • Loading branch information
3 people authored Sep 10, 2024
1 parent 1af6e21 commit 72a6e80
Show file tree
Hide file tree
Showing 17 changed files with 407 additions and 394 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"lint:fix-prettier": "prettier ./ --ignore-path .gitignore --ignore-path .eslintignore --write './*.{vue,ts,tsx}' --ignore-unknown",
"lint:vue": "vue-tsc --noEmit -p tsconfig.build.json",
"update:coverage-badge": "node scripts/test/generate-coverage.js",
"update:css": "node scripts/test/generate-css-vars.js",
"update:css": "node scripts/generate-css-vars.js",
"changelog": "publish-cli changelog",
"robot": "publish-cli robot-msg",
"commit": "git-cz"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function resolveCwd(...args) {

const COMPONENT_NAME = process.argv[process.argv.indexOf('--NAME') + 1]; // 在 --NAME 后面

const matchReg = /(?<=var).*?(?=\;)/g;
const matchReg = /(?<=var).*?(?=;)/g;

function findFilePath(componentName) {
const path = resolveCwd(`src/_common/style/mobile/components/${componentName}/v2/_var.less`);
Expand All @@ -48,8 +48,8 @@ if (combine[COMPONENT_NAME]) {
}

// 追加到文件
const cssVariableHeadContent = `\n\n### CSS 变量\n组件提供了下列 CSS 变量,可用于自定义样式。\n名称 | 默认值 | 描述 \n-- | -- | --\n`;
const cssVariableHeadContentEn = `\n\n### CSS Variables\nThe component provides the following CSS variables, which can be used to customize styles.\nName | Default Value | Description \n-- | -- | --\n`;
const cssVariableHeadContent = `\n\n### CSS Variables\n\n组件提供了下列 CSS 变量,可用于自定义样式。\n名称 | 默认值 | 描述 \n-- | -- | --\n`;
const cssVariableHeadContentEn = `\n\n### CSS Variables\n\nThe component provides the following CSS variables, which can be used to customize styles.\nName | Default Value | Description \n-- | -- | --\n`;

fs.appendFileSync(resolveCwd(`src/${COMPONENT_NAME}/${COMPONENT_NAME}.md`), cssVariableHeadContent);
fs.appendFileSync(resolveCwd(`src/${COMPONENT_NAME}/${COMPONENT_NAME}.en-US.md`), cssVariableHeadContentEn);
Expand Down
Loading

0 comments on commit 72a6e80

Please sign in to comment.