@douyinfe/semi-foundation 2.81.0 → 2.82.0

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.
@@ -106,7 +106,7 @@ export default class YearAndMonthFoundation extends BaseFoundation<YearAndMonthA
106
106
  month[panelType] = item.month;
107
107
 
108
108
  // Make sure the time on the right panel is always greater than or equal to the time on the left panel
109
- if (type === 'monthRange' && panelType === left && currentYear[left] === currentYear[right] && item.value > month[right]) {
109
+ if (type === 'monthRange' && panelType === left && currentYear[left] === currentYear[right] && item.month > month[right]) {
110
110
  month[right] = item.month ;
111
111
  }
112
112
 
@@ -56,7 +56,7 @@ class YearAndMonthFoundation extends _foundation.default {
56
56
  const month = (0, _fastCopy.default)(currentMonth);
57
57
  month[panelType] = item.month;
58
58
  // Make sure the time on the right panel is always greater than or equal to the time on the left panel
59
- if (type === 'monthRange' && panelType === left && currentYear[left] === currentYear[right] && item.value > month[right]) {
59
+ if (type === 'monthRange' && panelType === left && currentYear[left] === currentYear[right] && item.month > month[right]) {
60
60
  month[right] = item.month;
61
61
  }
62
62
  this._adapter.setCurrentMonth(month);
@@ -52,7 +52,7 @@
52
52
  .semi-modal-content {
53
53
  position: relative;
54
54
  display: flex;
55
- height: 100%;
55
+ height: max-content;
56
56
  width: 100%;
57
57
  box-sizing: border-box;
58
58
  flex-direction: column;
@@ -48,7 +48,7 @@ $spacing-modal_content_fullscreen-top: 0px; // 模态框内容全屏顶部位置
48
48
  // Width/Height
49
49
  $width-modal_title: 100%; // 模态框标题宽度
50
50
  $width-modal_content: 100%; // 模态框内容宽度
51
- $height-modal_content: 100%; // 模态框内容高度
51
+ $height-modal_content: max-content; // 模态框内容高度
52
52
  $width-modal_content-border: 1px; // 模态框内容描边宽度
53
53
  $width-modal_small: 448px; // 模态框宽度 - 小
54
54
  $width-modal_medium: 684px; // 模态框宽度 - 中
@@ -72,6 +72,4 @@ $width-modal_footer-border:0; // 模态框 footer 顶部描边宽度
72
72
 
73
73
 
74
74
  //shadow
75
- $shadow-modal_content: var(--semi-shadow-elevated);
76
-
77
-
75
+ $shadow-modal_content: var(--semi-shadow-elevated);
@@ -245,7 +245,7 @@ $overflowList: #{$prefix}-overflow-list;
245
245
 
246
246
  .#{$module}-content-wrapper {
247
247
  width: 100%;
248
- min-height: $height-select_multiple_content_wrapper-minHeight;
248
+ min-height: $height-select_default - 2 * $width-select-border ;
249
249
  flex-wrap: wrap;
250
250
 
251
251
  &-empty {
@@ -276,13 +276,13 @@ $overflowList: #{$prefix}-overflow-list;
276
276
 
277
277
  &-multiple.#{$module}-large {
278
278
  .#{$module}-content-wrapper {
279
- min-height: $height-select_large - 2;
279
+ min-height: $height-select_large - 2 * $width-select-border;
280
280
  }
281
281
  }
282
282
 
283
283
  &-multiple.#{$module}-small {
284
284
  .#{$module}-content-wrapper {
285
- min-height: $height-select_small - 2;
285
+ min-height: $height-select_small - 2 * $width-select-border;
286
286
  }
287
287
  }
288
288
 
@@ -71,7 +71,6 @@ $width-select_arrow: 32px; // 选择器输入框下拉箭头宽度
71
71
  $width-select_arrow_empty: 12px; // 选择器输入框下拉箭头为空时(有suffix icon)宽度
72
72
  $width-select_clear-icon: 32px; // 选择器输入框清空按钮宽度
73
73
  $width-select_group_top-border: $border-thickness-control; // 选择器菜单分组标题描边宽度
74
- $height-select_multiple_content_wrapper-minHeight: $height-select_default - 2px; // 多项选择器标签组最小高度
75
74
 
76
75
  $height-select_multiple_input_small: 20px; // 小尺寸多项选择器输入框Input框高度
77
76
  $height-select_multiple_input_default: 24px; // 默认多项选择器输入框Input框高度
@@ -49,7 +49,7 @@ export default class YearAndMonthFoundation extends BaseFoundation {
49
49
  const month = copy(currentMonth);
50
50
  month[panelType] = item.month;
51
51
  // Make sure the time on the right panel is always greater than or equal to the time on the left panel
52
- if (type === 'monthRange' && panelType === left && currentYear[left] === currentYear[right] && item.value > month[right]) {
52
+ if (type === 'monthRange' && panelType === left && currentYear[left] === currentYear[right] && item.month > month[right]) {
53
53
  month[right] = item.month;
54
54
  }
55
55
  this._adapter.setCurrentMonth(month);
@@ -52,7 +52,7 @@
52
52
  .semi-modal-content {
53
53
  position: relative;
54
54
  display: flex;
55
- height: 100%;
55
+ height: max-content;
56
56
  width: 100%;
57
57
  box-sizing: border-box;
58
58
  flex-direction: column;
@@ -48,7 +48,7 @@ $spacing-modal_content_fullscreen-top: 0px; // 模态框内容全屏顶部位置
48
48
  // Width/Height
49
49
  $width-modal_title: 100%; // 模态框标题宽度
50
50
  $width-modal_content: 100%; // 模态框内容宽度
51
- $height-modal_content: 100%; // 模态框内容高度
51
+ $height-modal_content: max-content; // 模态框内容高度
52
52
  $width-modal_content-border: 1px; // 模态框内容描边宽度
53
53
  $width-modal_small: 448px; // 模态框宽度 - 小
54
54
  $width-modal_medium: 684px; // 模态框宽度 - 中
@@ -72,6 +72,4 @@ $width-modal_footer-border:0; // 模态框 footer 顶部描边宽度
72
72
 
73
73
 
74
74
  //shadow
75
- $shadow-modal_content: var(--semi-shadow-elevated);
76
-
77
-
75
+ $shadow-modal_content: var(--semi-shadow-elevated);
@@ -245,7 +245,7 @@ $overflowList: #{$prefix}-overflow-list;
245
245
 
246
246
  .#{$module}-content-wrapper {
247
247
  width: 100%;
248
- min-height: $height-select_multiple_content_wrapper-minHeight;
248
+ min-height: $height-select_default - 2 * $width-select-border ;
249
249
  flex-wrap: wrap;
250
250
 
251
251
  &-empty {
@@ -276,13 +276,13 @@ $overflowList: #{$prefix}-overflow-list;
276
276
 
277
277
  &-multiple.#{$module}-large {
278
278
  .#{$module}-content-wrapper {
279
- min-height: $height-select_large - 2;
279
+ min-height: $height-select_large - 2 * $width-select-border;
280
280
  }
281
281
  }
282
282
 
283
283
  &-multiple.#{$module}-small {
284
284
  .#{$module}-content-wrapper {
285
- min-height: $height-select_small - 2;
285
+ min-height: $height-select_small - 2 * $width-select-border;
286
286
  }
287
287
  }
288
288
 
@@ -71,7 +71,6 @@ $width-select_arrow: 32px; // 选择器输入框下拉箭头宽度
71
71
  $width-select_arrow_empty: 12px; // 选择器输入框下拉箭头为空时(有suffix icon)宽度
72
72
  $width-select_clear-icon: 32px; // 选择器输入框清空按钮宽度
73
73
  $width-select_group_top-border: $border-thickness-control; // 选择器菜单分组标题描边宽度
74
- $height-select_multiple_content_wrapper-minHeight: $height-select_default - 2px; // 多项选择器标签组最小高度
75
74
 
76
75
  $height-select_multiple_input_small: 20px; // 小尺寸多项选择器输入框Input框高度
77
76
  $height-select_multiple_input_default: 24px; // 默认多项选择器输入框Input框高度
@@ -48,7 +48,7 @@ $spacing-modal_content_fullscreen-top: 0px; // 模态框内容全屏顶部位置
48
48
  // Width/Height
49
49
  $width-modal_title: 100%; // 模态框标题宽度
50
50
  $width-modal_content: 100%; // 模态框内容宽度
51
- $height-modal_content: 100%; // 模态框内容高度
51
+ $height-modal_content: max-content; // 模态框内容高度
52
52
  $width-modal_content-border: 1px; // 模态框内容描边宽度
53
53
  $width-modal_small: 448px; // 模态框宽度 - 小
54
54
  $width-modal_medium: 684px; // 模态框宽度 - 中
@@ -72,6 +72,4 @@ $width-modal_footer-border:0; // 模态框 footer 顶部描边宽度
72
72
 
73
73
 
74
74
  //shadow
75
- $shadow-modal_content: var(--semi-shadow-elevated);
76
-
77
-
75
+ $shadow-modal_content: var(--semi-shadow-elevated);
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-foundation",
3
- "version": "2.81.0",
3
+ "version": "2.82.0",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build:lib": "node ./scripts/compileLib.js",
7
7
  "prepublishOnly": "npm run build:lib"
8
8
  },
9
9
  "dependencies": {
10
- "@douyinfe/semi-animation": "2.81.0",
11
- "@douyinfe/semi-json-viewer-core": "2.81.0",
10
+ "@douyinfe/semi-animation": "2.82.0",
11
+ "@douyinfe/semi-json-viewer-core": "2.82.0",
12
12
  "@mdx-js/mdx": "^3.0.1",
13
13
  "async-validator": "^3.5.0",
14
14
  "classnames": "^2.2.6",
@@ -29,7 +29,7 @@
29
29
  "*.scss",
30
30
  "*.css"
31
31
  ],
32
- "gitHead": "5fa3239b65dcbdca2a72a2f0682645c17a1b2d63",
32
+ "gitHead": "f76c866fef1c790940e9d27600d81afd1fbab3a7",
33
33
  "devDependencies": {
34
34
  "@babel/plugin-transform-runtime": "^7.15.8",
35
35
  "@babel/preset-env": "^7.15.8",
@@ -245,7 +245,7 @@ $overflowList: #{$prefix}-overflow-list;
245
245
 
246
246
  .#{$module}-content-wrapper {
247
247
  width: 100%;
248
- min-height: $height-select_multiple_content_wrapper-minHeight;
248
+ min-height: $height-select_default - 2 * $width-select-border ;
249
249
  flex-wrap: wrap;
250
250
 
251
251
  &-empty {
@@ -276,13 +276,13 @@ $overflowList: #{$prefix}-overflow-list;
276
276
 
277
277
  &-multiple.#{$module}-large {
278
278
  .#{$module}-content-wrapper {
279
- min-height: $height-select_large - 2;
279
+ min-height: $height-select_large - 2 * $width-select-border;
280
280
  }
281
281
  }
282
282
 
283
283
  &-multiple.#{$module}-small {
284
284
  .#{$module}-content-wrapper {
285
- min-height: $height-select_small - 2;
285
+ min-height: $height-select_small - 2 * $width-select-border;
286
286
  }
287
287
  }
288
288
 
@@ -71,7 +71,6 @@ $width-select_arrow: 32px; // 选择器输入框下拉箭头宽度
71
71
  $width-select_arrow_empty: 12px; // 选择器输入框下拉箭头为空时(有suffix icon)宽度
72
72
  $width-select_clear-icon: 32px; // 选择器输入框清空按钮宽度
73
73
  $width-select_group_top-border: $border-thickness-control; // 选择器菜单分组标题描边宽度
74
- $height-select_multiple_content_wrapper-minHeight: $height-select_default - 2px; // 多项选择器标签组最小高度
75
74
 
76
75
  $height-select_multiple_input_small: 20px; // 小尺寸多项选择器输入框Input框高度
77
76
  $height-select_multiple_input_default: 24px; // 默认多项选择器输入框Input框高度