docs: update wg-basic/page-unit
This commit is contained in:
parent
a2f2a8834e
commit
c98809359e
@ -2,7 +2,7 @@
|
|||||||
title: 页面组件
|
title: 页面组件
|
||||||
description: 页面上使用的组件
|
description: 页面上使用的组件
|
||||||
published: true
|
published: true
|
||||||
date: 2021-09-08T06:42:51.639Z
|
date: 2021-09-08T06:43:45.505Z
|
||||||
tags: wg-basic
|
tags: wg-basic
|
||||||
editor: markdown
|
editor: markdown
|
||||||
dateCreated: 2021-09-08T06:41:19.351Z
|
dateCreated: 2021-09-08T06:41:19.351Z
|
||||||
@ -99,3 +99,15 @@ function initArea2Select(area1, selectValue) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
赋值初始化
|
||||||
|
```javascript
|
||||||
|
initArea1Select(data['area1']);
|
||||||
|
initArea2Select(data['area1'], data['area2']);
|
||||||
|
```
|
||||||
|
联动
|
||||||
|
```javascript
|
||||||
|
// area1 选择事件,多级联动继续添加
|
||||||
|
form.on('select(area1)', function(data) {
|
||||||
|
initArea2Select(data.value);
|
||||||
|
});
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user