docs: fix grammar errors (#7594)

This commit is contained in:
neverland 2020-11-20 20:39:40 +08:00 committed by GitHub
parent 50f0023e9b
commit a3b9e67d36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
59 changed files with 274 additions and 274 deletions

View File

@ -163,8 +163,8 @@ export default {
| lock-scroll | Whether to lock background scroll | _boolean_ | `true` | | lock-scroll | Whether to lock background scroll | _boolean_ | `true` |
| lazy-render | Whether to lazy render util appeared | _boolean_ | `true` | | lazy-render | Whether to lazy render util appeared | _boolean_ | `true` |
| close-on-popstate `v2.5.3` | Whether to close when popstate | _boolean_ | `false` | | close-on-popstate `v2.5.3` | Whether to close when popstate | _boolean_ | `false` |
| close-on-click-action | Whether to close when click action | _boolean_ | `false` | | close-on-click-action | Whether to close when an action is clicked | _boolean_ | `false` |
| close-on-click-overlay | Whether to close when click overlay | _boolean_ | `true` | | close-on-click-overlay | Whether to close when overlay is clicked | _boolean_ | `true` |
| safe-area-inset-bottom | Whether to enable bottom safe area adaptation | _boolean_ | `true` | | safe-area-inset-bottom | Whether to enable bottom safe area adaptation | _boolean_ | `true` |
| get-container | Return the mount node for ActionSheet | _string \| () => Element_ | - | | get-container | Return the mount node for ActionSheet | _string \| () => Element_ | - |
@ -183,13 +183,13 @@ export default {
| Event | Description | Arguments | | Event | Description | Arguments |
| --- | --- | --- | | --- | --- | --- |
| select | Triggered when click option | _action: Action, index: number_ | | select | Emitted when an option is clicked | _action: Action, index: number_ |
| cancel | Triggered when click cancel button | - | | cancel | Emitted when the cancel button is clicked | - |
| open | Triggered when open ActionSheet | - | | open | Emitted when opening ActionSheet | - |
| close | Triggered when close ActionSheet | - | | close | Emitted when closing ActionSheet | - |
| opened | Triggered when opened ActionSheet | - | | opened | Emitted when ActionSheet is opened | - |
| closed | Triggered when closed ActionSheet | - | | closed | Emitted when ActionSheet is closed | - |
| click-overlay | Triggered when click overlay | - | | click-overlay | Emitted when overlay is clicked | - |
### Slots ### Slots

View File

@ -94,15 +94,15 @@ export default {
| Event | Description | Arguments | | Event | Description | Arguments |
| --- | --- | --- | | --- | --- | --- |
| save | Triggered when click save button | contentform content | | save | Emitted when the save button is clicked | contentform content |
| focus | Triggered when focus field | key: field name | | focus | Emitted when field is focused | key: field name |
| delete | Triggered when confirm delete | contentform content | | delete | Emitted when confirming delete | contentform content |
| cancel-delete | Triggered when cancel delete | contentform content | | cancel-delete | Emitted when canceling delete | contentform content |
| select-search | Triggered when select search result | value: search content | | select-search | Emitted when a search result is selected | value: search content |
| click-area `v2.5.9` | Triggered when click area | - | | click-area `v2.5.9` | Emitted when the area field is clicked | - |
| change-area | Triggered when change area | values: area values | | change-area | Emitted when area changed | values: area values |
| change-detail | Triggered when address detail changed | value: address detail | | change-detail | Emitted when address detail changed | value: address detail |
| change-default | Triggered when switch default address | value: checked | | change-default | Emitted when switching default address | value: checked |
### Slots ### Slots

View File

@ -86,12 +86,12 @@ export default {
| Event | Description | Arguments | | Event | Description | Arguments |
| --- | --- | --- | | --- | --- | --- |
| add | Triggered when click add button | - | | add | Emitted when the add button is clicked | - |
| edit | Triggered when edit address | item: address objectindex | | edit | Emitted when the edit icon of address is clicked | item: address objectindex |
| select | Triggered when select address | item: address objectindex | | select | Emitted when an address is selected | item: address objectindex |
| edit-disabled | Triggered when edit disabled address | item: address objectindex | | edit-disabled | Emitted when the edit icon of disabled address is clicked | item: address objectindex |
| select-disabled | Triggered when select disabled address | item: address objectindex | | select-disabled | Emitted when a disabled address is selected | item: address objectindex |
| click-item | Triggered when click address item | item: address objectindex | | click-item | Emitted when an address item is clicked | item: address objectindex |
### Data Structure of Address ### Data Structure of Address

View File

@ -75,9 +75,9 @@ To have a selected valuesimply pass the `code` of target area to `value` prop
| Event | Description | Arguments | | Event | Description | Arguments |
| --- | --- | --- | | --- | --- | --- |
| confirm | triggers when clicking the confirm button | an array | | confirm | Emitted when the confirm button is clicked | selected areas |
| cancel | triggers when clicking the cancel button | - | | cancel | Emitted when the cancel button is clicked | - |
| change | Triggered when current option changed | Picker instance, current valuescolumn index | | change | Emitted when current option changed | Picker instance, current valuescolumn index |
### Slots ### Slots

View File

@ -131,8 +131,8 @@ Vue.use(Button);
| Event | Description | Arguments | | Event | Description | Arguments |
| --- | --- | --- | | --- | --- | --- |
| click | Triggered when click button and not disabled or loading | _event: Event_ | | click | Emitted when button is clicked and not disabled or loading | _event: Event_ |
| touchstart | Triggered when touch start | _event: TouchEvent_ | | touchstart | Emitted when button is touched | _event: TouchEvent_ |
### Slots ### Slots

View File

@ -17,7 +17,7 @@ Vue.use(Calendar);
### Select Single Date ### Select Single Date
The `confirm` event will be triggered after the date selection is completed. The `confirm` event will be emitted after the date selection is completed.
```html ```html
<van-cell title="Select Single Date" :value="date" @click="show = true" /> <van-cell title="Select Single Date" :value="date" @click="show = true" />
@ -100,7 +100,7 @@ export default {
### Quick Select ### Quick Select
Set `show-confirm` to `false` to hide the confirm button. In this case, the `confirm` event will be triggered immediately after the selection is completed. Set `show-confirm` to `false` to hide the confirm button. In this case, the `confirm` event will be emitted immediately after the selection is completed.
```html ```html
<van-calendar v-model="show" :show-confirm="false" /> <van-calendar v-model="show" :show-confirm="false" />
@ -256,7 +256,7 @@ Following props are supported when the poppable is true
| position | Popup position, can be set to `top` `right` `left` | _string_ | `bottom` | | position | Popup position, can be set to `top` `right` `left` | _string_ | `bottom` |
| round | Whether to show round corner | _boolean_ | `true` | | round | Whether to show round corner | _boolean_ | `true` |
| close-on-popstate `v2.4.4` | Whether to close when popstate | _boolean_ | `true` | | close-on-popstate `v2.4.4` | Whether to close when popstate | _boolean_ | `true` |
| close-on-click-overlay | Whether to close when click overlay | _boolean_ | `true` | | close-on-click-overlay | Whether to close when overlay is clicked | _boolean_ | `true` |
| safe-area-inset-bottom | Whether to enable bottom safe area adaptation | _boolean_ | `true` | | safe-area-inset-bottom | Whether to enable bottom safe area adaptation | _boolean_ | `true` |
| get-container `v2.4.4` | Return the mount node for Calendar | _string \| () => Element_ | - | | get-container `v2.4.4` | Return the mount node for Calendar | _string \| () => Element_ | - |
@ -294,14 +294,14 @@ Following props are supported when the type is multiple
| Event | Description | Arguments | | Event | Description | Arguments |
| --- | --- | --- | | --- | --- | --- |
| select | Triggered when select date | _value: Date \| Date[]_ | | select | Emitted when date is selected | _value: Date \| Date[]_ |
| confirm | Triggered after date selection is completeif `show-confirm` is`true`, it is triggered after clicking the confirm button | _value: Date \| Date[]_ | | confirm | Emitted after date selection is completeif `show-confirm` is `true`, it is Emitted after clicking the confirm button | _value: Date \| Date[]_ |
| open `v2.5.2` | Triggered when open Popup | - | | open `v2.5.2` | Emitted when opening Popup | - |
| close `v2.5.2` | Triggered when close Popup | - | | close `v2.5.2` | Emitted when closing Popup | - |
| opened `v2.5.2` | Triggered when opened Popup | - | | opened `v2.5.2` | Emitted when Popup is opened | - |
| closed `v2.5.2` | Triggered when closed Popup | - | | closed `v2.5.2` | Emitted when Popup is closed | - |
| unselect `v2.7.2` | Triggered when unselect date when type is multiple | _value: Date_ | | unselect `v2.7.2` | Emitted when unselect date when type is multiple | _value: Date_ |
| month-show `v2.8.2` | Triggered when a month enters the visible area | _{ date: Date, title: string }_ | | month-show `v2.8.2` | Emitted when a month enters the visible area | _{ date: Date, title: string }_ |
### Slots ### Slots

View File

@ -80,10 +80,10 @@ Use slot to custom content.
### Events ### Events
| Event | Description | Arguments | | Event | Description | Arguments |
| ----------- | ---------------------------- | -------------- | | ----------- | --------------------------------- | -------------- |
| click | Triggered when clicked | _event: Event_ | | click | Emitted when component is clicked | _event: Event_ |
| click-thumb | Triggered when thumb clicked | _event: Event_ | | click-thumb | Emitted when thumb is clicked | _event: Event_ |
### Slots ### Slots

View File

@ -153,9 +153,9 @@ Vue.use(CellGroup);
### Cell Events ### Cell Events
| Event | Description | Arguments | | Event | Description | Arguments |
| ----- | ------------------------- | -------------- | | ----- | ---------------------------- | -------------- |
| click | Triggered when click cell | _event: Event_ | | click | Emitted when cell is clicked | _event: Event_ |
### CellGroup Slots ### CellGroup Slots

View File

@ -235,16 +235,16 @@ export default {
### Checkbox Events ### Checkbox Events
| Event | Description | Parameters | | Event | Description | Parameters |
| ------ | ----------------------------- | ------------------ | | ------ | ------------------------------------ | ------------------ |
| change | Triggered when value changed | _checked: boolean_ | | change | Emitted when value changed | _checked: boolean_ |
| click | Triggered when click checkbox | _event: Event_ | | click | Emitted when the checkbox is clicked | _event: Event_ |
### CheckboxGroup Events ### CheckboxGroup Events
| Event | Description | Parameters | | Event | Description | Parameters |
| ------ | ---------------------------- | -------------- | | ------ | -------------------------- | -------------- |
| change | Triggered when value changed | _names: any[]_ | | change | Emitted when value changed | _names: any[]_ |
### Checkbox Slots ### Checkbox Slots

View File

@ -108,12 +108,12 @@ Setting `type` to `flex` to enable flex layout.
### Row Events ### Row Events
| Event | Description | Arguments | | Event | Description | Arguments |
| ----- | ------------------------ | -------------- | | ----- | ------------------------------- | -------------- |
| click | Triggered when click row | _event: Event_ | | click | Emitted when the row is clicked | _event: Event_ |
### Col Events ### Col Events
| Event | Description | Arguments | | Event | Description | Arguments |
| ----- | ------------------------ | -------------- | | ----- | ------------------------------- | -------------- |
| click | Triggered when click col | _event: Event_ | | click | Emitted when the col is clicked | _event: Event_ |

View File

@ -110,9 +110,9 @@ export default {
### Collapse Events ### Collapse Events
| Event | Description | Arguments | | Event | Description | Arguments |
| ------ | --------------------------- | ----------- | | ------ | ---------------------------- | ----------- |
| change | Triggered when switch panel | activeNames | | change | Emitted when switching panel | activeNames |
### CollapseItem Props ### CollapseItem Props

View File

@ -84,6 +84,6 @@ export default {
### Events ### Events
| Event | Description | Arguments | | Event | Description | Arguments |
| ----- | ---------------------- | -------------- | | ----- | --------------------------------- | -------------- |
| click | Triggered when clicked | _event: Event_ | | click | Emitted when component is clicked | _event: Event_ |

View File

@ -60,10 +60,10 @@ export default {
### Events ### Events
| Event | Description | Arguments | | Event | Description | Arguments |
| ------ | ---------------------------------- | --------------------- | | ------ | ----------------------------------------- | --------------------- |
| save | Triggered when click save button | contentcontact info | | save | Emitted when the save button is clicked | contentcontact info |
| delete | Triggered when click delete button | contentcontact info | | delete | Emitted when the delete button is clicked | contentcontact info |
### Data Structure of Contact ### Data Structure of Contact

View File

@ -75,9 +75,9 @@ export default {
| Event | Description | Arguments | | Event | Description | Arguments |
| --- | --- | --- | | --- | --- | --- |
| add | Triggered when click add button | - | | add | Emitted when the add button is clicked | - |
| edit | Triggered when click edit button | _contact: Contactindex: number_ | | edit | Emitted when the edit button is clicked | _contact: Contactindex: number_ |
| select | Triggered when select contact | _contact: Contact, index: number_ | | select | Emitted when a contact is selected | _contact: Contact, index: number_ |
### Data Structure of Contact ### Data Structure of Contact

View File

@ -133,10 +133,10 @@ export default {
### Events ### Events
| Event | Description | Arguments | | Event | Description | Arguments |
| --------------- | ---------------------------------- | -------------------- | | --------------- | -------------------------------- | -------------------- |
| finish | Triggered when count down finished | - | | finish | Emitted when count down finished | - |
| change `v2.4.4` | Triggered when count down changed | _timeData: TimeData_ | | change `v2.4.4` | Emitted when count down changed | _timeData: TimeData_ |
### Slots ### Slots

View File

@ -109,8 +109,8 @@ export default {
| Event | Description | Arguments | | Event | Description | Arguments |
| --- | --- | --- | | --- | --- | --- |
| change | Triggered when change chosen coupon | index: index of chosen coupon | | change | Emitted when chosen coupon changed | index: index of chosen coupon |
| exchange | Triggered when exchange coupon | code: exchange code | | exchange | Emitted when exchanging coupon | code: exchange code |
### Data Structure of Coupon ### Data Structure of Coupon

View File

@ -286,11 +286,11 @@ Following props are supported when the type is time
### Events ### Events
| Event | Description | Arguments | | Event | Description | Arguments |
| ------- | ----------------------------------- | ----------------------- | | --- | --- | --- |
| change | Triggered when value changed | picker: Picker instance | | change | Emitted when value changed | picker: Picker instance |
| confirm | Triggered when click confirm button | value: current value | | confirm | Emitted when the confirm button is clicked | value: current value |
| cancel | Triggered when click cancel button | - | | cancel | Emitted when the cancel button is clicked | - |
### Methods ### Methods

View File

@ -153,7 +153,7 @@ export default {
| overlayClass | Custom overlay class | _string_ | - | | overlayClass | Custom overlay class | _string_ | - |
| overlayStyle | Custom overlay style | _object_ | - | | overlayStyle | Custom overlay style | _object_ | - |
| closeOnPopstate | Whether to close when popstate | _boolean_ | `true` | | closeOnPopstate | Whether to close when popstate | _boolean_ | `true` |
| closeOnClickOverlay | Whether to close when click overlay | _boolean_ | `false` | | closeOnClickOverlay | Whether to close when overlay is clicked | _boolean_ | `false` |
| lockScroll | Whether to lock body scroll | _boolean_ | `true` | | lockScroll | Whether to lock body scroll | _boolean_ | `true` |
| allowHtml `v2.8.7` | Whether to allow HTML rendering in message | _boolean_ | `true` | | allowHtml `v2.8.7` | Whether to allow HTML rendering in message | _boolean_ | `true` |
| beforeClose | Callback before close,<br>call done() to close dialog,<br>call done(false) to cancel loading | (action: string, done: Function) => void | - | | beforeClose | Callback before close,<br>call done() to close dialog,<br>call done(false) to cancel loading | (action: string, done: Function) => void | - |
@ -180,7 +180,7 @@ export default {
| overlay-class | Custom overlay class | _string_ | - | | overlay-class | Custom overlay class | _string_ | - |
| overlay-style | Custom overlay style | _object_ | - | | overlay-style | Custom overlay style | _object_ | - |
| close-on-popstate | Whether to close when popstate | _boolean_ | `true` | | close-on-popstate | Whether to close when popstate | _boolean_ | `true` |
| close-on-click-overlay | Whether to close when click overlay | _boolean_ | `false` | | close-on-click-overlay | Whether to close when overlay is clicked | _boolean_ | `false` |
| lazy-render | Whether to lazy render util appeared | _boolean_ | `true` | | lazy-render | Whether to lazy render util appeared | _boolean_ | `true` |
| lock-scroll | Whether to lock background scroll | _boolean_ | `true` | | lock-scroll | Whether to lock background scroll | _boolean_ | `true` |
| allow-html `v2.8.7` | Whether to allow HTML rendering in message | _boolean_ | `true` | | allow-html `v2.8.7` | Whether to allow HTML rendering in message | _boolean_ | `true` |
@ -190,14 +190,14 @@ export default {
### Events ### Events
| Event | Description | Parameters | | Event | Description | Parameters |
| ------- | ----------------------------------- | ---------- | | ------- | ------------------------------------------ | ---------- |
| confirm | Triggered when click confirm button | - | | confirm | Emitted when the confirm button is clicked | - |
| cancel | Triggered when click cancel button | - | | cancel | Emitted when the cancel button is clicked | - |
| open | Triggered when open Dialog | - | | open | Emitted when opening Dialog | - |
| close | Triggered when close Dialog | - | | close | Emitted when closing Dialog | - |
| opened | Triggered when opened Dialog | - | | opened | Emitted when Dialog is opened | - |
| closed | Triggered when closed Dialog | - | | closed | Emitted when Dialog is closed | - |
### Slots ### Slots

View File

@ -129,8 +129,8 @@ Use `active-color` prop to custom active color of the title and options.
| z-index | z-index of menu item | _number \| string_ | `10` | | z-index | z-index of menu item | _number \| string_ | `10` |
| duration | Transition duration, unit second | _number \| string_ | `0.2` | | duration | Transition duration, unit second | _number \| string_ | `0.2` |
| overlay | Whether to show overlay | _boolean_ | `true` | | overlay | Whether to show overlay | _boolean_ | `true` |
| close-on-click-overlay | Whether to close when click overlay | _boolean_ | `true` | | close-on-click-overlay | Whether to close when overlay is clicked | _boolean_ | `true` |
| close-on-click-outside | Whether to close when click outside | _boolean_ | `true` | | close-on-click-outside | Whether to close when outside is clicked | _boolean_ | `true` |
### DropdownItem Props ### DropdownItem Props
@ -146,13 +146,13 @@ Use `active-color` prop to custom active color of the title and options.
### DropdownItem Events ### DropdownItem Events
| Event | Description | Arguments | | Event | Description | Arguments |
| ------ | ----------------------------------------- | --------- | | ------ | --------------------------------------- | --------- |
| change | Triggered select option and value changed | value | | change | Emitted select option and value changed | value |
| open | Triggered when open menu | - | | open | Emitted when opening menu | - |
| close | Triggered when close menu | - | | close | Emitted when closing menu | - |
| opened | Triggered when menu opened | - | | opened | Emitted when menu is opened | - |
| closed | Triggered when menu closed | - | | closed | Emitted when menu is closed | - |
### DropdownItem Slots ### DropdownItem Slots

View File

@ -259,14 +259,14 @@ Field support all native events of input tag
| Event | Description | Parameters | | Event | Description | Parameters |
| --- | --- | --- | | --- | --- | --- |
| input | Triggered when input value changed | _value: string_ | | input | Emitted when input value changed | _value: string_ |
| focus | Triggered when input gets focus | _event: Event_ | | focus | Emitted when input is focused | _event: Event_ |
| blur | Triggered when input loses focus | _event: Event_ | | blur | Emitted when input is blured | _event: Event_ |
| clear | Triggered when click clear icon | _event: Event_ | | clear | Emitted when the clear icon is clicked | _event: Event_ |
| click | Triggered when click Field | _event: Event_ | | click | Emitted when component is clicked | _event: Event_ |
| click-input `v2.8.1` | Triggered when click input | _event: Event_ | | click-input `v2.8.1` | Emitted when the input is clicked | _event: Event_ |
| click-left-icon | Triggered when click the left icon of Field | _event: Event_ | | click-left-icon | Emitted when the left icon is clicked | _event: Event_ |
| click-right-icon | Triggered when click the right icon of Field | _event: Event_ | | click-right-icon | Emitted when the right icon is clicked | _event: Event_ |
### Methods ### Methods

View File

@ -462,8 +462,8 @@ export default {
| Event | Description | Arguments | | Event | Description | Arguments |
| --- | --- | --- | | --- | --- | --- |
| submit | Triggered after submitting the form and validation passed | _values: object_ | | submit | Emitted after submitting the form and validation passed | _values: object_ |
| failed | Triggered after submitting the form and validation failed | _errorInfo: { values: object, errors: object[] }_ | | failed | Emitted after submitting the form and validation failed | _errorInfo: { values: object, errors: object[] }_ |
### Methods ### Methods

View File

@ -121,9 +121,9 @@ Vue.use(GridItem);
### GridItem Events ### GridItem Events
| Event | Description | Arguments | | Event | Description | Arguments |
| ----- | ---------------------- | -------------- | | ----- | --------------------------------- | -------------- |
| click | Triggered when clicked | _event: Event_ | | click | Emitted when component is clicked | _event: Event_ |
### GridItem Slots ### GridItem Slots

View File

@ -96,6 +96,6 @@ import 'vant/lib/icon/local.css';
### Events ### Events
| Event | Description | Arguments | | Event | Description | Arguments |
| ----- | ------------------------- | -------------- | | ----- | ---------------------------- | -------------- |
| click | Triggered when click icon | _event: Event_ | | click | Emitted when icon is clicked | _event: Event_ |

View File

@ -118,9 +118,9 @@ export default {
| showIndicators | Whether to show indicators | _boolean_ | `false` | | showIndicators | Whether to show indicators | _boolean_ | `false` |
| loop | Whether to enable loop | _boolean_ | `true` | | loop | Whether to enable loop | _boolean_ | `true` |
| swipeDuration | Animation duration (ms) | _number \| string_ | `500` | | swipeDuration | Animation duration (ms) | _number \| string_ | `500` |
| onClose | Triggered when close | _Function_ | - | | onClose | Emitted when ImagePreview is closed | _Function_ | - |
| onChange | Triggered when current image change | _Function_ | - | | onChange | Emitted when current image changed | _Function_ | - |
| onScale | Triggered when current image scale | _Function_ | - | | onScale | Emitted when scaling current image | _Function_ | - |
| closeOnPopstate | Whether to close when popstate | _boolean_ | `true` | | closeOnPopstate | Whether to close when popstate | _boolean_ | `true` |
| asyncClose | Whether to enable async close | _boolean_ | `false` | | asyncClose | Whether to enable async close | _boolean_ | `false` |
| className | Custom className | _any_ | - | | className | Custom className | _any_ | - |
@ -155,10 +155,10 @@ export default {
| Event | Description | Parameters | | Event | Description | Parameters |
| --- | --- | --- | | --- | --- | --- |
| close | Triggered when close | { index, url } | | close | Emitted when closing ImagePreview | { index, url } |
| closed `v2.5.6` | Triggered after closed | - | | closed `v2.5.6` | Emitted when ImagePreview is closed | - |
| change | Triggered when current image change | index: index of current image | | change | Emitted when current image changed | index: index of current image |
| scale `v2.5.0` | Triggered when current image scale | { index: index of current image, scale: scale of current image} | | scale `v2.5.0` | Emitted when scaling current image | { index: index of current image, scale: scale of current image} |
| swipeTo `2.9.0` | Swipe to target index | index: target index, options: Options | - | | swipeTo `2.9.0` | Swipe to target index | index: target index, options: Options | - |
### Slots ### Slots

View File

@ -91,11 +91,11 @@ Vue.use(Lazyload);
### Events ### Events
| Event | Description | Arguments | | Event | Description | Arguments |
| ----- | -------------------------------- | -------------- | | ----- | ------------------------------ | -------------- |
| click | Triggered when click image | _event: Event_ | | click | Emitted when image is clicked | _event: Event_ |
| load | Triggered when image loaded | - | | load | Emitted when image loaded | - |
| error | Triggered when image load failed | - | | error | Emitted when image load failed | - |
### Slots ### Slots

View File

@ -80,8 +80,8 @@ export default {
| Event | Description | Arguments | | Event | Description | Arguments |
| --- | --- | --- | | --- | --- | --- |
| select | Triggered when select index | _index: number \| string_ | | select | Emitted when an index is selected | _index: number \| string_ |
| change `v2.10.10` | Triggered when active index changed | _index: number \| string_ | | change `v2.10.10` | Emitted when active index changed | _index: number \| string_ |
### IndexAnchor Slots ### IndexAnchor Slots

View File

@ -144,10 +144,10 @@ export default {
| Attribute | Description | Type | Default | | Attribute | Description | Type | Default |
| --- | --- | --- | --- | | --- | --- | --- | --- |
| v-model | Whether to show loading infothe `load` event will not be triggered when loading | _boolean_ | `false` | | v-model | Whether to show loading infothe `load` event will not be Emitted when loading | _boolean_ | `false` |
| finished | Whether loading is finishedthe `load` event will not be triggered when finished | _boolean_ | `false` | | finished | Whether loading is finishedthe `load` event will not be Emitted when finished | _boolean_ | `false` |
| error | Whether loading is errorthe `load` event will be triggered only when error text clicked, the `sync` modifier is needed | _boolean_ | `false` | | error | Whether loading is errorthe `load` event will be Emitted only when error text clicked, the `sync` modifier is needed | _boolean_ | `false` |
| offset | The load event will be triggered when the distance between the scrollbar and the bottom is less than offset | _number \| string_ | `300` | | offset | The load event will be Emitted when the distance between the scrollbar and the bottom is less than offset | _number \| string_ | `300` |
| loading-text | Loading text | _string_ | `Loading...` | | loading-text | Loading text | _string_ | `Loading...` |
| finished-text | Finished text | _string_ | - | | finished-text | Finished text | _string_ | - |
| error-text | Error loaded text | _string_ | - | | error-text | Error loaded text | _string_ | - |
@ -158,7 +158,7 @@ export default {
| Event | Description | Arguments | | Event | Description | Arguments |
| --- | --- | --- | | --- | --- | --- |
| load | Triggered when the distance between the scrollbar and the bottom is less than offset | - | | load | Emitted when the distance between the scrollbar and the bottom is less than offset | - |
### Methods ### Methods

View File

@ -28,7 +28,7 @@ export const popupMixinProps = {
overlayStyle: Object, overlayStyle: Object,
// overlay custom class name // overlay custom class name
overlayClass: String, overlayClass: String,
// whether to close popup when click overlay // whether to close popup when overlay is clicked
closeOnClickOverlay: Boolean, closeOnClickOverlay: Boolean,
// z-index // z-index
zIndex: [Number, String], zIndex: [Number, String],

View File

@ -75,7 +75,7 @@ export default {
### Events ### Events
| Event | Description | Arguments | | Event | Description | Arguments |
| ----------- | --------------------------------- | --------- | | ----------- | ---------------------------------------- | --------- |
| click-left | Triggered when click left button | - | | click-left | Emitted when the left button is clicked | - |
| click-right | Triggered when click right button | - | | click-right | Emitted when the right button is clicked | - |

View File

@ -100,11 +100,11 @@ Vue.use(NoticeBar);
### Events ### Events
| Event | Description | Arguments | | Event | Description | Arguments |
| --------------- | ------------------------------ | -------------- | | --------------- | ---------------------------------- | -------------- |
| click | Triggered when click NoticeBar | _event: Event_ | | click | Emitted when NoticeBar is clicked | _event: Event_ |
| close | Triggered when closed | _event: Event_ | | close | Emitted when NoticeBar is closed | _event: Event_ |
| replay `v2.6.2` | Triggered when replay | - | | replay `v2.6.2` | Emitted when NoticeBar is replayed | - |
### Slots ### Slots

View File

@ -159,7 +159,7 @@ export default {
| delete-button-text | Delete button text | _string_ | Delete Icon | | delete-button-text | Delete button text | _string_ | Delete Icon |
| close-button-loading `v2.7.0` | Whether to show loading close button in custom theme | _boolean_ | `false` | | close-button-loading `v2.7.0` | Whether to show loading close button in custom theme | _boolean_ | `false` |
| show-delete-key `v2.5.9` | Whether to show delete button | _boolean_ | `true` | | show-delete-key `v2.5.9` | Whether to show delete button | _boolean_ | `true` |
| hide-on-click-outside | Whether to hide keyboard when click outside | _boolean_ | `true` | | hide-on-click-outside | Whether to hide keyboard when outside is clicked | _boolean_ | `true` |
| get-container `v2.10.0` | Return the mount node for NumberKeyboard | _string \| () => Element_ | - | | get-container `v2.10.0` | Return the mount node for NumberKeyboard | _string \| () => Element_ | - |
| safe-area-inset-bottom | Whether to enable bottom safe area adaptation | _boolean_ | `true` | | safe-area-inset-bottom | Whether to enable bottom safe area adaptation | _boolean_ | `true` |
@ -167,12 +167,12 @@ export default {
| Event | Description | Arguments | | Event | Description | Arguments |
| --- | --- | --- | | --- | --- | --- |
| input | Triggered when keydown | key: Content of the key | | input | Emitted when keydown | key: Content of the key |
| delete | Triggered when press delete key | - | | delete | Emitted when the delete key is pressed | - |
| close | Triggered when click close button | - | | close | Emitted when the close button is clicked | - |
| blur | Triggered when click close button or blur keyboard | - | | blur | Emitted when the close button is clicked or the keyboard is blured | - |
| show | Triggered when keyboard is fully displayed | - | | show | Emitted when keyboard is fully displayed | - |
| hide | Triggered when keyboard is fully hidden | - | | hide | Emitted when keyboard is fully hidden | - |
### Slots ### Slots

View File

@ -68,9 +68,9 @@ export default {
### Events ### Events
| Event | Description | Arguments | | Event | Description | Arguments |
| ----- | ---------------------- | -------------- | | ----- | --------------------------------- | -------------- |
| click | Triggered when clicked | _event: Event_ | | click | Emitted when component is clicked | _event: Event_ |
### Slots ### Slots

View File

@ -76,9 +76,9 @@ export default {
### Events ### Events
| Event | Description | Arguments | | Event | Description | Arguments |
| ------ | ------------------------ | --------- | | ------ | --------------------------------- | --------- |
| change | Triggered on page change | - | | change | Emitted when current page changed | - |
### Slots ### Slots

View File

@ -131,6 +131,6 @@ export default {
### Events ### Events
| Event | Description | Arguments | | Event | Description | Arguments |
| ----- | -------------------------------- | --------- | | ----- | ----------------------------- | --------- |
| focus | Triggered when input get focused | - | | focus | Emitted when input is focused | - |

View File

@ -166,7 +166,7 @@ export default createComponent({
this.setIndex(index, true); this.setIndex(index, true);
// compatible with desktop scenario // compatible with desktop scenario
// use setTimeout to skip the click event triggered after touchstart // use setTimeout to skip the click event Emitted after touchstart
setTimeout(() => { setTimeout(() => {
this.moving = false; this.moving = false;
}, 0); }, 0);

View File

@ -263,9 +263,9 @@ Picker events will pass different parameters according to the columns are single
| Event | Description | Arguments | | Event | Description | Arguments |
| --- | --- | --- | | --- | --- | --- |
| confirm | Triggered when click confirm button | Single columncurrent valuecurrent index<br>Multiple columnscurrent valuescurrent indexes | | confirm | Emitted when click confirm button | Single columncurrent valuecurrent index<br>Multiple columnscurrent valuescurrent indexes |
| cancel | Triggered when click cancel button | Single columncurrent valuecurrent index<br>Multiple columnscurrent valuescurrent indexes | | cancel | Emitted when click cancel button | Single columncurrent valuecurrent index<br>Multiple columnscurrent valuescurrent indexes |
| change | Triggered when current option changed | Single columnPicker instance, current valuecurrent index<br>Multiple columnsPicker instance, current valuescolumn index | | change | Emitted when current option changed | Single columnPicker instance, current valuecurrent index<br>Multiple columnsPicker instance, current valuescolumn index |
### Slots ### Slots

View File

@ -179,13 +179,13 @@ export default {
### Events ### Events
| Event | Description | Arguments | | Event | Description | Arguments |
| ------ | -------------------------------- | ------------------------------- | | ------ | --------------------------------- | ------------------------------- |
| select | Triggered when clicking action | _action: Action, index: number_ | | select | Emitted when an action is clicked | _action: Action, index: number_ |
| open | Triggered when opening Popover | - | | open | Emitted when opening Popover | - |
| close | Triggered when closing Popover | - | | close | Emitted when closing Popover | - |
| opened | Triggered when Popover is opened | - | | opened | Emitted when Popover is opened | - |
| closed | Triggered when Popover is closed | - | | closed | Emitted when Popover is closed | - |
### Slots ### Slots

View File

@ -118,7 +118,7 @@ export default {
| lock-scroll | Whether to lock background scroll | _boolean_ | `true` | | lock-scroll | Whether to lock background scroll | _boolean_ | `true` |
| lazy-render | Whether to lazy render util appeared | _boolean_ | `true` | | lazy-render | Whether to lazy render util appeared | _boolean_ | `true` |
| close-on-popstate | Whether to close when popstate | _boolean_ | `false` | | close-on-popstate | Whether to close when popstate | _boolean_ | `false` |
| close-on-click-overlay | Whether to close when click overlay | _boolean_ | `true` | | close-on-click-overlay | Whether to close when overlay is clicked | _boolean_ | `true` |
| closeable | Whether to show close icon | _boolean_ | `false` | | closeable | Whether to show close icon | _boolean_ | `false` |
| close-icon | Close icon name | _string_ | `cross` | | close-icon | Close icon name | _string_ | `cross` |
| close-icon-position | Close Icon Positioncan be set to `top-left` `bottom-left` `bottom-right` | _string_ | `top-right` | | close-icon-position | Close Icon Positioncan be set to `top-left` `bottom-left` `bottom-right` | _string_ | `top-right` |
@ -129,11 +129,11 @@ export default {
### Events ### Events
| Event | Description | Arguments | | Event | Description | Arguments |
| ------------- | ---------------------------- | -------------- | | ------------- | ------------------------------- | -------------- |
| click | Triggered when click Popup | _event: Event_ | | click | Emitted when Popup is clicked | _event: Event_ |
| open | Triggered when open Popup | - | | open | Emitted when opening Popup | - |
| close | Triggered when close Popup | - | | close | Emitted when closing Popup | - |
| opened | Triggered when opened Popup | - | | opened | Emitted when Popup is opened | - |
| closed | Triggered when closed Popup | - | | closed | Emitted when Popup is closed | - |
| click-overlay | Triggered when click overlay | - | | click-overlay | Emitted when overlay is clicked | - |

View File

@ -13,7 +13,7 @@ Vue.use(PullRefresh);
### Basic Usage ### Basic Usage
The `refresh` event will be triggered when pull refresh, you should set `v-model` to `false` to reset loading status after process refresh event. The `refresh` event will be Emitted when pull refresh, you should set `v-model` to `false` to reset loading status after process refresh event.
```html ```html
<van-pull-refresh v-model="isLoading" @refresh="onRefresh"> <van-pull-refresh v-model="isLoading" @refresh="onRefresh">
@ -109,9 +109,9 @@ Use slots to custom tips.
### Events ### Events
| Event | Description | Parameters | | Event | Description | Parameters |
| ------- | --------------------------- | ---------- | | ------- | ----------------------------- | ---------- |
| refresh | Triggered when pull refresh | - | | refresh | Emitted after pulling refresh | - |
### Slots ### Slots

View File

@ -171,15 +171,15 @@ export default {
### Radio Events ### Radio Events
| Event | Description | Parameters | | Event | Description | Parameters |
| ----- | -------------------------- | -------------- | | ----- | ----------------------------- | -------------- |
| click | Triggered when click radio | _event: Event_ | | click | Emitted when radio is clicked | _event: Event_ |
### RadioGroup Events ### RadioGroup Events
| Event | Description | Parameters | | Event | Description | Parameters |
| ------ | ---------------------------- | -------------- | | ------ | -------------------------- | -------------- |
| change | Triggered when value changed | _name: string_ | | change | Emitted when value changed | _name: string_ |
### Radio Slots ### Radio Slots

View File

@ -118,6 +118,6 @@ export default {
### Events ### Events
| Event | Description | Parameters | | Event | Description | Parameters |
| ------ | --------------------------- | ------------ | | ------ | ------------------------- | ------------ |
| change | Triggered when rate changed | current rate | | change | Emitted when rate changed | current rate |

View File

@ -29,7 +29,7 @@ export default {
### Listen to Events ### Listen to Events
`search` event will be triggered when click the search button on the keyboard, `cancel` event will be triggered when click the cancel button. `search` event will be Emitted when click the search button on the keyboard, `cancel` event will be Emitted when click the cancel button.
```html ```html
<form action="/"> <form action="/">
@ -90,7 +90,7 @@ export default {
### Custom Action Button ### Custom Action Button
Use `action` slot to custom right button, `cancel` event will no longer be triggered when use this slot. Use `action` slot to custom right button, `cancel` event will no longer be Emitted when use this slot.
```html ```html
<van-search <van-search
@ -131,14 +131,14 @@ Use `action` slot to custom right button, `cancel` event will no longer be trigg
### Events ### Events
| Event | Description | Arguments | | Event | Description | Arguments |
| ------ | ---------------------------------- | --------------- | | ------ | ----------------------------------------- | --------------- |
| search | Triggered when confirm search | _value: string_ | | search | Emitted when confirming search | _value: string_ |
| input | Triggered when input value changed | _value: string_ | | input | Emitted when input value changed | _value: string_ |
| focus | Triggered when input gets focus | _event: Event_ | | focus | Emitted when input is focused | _event: Event_ |
| blur | Triggered when input loses focus | _event: Event_ | | blur | Emitted when input is blured | _event: Event_ |
| clear | Triggered when click clear icon | _event: Event_ | | clear | Emitted when the clear icon is clicked | _event: Event_ |
| cancel | Triggered when click cancel button | - | | cancel | Emitted when the cancel button is clicked | - |
### Slots ### Slots

View File

@ -119,7 +119,7 @@ export default {
| lock-scroll | Whether to lock background scroll | _boolean_ | `true` | | lock-scroll | Whether to lock background scroll | _boolean_ | `true` |
| lazy-render | Whether to lazy render util appeared | _boolean_ | `true` | | lazy-render | Whether to lazy render util appeared | _boolean_ | `true` |
| close-on-popstate | Whether to close when popstate | _boolean_ | `true` | | close-on-popstate | Whether to close when popstate | _boolean_ | `true` |
| close-on-click-overlay | Whether to close when click overlay | _boolean_ | `true` | | close-on-click-overlay | Whether to close when overlay is clicked | _boolean_ | `true` |
| safe-area-inset-bottom | Whether to enable bottom safe area adaptation | _boolean_ | `true` | | safe-area-inset-bottom | Whether to enable bottom safe area adaptation | _boolean_ | `true` |
| get-container | Return the mount node for ShareSheet | _string \| () => Element_ | - | | get-container | Return the mount node for ShareSheet | _string \| () => Element_ | - |
@ -136,9 +136,9 @@ export default {
| Event | Description | Arguments | | Event | Description | Arguments |
| --- | --- | --- | | --- | --- | --- |
| select | Triggered when click option | _option: Option, index: number_ | | select | Emitted when an option is clicked | _option: Option, index: number_ |
| cancel | Triggered when click cancel button | - | | cancel | Emitted when the cancel button is clicked | - |
| click-overlay `v2.9.1` | Triggered when click overlay | - | | click-overlay `v2.9.1` | Emitted when overlay is clicked | - |
### Slots ### Slots

View File

@ -89,9 +89,9 @@ export default {
### Sidebar Events ### Sidebar Events
| Event | Description | Arguments | | Event | Description | Arguments |
| ------ | --------------------------- | ---------------------------- | | ------ | -------------------------------- | ---------------------------- |
| change | Triggered when item changed | index: index of current item | | change | Emitted when chosen item changed | index: index of current item |
### SidebarItem Props ### SidebarItem Props
@ -107,9 +107,9 @@ export default {
### SidebarItem Events ### SidebarItem Events
| Event | Description | Arguments | | Event | Description | Arguments |
| ----- | ------------------------- | ---------------------------- | | ----- | ------------------------------- | ---------------------------- |
| click | Triggered when click item | index: index of current item | | click | Emitted when an item is clicked | index: index of current item |
### SidebarItem Slots ### SidebarItem Slots

View File

@ -130,7 +130,7 @@ export default {
| reset-stepper-on-hide | Whether to reset stepper when hide | _boolean_ | `false` | | reset-stepper-on-hide | Whether to reset stepper when hide | _boolean_ | `false` |
| reset-selected-sku-on-hide | Whether to reset selected sku when hide | _boolean_ | `false` | | reset-selected-sku-on-hide | Whether to reset selected sku when hide | _boolean_ | `false` |
| disable-stepper-input | Whether to disable stepper input | _boolean_ | `false` | | disable-stepper-input | Whether to disable stepper input | _boolean_ | `false` |
| close-on-click-overlay | Whether to close sku popup when click overlay | _boolean_ | `true` | | close-on-click-overlay | Whether to close sku popup when overlay is clicked | _boolean_ | `true` |
| stepper-title | Quantity title | _string_ | `Quantity` | | stepper-title | Quantity title | _string_ | `Quantity` |
| custom-stepper-config | Custom stepper related config | _object_ | `{}` | | custom-stepper-config | Custom stepper related config | _object_ | `{}` |
| message-config | Message related config | _object_ | `{}` | | message-config | Message related config | _object_ | `{}` |
@ -146,14 +146,14 @@ export default {
| Event | Description | Arguments | | Event | Description | Arguments |
| --- | --- | --- | | --- | --- | --- |
| add-cart | Triggered when click cart button | data: object | | add-cart | Emitted when click cart button | data: object |
| buy-clicked | Triggered when click buy button | data: object | | buy-clicked | Emitted when click buy button | data: object |
| stepper-change | Triggered when stepper value changed | value: number | | stepper-change | Emitted when stepper value changed | value: number |
| sku-selected | Triggered when select sku | { skuValue, selectedSku, selectedSkuComb } | | sku-selected | Emitted when select sku | { skuValue, selectedSku, selectedSkuComb } |
| sku-prop-selected | Triggered when select property | { propValue, selectedProp, selectedSkuComb } | | sku-prop-selected | Emitted when select property | { propValue, selectedProp, selectedSkuComb } |
| open-preview | Triggered when open image preview | data: object | | open-preview | Emitted when open image preview | data: object |
| close-preview | Triggered when close image preview | data: object | | close-preview | Emitted when close image preview | data: object |
| sku-reset `v2.8.1` | Triggered when reset sku and property | { selectedSku, selectedProp, selectedSkuComb } | | sku-reset `v2.8.1` | Emitted when reset sku and property | { selectedSku, selectedProp, selectedSkuComb } |
### Methods ### Methods

View File

@ -159,12 +159,12 @@ export default {
### Events ### Events
| Event | Description | Arguments | | Event | Description | Arguments |
| ---------- | ------------------------------------ | ------------------- | | ---------- | ------------------------------ | ------------------- |
| input | Instant triggered when value changed | value: current rate | | input | Emitted when value is changing | value: current rate |
| change | Triggered after value changed | value: current rate | | change | Emitted after value changed | value: current rate |
| drag-start | Triggered when start drag | - | | drag-start | Emitted when start draging | - |
| drag-end | Triggered when end drag | - | | drag-end | Emitted when end draging | - |
### Slots ### Slots

View File

@ -135,9 +135,9 @@ export default {
| Event | Description | Arguments | | Event | Description | Arguments |
| --- | --- | --- | | --- | --- | --- |
| change | Triggered when value change | _value: string, detail: { name: string }_ | | change | Emitted when value changed | _value: string, detail: { name: string }_ |
| overlimit | Triggered when click disabled button | - | | overlimit | Emitted when a disabled button is clicked | - |
| plus | Triggered when click plus button | - | | plus | Emitted when the plus button is clicked | - |
| minus | Triggered when click minus button | - | | minus | Emitted when the minus button is clicked | - |
| focus | Triggered when input focused | _event: Event_ | | focus | Emitted when the input is focused | _event: Event_ |
| blur | Triggered when input blured | _event: Event_ | | blur | Emitted when the input is blured | _event: Event_ |

View File

@ -87,4 +87,4 @@ export default {
| Event | Description | Arguments | | Event | Description | Arguments |
| --- | --- | --- | | --- | --- | --- |
| click-step `v2.5.9` | Triggered when a step's title or icon is clicked | _index: number_ | | click-step `v2.5.9` | Emitted when a step's title or icon is clicked | _index: number_ |

View File

@ -62,6 +62,6 @@ export default {
### Events ### Events
| Event | Description | Arguments | | Event | Description | Arguments |
| ------ | --------------------- | ------------------------------ | | ------ | ---------------------- | ------------------------------ |
| scroll | Triggered when scroll | object: { scrollTop, isFixed } | | scroll | Emitted when scrolling | object: { scrollTop, isFixed } |

View File

@ -117,9 +117,9 @@ export default {
| Event | Description | Arguments | | Event | Description | Arguments |
| --- | --- | --- | | --- | --- | --- |
| click | Triggered when clicked | Click positon (`left` `right` `cell` `outside`) | | click | Emitted when SwipeCell is clicked | Click positon (`left` `right` `cell` `outside`) |
| open | Triggered when opened | { position: 'left' \| 'right' , name: string } | | open | Emitted when SwipeCell is opened | { position: 'left' \| 'right' , name: string } |
| close | Triggered when closed | { position: string , name: string } | | close | Emitted when SwipeCell is closed | { position: string , name: string } |
### beforeClose Params ### beforeClose Params

View File

@ -175,15 +175,15 @@ export default {
### Swipe Events ### Swipe Events
| Event | Description | Arguments | | Event | Description | Arguments |
| ------ | ----------------------------------- | ----------------------------- | | ------ | ---------------------------------- | ----------------------------- |
| change | Triggered when current swipe change | index: index of current swipe | | change | Emitted when current swipe changed | index: index of current swipe |
### SwipeItem Events ### SwipeItem Events
| Event | Description | Arguments | | Event | Description | Arguments |
| ----- | ---------------------- | -------------- | | ----- | --------------------------------- | -------------- |
| click | Triggered when clicked | _event: Event_ | | click | Emitted when component is clicked | _event: Event_ |
### Swipe Methods ### Swipe Methods

View File

@ -75,4 +75,4 @@ Use `loading` property to keep component in loading state.
| Event | Description | Arguments | | Event | Description | Arguments |
| --- | --- | --- | | --- | --- | --- |
| change | triggered when the on-off state is changed | checked: switch is on or not | | change | Emitted when the on-off state is changed | checked: switch is on or not |

View File

@ -104,7 +104,7 @@ export default {
### Events ### Events
| Event | Description | Parameters | | Event | Description | Parameters |
| ------ | ----------------------------------- | -------------- | | ------ | --------------------------------- | -------------- |
| change | Triggered when check status changed | _value: any_ | | change | Emitted when check status changed | _value: any_ |
| click | Triggered when clicked | _event: Event_ | | click | Emitted when component is clicked | _event: Event_ |

View File

@ -257,11 +257,11 @@ export default {
| Event | Description | Arguments | | Event | Description | Arguments |
| --- | --- | --- | | --- | --- | --- |
| click | Triggered when click tab | nametitle | | click | Emitted when a tab is clicked | nametitle |
| change | Triggered when active tab changed | nametitle | | change | Emitted when active tab changed | nametitle |
| disabled | Triggered when click disabled tab | nametitle | | disabled | Emitted when a disabled tab is clicked | nametitle |
| rendered `v2.3.0` | Triggered when content first rendered in lazy-render mode | nametitle | | rendered `v2.3.0` | Emitted when content first rendered in lazy-render mode | nametitle |
| scroll | Triggered when tab scroll in sticky mode | object: { scrollTop, isFixed } | | scroll | Emitted when tab scrolling in sticky mode | object: { scrollTop, isFixed } |
### Tabs Methods ### Tabs Methods

View File

@ -166,7 +166,7 @@ export default {
| Event | Description | Arguments | | Event | Description | Arguments |
| ------ | -------------------------------- | ---------------------------- | | ------ | -------------------------------- | ---------------------------- |
| change | Triggered when change active tab | active: index of current tab | | change | Emitted when changing active tab | active: index of current tab |
### TabbarItem Props ### TabbarItem Props

View File

@ -100,7 +100,7 @@ export default {
### Events ### Events
| Event | Description | Arguments | | Event | Description | Arguments |
| ----- | ------------------------------- | -------------- | | ----- | ---------------------------------- | -------------- |
| click | Triggered when clicked | _event: Event_ | | click | Emitted when component is clicked | _event: Event_ |
| close | Triggered when click close icon | - | | close | Emitted when close icon is clicked | - |

View File

@ -160,7 +160,7 @@ Toast.resetDefaultOptions('loading');
| overlay | Whether to show overlay | _boolean_ | `false` | | overlay | Whether to show overlay | _boolean_ | `false` |
| forbidClick | Whether to forbid click background | _boolean_ | `false` | | forbidClick | Whether to forbid click background | _boolean_ | `false` |
| closeOnClick | Whether to close after clicked | _boolean_ | `false` | | closeOnClick | Whether to close after clicked | _boolean_ | `false` |
| closeOnClickOverlay | Whether to close when click overlay | _boolean_ | `false` | | closeOnClickOverlay | Whether to close when overlay is clicked | _boolean_ | `false` |
| loadingType | Loading icon type, can be set to `spinner` | _string_ | `circular` | | loadingType | Loading icon type, can be set to `spinner` | _string_ | `circular` |
| duration | Toast duration(ms), won't disappear if value is 0 | _number_ | `2000` | | duration | Toast duration(ms), won't disappear if value is 0 | _number_ | `2000` |
| className | Custom className | _any_ | - | | className | Custom className | _any_ | - |

View File

@ -124,8 +124,8 @@ export default {
| Event | Description | Arguments | | Event | Description | Arguments |
| --- | --- | --- | | --- | --- | --- |
| click-nav | triggered when parent node is selected | index: index of selected parent | | click-nav | Emitted when parent node is selected | index: index of selected parent |
| click-item | triggered when item is selected | data: selected item | | click-item | Emitted when item is selected | data: selected item |
### Slots ### Slots

View File

@ -202,7 +202,7 @@ Use `disabled` prop to disable uploader.
| name | Input name | _number \| string_ | - | | name | Input name | _number \| string_ | - |
| preview-size | Size of preview image | _number \| string_ | `80px` | | preview-size | Size of preview image | _number \| string_ | `80px` |
| preview-image | Whether to show image preview | _boolean_ | `true` | | preview-image | Whether to show image preview | _boolean_ | `true` |
| preview-full-image | Whethe to show full screen image preview when click image | _boolean_ | `true` | | preview-full-image | Whethe to show full screen image preview when image is clicked | _boolean_ | `true` |
| preview-options `v2.9.3` | Options of full screen image previewsee [ImagePreview](#/en-US/image-preview) | _object_ | - | | preview-options `v2.9.3` | Options of full screen image previewsee [ImagePreview](#/en-US/image-preview) | _object_ | - |
| multiple | Whether to enable multiple selection pictures | _boolean_ | `false` | | multiple | Whether to enable multiple selection pictures | _boolean_ | `false` |
| disabled | Whether to disabled the upload | _boolean_ | `false` | | disabled | Whether to disabled the upload | _boolean_ | `false` |
@ -224,10 +224,10 @@ Use `disabled` prop to disable uploader.
| Event | Description | Arguments | | Event | Description | Arguments |
| --- | --- | --- | | --- | --- | --- |
| oversize | Triggered when file size over limit | Same as after-read | | oversize | Emitted when file size over limit | Same as after-read |
| click-preview | Triggered when click preview image | Same as after-read | | click-preview | Emitted when preview image is clicked | Same as after-read |
| close-preview | Triggered when close full screen image preview | - | | close-preview | Emitted when the full screen image preview is closed | - |
| delete | Triggered when delete preview file | Same as after-read | | delete | Emitted when preview file is deleted | Same as after-read |
### Slots ### Slots