mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
build docs
This commit is contained in:
parent
6551e81ec8
commit
a9e807b976
2
docs/build/0.js
vendored
2
docs/build/0.js
vendored
File diff suppressed because one or more lines are too long
2
docs/build/zanui-docs.js
vendored
2
docs/build/zanui-docs.js
vendored
File diff suppressed because one or more lines are too long
2
docs/build/zanui-examples.js
vendored
2
docs/build/zanui-examples.js
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,9 @@
|
||||
<template><section class="demo-picker"><h1 class="demo-title">picker</h1><example-block title="基础用法">
|
||||
<zan-picker :columns="pickerColumns" @change="handlePickerChange"></zan-picker>
|
||||
|
||||
</example-block><example-block title="带toolbar的Picker">
|
||||
<zan-picker :columns="pickerColumns" show-toolbar="" @change="handlePickerChange" @cancel="handlePickerCancel" @confirm="handlePickerConfirm"></zan-picker>
|
||||
|
||||
</example-block></section></template>
|
||||
|
||||
<script>
|
||||
@ -30,6 +33,12 @@ export default {
|
||||
methods: {
|
||||
handlePickerChange(picker, values) {
|
||||
picker.setColumnValues(1, citys[values[0]]);
|
||||
},
|
||||
handlePickerCancel() {
|
||||
alert('picker cancel');
|
||||
},
|
||||
handlePickerConfirm() {
|
||||
alert('picker confirm');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user