mirror of https://github.com/ElemeFE/element
fix command
parent
5137867044
commit
c928314ac7
|
@ -221,6 +221,6 @@ Clicking each dropdown item fires an event whose parameter is assigned by each i
|
||||||
### Dropdown Menu Item Attributes
|
### Dropdown Menu Item Attributes
|
||||||
| Attribute | Description | Type | Accepted Values | Default |
|
| Attribute | Description | Type | Accepted Values | Default |
|
||||||
|------------- |---------------- |---------------- |---------------------- |-------- |
|
|------------- |---------------- |---------------- |---------------------- |-------- |
|
||||||
| command | a command to be dispatched to Dropdown's `command` callback | string | — | — |
|
| command | a command to be dispatched to Dropdown's `command` callback | string/number/object | — | — |
|
||||||
| disabled | whether the item is disabled | boolean | — | false |
|
| disabled | whether the item is disabled | boolean | — | false |
|
||||||
| divided | whether a divider is displayed | boolean | — | false |
|
| divided | whether a divider is displayed | boolean | — | false |
|
||||||
|
|
|
@ -221,6 +221,6 @@
|
||||||
### Dropdown Menu Item Attributes
|
### Dropdown Menu Item Attributes
|
||||||
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|
||||||
|------------- |---------------- |---------------- |---------------------- |-------- |
|
|------------- |---------------- |---------------- |---------------------- |-------- |
|
||||||
| command | 指令 | string | — | — |
|
| command | 指令 | string/number/object | — | — |
|
||||||
| disabled | 禁用 | boolean | — | false |
|
| disabled | 禁用 | boolean | — | false |
|
||||||
| divided | 显示分割线 | boolean | — | false |
|
| divided | 显示分割线 | boolean | — | false |
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
mixins: [Emitter],
|
mixins: [Emitter],
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
command: null,
|
command: {},
|
||||||
disabled: Boolean,
|
disabled: Boolean,
|
||||||
divided: Boolean
|
divided: Boolean
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue