Skip to content

Commit c928314

Browse files
baiyaaaaaLeopoldthecoder
authored andcommitted
fix command
1 parent 5137867 commit c928314

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/docs/en-US/dropdown.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,6 @@ Clicking each dropdown item fires an event whose parameter is assigned by each i
221221
### Dropdown Menu Item Attributes
222222
| Attribute | Description | Type | Accepted Values | Default |
223223
|------------- |---------------- |---------------- |---------------------- |-------- |
224-
| command | a command to be dispatched to Dropdown's `command` callback | string |||
224+
| command | a command to be dispatched to Dropdown's `command` callback | string/number/object |||
225225
| disabled | whether the item is disabled | boolean || false |
226226
| divided | whether a divider is displayed | boolean || false |

examples/docs/zh-CN/dropdown.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,6 @@
221221
### Dropdown Menu Item Attributes
222222
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
223223
|------------- |---------------- |---------------- |---------------------- |-------- |
224-
| command | 指令 | string |||
224+
| command | 指令 | string/number/object |||
225225
| disabled | 禁用 | boolean || false |
226226
| divided | 显示分割线 | boolean || false |

packages/dropdown/src/dropdown-item.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
mixins: [Emitter],
2020
2121
props: {
22-
command: null,
22+
command: {},
2323
disabled: Boolean,
2424
divided: Boolean
2525
},

0 commit comments

Comments
 (0)