@titaui/pc 1.9.29 → 1.9.33

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.
Files changed (37) hide show
  1. package/lib/components/dialog/index.css +23 -0
  2. package/lib/components/dialog/index.js +25 -5
  3. package/lib/components/dialog/loading.png +0 -0
  4. package/lib/components/hr-header/index.js +1 -1
  5. package/lib/components/menus/components/flip-menu-card/index.js +78 -14
  6. package/lib/components/menus/export-modules/appraisal-menus/index.js +4 -4
  7. package/lib/components/menus/export-modules/okr-menus/depart-menus/index.js +16 -12
  8. package/lib/components/menus/export-modules/okr-menus/okr-front-menus.js +4 -4
  9. package/lib/components/menus/export-modules/okr-menus/subordinate-menus/index.js +3 -3
  10. package/lib/components/scrollbar/simplebar/simplebar.js +2 -2
  11. package/lib/components/table/index.css +1 -0
  12. package/lib/components/user-selector/export-modules/duties-selector/index.js +5 -3
  13. package/lib/components/user-selector/select-tree/choose-tree/index.js +10 -2
  14. package/lib/pages/aha2021/index.js +1 -1
  15. package/lib/pages/home/components/data-list/index.css +0 -2
  16. package/lib/pages/new-okr-list/index.js +1 -1
  17. package/package.json +1 -1
  18. package/src/components/dialog/index.js +19 -5
  19. package/src/components/dialog/index.scss +46 -2
  20. package/src/components/dialog/loading.png +0 -0
  21. package/src/components/hr-header/index.tsx +1 -1
  22. package/src/components/menus/components/flip-menu-card/index.tsx +83 -25
  23. package/src/components/menus/export-modules/appraisal-menus/index.tsx +4 -3
  24. package/src/components/menus/export-modules/okr-menus/depart-menus/index.tsx +11 -7
  25. package/src/components/menus/export-modules/okr-menus/okr-front-menus.tsx +4 -3
  26. package/src/components/menus/export-modules/okr-menus/subordinate-menus/index.tsx +3 -2
  27. package/src/components/scrollbar/simplebar/simplebar.js +2 -1
  28. package/src/components/table/index.scss +1 -0
  29. package/src/components/user-selector/export-modules/duties-selector/index.tsx +4 -2
  30. package/src/components/user-selector/select-tree/choose-tree/index.tsx +3 -1
  31. package/src/pages/aha2021/index.tsx +1 -1
  32. package/src/pages/home/components/data-list/index.scss +0 -2
  33. package/src/pages/new-okr-list/index.tsx +1 -1
  34. package/lib/components/table/checkbox/index.css +0 -95
  35. package/lib/components/table/checkbox/index.js +0 -24
  36. package/src/components/table/checkbox/index.js +0 -11
  37. package/src/components/table/checkbox/index.scss +0 -93
@@ -1,13 +1,23 @@
1
- $font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
1
+ $font-family: -apple-system,
2
+ Arial,
3
+ Verdana,
4
+ Helvetica Neue,
5
+ Helvetica,
6
+ sans-serif,
7
+ PingFang SC,
8
+ Microsoft YaHei;
9
+
2
10
  .rc-dialog-close {
3
11
  z-index: 100;
4
12
  }
13
+
5
14
  .rc-dialog-wrap {
6
15
  display: flex;
7
16
  justify-content: center;
8
17
  align-items: center;
9
18
  z-index: 1299 !important;
10
19
  }
20
+
11
21
  .rc-dialog-mask {
12
22
  z-index: 1299 !important;
13
23
  background: rgba(20, 28, 40, 0.7) !important;
@@ -16,6 +26,7 @@ $font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-ser
16
26
  .titaui-dialog {
17
27
  border-radius: 24px;
18
28
  overflow: hidden;
29
+
19
30
  &.rc-dialog {
20
31
  display: inline-block;
21
32
  margin: 0;
@@ -49,10 +60,12 @@ $font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-ser
49
60
  .rc-dialog-header {
50
61
  padding: 18px 32px;
51
62
  }
63
+
52
64
  .rc-dialog-body {
53
65
  // padding: 0 32px 0 32px;
54
66
  padding: 0;
55
67
  }
68
+
56
69
  .rc-dialog-footer {
57
70
  padding: 20px 32px;
58
71
  display: flex;
@@ -72,12 +85,15 @@ $font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-ser
72
85
  justify-content: center;
73
86
  cursor: pointer;
74
87
  box-sizing: border-box;
75
- & > span {
88
+
89
+ &>span {
76
90
  font-size: 14px;
77
91
  font-family: $font-family;
78
92
  font-weight: 400;
79
93
  line-height: 20px;
80
94
  text-align: center;
95
+ display: flex;
96
+ align-items: center;
81
97
  box-sizing: border-box;
82
98
  }
83
99
  }
@@ -88,20 +104,36 @@ $font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-ser
88
104
  border: 1px solid #2879ff;
89
105
  color: #ffffff;
90
106
  transition: 0.2s all;
107
+ user-select: none;
108
+
91
109
  &:hover {
92
110
  border: 1px solid #5c8eff;
93
111
  background: #5c8eff;
94
112
  color: #ffffff;
95
113
  }
114
+
96
115
  &-not-allowed {
116
+ background-color: #5C8EFF;
97
117
  cursor: not-allowed;
98
118
  }
119
+
120
+ &-loading {
121
+ &-icon {
122
+ width: 14px;
123
+ margin-right: 6px;
124
+ animation-name: spin;
125
+ animation-timing-function: linear;
126
+ animation-iteration-count: infinite;
127
+ animation-duration: 1s;
128
+ }
129
+ }
99
130
  }
100
131
 
101
132
  &__btn-cancel {
102
133
  border: 1px solid #DFE3EA;
103
134
  color: #6f7886;
104
135
  transition: 0.2s all;
136
+
105
137
  &:hover {
106
138
  border: 1px solid #2879ff;
107
139
  color: #2879ff;
@@ -114,11 +146,13 @@ $font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-ser
114
146
  border-bottom: none;
115
147
  }
116
148
  }
149
+
117
150
  .titaui-dialog.titaui-dialog-no-footer-line {
118
151
  .rc-dialog-footer {
119
152
  border-top: none;
120
153
  }
121
154
  }
155
+
122
156
  .titaui-dialog.titaui-dialog-no-close {
123
157
  .rc-dialog-close {
124
158
  display: none;
@@ -130,3 +164,13 @@ $font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-ser
130
164
  display: none;
131
165
  }
132
166
  }
167
+
168
+ @keyframes spin {
169
+ from {
170
+ transform: rotate(0deg);
171
+ }
172
+
173
+ to {
174
+ transform: rotate(360deg);
175
+ }
176
+ }
@@ -3,7 +3,7 @@ import { useEffect } from 'react';
3
3
  import classNames from 'classnames';
4
4
  import axios from 'axios';
5
5
  import Popup from '../popup';
6
- import { getLoginUserInfo } from '&/utils/helpers';
6
+ import { getLoginUserInfo } from '../../utils/helpers';
7
7
  import './index.scss';
8
8
 
9
9
  interface Props {}
@@ -5,7 +5,7 @@ import React, {
5
5
  useImperativeHandle,
6
6
  useEffect,
7
7
  } from "react";
8
- import SimpleBar from '../../../scrollbar/simplebar/simplebar'
8
+ import SimpleBar from "../../../scrollbar/simplebar/simplebar";
9
9
  import ReactDOM from "react-dom";
10
10
  import classNames from "classnames";
11
11
  import MenuCard from "../menu-card";
@@ -36,7 +36,8 @@ export default forwardRef((props: Props, ref) => {
36
36
  const [isFloatHide, setIsFloatHide] = useState(false);
37
37
  const [isHideTopRightIcon, setIsHideTopRightIcon] = useState(false);
38
38
 
39
- const [showMore, setShowMore] = useState(false);
39
+ const [showMore, setShowMore] = useState(true);
40
+ const [showFrontMore, setShowFrontMore] = useState(true);
40
41
 
41
42
  const hideFloatRef = useRef<any>();
42
43
  const flipCardRef = useRef<any>();
@@ -144,28 +145,29 @@ export default forwardRef((props: Props, ref) => {
144
145
  };
145
146
 
146
147
  useEffect(() => {
147
- const targetNode = document.getElementsByClassName(
148
- "simplebar-content-wrapper"
149
- )[0];
150
-
148
+ let targetNode = document.querySelector(`.${preCls}__inner-back-content`);
151
149
  const config = { attributes: true, childList: true, subtree: true };
152
-
153
150
  const callback = function (_mutationsList, _observer) {
154
- const scrollArea = document.getElementsByClassName(
155
- "simplebar-content-wrapper"
156
- )[0];
157
- if (scrollArea && scrollArea.scrollHeight > scrollArea.offsetHeight) {
158
- setShowMore(true);
151
+ let scrollArea = SimpleBar.instances.get(
152
+ document.querySelector(`.${preCls}__inner-back [data-simplebar]`)
153
+ );
154
+ const el = scrollArea?.getScrollElement();
155
+ if (el && el.scrollHeight > el.offsetHeight) {
156
+ if (el.scrollHeight - el.offsetHeight == el.scrollTop) {
157
+ setShowFrontMore(false);
158
+ } else {
159
+ setShowFrontMore(true);
160
+ }
159
161
  } else {
160
162
  setShowMore(false);
161
163
  }
162
- scrollArea.addEventListener('scroll', () => {
163
- if(scrollArea.scrollHeight - scrollArea.offsetHeight == scrollArea.scrollTop) {
164
- setShowMore(false)
164
+ el?.addEventListener("scroll", () => {
165
+ if (el.scrollHeight - el.offsetHeight == el.scrollTop) {
166
+ setShowMore(false);
165
167
  } else {
166
168
  setShowMore(true);
167
169
  }
168
- })
170
+ });
169
171
  };
170
172
  const observer = new MutationObserver(callback);
171
173
 
@@ -174,13 +176,61 @@ export default forwardRef((props: Props, ref) => {
174
176
  return () => {
175
177
  observer.disconnect();
176
178
  };
177
- }, []);
179
+ }, [isBack]);
180
+
181
+ useEffect(() => {
182
+ if (isBack) return;
183
+ let targetNode = document.querySelector(`.${preCls}__inner-front-content`);
184
+
185
+ const config = { attributes: true, childList: true, subtree: true };
186
+
187
+ const callback = function (_mutationsList, _observer) {
188
+ let scrollArea = SimpleBar.instances.get(
189
+ document.querySelector(`.${preCls}__inner-front [data-simplebar]`)
190
+ );
191
+ const el = scrollArea?.getScrollElement();
192
+ if (el && el.scrollHeight > el.offsetHeight) {
193
+ if (el.scrollHeight - el.offsetHeight == el.scrollTop) {
194
+ setShowFrontMore(false);
195
+ } else {
196
+ setShowFrontMore(true);
197
+ }
198
+ } else {
199
+ setShowFrontMore(false);
200
+ }
201
+ el?.addEventListener("scroll", () => {
202
+ if (el.scrollHeight - el.offsetHeight == el.scrollTop) {
203
+ setShowFrontMore(false);
204
+ } else {
205
+ setShowFrontMore(true);
206
+ }
207
+ });
208
+ };
209
+ const observer = new MutationObserver(callback);
210
+
211
+ targetNode && observer.observe(targetNode, config);
212
+
213
+ return () => {
214
+ observer.disconnect();
215
+ };
216
+ }, [isBack]);
178
217
 
179
218
  const onClickShowMore = () => {
180
- const instance = SimpleBar.instances.get(document.querySelector(`.${preCls}__inner [data-simplebar]`))
181
- const el = instance.getScrollElement();
182
- el.scrollTop = el.scrollTop + 150
183
- }
219
+ let instance = null;
220
+ if (isBack) {
221
+ instance = SimpleBar.instances.get(
222
+ document.querySelector(`.${preCls}__inner-back [data-simplebar]`)
223
+ );
224
+ } else {
225
+ instance = SimpleBar.instances.get(
226
+ document.querySelector(`.${preCls}__inner-front [data-simplebar]`)
227
+ );
228
+ }
229
+ const el = instance?.getScrollElement();
230
+ if (el) {
231
+ el.scrollTop = el.scrollTop + 150;
232
+ }
233
+ };
184
234
 
185
235
  return (
186
236
  <React.Fragment>
@@ -216,6 +266,12 @@ export default forwardRef((props: Props, ref) => {
216
266
  {children[0]}
217
267
  </MenuCard>
218
268
  </div>
269
+ {showFrontMore && (
270
+ <div
271
+ className={`${preCls}__has-more`}
272
+ onClick={onClickShowMore}
273
+ />
274
+ )}
219
275
  </div>
220
276
 
221
277
  {/* 第二屏的内容 */}
@@ -234,11 +290,13 @@ export default forwardRef((props: Props, ref) => {
234
290
  {children[1]}
235
291
  </MenuCard>
236
292
  </div>
293
+ {showMore && (
294
+ <div
295
+ className={`${preCls}__has-more`}
296
+ onClick={onClickShowMore}
297
+ ></div>
298
+ )}
237
299
  </div>
238
- {showMore && (
239
- <div className={`${preCls}__has-more`} onClick={onClickShowMore}>
240
- </div>
241
- )}
242
300
  </div>
243
301
  </DragResize>
244
302
 
@@ -1,7 +1,8 @@
1
1
  import React, { useState, useRef, useEffect } from "react";
2
2
  import classNames from "classnames";
3
3
  import { withRouter } from "react-router";
4
- import { ResizeObserver } from '@juggle/resize-observer';
4
+ // import { ResizeObserver } from '@juggle/resize-observer';
5
+ import ResizeObserver from 'resize-observer-polyfill';
5
6
  import FlipCard, { flipRefIns } from "../../components/flip-menu-card";
6
7
  import MenuTree from "../../components/menu-tree";
7
8
  import Scrollbar from '../../../scrollbar';
@@ -22,7 +23,7 @@ const AppraisalMenus = (props: Props) => {
22
23
  const { onSelect = () => { }, history } = props;
23
24
 
24
25
  const [maxHeight, setMaxHeight] = useState<number>(() => {
25
- return document.body.offsetHeight - 220;
26
+ return document.body.offsetHeight - 170;
26
27
  });
27
28
  const [selectedMenuKeys, setSelectedMenuKeys] = useState<string[]>([]);
28
29
 
@@ -74,7 +75,7 @@ const AppraisalMenus = (props: Props) => {
74
75
  const obs = new ResizeObserver(entries => {
75
76
  for (let entry of entries) {
76
77
  const cr = entry.contentRect;
77
- setMaxHeight(cr.height - 220);
78
+ setMaxHeight(cr.height - 170);
78
79
  }
79
80
  })
80
81
  obs.observe(document.body);
@@ -1,13 +1,15 @@
1
1
  import React, { useState, useEffect, useRef } from "react";
2
2
  import classNames from 'classnames';
3
3
  import { locale } from '../../../i18n';
4
- import { ResizeObserver } from '@juggle/resize-observer';
4
+ // import { ResizeObserver } from '@juggle/resize-observer';
5
+ import ResizeObserver from 'resize-observer-polyfill';
5
6
  import MenuTree from "../../../components/menu-tree";
6
7
  import { getDepsAndUsers } from "../../../request-apis";
7
8
  import { DEPART_NODE, USER_NODE } from '../../../components/menu-tree/tree-node/index';
8
9
  import { toTree } from "../../../utils";
9
10
  import { ITreeNode } from "../../../types";
10
11
  import preCls from '../../../precls';
12
+ import Scrollbar from '../../../../scrollbar';
11
13
 
12
14
  import "../../../index.scss";
13
15
  import "./index.scss";
@@ -51,7 +53,7 @@ export default () => {
51
53
 
52
54
  // 因为要实现虚拟列表的功能,所有要动态的计算出一个菜单的高度
53
55
  useEffect(() => {
54
- setHeight(document.body.offsetHeight - 240);
56
+ setHeight(document.body.offsetHeight - 210);
55
57
  }, [])
56
58
 
57
59
  useEffect(() => {
@@ -91,7 +93,7 @@ export default () => {
91
93
  const obs = new ResizeObserver(entries => {
92
94
  for (let entry of entries) {
93
95
  const cr = entry.contentRect;
94
- setHeight(cr.height - 240);
96
+ setHeight(cr.height - 210);
95
97
  }
96
98
  })
97
99
  obs.observe(document.body);
@@ -102,22 +104,24 @@ export default () => {
102
104
 
103
105
  return <div
104
106
  className={classNames(`${preCls}__depart-menus`)}
105
- style={{ 'height': `${height}px` }}
107
+ // style={{ 'height': `${height}px` }}
106
108
  >
107
109
  {loading ?
108
110
  <div className={classNames(`${preCls}__depart-menus--loading`)}>
109
111
  <span />
110
112
  </div> :
111
- <MenuTree
113
+ <Scrollbar style={{ 'maxHeight': height }}>
114
+ <MenuTree
112
115
  data={treeData}
113
116
  itemHeight={itemHeight}
114
- height={height}
117
+ // height={height}
115
118
  virtual={true}
116
119
  onSelect={onSelectHandler}
117
120
  defaultExpandedKeys={["0"]}
118
121
  selectedKeys={selectedMenuKeys}
119
122
  loadData={onLoadTreeNodeDataHandler}
120
- />
123
+ />
124
+ </Scrollbar>
121
125
  }
122
126
  </div>
123
127
  }
@@ -1,6 +1,7 @@
1
1
  import React, { useState, useRef, useEffect, forwardRef, useImperativeHandle } from "react";
2
2
  // import classNames from "classnames";
3
- import { ResizeObserver } from '@juggle/resize-observer';
3
+ // import { ResizeObserver } from '@juggle/resize-observer';
4
+ import ResizeObserver from 'resize-observer-polyfill';
4
5
  import { flipRefIns } from "../../components/flip-menu-card";
5
6
  import Scrollbar from '../../../scrollbar';
6
7
  import MenuTree from "../../components/menu-tree";
@@ -31,7 +32,7 @@ export default forwardRef((props: Props, ref) => {
31
32
  } = props;
32
33
 
33
34
  const [maxHeight, setMaxHeight] = useState<number>(() => {
34
- return document.body.offsetHeight - 220;
35
+ return document.body.offsetHeight - 210;
35
36
  });
36
37
  const [expandedKeys, setExpandedKeys] = useState(['myokr']);
37
38
  const [selectedMenuKeys, setSelectedMenuKeys] = useState<string[]>([]);
@@ -158,7 +159,7 @@ export default forwardRef((props: Props, ref) => {
158
159
  const obs = new ResizeObserver(entries => {
159
160
  for (let entry of entries) {
160
161
  const cr = entry.contentRect;
161
- setMaxHeight(cr.height - 220);
162
+ setMaxHeight(cr.height - 210);
162
163
  }
163
164
  })
164
165
  obs.observe(document.body);
@@ -1,6 +1,7 @@
1
1
  import React, { useState, useEffect, useRef } from "react";
2
2
  import classNames from 'classnames';
3
- import { ResizeObserver } from '@juggle/resize-observer';
3
+ // import { ResizeObserver } from '@juggle/resize-observer';
4
+ import ResizeObserver from 'resize-observer-polyfill';
4
5
  import MenuTree from "../../../components/menu-tree";
5
6
  import { getSubordinates } from "../../../request-apis";
6
7
  import { ITreeNode } from "../../../types";
@@ -24,7 +25,7 @@ export default (props) => {
24
25
  const [selectedMenuKeys, setSelectedMenuKeys] = useState<string[]>([]);
25
26
  const [loginUserId] = useState(window.BSGlobal && window.BSGlobal.loginUserInfo.Id || 0);
26
27
  const [maxHeight, setMaxHeight] = useState<number>(() => {
27
- return document.body.offsetHeight - 220;
28
+ return document.body.offsetHeight - 200;
28
29
  });
29
30
 
30
31
  useEffect(() => {
@@ -1,7 +1,8 @@
1
1
  import throttle from 'lodash.throttle';
2
2
  import debounce from 'lodash.debounce';
3
3
  import memoize from 'lodash.memoize';
4
- import { ResizeObserver } from '@juggle/resize-observer';
4
+ // import { ResizeObserver } from '@juggle/resize-observer';
5
+ import ResizeObserver from 'resize-observer-polyfill';
5
6
  import canUseDOM from 'can-use-dom';
6
7
  import scrollbarWidth from './scrollbar-width';
7
8
  import { getElementWindow, getElementDocument } from './helpers';
@@ -42,6 +42,7 @@
42
42
  .rc-table td {
43
43
  font-size: 14px;
44
44
  padding: 13px 4px;
45
+ overflow: hidden;
45
46
  }
46
47
 
47
48
  .rc-table-content {
@@ -118,7 +118,8 @@ export default forwardRef((props: Props, ref) => {
118
118
  asyncData={false}
119
119
  onSelect={onSelectHandler}
120
120
  virtual={true}
121
- height={height-44}
121
+ height={height}
122
+ switcherIcon=""
122
123
  />
123
124
  </TreeNodeContext.Provider>
124
125
  </div>
@@ -131,8 +132,9 @@ export default forwardRef((props: Props, ref) => {
131
132
  multiple={false}
132
133
  getTreeData={onGetTreeData}
133
134
  itemHeight={itemHeight}
134
- height={height-44}
135
+ height={height}
135
136
  virtual={true}
137
+ switcherIcon=""
136
138
  />
137
139
  </TreeNodeContext.Provider>
138
140
  )}
@@ -24,7 +24,8 @@ export default props => {
24
24
  height,
25
25
  virtual,
26
26
  isGetRoot,
27
- renderEmpty = () => <Empty />
27
+ renderEmpty = () => <Empty />,
28
+ ...restProps
28
29
  } = props;
29
30
 
30
31
  const loadedNode = useRef([]);
@@ -118,6 +119,7 @@ export default props => {
118
119
  return (
119
120
  <div className="perspm-tree">
120
121
  <Tree
122
+ {...restProps}
121
123
  multiple={multiple}
122
124
  selectNodeHighlight={false}
123
125
  defaultExpandedKeys={getDefaultExpandedKeys()}
@@ -41,7 +41,7 @@ const PageLayout = (props) => {
41
41
  const { children } = props;
42
42
 
43
43
  const isTrial =
44
- window.BSGlobal.tenantAuthentication.Version !== 1 && isOfficialSite();
44
+ window.BSGlobal.tenantAuthentication.Version == 1 && isOfficialSite();
45
45
 
46
46
  const onClickKefu = () => {
47
47
  const kefuUrl = isTrial
@@ -1,8 +1,6 @@
1
1
  .homepage-datalist {
2
- background-color: #f7f9fb;
3
2
  height: calc(100vh - 41px);
4
3
  overflow: auto;
5
- padding: 14px 20px;
6
4
  box-sizing: border-box;
7
5
  padding-bottom: 20px;
8
6
  box-sizing: border-box;
@@ -89,7 +89,7 @@ const NewOkrList = (props) => {
89
89
 
90
90
  useEffect(() => {
91
91
  setPageNum(1);
92
- }, [relation, toUserId, departmentId]);
92
+ }, [relation, toUserId, departmentId, query]);
93
93
 
94
94
  useEffect(() => {
95
95
  getOkrs();
@@ -1,95 +0,0 @@
1
- .tita-checkbox {
2
- font-size: 14px;
3
- line-height: 1.5;
4
- color: rgba(0, 0, 0, 0.65);
5
- box-sizing: border-box;
6
- margin: 0;
7
- padding: 0;
8
- list-style: none;
9
- white-space: nowrap;
10
- cursor: pointer;
11
- outline: 0;
12
- display: inline-block;
13
- line-height: 1;
14
- position: relative;
15
- vertical-align: middle;
16
- left: 1px;
17
- }
18
-
19
- .tita-checkbox .rc-checkbox-checked .rc-checkbox-inner {
20
- background: #2879ff;
21
- border: none;
22
- border-radius: 2px;
23
- width: 16px;
24
- height: 16px;
25
- }
26
-
27
- .tita-checkbox .rc-checkbox-checked .rc-checkbox-inner::after {
28
- transform: rotate(0deg) scale(0.6);
29
- border: 0 solid transparent;
30
- transition: none;
31
- color: #fff;
32
- content: "\E9f9" !important;
33
- left: 1px;
34
- top: 1px;
35
- font-weight: 700;
36
- }
37
-
38
- .tita-checkbox .rc-checkbox-checked::after {
39
- position: absolute;
40
- top: 0;
41
- left: 0;
42
- width: 100%;
43
- height: 100%;
44
- border-radius: 2px;
45
- border: 1px solid #1687d9;
46
- content: "";
47
- animation: antCheckboxEffect 0.36s ease-in-out;
48
- animation-fill-mode: both;
49
- visibility: hidden;
50
- }
51
-
52
- .tita-checkbox .rc-checkbox-input {
53
- position: absolute;
54
- left: 0;
55
- z-index: 1;
56
- cursor: pointer;
57
- opacity: 0;
58
- top: -5px;
59
- bottom: 0;
60
- right: 0;
61
- width: 100%;
62
- height: 100%;
63
- }
64
-
65
- .tita-checkbox .rc-checkbox-inner {
66
- position: relative;
67
- top: 0;
68
- left: 0;
69
- display: block;
70
- width: 14px;
71
- height: 14px;
72
- border: 1px solid #e9ecf0;
73
- border-radius: 2px;
74
- background-color: #fff;
75
- transition: none;
76
- font-family: tu-icon !important;
77
- font-style: normal;
78
- font-weight: 400;
79
- font-variant: normal;
80
- text-transform: none;
81
- line-height: 1;
82
- -webkit-font-smoothing: antialiased;
83
- }
84
-
85
- .tita-checkbox .rc-checkbox-inner::after {
86
- transform: rotate(0deg) scale(1);
87
- position: absolute;
88
- display: table;
89
- border: 0 solid #1587d9;
90
- border-top: 0;
91
- border-left: 0;
92
- content: " ";
93
- left: 0;
94
- transition: none;
95
- }
@@ -1,24 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _rcCheckbox = _interopRequireDefault(require("rc-checkbox"));
11
-
12
- require("./index.css");
13
-
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
-
16
- var _default = function _default(props) {
17
- return /*#__PURE__*/_react["default"].createElement("div", {
18
- className: "tita-checkbox"
19
- }, /*#__PURE__*/_react["default"].createElement(_rcCheckbox["default"], props), /*#__PURE__*/_react["default"].createElement("div", {
20
- className: "tita-checkbox-sign"
21
- }));
22
- };
23
-
24
- exports["default"] = _default;
@@ -1,11 +0,0 @@
1
- import React, { } from "react"
2
- import Checkbox from 'rc-checkbox'
3
- import "./index.scss"
4
-
5
- export default (props) => {
6
-
7
- return <div className="tita-checkbox">
8
- <Checkbox {...props} />
9
- <div className="tita-checkbox-sign"></div>
10
- </div>
11
- }