Skip to content

Commit

Permalink
Merge branch 'v4' of https://github.com/jdf2e/nutui into v4
Browse files Browse the repository at this point in the history
  • Loading branch information
szg2008 committed Jan 7, 2023
2 parents 8473f1e + 30f4fdb commit 18db8df
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 18 deletions.
2 changes: 0 additions & 2 deletions src/packages/__VUE/calendar/doc.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -657,8 +657,6 @@ The component provides the following CSS variables, which can be used to customi
| --nut-calendar-text-font| _var(--nut-font-size-1)_ |
| --nut-calendar-day-font| _16px_ |
| --nut-calendar-day-active-border-radius| _0px_ |
| --nut-calendar-day-width| _14.28%_ |
| --nut-calendar-day-height| _64px_ |
| --nut-calendar-day-font-weight| _500_ |
| --nut-calendar-day67-font-color| _var(--nut-primary-color)_ |
| --nut-calendar-month-title-font-size| _inherit_ |
Expand Down
2 changes: 0 additions & 2 deletions src/packages/__VUE/calendar/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -667,8 +667,6 @@ export default {
| --nut-calendar-text-font| _var(--nut-font-size-1)_ |
| --nut-calendar-day-font| _16px_ |
| --nut-calendar-day-active-border-radius| _0px_ |
| --nut-calendar-day-width| _14.28%_ |
| --nut-calendar-day-height| _64px_ |
| --nut-calendar-day-font-weight| _500_ |
| --nut-calendar-day67-font-color| _var(--nut-primary-color)_ |
| --nut-calendar-month-title-font-size| _inherit_ |
2 changes: 0 additions & 2 deletions src/packages/__VUE/calendar/doc.taro.md
Original file line number Diff line number Diff line change
Expand Up @@ -661,8 +661,6 @@ export default {
| --nut-calendar-text-font| _var(--nut-font-size-1)_ |
| --nut-calendar-day-font| _16px_ |
| --nut-calendar-day-active-border-radius| _0px_ |
| --nut-calendar-day-width| _14.28%_ |
| --nut-calendar-day-height| _64px_ |
| --nut-calendar-day-font-weight| _500_ |
| --nut-calendar-day67-font-color| _var(--nut-primary-color)_ |
| --nut-calendar-month-title-font-size| _inherit_ |
Expand Down
4 changes: 2 additions & 2 deletions src/packages/__VUE/calendar/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@
}
.nut-calendar__day {
float: left;
width: $calendar-day-width;
height: $calendar-day-height;
width: 14.28%;
height: 64px;
font-weight: $calendar-day-font-weight;
display: flex;
align-items: center;
Expand Down
7 changes: 5 additions & 2 deletions src/packages/__VUE/calendaritem/index.taro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -766,9 +766,12 @@ export default create({
let toFixed = 3;
if (TARO_ENV === Taro.ENV_TYPE.WEB) {
toFixed = 5;
let fontSize = document.documentElement.style.fontSize;
scale = Number((Number.parseInt(fontSize) / 40).toFixed(toFixed));
} else {
let screenWidth = res.screenWidth;
scale = Number((screenWidth / 750).toFixed(toFixed));
}
let fontSize = document.documentElement.style.fontSize;
scale = Number((Number.parseInt(fontSize) / 40).toFixed(toFixed));
scalePx.value = scale;
initData();
}
Expand Down
2 changes: 0 additions & 2 deletions src/packages/styles/variables-jdb.scss
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,6 @@ $calendar-sub-title-font: $font-size-2 !default;
$calendar-text-font: $font-size-1 !default;
$calendar-day-font: 16px !default;
$calendar-day-active-border-radius: 0px !default;
$calendar-day-width: 14.28% !default;
$calendar-day-height: 64px !default;
$calendar-day-font-weight: 500 !default;
$calendar-day67-font-color: $primary-color !default;
$calendar-month-title-font-size: inherit !default;
Expand Down
2 changes: 0 additions & 2 deletions src/packages/styles/variables-jddkh.scss
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,6 @@ $calendar-sub-title-font: $font-size-2 !default;
$calendar-text-font: $font-size-1 !default;
$calendar-day-font: 16px !default;
$calendar-day-active-border-radius: 0px !default;
$calendar-day-width: 14.28% !default;
$calendar-day-height: 54px !default;
$calendar-day-font-weight: 500 !default;
$calendar-day67-font-color: $primary-color !default;
$calendar-month-title-font-size: $font-size-2 !default;
Expand Down
2 changes: 0 additions & 2 deletions src/packages/styles/variables-jdt.scss
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,6 @@ $calendar-sub-title-font: var(--nut-calendar-sub-title-font, $font-size-2) !defa
$calendar-text-font: var(--nut-calendar-text-font, $font-size-1) !default;
$calendar-day-font: var(--nut-calendar-day-font, 16px) !default;
$calendar-day-active-border-radius: var(--nut-calendar-day-active-border-radius, 4px) !default;
$calendar-day-width: var(--nut-calendar-day-width, 14.28%) !default;
$calendar-day-height: var(--nut-calendar-day-height, 64px) !default;
$calendar-day-font-weight: var(--nut-calendar-day-font-weight, normal) !default;
$calendar-day67-font-color: var(--nut-calendar-day67-font-color, $primary-color) !default;
$calendar-month-title-font-size: var(--nut-calendar-month-title-font-size, inherit) !default;
Expand Down
2 changes: 0 additions & 2 deletions src/packages/styles/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,6 @@ $calendar-sub-title-font: var(--nut-calendar-sub-title-font, $font-size-2) !defa
$calendar-text-font: var(--nut-calendar-text-font, $font-size-1) !default;
$calendar-day-font: var(--nut-calendar-day-font, 16px) !default;
$calendar-day-active-border-radius: var(--nut-calendar-day-active-border-radius, 0px) !default;
$calendar-day-width: var(--nut-calendar-day-width, 14.28%) !default;
$calendar-day-height: var(--nut-calendar-day-height, 64px) !default;
$calendar-day-font-weight: var(--nut-calendar-day-font-weight, 500) !default;
$calendar-day67-font-color: var(--nut-calendar-day67-font-color, $primary-color) !default;
$calendar-month-title-font-size: var(--nut-calendar-month-title-font-size, inherit) !default;
Expand Down

0 comments on commit 18db8df

Please sign in to comment.