docs: update wg-basic/page-unit

This commit is contained in:
Administrator 2021-09-08 06:43:46 +00:00 committed by John Smith
parent a2f2a8834e
commit c98809359e

View File

@ -2,7 +2,7 @@
title: 页面组件
description: 页面上使用的组件
published: true
date: 2021-09-08T06:42:51.639Z
date: 2021-09-08T06:43:45.505Z
tags: wg-basic
editor: markdown
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);
});
```