@cregis/icon 0.1.6 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +389 -4063
- package/dist/index.es.js +10969 -8044
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -28,6 +28,7 @@ import { iconConfig } from "@cregis/icon";
|
|
|
28
28
|
iconConfig.setDefault({
|
|
29
29
|
size: "32px", // 默认尺寸
|
|
30
30
|
color: "#0099FF", // 默认颜色
|
|
31
|
+
strokeWidth: 2, // 默认线宽
|
|
31
32
|
});
|
|
32
33
|
|
|
33
34
|
createApp(App).mount("#app");
|
|
@@ -45,7 +46,7 @@ import { EdsAddAddressBooks, EdsDiamondBusiness } from "@cregis/icon";
|
|
|
45
46
|
</script>
|
|
46
47
|
|
|
47
48
|
<template>
|
|
48
|
-
<EdsAddAddressBooks size="16px" color="#FF9900" />
|
|
49
|
+
<EdsAddAddressBooks size="16px" color="#FF9900" :stroke-width="1.4" />
|
|
49
50
|
<EdsDiamondBusiness />
|
|
50
51
|
</template>
|
|
51
52
|
```
|
|
@@ -66,6 +67,7 @@ iconConfig.setDefault(options: IconProps)
|
|
|
66
67
|
|--------|------|------|
|
|
67
68
|
| `size` | `string` | 设置全局默认图标大小(如 `"24px"`、`"1.5rem"`) |
|
|
68
69
|
| `color` | `string` | 设置全局默认颜色(如 `"#000"`、`"red"`) |
|
|
70
|
+
| `strokeWidth` | `number` | 设置全局默认线宽(如 `1.4`、`2`) |
|
|
69
71
|
|
|
70
72
|
---
|
|
71
73
|
|
|
@@ -75,11 +77,12 @@ iconConfig.setDefault(options: IconProps)
|
|
|
75
77
|
|--------|------|------|--------|
|
|
76
78
|
| `size` | `string` | 图标大小 | 全局默认或内置默认 |
|
|
77
79
|
| `color` | `string` | 图标颜色 | 全局默认或内置默认 |
|
|
80
|
+
| `strokeWidth` | `number` | 图标线宽 | 全局默认或内置默认 |
|
|
78
81
|
|
|
79
82
|
示例:
|
|
80
83
|
|
|
81
84
|
```vue
|
|
82
|
-
<EdsAddAddressBooks size="20px" color="#00bcd4" />
|
|
85
|
+
<EdsAddAddressBooks size="20px" color="#00bcd4" :stroke-width="1.4" />
|
|
83
86
|
```
|
|
84
87
|
|
|
85
88
|
---
|
|
@@ -94,6 +97,7 @@ export interface FixIconProps {
|
|
|
94
97
|
export interface IconProps {
|
|
95
98
|
size?: string;
|
|
96
99
|
color?: string;
|
|
100
|
+
strokeWidth?: number;
|
|
97
101
|
}
|
|
98
102
|
```
|
|
99
103
|
|