ikun-icon 1.0.3 → 1.0.4
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 +18 -18
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -44,12 +44,12 @@ npm install ikun-icon --save-dev
|
|
|
44
44
|
"componentConfig": {
|
|
45
45
|
"componentName": "icon",
|
|
46
46
|
"componentPrefix": "wx",
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
47
|
+
"width": 48,
|
|
48
|
+
"height": 48,
|
|
49
|
+
"color": "#333333",
|
|
50
|
+
"unit": "rpx",
|
|
51
|
+
"fontSize": 48,
|
|
52
|
+
"iconFontClass": "iconfont",
|
|
53
53
|
"styleIsolation": "isolated",
|
|
54
54
|
"virtualHost": false
|
|
55
55
|
}
|
|
@@ -80,12 +80,12 @@ npm install ikun-icon --save-dev
|
|
|
80
80
|
| --- | --- | --- | --- | --- |
|
|
81
81
|
| `componentName` | `string` | 是 | - | 生成的组件名称 |
|
|
82
82
|
| `componentPrefix` | `string` | 否 | - | 组件命名前缀 |
|
|
83
|
-
| `
|
|
84
|
-
| `
|
|
85
|
-
| `
|
|
86
|
-
| `
|
|
87
|
-
| `
|
|
88
|
-
| `
|
|
83
|
+
| `width` | `number` | 否 | `48` | 默认宽度 |
|
|
84
|
+
| `height` | `number` | 否 | `48` | 默认高度 |
|
|
85
|
+
| `color` | `string` | 否 | - | 默认图标颜色 |
|
|
86
|
+
| `fontSize` | `number` | 否 | - | 默认字体大小 |
|
|
87
|
+
| `unit` | `string` | 否 | `rpx` | 默认尺寸单位 |
|
|
88
|
+
| `iconFontClass` | `string` | 否 | `iconfont` | 图标字体 CSS 类名 |
|
|
89
89
|
| `styleIsolation` | `string` | 否 | `isolated` | [微信小程序] 样式隔离选项 |
|
|
90
90
|
| `virtualHost` | `boolean` | 否 | `false` | [微信小程序] 是否开启虚拟化组件节点 |
|
|
91
91
|
| `usingComponents` | `object` | 否 | - | 自定义引用的其他组件 |
|
|
@@ -156,12 +156,12 @@ generateIcons();
|
|
|
156
156
|
| `usingComponents` | `Record<string, string>` | 组件使用的其他组件 | `{}` |
|
|
157
157
|
| `styleIsolation` | `'isolated' | 'apply-shared' | 'shared'` | 组件样式隔离 | `shared` |
|
|
158
158
|
| `virtualHost` | `boolean` | 是否虚拟化组件 | `false` |
|
|
159
|
-
| `
|
|
160
|
-
| `
|
|
161
|
-
| `
|
|
162
|
-
| `
|
|
163
|
-
| `
|
|
164
|
-
| `
|
|
159
|
+
| `width` | `number` | 容器宽度 | `48` |
|
|
160
|
+
| `height` | `number` | 容器高度 | `48` |
|
|
161
|
+
| `fontSize` | `number` | 默认图标字体大小 | `60` |
|
|
162
|
+
| `color` | `string` | 默认图标颜色 | `#000000` |
|
|
163
|
+
| `unit` | `string` | 默认单位 | `rpx` |
|
|
164
|
+
| `iconFontClass` | `string` | 图标字体类名 | `iconfont` |
|
|
165
165
|
| `customTemplateData` | `TemplateData` | 自定义模板数据 | `{}` |
|
|
166
166
|
|
|
167
167
|
## 生成的组件结构
|