You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
554 B
35 lines
554 B
3 years ago
|
<cn>
|
||
|
#### 基础用法
|
||
|
基本用法,可以使用 v-model 实现数据的双向绑定。
|
||
|
</cn>
|
||
|
|
||
|
<us>
|
||
|
#### Basic
|
||
|
Basic usage. You can use v-model to enable a two-way bingding on data.
|
||
|
</us>
|
||
|
|
||
|
```vue
|
||
|
<template>
|
||
|
<a-row>
|
||
|
<a-col span="12">
|
||
|
有默认值
|
||
|
<a-colorPicker v-model="color1" />
|
||
|
</a-col>
|
||
|
<a-col span="12">
|
||
|
无默认值
|
||
|
<a-colorPicker v-model="color2" />
|
||
|
</a-col>
|
||
|
</a-row>
|
||
|
</template>
|
||
|
<script>
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
color1: '#1890ff',
|
||
|
color2: '',
|
||
|
};
|
||
|
},
|
||
|
};
|
||
|
</script>
|
||
|
```
|