mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-04 04:08:34 +08:00
chore: format (#14200)
This commit is contained in:
parent
95494b7154
commit
9b0a8f8c9a
@ -51,12 +51,12 @@ card/shadow
|
||||
|
||||
### Attributes
|
||||
|
||||
| Name | Description | Type | Default |
|
||||
| ---------- | ------------------------------------------------------------- | --------------------------------- | ------- |
|
||||
| header | title of the card. Also accepts a DOM passed by `slot#header` | ^[string] | — |
|
||||
| body-style | CSS style of card body | ^[object]`CSSProperties` | — |
|
||||
| Name | Description | Type | Default |
|
||||
| -------------------- | ------------------------------------------------------------- | --------------------------------- | ------- |
|
||||
| header | title of the card. Also accepts a DOM passed by `slot#header` | ^[string] | — |
|
||||
| body-style | CSS style of card body | ^[object]`CSSProperties` | — |
|
||||
| body-class ^(2.3.10) | custom class name of card body | ^[string] | — |
|
||||
| shadow | when to show card shadows | ^[enum]`always \| never \| hover` | always |
|
||||
| shadow | when to show card shadows | ^[enum]`always \| never \| hover` | always |
|
||||
|
||||
### Slots
|
||||
|
||||
|
@ -189,7 +189,7 @@ Note, date time locale (month name, first day of the week ...) are also configur
|
||||
## Methods
|
||||
|
||||
| Method | Description | Parameters |
|
||||
|-----------------------| --------------------------- | ---------- |
|
||||
| --------------------- | --------------------------- | ---------- |
|
||||
| focus | focus the Input component | — |
|
||||
| handleOpen ^(2.2.16) | open the DatePicker popper | — |
|
||||
| handleClose ^(2.2.16) | close the DatePicker popper | — |
|
||||
|
@ -84,7 +84,7 @@ input-number/controlled
|
||||
### Attributes
|
||||
|
||||
| Name | Description | Type | Default |
|
||||
|-------------------------| ------------------------------------------------ | --------------------------------------------- | --------- |
|
||||
| ----------------------- | ------------------------------------------------ | --------------------------------------------- | --------- |
|
||||
| model-value / v-model | binding value | ^[number] | — |
|
||||
| min | the minimum allowed value | ^[number] | -Infinity |
|
||||
| max | the maximum allowed value | ^[number] | Infinity |
|
||||
|
@ -84,7 +84,7 @@ pagination/more-elements
|
||||
| next-text | text for the next button | ^[string] | '' |
|
||||
| next-icon | icon for the next button, has a lower priority than `next-text` | ^[string] / ^[Component] | ArrowRight |
|
||||
| disabled | whether Pagination is disabled | ^[boolean] | false |
|
||||
| teleported ^(2.3.13) | whether Pagination select dropdown is teleported to the body | ^[boolean] | true |
|
||||
| teleported ^(2.3.13) | whether Pagination select dropdown is teleported to the body | ^[boolean] | true |
|
||||
| hide-on-single-page | whether to hide when there's only one page | ^[boolean] | false |
|
||||
|
||||
:::warning
|
||||
|
@ -104,7 +104,7 @@ Use `css/scss` language to change the global or local color. We set some global
|
||||
| disabled-void-icon | component of unselected read-only icons | ^[string] / ^[Component] | StarFilled |
|
||||
| show-text | whether to display texts | ^[boolean] | false |
|
||||
| show-score | whether to display current score. show-score and show-text cannot be true at the same time | ^[boolean] | false |
|
||||
| text-color | color of texts | ^[string] | '' |
|
||||
| text-color | color of texts | ^[string] | '' |
|
||||
| texts | text array | ^[array]`string[]` | ['Extremely bad', 'Disappointed', 'Fair', 'Satisfied', 'Surprise'] |
|
||||
| score-template | score template | ^[string] | {value} |
|
||||
| clearable ^(2.2.18) | whether value can be reset to `0` | ^[boolean] | false |
|
||||
|
@ -87,7 +87,7 @@ time-picker/range
|
||||
### Exposes
|
||||
|
||||
| Name | Description | Type |
|
||||
|-----------------------| --------------------------- | ------------------------------------------------- |
|
||||
| --------------------- | --------------------------- | ------------------------------------------------- |
|
||||
| focus | focus the Input component | ^[Function]`(e: FocusEvent \| undefined) => void` |
|
||||
| blur | blur the Input component | ^[Function]`(e: FocusEvent \| undefined) => void` |
|
||||
| handleOpen ^(2.2.16) | open the TimePicker popper | ^[Function]`() => void` |
|
||||
|
@ -47,22 +47,22 @@ transfer/prop-alias
|
||||
|
||||
### Attributes
|
||||
|
||||
| Name | Description | Type | Default |
|
||||
| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- | -------- |
|
||||
| model-value / v-model | binding value | ^[object]`Array<string \| number>` | [] |
|
||||
| Name | Description | Type | Default |
|
||||
| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ | -------- |
|
||||
| model-value / v-model | binding value | ^[object]`Array<string \| number>` | [] |
|
||||
| data | data source | ^[object]`Record<string, any>[]` | [] |
|
||||
| filterable | whether Transfer is filterable | ^[boolean] | false |
|
||||
| filter-placeholder | placeholder for the filter input | ^[string] | — |
|
||||
| filterable | whether Transfer is filterable | ^[boolean] | false |
|
||||
| filter-placeholder | placeholder for the filter input | ^[string] | — |
|
||||
| filter-method | custom filter method | ^[Function]`(query: string, item: Record<string, any>) => boolean` | — |
|
||||
| target-order | order strategy for elements in the target list. If set to `original`, the elements will keep the same order as the data source. If set to `push`, the newly added elements will be pushed to the bottom. If set to `unshift`, the newly added elements will be inserted on the top | ^[enum]`'original' \| 'push' \| 'unshift'` | original |
|
||||
| titles | custom list titles | ^[object]`[string, string]` | [] |
|
||||
| button-texts | custom button texts | ^[object]`[string, string]` | [] |
|
||||
| render-content | custom render function for data items | ^[object]`renderContent` | — |
|
||||
| format | texts for checking status in list header | ^[object]`TransferFormat` | {} |
|
||||
| props | prop aliases for data source | ^[object]`TransferPropsAlias` | — |
|
||||
| left-default-checked | key array of initially checked data items of the left list | ^[object]`Array<string \| number>` | [] |
|
||||
| right-default-checked | key array of initially checked data items of the right list | ^[object]`Array<string \| number>` | [] |
|
||||
| validate-event | whether to trigger form validation | ^[boolean] | true |
|
||||
| target-order | order strategy for elements in the target list. If set to `original`, the elements will keep the same order as the data source. If set to `push`, the newly added elements will be pushed to the bottom. If set to `unshift`, the newly added elements will be inserted on the top | ^[enum]`'original' \| 'push' \| 'unshift'` | original |
|
||||
| titles | custom list titles | ^[object]`[string, string]` | [] |
|
||||
| button-texts | custom button texts | ^[object]`[string, string]` | [] |
|
||||
| render-content | custom render function for data items | ^[object]`renderContent` | — |
|
||||
| format | texts for checking status in list header | ^[object]`TransferFormat` | {} |
|
||||
| props | prop aliases for data source | ^[object]`TransferPropsAlias` | — |
|
||||
| left-default-checked | key array of initially checked data items of the left list | ^[object]`Array<string \| number>` | [] |
|
||||
| right-default-checked | key array of initially checked data items of the right list | ^[object]`Array<string \| number>` | [] |
|
||||
| validate-event | whether to trigger form validation | ^[boolean] | true |
|
||||
|
||||
### Events
|
||||
|
||||
@ -100,10 +100,7 @@ type TransferDirection = 'left' | 'right'
|
||||
|
||||
type TransferDataItem = Record<string, any>
|
||||
|
||||
type renderContent = (
|
||||
h: typeof H,
|
||||
option: TransferDataItem
|
||||
) => VNode | VNode[]
|
||||
type renderContent = (h: typeof H, option: TransferDataItem) => VNode | VNode[]
|
||||
|
||||
interface TransferFormat {
|
||||
noChecked?: string
|
||||
|
Loading…
Reference in New Issue
Block a user