-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: wechat support slot * feat: picker slot support get params * feat: update doc * feat: update doc
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,23 +7,23 @@ toc: false | |
### 2.x 能否和 1.x, 0.x 一起使用 | ||
|
||
因为 1.x 升级到 2.x 没有迁移成本,所以你可以直接从 1.x 升级到 2.x | ||
对于 0.x, 你可以使用 antd-mini-v0 这个 npm 包, 产物内容和 [email protected] 一模一样。 | ||
|
||
``` | ||
$ npm install antd-mini-v0 antd-mini | ||
``` | ||
对于 0.x, 你可以使用 npm 别名来安装。 | ||
|
||
在 `package.json` 文件中是这样定义的: | ||
|
||
```json | ||
{ | ||
"dependencies": { | ||
"antd-mini": "^2.25.0", | ||
"antd-mini-v0": "^0.0.26" | ||
"antd-mini-v0": "npm:antd-mini@^0.0.26" | ||
} | ||
} | ||
``` | ||
|
||
``` | ||
$ npm install | ||
``` | ||
|
||
使用: | ||
|
||
```json | ||
|
@@ -57,4 +57,4 @@ $ npm install antd-mini-v0 antd-mini | |
- `apply-shared`:这意味着 app.acss 样式和其它设定了 `shared` 的页面或自定义组件样式会影响当前页面,但当前页面 acss 中的样式不会作用于外部。 | ||
- `shared`(默认):表示 app.acss 样式和其它设定了 `shared` 的页面或自定义组件样式会影响当前页面,同时当前页面 acss 中的样式也会作用于外部。 | ||
|
||
官方文档参考链接:[页面样式隔离](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) | ||
官方文档参考链接:[页面样式隔离](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) |