Skip to content

Commit

Permalink
fix: select auto width (#1006)
Browse files Browse the repository at this point in the history
* fix: select auto width

* test: update snapshot

* feat: update common
  • Loading branch information
xiaosansiji authored Jun 15, 2022
1 parent 8008f58 commit 590d576
Show file tree
Hide file tree
Showing 8 changed files with 318 additions and 125 deletions.
2 changes: 2 additions & 0 deletions src/calendar/calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ export default mixins(getConfigReceiverMixins<Vue, CalendarConfig>('calendar')).
v-model={this.curSelectedYear}
size={this.controlSize}
disabled={this.isYearDisabled}
autoWidth={true}
props={{ ...this.controllerConfigData.year.selectProps }}
>
{this.yearSelectOptionList.map((item) => (
Expand All @@ -544,6 +545,7 @@ export default mixins(getConfigReceiverMixins<Vue, CalendarConfig>('calendar')).
v-model={this.curSelectedMonth}
size={this.controlSize}
disabled={this.isMonthDisabled}
autoWidth={true}
props={{ ...this.controllerConfigData.month.selectProps }}
>
{this.monthSelectOptionList.map((item) => (
Expand Down
1 change: 1 addition & 0 deletions src/color-picker/panel/format/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export default defineComponent({
<div class={`${baseClassName}__format`}>
<div class={`${baseClassName}__format--item`}>
<t-select
autoWidth={true}
{...selectInputProps}
popupProps={{
overlayClassName: `${baseClassName}__select-options`,
Expand Down
128 changes: 64 additions & 64 deletions test/ssr/__snapshots__/ssr.test.js.snap

Large diffs are not rendered by default.

Loading

0 comments on commit 590d576

Please sign in to comment.