assui 2.1.0 → 2.1.3

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.
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ require("./index.less");
@@ -0,0 +1,46 @@
1
+ @import '~antd/lib/style/index.less';
2
+
3
+ @progress-prefix-cls: ~'@{ant-prefix}';
4
+
5
+ .customize-range-picker-panel {
6
+ .check-wrapper {
7
+ padding: 8px 11px 6px;
8
+ border-bottom: 1px solid #f5f6fa;
9
+ }
10
+
11
+ .customize-select {
12
+ vertical-align: middle;
13
+ }
14
+
15
+ .customize-select-text {
16
+ margin-left: 8px;
17
+ }
18
+
19
+ .@{ant-prefix}-radio-wrapper {
20
+ margin-right: 0;
21
+ }
22
+
23
+ .pick-box {
24
+ display: flex;
25
+ justify-content: space-between;
26
+ width: 265px;
27
+ padding: 8px 11px 11px;
28
+
29
+ .radio {
30
+ width: 50%;
31
+ }
32
+
33
+ .@{ant-prefix}-radio-group {
34
+ display: flex;
35
+ flex-wrap: wrap;
36
+ width: 100%;
37
+ }
38
+ }
39
+ }
40
+
41
+ @media screen and (max-width: 576px) {
42
+ .customize-range-picker-panel {
43
+ max-width: 280px;
44
+ overflow-x: scroll;
45
+ }
46
+ }
@@ -36,11 +36,11 @@ var dateTypeEnum;
36
36
  var defaultRadioList = [{
37
37
  key: dateTypeEnum.TODAY,
38
38
  text: '今日',
39
- value: [now, now]
39
+ value: [now.clone().startOf('day'), now.clone().endOf('day')]
40
40
  }, {
41
41
  key: dateTypeEnum.YESTERDAY,
42
42
  text: '昨日',
43
- value: [now.clone().subtract(1, 'day'), now.clone().subtract(1, 'day').endOf('day')]
43
+ value: [now.clone().subtract(1, 'day').startOf('day'), now.clone().subtract(1, 'day').endOf('day')]
44
44
  }, {
45
45
  key: dateTypeEnum.WEEK,
46
46
  text: '本周',
@@ -177,19 +177,21 @@ var LabelCustomizeRangePicker = function LabelCustomizeRangePicker(props) {
177
177
  };
178
178
 
179
179
  var list = radioList !== null && radioList !== void 0 ? radioList : defaultRadioList_1["default"].filter(function (item) {
180
- return customizeTimeList === null || customizeTimeList === void 0 ? void 0 : customizeTimeList.includes(item.key);
180
+ return customizeTimeList ? customizeTimeList.includes(item.key) : true;
181
181
  });
182
182
 
183
183
  var panelRender = function panelRender(panel) {
184
184
  return react_1["default"].createElement("div", {
185
- className: "wrapper"
185
+ className: "label-customize-range-picker-panel"
186
186
  }, react_1["default"].createElement("div", {
187
187
  className: "check-wrapper"
188
188
  }, react_1["default"].createElement("span", {
189
189
  className: "customize-select"
190
190
  }, react_1["default"].createElement(checkbox_1["default"], {
191
191
  onChange: onDiyTimeChange
192
- }), react_1["default"].createElement("span", null, "\u81EA\u5B9A\u4E49\u65F6\u95F4"))), isVisiblePanel ? react_1["default"].createElement("div", {
192
+ }), react_1["default"].createElement("span", {
193
+ className: "customize-select-text"
194
+ }, "\u81EA\u5B9A\u4E49\u65F6\u95F4"))), isVisiblePanel ? react_1["default"].createElement("div", {
193
195
  className: "panel"
194
196
  }, panel) : react_1["default"].createElement("div", {
195
197
  className: "pick-box"
@@ -1786,32 +1786,32 @@ html {
1786
1786
  overflow: hidden;
1787
1787
  transition: height 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) !important;
1788
1788
  }
1789
- .wrapper {
1790
- overflow-x: auto;
1789
+ .label-customize-range-picker-panel .customize-select-text {
1790
+ margin-left: 8px;
1791
1791
  }
1792
- .wrapper .check-wrapper {
1792
+ .label-customize-range-picker-panel .check-wrapper {
1793
1793
  padding: 8px 11px 6px;
1794
1794
  border-bottom: 1px solid #f5f6fa;
1795
1795
  }
1796
- .wrapper .pick-box {
1796
+ .label-customize-range-picker-panel .pick-box {
1797
1797
  display: flex;
1798
1798
  justify-content: space-between;
1799
1799
  width: 265px;
1800
1800
  padding: 8px 11px 11px;
1801
1801
  }
1802
- .wrapper .pick-box .radio {
1802
+ .label-customize-range-picker-panel .pick-box .radio {
1803
1803
  display: inline-block;
1804
1804
  width: 50%;
1805
1805
  margin-right: 0;
1806
1806
  }
1807
- .wrapper .pick-box .ant-radio-group {
1807
+ .label-customize-range-picker-panel .pick-box .ant-radio-group {
1808
1808
  width: 100%;
1809
1809
  }
1810
- .wrapper .customize-select {
1810
+ .label-customize-range-picker-panel .customize-select {
1811
1811
  vertical-align: middle;
1812
1812
  }
1813
1813
  @media screen and (max-width: 576px) {
1814
- .wrapper .panel {
1814
+ .label-customize-range-picker-panel .panel {
1815
1815
  max-width: 280px;
1816
1816
  overflow-x: scroll;
1817
1817
  }
@@ -1,7 +1,9 @@
1
1
  @import '~antd/lib/style/index.less';
2
2
 
3
- .wrapper {
4
- overflow-x: auto;
3
+ .label-customize-range-picker-panel {
4
+ .customize-select-text {
5
+ margin-left: 8px;
6
+ }
5
7
 
6
8
  .check-wrapper {
7
9
  padding: 8px 11px 6px;
@@ -31,7 +33,7 @@
31
33
  }
32
34
 
33
35
  @media screen and (max-width: 576px) {
34
- .wrapper {
36
+ .label-customize-range-picker-panel {
35
37
  .panel {
36
38
  max-width: 280px;
37
39
  overflow-x: scroll;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assui",
3
- "version": "2.1.0",
3
+ "version": "2.1.3",
4
4
  "description": "react ui library",
5
5
  "author": "jason <usochen@gmail.com>",
6
6
  "main": "./lib/index.js",
@@ -33,8 +33,8 @@
33
33
  "@ahooksjs/use-url-state": "^2.5.8",
34
34
  "@tinymce/tinymce-react": "^3.13.0",
35
35
  "@types/react-beautiful-dnd": "^13.1.2",
36
- "a-icons": "^1.0.66",
37
- "aa-utils": "^2.0.22",
36
+ "a-icons": "^1.0.68",
37
+ "aa-utils": "^2.0.24",
38
38
  "ahooks": "^3.0.8",
39
39
  "bignumber.js": "^9.0.1",
40
40
  "copy-to-clipboard": "^3.3.1",
@@ -70,5 +70,5 @@
70
70
  "node": ">=10.0.0"
71
71
  },
72
72
  "license": "MIT",
73
- "gitHead": "76aa2a6fdc362545773656d731ba927cb2981609"
73
+ "gitHead": "e36725ca5c8c21d40947df03def022ab392c7555"
74
74
  }