Skip to content

Commit

Permalink
Merge pull request #12565 from element-plus/dev
Browse files Browse the repository at this point in the history
D2M
  • Loading branch information
iamkun committed Apr 23, 2023
2 parents 5a27b16 + ea5d261 commit 61e6c41
Show file tree
Hide file tree
Showing 88 changed files with 809 additions and 430 deletions.
30 changes: 30 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
## Changelog

### 2.3.4

_2023-04-23_

#### Features

- Components [button] add tag attribute (#11853 by @tolking)
- Components [progress] support set striped progress bar (#12333 by @wzc520pyfm)
- Docs document preview jumps to playground with pr number (#12365 by @btea)
- Components [tree] support customize content when data is empty (#12459 by @heappynd)

#### Bug fixes

- Components [image] Display error content when picture loading fails (#11600 by @ljf1834)
- Components [select] delete key should not choose tag (#12200 by @MrWeilian)
- Components [date-picker] optimize props definition and export (#12199 by @Brain777777)
- Components [menu] change declartion of ulStyle to setup function (#12319 by @CeceWall)
- Components [input] Write Chinese in parenthesis, letters repeat (#12154 by @HeftyKoo)
- Components [loading] fix zIndex (#12442 by @pan2-2)
- Components [dropdown] improve types (#12514 by @ModyQyW)
- Components [select] correct update selectSize (#11973 by @acyza)
- Build(components): fix generateExternal use wrong reference (#12180 by @daolanfler)
- Chore(build): optimize the type conversion of tag plugin (#11590 by @tolking)
- Style(theme-chalk): [menu] horizontal mode submenu line-high (#11848 by @WindBearr)
- Style(theme-chalk): [transfer] improve transfer filter style (#12454 by @wjw-gavin)

#### Refactors

- Extract isClient and isNumber isBoolean (#12504 by @btea)

### 2.3.3

_2023-04-07_
Expand Down
7 changes: 6 additions & 1 deletion docs/.vitepress/vitepress/composables/use-playground.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ export const usePlayground = (source: string) => {
}

const encoded = utoa(JSON.stringify(originCode))
const link = `https://element-plus.run/#${encoded}`
const isPreview = location.host.startsWith('preview')
let link = `https://element-plus.run/#${encoded}`
if (isPreview) {
const pr = location.host.split('-', 2)[1]
link = `https://element-plus.run/?pr=${pr}#${encoded}`
}
return {
encoded,
link,
Expand Down
40 changes: 20 additions & 20 deletions docs/en-US/component/autocomplete.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,26 +47,26 @@ autocomplete/remote-search

### Attributes

| Name | Description | Type | Default |
| -------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ------------ |
| model-value / v-model | binding value | ^[string] | β€” |
| placeholder | the placeholder of Autocomplete | ^[string] | β€” |
| clearable | whether to show clear button | ^[boolean] | false |
| disabled | whether Autocomplete is disabled | ^[boolean] | false |
| value-key | key name of the input suggestion object for display | ^[string] | value |
| debounce | debounce delay when typing, in milliseconds | ^[number] | 300 |
| placement | placement of the popup menu | ^[enum]`'top' \| 'top- start' \| 'top-end' \| 'bottom' \| 'bottom-start' \| 'bottom-end'` | bottom-start |
| fetch-suggestions | a method to fetch input suggestions. When suggestions are ready, invoke `callback(data:[])` to return them to Autocomplete | ^[Function]`(queryString: string, callback: callbackfn) => void` | β€” |
| trigger-on-focus | whether show suggestions when input focus | ^[boolean] | true |
| select-when-unmatched | whether to emit a `select` event on enter when there is no autocomplete match | ^[boolean] | false |
| name | same as `name` in native input | ^[string] | β€” |
| label | label text | ^[string] | β€” |
| hide-loading | whether to hide the loading icon in remote search | ^[boolean] | false |
| popper-class | custom class name for autocomplete's dropdown | ^[string] | β€” |
| popper-append-to-body<DeprecatedTag /> | whether to append the dropdown to body. If the positioning of the dropdown is wrong, you can try to set this prop to false | ^[boolean] | false |
| teleported | whether select dropdown is teleported to the body | ^[boolean] | true |
| highlight-first-item | whether to highlight first item in remote search suggestions by default | ^[boolean] | false |
| fit-input-width | whether the width of the dropdown is the same as the input | ^[boolean] | false |
| Name | Description | Type | Default |
| ----------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ------------ |
| model-value / v-model | binding value | ^[string] | β€” |
| placeholder | the placeholder of Autocomplete | ^[string] | β€” |
| clearable | whether to show clear button | ^[boolean] | false |
| disabled | whether Autocomplete is disabled | ^[boolean] | false |
| value-key | key name of the input suggestion object for display | ^[string] | value |
| debounce | debounce delay when typing, in milliseconds | ^[number] | 300 |
| placement | placement of the popup menu | ^[enum]`'top' \| 'top- start' \| 'top-end' \| 'bottom' \| 'bottom-start' \| 'bottom-end'` | bottom-start |
| fetch-suggestions | a method to fetch input suggestions. When suggestions are ready, invoke `callback(data:[])` to return them to Autocomplete | ^[Function]`(queryString: string, callback: callbackfn) => void` | β€” |
| trigger-on-focus | whether show suggestions when input focus | ^[boolean] | true |
| select-when-unmatched | whether to emit a `select` event on enter when there is no autocomplete match | ^[boolean] | false |
| name | same as `name` in native input | ^[string] | β€” |
| label | label text | ^[string] | β€” |
| hide-loading | whether to hide the loading icon in remote search | ^[boolean] | false |
| popper-class | custom class name for autocomplete's dropdown | ^[string] | β€” |
| popper-append-to-body ^(deprecated) | whether to append the dropdown to body. If the positioning of the dropdown is wrong, you can try to set this prop to false | ^[boolean] | false |
| teleported | whether select dropdown is teleported to the body | ^[boolean] | true |
| highlight-first-item | whether to highlight first item in remote search suggestions by default | ^[boolean] | false |
| fit-input-width | whether the width of the dropdown is the same as the input | ^[boolean] | false |

### Events

Expand Down

0 comments on commit 61e6c41

Please sign in to comment.