File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -7,23 +7,23 @@ toc: false
7
7
### 2.x 能否和 1.x, 0.x 一起使用
8
8
9
9
因为 1.x 升级到 2.x 没有迁移成本,所以你可以直接从 1.x 升级到 2.x
10
- 对于 0.x, 你可以使用 antd-mini-v0 这个 npm 包, 产物内容和
[email protected] 一模一样。
11
-
12
- ```
13
- $ npm install antd-mini-v0 antd-mini
14
- ```
10
+ 对于 0.x, 你可以使用 npm 别名来安装。
15
11
16
12
在 ` package.json ` 文件中是这样定义的:
17
13
18
14
``` json
19
15
{
20
16
"dependencies" : {
21
17
"antd-mini" : " ^2.25.0" ,
22
- "antd-mini-v0" : " ^0.0.26"
18
+ "antd-mini-v0" : " npm:antd-mini@ ^0.0.26"
23
19
}
24
20
}
25
21
```
26
22
23
+ ```
24
+ $ npm install
25
+ ```
26
+
27
27
使用:
28
28
29
29
``` json
@@ -57,4 +57,4 @@ $ npm install antd-mini-v0 antd-mini
57
57
- ` apply-shared ` :这意味着 app.acss 样式和其它设定了 ` shared ` 的页面或自定义组件样式会影响当前页面,但当前页面 acss 中的样式不会作用于外部。
58
58
- ` shared ` (默认):表示 app.acss 样式和其它设定了 ` shared ` 的页面或自定义组件样式会影响当前页面,同时当前页面 acss 中的样式也会作用于外部。
59
59
60
- 官方文档参考链接:[ 页面样式隔离] ( https://opendocs.alipay.com/mini/framework/page-acss#%E9%A1%B5%E9%9D%A2%E6%A0%B7%E5%BC%8F%E9%9A%94%E7%A6%BB )
60
+ 官方文档参考链接:[ 页面样式隔离] ( https://opendocs.alipay.com/mini/framework/page-acss#%E9%A1%B5%E9%9D%A2%E6%A0%B7%E5%BC%8F%E9%9A%94%E7%A6%BB )
You can’t perform that action at this time.
0 commit comments