mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[Doc] Field: add name prop (#450)
This commit is contained in:
parent
db76bdeef6
commit
efd6e9a4fa
@ -1,4 +1,4 @@
|
|||||||
const nativeBehaviors = require('./behaviors');
|
const buttonBehaviors = require('../behaviors/button');
|
||||||
const classnames = require('../common/classnames');
|
const classnames = require('../common/classnames');
|
||||||
|
|
||||||
const observer = function() {
|
const observer = function() {
|
||||||
@ -12,7 +12,7 @@ Component({
|
|||||||
|
|
||||||
externalClasses: ['custom-class', 'loading-class'],
|
externalClasses: ['custom-class', 'loading-class'],
|
||||||
|
|
||||||
behaviors: [nativeBehaviors],
|
behaviors: [buttonBehaviors],
|
||||||
|
|
||||||
properties: {
|
properties: {
|
||||||
type: {
|
type: {
|
||||||
|
@ -123,6 +123,7 @@
|
|||||||
|
|
||||||
| 参数 | 说明 | 类型 | 默认值 |
|
| 参数 | 说明 | 类型 | 默认值 |
|
||||||
|-----------|-----------|-----------|-------------|-------------|
|
|-----------|-----------|-----------|-------------|-------------|
|
||||||
|
| name | 标识符 | `String` | - |
|
||||||
| label | 输入框左侧文本 | `String` | - |
|
| label | 输入框左侧文本 | `String` | - |
|
||||||
| value | 当前输入的值 | `String | Number` | - |
|
| value | 当前输入的值 | `String | Number` | - |
|
||||||
| type | 可设置为任意原生类型, 如 `number` `idcard` `textarea` `digit` | `String` | `text` |
|
| type | 可设置为任意原生类型, 如 `number` `idcard` `textarea` `digit` | `String` | `text` |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user