Skip to content

Commit

Permalink
fix(web-components): 修复svg fill-rule 属性问题
Browse files Browse the repository at this point in the history
  • Loading branch information
duenyang committed Jul 31, 2024
2 parents 85d5f55 + 0f0f595 commit 6caf120
Show file tree
Hide file tree
Showing 28 changed files with 116 additions and 26 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/pr-spelling.template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: pr-spell-check
on: [pull_request]

jobs:
run:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check spelling
uses: crate-ci/typos@master
with:
config: .github/workflows/typos-config.toml
2 changes: 2 additions & 0 deletions .github/workflows/typos-config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
default.check-filename = true
default.extend-ignore-re = ["no-inferrable-types"]
7 changes: 7 additions & 0 deletions packages/react-native/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# tdesign-icons-react-native

## 0.0.2

### Patch Changes

- feat: add `list-numbered` icon, optimize path of `lock-off`;
- fix: fix `chart-column` naming;

## 0.0.1

- feat: release 0.0.1
2 changes: 1 addition & 1 deletion packages/react-native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tdesign-icons-react-native",
"version": "0.0.1",
"version": "0.0.2",
"repository": {
"type": "git",
"url": "https://github.com/Tencent/tdesign-icons.git",
Expand Down
13 changes: 13 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# CHANGELOG

## 0.3.4

### Patch Changes

- feat: update iconfont and svgsprite address

## 0.3.3

### Patch Changes

- feat: add `list-numbered` icon, optimize path of `lock-off`;
- fix: fix `chart-column` naming;

## 0.3.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tdesign-icons-react",
"version": "0.3.2",
"version": "0.3.4",
"repository": {
"type": "git",
"url": "https://github.com/Tencent/tdesign-icons.git",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/iconfont/iconfont.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export interface IconFontProps extends HTMLAttributes<HTMLElement> {
loadDefaultIcons?: boolean;
}

const CDN_ICONFONT_URL = 'https://tdesign.gtimg.com/icon/0.2.0/fonts/index.css';
const CDN_ICONFONT_URL = 'https://tdesign.gtimg.com/icon/0.2.1/fonts/index.css';

/**
* 图标组件
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/svg-sprite/svg-sprite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface SpriteIconProps extends BaseIconProps {
className?: string;
}

const CDN_SVGSPRITE_URL = 'https://tdesign.gtimg.com/icon/0.2.0/fonts/index.js';
const CDN_SVGSPRITE_URL = 'https://tdesign.gtimg.com/icon/0.2.1/fonts/index.js';

/**
* 图标组件
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/util/check-url-and-load.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// to avoid append script repeatly
// to avoid append script repeatedly
function loadScript(url: string, className: string) {
if (!document || !url || typeof url !== 'string') return;

Expand All @@ -12,7 +12,7 @@ function loadScript(url: string, className: string) {
document.body.appendChild(svg);
}

// to avoid append link repeatly
// to avoid append link repeatedly
function loadLink(url: string, className: string) {
if (!document || !url || typeof url !== 'string') return;

Expand Down
7 changes: 7 additions & 0 deletions packages/svg/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# tdesign-icons-svg

## 0.2.1

### Patch Changes

- feat: add `list-numbered` icon, optimize path of `lock-off`;
- fix: fix `chart-column` naming;

## 0.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/svg/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tdesign-icons-svg",
"version": "0.2.0",
"version": "0.2.1",
"repository": {
"type": "git",
"url": "https://github.com/Tencent/tdesign-icons.git",
Expand Down
7 changes: 7 additions & 0 deletions packages/view/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# tdesign-icons-view

## 0.2.7

### Patch Changes

- feat: add `list-numbered` icon, optimize path of `lock-off`;
- fix: fix `chart-column` naming;

## 0.2.5

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/view/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tdesign-icons-view",
"version": "0.2.6",
"version": "0.2.7",
"description": "A web-component package for display all icons in any UI framework",
"repository": {
"type": "git",
Expand Down Expand Up @@ -30,7 +30,7 @@
"dependencies": {
"core-js": "^3.8.3",
"lodash": "^4.17.21",
"tdesign-icons-vue": "0.2.2",
"tdesign-icons-vue": "0.2.3",
"tdesign-vue": "1.4.6-naruto",
"tvision-color": "^1.6.0",
"vue": "2.7.14"
Expand Down
11 changes: 8 additions & 3 deletions packages/view/src/manifest.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions packages/vue-next/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# CHANGELOG

## 0.2.4

### Patch Changes

- feat: update iconfont and svgsprite address

## 0.2.3

### Patch Changes

- feat: add `list-numbered` icon, optimize path of `lock-off`;
- fix: fix `chart-column` naming;

## 0.2.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tdesign-icons-vue-next",
"version": "0.2.2",
"version": "0.2.4",
"repository": {
"type": "git",
"url": "https://github.com/Tencent/tdesign-icons.git",
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-next/src/iconfont/icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import '../style/css';

const { classPrefix } = ConfigContext;

const CDN_ICONFONT_URL = 'https://tdesign.gtimg.com/icon/0.2.0/fonts/index.css';
const CDN_ICONFONT_URL = 'https://tdesign.gtimg.com/icon/0.2.1/fonts/index.css';

export const IconFont = defineComponent({
name: 'IconFont',
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-next/src/svg-sprite/svg-sprite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import '../style/css';

const { classPrefix } = ConfigContext;

const CDN_ICONFONT_URL = 'https://tdesign.gtimg.com/icon/0.2.0/fonts/index.js';
const CDN_ICONFONT_URL = 'https://tdesign.gtimg.com/icon/0.2.1/fonts/index.js';

export default defineComponent({
name: 'Icon',
Expand Down
4 changes: 2 additions & 2 deletions packages/vue-next/src/utils/check-url-and-load.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const isServer = typeof window === 'undefined';

// to avoid append script repeatly
// to avoid append script repeatedly
function checkScriptAndLoad(url: string, className: string) {
if (isServer) {
return;
Expand All @@ -17,7 +17,7 @@ function checkScriptAndLoad(url: string, className: string) {
document.body.appendChild(svg);
}

// to avoid append link repeatly
// to avoid append link repeatedly
function checkLinkAndLoad(url: string, className: string) {
if (isServer) {
return;
Expand Down
13 changes: 13 additions & 0 deletions packages/vue/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# CHANGELOG

## 0.2.4

### Patch Changes

- feat: update iconfont and svgsprite address

## 0.2.3

### Patch Changes

- feat: add `list-numbered` icon, optimize path of `lock-off`;
- fix: fix `chart-column` naming;

## 0.2.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tdesign-icons-vue",
"version": "0.2.2",
"version": "0.2.4",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/src/iconfont/icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import '../style/css';

const { classPrefix } = ConfigContext;

const CDN_ICONFONT_URL = 'https://tdesign.gtimg.com/icon/0.2.0/fonts/index.css';
const CDN_ICONFONT_URL = 'https://tdesign.gtimg.com/icon/0.2.1/fonts/index.css';

export const IconFont = Vue.extend({
name: 'IconFont',
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/src/svg-sprite/svg-sprite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const { classPrefix } = ConfigContext;

const tName = `${classPrefix}-icon`;

const CDN_ICONFONT_URL = 'https://tdesign.gtimg.com/icon/0.2.0/fonts/index.js';
const CDN_ICONFONT_URL = 'https://tdesign.gtimg.com/icon/0.2.1/fonts/index.js';

export default Vue.extend({
name: 'Icon',
Expand Down
8 changes: 8 additions & 0 deletions svg/list-numbered.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion svg/lock-off-filled.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions svg/lock-off.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion svg/lock-on-filled.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions svg/lock-on.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6caf120

Please sign in to comment.