@douyinfe/semi-foundation 2.21.1 → 2.21.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  //@import '../theme/variables.scss';
2
2
  @import "./animation.scss";
3
- @import './variables.scss';
4
3
  @import './option.scss';
4
+ @import './variables.scss';
5
5
  @import './mixin.scss';
6
6
 
7
7
  $module: #{$prefix}-select;
@@ -7,6 +7,14 @@
7
7
  .semi-timepicker-panel .semi-scrolllist-body {
8
8
  height: 252px;
9
9
  }
10
+ .semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer-nocycle > ul:before,
11
+ .semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item > ul:before {
12
+ height: 108px;
13
+ }
14
+ .semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item > ul,
15
+ .semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer > ul {
16
+ padding-bottom: 108px;
17
+ }
10
18
  .semi-timepicker-panel .semi-scrolllist-item,
11
19
  .semi-timepicker-panel .semi-scrolllist-item-wheel {
12
20
  flex: none;
@@ -8,6 +8,22 @@ $module-list: #{$prefix}-scrolllist;
8
8
  &-panel {
9
9
  .#{$module-list}-body {
10
10
  height: $height-timePicker_panel_body;
11
+
12
+ .#{$module-list}-item-wheel .#{$module-list}-list-outer-nocycle,
13
+ .#{$module-list}-item {
14
+ & > ul {
15
+ &:before {
16
+ height: ($height-timePicker_panel_body - $height-scrollList_item) * 0.5;
17
+ }
18
+ }
19
+ }
20
+
21
+ .#{$module-list}-item,
22
+ .#{$module-list}-item-wheel .#{$module-list}-list-outer {
23
+ & > ul {
24
+ padding-bottom: ($height-timePicker_panel_body - $height-scrollList_item) * 0.5;
25
+ }
26
+ }
11
27
  }
12
28
 
13
29
  .#{$module-list}-item,
@@ -5,6 +5,7 @@ $color-timePicker_range_panel-border: rgba(0, 0, 0, .1); // 时间选择器描
5
5
  // Width/Height
6
6
  $width-timePicker_range_panel-border: 1px; // 时间选择器菜单分割线宽度
7
7
  $height-timePicker_panel_body: 252px; // 时间选择器菜单高度
8
+ $height-scrollList_item: 36px;
8
9
  $width-timePicker_panel_list_ampm: 72px; // 时间选择器菜单中列宽度 - 上午下午
9
10
  $width-timePicker_panel_list_hour: 64px; // 时间选择器菜单中列宽度 - 小时
10
11
  $width-timePicker_panel_list_minute: 64px; // 时间选择器菜单中列宽度 - 分钟
@@ -1,7 +1,7 @@
1
1
  //@import '../theme/variables.scss';
2
2
  @import "./animation.scss";
3
- @import './variables.scss';
4
3
  @import './option.scss';
4
+ @import './variables.scss';
5
5
  @import './mixin.scss';
6
6
 
7
7
  $module: #{$prefix}-select;
@@ -7,6 +7,14 @@
7
7
  .semi-timepicker-panel .semi-scrolllist-body {
8
8
  height: 252px;
9
9
  }
10
+ .semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer-nocycle > ul:before,
11
+ .semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item > ul:before {
12
+ height: 108px;
13
+ }
14
+ .semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item > ul,
15
+ .semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer > ul {
16
+ padding-bottom: 108px;
17
+ }
10
18
  .semi-timepicker-panel .semi-scrolllist-item,
11
19
  .semi-timepicker-panel .semi-scrolllist-item-wheel {
12
20
  flex: none;
@@ -8,6 +8,22 @@ $module-list: #{$prefix}-scrolllist;
8
8
  &-panel {
9
9
  .#{$module-list}-body {
10
10
  height: $height-timePicker_panel_body;
11
+
12
+ .#{$module-list}-item-wheel .#{$module-list}-list-outer-nocycle,
13
+ .#{$module-list}-item {
14
+ & > ul {
15
+ &:before {
16
+ height: ($height-timePicker_panel_body - $height-scrollList_item) * 0.5;
17
+ }
18
+ }
19
+ }
20
+
21
+ .#{$module-list}-item,
22
+ .#{$module-list}-item-wheel .#{$module-list}-list-outer {
23
+ & > ul {
24
+ padding-bottom: ($height-timePicker_panel_body - $height-scrollList_item) * 0.5;
25
+ }
26
+ }
11
27
  }
12
28
 
13
29
  .#{$module-list}-item,
@@ -5,6 +5,7 @@ $color-timePicker_range_panel-border: rgba(0, 0, 0, .1); // 时间选择器描
5
5
  // Width/Height
6
6
  $width-timePicker_range_panel-border: 1px; // 时间选择器菜单分割线宽度
7
7
  $height-timePicker_panel_body: 252px; // 时间选择器菜单高度
8
+ $height-scrollList_item: 36px;
8
9
  $width-timePicker_panel_list_ampm: 72px; // 时间选择器菜单中列宽度 - 上午下午
9
10
  $width-timePicker_panel_list_hour: 64px; // 时间选择器菜单中列宽度 - 小时
10
11
  $width-timePicker_panel_list_minute: 64px; // 时间选择器菜单中列宽度 - 分钟
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-foundation",
3
- "version": "2.21.1",
3
+ "version": "2.21.2",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build:lib": "node ./scripts/compileLib.js",
@@ -23,7 +23,7 @@
23
23
  "*.scss",
24
24
  "*.css"
25
25
  ],
26
- "gitHead": "ae80a064a1525cbc26fe498ac236beb0d075e362",
26
+ "gitHead": "c587f9996fa14bbe90539099a176d79b52c849f4",
27
27
  "devDependencies": {
28
28
  "@babel/plugin-transform-runtime": "^7.15.8",
29
29
  "@babel/preset-env": "^7.15.8",
@@ -1,7 +1,7 @@
1
1
  //@import '../theme/variables.scss';
2
2
  @import "./animation.scss";
3
- @import './variables.scss';
4
3
  @import './option.scss';
4
+ @import './variables.scss';
5
5
  @import './mixin.scss';
6
6
 
7
7
  $module: #{$prefix}-select;
@@ -8,6 +8,22 @@ $module-list: #{$prefix}-scrolllist;
8
8
  &-panel {
9
9
  .#{$module-list}-body {
10
10
  height: $height-timePicker_panel_body;
11
+
12
+ .#{$module-list}-item-wheel .#{$module-list}-list-outer-nocycle,
13
+ .#{$module-list}-item {
14
+ & > ul {
15
+ &:before {
16
+ height: ($height-timePicker_panel_body - $height-scrollList_item) * 0.5;
17
+ }
18
+ }
19
+ }
20
+
21
+ .#{$module-list}-item,
22
+ .#{$module-list}-item-wheel .#{$module-list}-list-outer {
23
+ & > ul {
24
+ padding-bottom: ($height-timePicker_panel_body - $height-scrollList_item) * 0.5;
25
+ }
26
+ }
11
27
  }
12
28
 
13
29
  .#{$module-list}-item,
@@ -5,6 +5,7 @@ $color-timePicker_range_panel-border: rgba(0, 0, 0, .1); // 时间选择器描
5
5
  // Width/Height
6
6
  $width-timePicker_range_panel-border: 1px; // 时间选择器菜单分割线宽度
7
7
  $height-timePicker_panel_body: 252px; // 时间选择器菜单高度
8
+ $height-scrollList_item: 36px;
8
9
  $width-timePicker_panel_list_ampm: 72px; // 时间选择器菜单中列宽度 - 上午下午
9
10
  $width-timePicker_panel_list_hour: 64px; // 时间选择器菜单中列宽度 - 小时
10
11
  $width-timePicker_panel_list_minute: 64px; // 时间选择器菜单中列宽度 - 分钟