@chlp-tech/rpa-ui 0.0.11-beta.9 → 0.0.12

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.
@@ -196,13 +196,25 @@ var AccountSelect = function AccountSelect(props) {
196
196
  }, optionList.map(function (item, index) {
197
197
  var _item$ownerUserName, _item$ownerUserName2, _item$ownerUserName3;
198
198
  var languageAndCountryList = getLanguageAndCountryList(item);
199
- var tipsText = item.disabledState === 2 ? '账号Token失效,请重新授权该账号,恢复账号绑定状态' : item.disabledState === 1 ? '请勿选择语言不统一的账号' : null;
199
+ var getTipsText = function getTipsText() {
200
+ switch (item.disabledState) {
201
+ case 1:
202
+ return '请勿选择语言不统一的账号';
203
+ case 2:
204
+ return '账号Token失效,请重新授权该账号,恢复账号绑定状态';
205
+ case 3:
206
+ return '您没有该账号的运营权限';
207
+ default:
208
+ return null;
209
+ }
210
+ };
211
+ var tipsText = getTipsText();
200
212
  return /*#__PURE__*/React.createElement(Tooltip, {
201
213
  title: tipsText,
202
214
  key: index
203
215
  }, /*#__PURE__*/React.createElement("div", {
204
216
  key: item.id,
205
- className: classNames(styles.rowBox, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, styles.rowBoxClick, true), styles.rowBoxSelect, selectedKeys.includes(item.id)), styles.rowBoxDisable, item.disabledState === 2), styles.rowBoxDisableMatchLanguage, item.disabledState === 1)),
217
+ className: classNames(styles.rowBox, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, styles.rowBoxClick, true), styles.rowBoxSelect, selectedKeys.includes(item.id)), styles.rowBoxDisable, item.disabledState === 2), styles.rowBoxDisableMatchLanguage, item.disabledState === 1 || item.disabledState === 3)),
206
218
  onClick: function onClick() {
207
219
  if (!item.disabledState || item.disabledState < 1) {
208
220
  onClickItem(item);
@@ -37,7 +37,7 @@
37
37
  border-radius: 4px;
38
38
  border: 1px solid #004FD3;
39
39
  padding: 4px 8px;
40
-
40
+ line-height: 1;
41
41
  font-size: 12px;
42
42
  color: #004FD3;
43
43
  }
@@ -82,7 +82,7 @@
82
82
  display: flex;
83
83
  flex-direction: row;
84
84
  align-items: center;
85
- padding: 12px 12px;
85
+ padding: 6px 12px;
86
86
  gap: 12px;
87
87
  box-sizing: border-box;
88
88
  width: 100%;
@@ -123,6 +123,7 @@
123
123
  border-radius: 4px;
124
124
  border: 1px solid #004FD3;
125
125
  padding: 4px 8px;
126
+ line-height: 1;
126
127
 
127
128
  font-size: 12px;
128
129
  color: #004FD3;
@@ -143,6 +144,7 @@
143
144
 
144
145
  .rowBoxDisable {
145
146
  cursor: not-allowed;
147
+ border-radius: 4px;
146
148
  background-color: rgb(254, 236, 236);
147
149
  &:hover {
148
150
  background-color: rgb(254, 236, 236);
@@ -151,6 +153,7 @@
151
153
 
152
154
  .rowBoxDisableMatchLanguage {
153
155
  cursor: not-allowed;
156
+ border-radius: 4px;
154
157
  background-color: #ECEFF4;
155
158
  &:hover {
156
159
  background-color: #ECEFF4;
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ export { default as DynamicForm } from "./dynamic-form";
11
11
  export { default as DrawerTask } from "./drawer-task";
12
12
  export { default as StatusTag } from "./publish-status";
13
13
  export { default as AccountComponent } from "./publish-account";
14
- export { default as AccountSelectListV2 } from "./publish-account";
14
+ export { default as AccountComponentV2 } from "./publish-account2";
15
15
  export { default as AccountSelectList } from "./account-select";
16
16
  export { default as LabelSelect } from "./label-select";
17
17
  export { default as BatchLabel } from "./batch-label";
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ export { default as DynamicForm } from "./dynamic-form";
11
11
  export { default as DrawerTask } from "./drawer-task";
12
12
  export { default as StatusTag } from "./publish-status";
13
13
  export { default as AccountComponent } from "./publish-account";
14
- export { default as AccountSelectListV2 } from "./publish-account";
14
+ export { default as AccountComponentV2 } from "./publish-account2";
15
15
  export { default as AccountSelectList } from "./account-select";
16
16
  export { default as LabelSelect } from "./label-select";
17
17
  export { default as BatchLabel } from "./batch-label";
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <!-- Generator: Sketch 62 (91390) - https://sketch.com -->
4
+ <title>矩形</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <g id="广告投放2025" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7
+ <g id="广告管理-广告看板--" transform="translate(-1606.000000, -457.000000)">
8
+ <g id="编组-15备份-5" transform="translate(1352.000000, 301.000000)">
9
+ <g id="编组-39备份-4" transform="translate(248.000000, 152.000000)">
10
+ <g id="编组-37">
11
+ <g id="编组备份-8" transform="translate(6.000000, 4.000000)">
12
+ <rect id="矩形" fill-opacity="0.01" fill="#FFFFFF" fill-rule="nonzero" x="0" y="0" width="16" height="16"></rect>
13
+ <g id="delete-02-solid-rounded" transform="translate(1.500000, 1.000000)" fill="#3F5270">
14
+ <path d="M7.06054222,0.175945778 C7.41216,0.207392889 7.74262222,0.314695111 8.02641778,0.526344 C8.23629333,0.682876444 8.38208,0.874483556 8.50664889,1.08200089 C8.62207111,1.27429867 8.73830222,1.51405333 8.87008889,1.78602667 L9.135,2.33268069 L11.3555556,2.33333333 L11.355,2.33368069 L11.8222222,2.33376889 C12.1658756,2.33376889 12.4444444,2.61235022 12.4444444,2.95599111 C12.4444444,3.29963822 12.1658756,3.57821333 11.8222222,3.57821333 L11.279,3.57768069 L10.9402222,9.11953778 C10.8924978,9.89930667 10.8546044,10.5181067 10.7770133,11.0123378 C10.6973689,11.5192622 10.5699378,11.9413778 10.3150133,12.3106044 C10.0818044,12.6484089 9.78158222,12.9335111 9.43338667,13.1477422 C9.05277333,13.3819467 8.62779556,13.4843644 8.12192889,13.5333333 L4.310376,13.5333333 C3.80395556,13.4841778 3.37849244,13.3815733 2.99761778,13.1469333 C2.649192,12.9323289 2.34885156,12.6467289 2.11572978,12.3083644 C1.86089867,11.9385156 1.73385956,11.5157778 1.65484356,11.0081689 C1.57779378,10.5131911 1.54076533,9.89352 1.49409244,9.11263111 L1.163,3.57768069 L0.622222222,3.57821333 L0.622222222,3.57821333 C0.278581333,3.57821333 -2.48689958e-14,3.29963822 -2.48689958e-14,2.95599111 C-2.48689958e-14,2.61235022 0.278581333,2.33376889 0.622222222,2.33376889 L1.088,2.33368069 L1.08888889,2.33333333 L3.366,2.33268069 L3.58745956,1.84809956 C3.71598578,1.56610844 3.82917422,1.31775467 3.94287289,1.11846933 C4.06551911,0.903510222 4.21070844,0.704585778 4.42313511,0.541619556 C4.71042133,0.321228444 5.04752889,0.209496 5.40704889,0.176767111 C5.58749333,0.160340444 5.76890568,0.156372049 5.95029037,0.155680691 L6.22222222,0.155953778 C6.54005333,0.156464 6.82577778,0.154945778 7.06054222,0.175945778 Z M4.66666667,5.88678222 C4.408936,5.88678222 4.2,6.09572444 4.2,6.35344889 L4.2,6.35344889 L4.2,10.0867822 C4.2,10.3445689 4.408936,10.5534489 4.66666667,10.5534489 C4.92439733,10.5534489 5.13333333,10.3445689 5.13333333,10.0867822 L5.13333333,10.0867822 L5.13333333,6.35344889 C5.13333333,6.09572444 4.92439733,5.88678222 4.66666667,5.88678222 Z M7.77777778,5.88678222 C7.52005333,5.88678222 7.31111111,6.09572444 7.31111111,6.35344889 L7.31111111,10.0867822 C7.31111111,10.3445689 7.52005333,10.5534489 7.77777778,10.5534489 C8.03550222,10.5534489 8.24444444,10.3445689 8.24444444,10.0867822 L8.24444444,6.35344889 C8.24444444,6.09572444 8.03550222,5.88678222 7.77777778,5.88678222 Z M6.40088383,1.40054522 L6.24368889,1.40043556 C5.90096889,1.40043556 5.68524444,1.40103289 5.51985778,1.41608444 C5.28708444,1.43727733 5.14198222,1.52797867 5.02376,1.73516622 C4.94639761,1.87076947 4.86217705,2.05223239 4.73420413,2.33270199 L7.752,2.33268069 L7.68621346,2.19696296 C7.58180543,1.98284333 7.50779556,1.8359237 7.43966222,1.72243556 C7.32000889,1.52311911 7.17664889,1.43574667 6.94966222,1.41544356 C6.81521037,1.40341911 6.64679556,1.40101319 6.40088383,1.40054522 Z" id="形状结合"></path>
15
+ </g>
16
+ </g>
17
+ </g>
18
+ </g>
19
+ </g>
20
+ </g>
21
+ </g>
22
+ </svg>
@@ -0,0 +1,27 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <!-- Generator: Sketch 62 (91390) - https://sketch.com -->
4
+ <title>矩形</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <g id="广告投放2025" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7
+ <g id="发布管理-广告帖子--" transform="translate(-1511.000000, -981.000000)" fill-rule="nonzero">
8
+ <g id="编组-15备份-8" transform="translate(1352.000000, 824.000000)">
9
+ <g id="编组-39备份-4" transform="translate(152.000000, 152.000000)">
10
+ <g id="编组-37">
11
+ <g>
12
+ <g id="Icon/Checkbox-Normal" transform="translate(6.000000, 4.000000)">
13
+ <g id="编组">
14
+ <rect id="矩形" fill="#000000" opacity="0" x="0" y="0" width="16" height="16"></rect>
15
+ <g id="poweroff-circle-fill">
16
+ <rect id="矩形" fill="#000000" opacity="0" x="0" y="0" width="16" height="16"></rect>
17
+ <path d="M8,1 C4.134375,1 1,4.134375 1,8 C1,11.865625 4.134375,15 8,15 C11.865625,15 15,11.865625 15,8 C15,4.134375 11.865625,1 8,1 Z M6.75,10.375 C6.75,10.44375 6.69375,10.5 6.625,10.5 L5.875,10.5 C5.80625,10.5 5.75,10.44375 5.75,10.375 L5.75,5.625 C5.75,5.55625 5.80625,5.5 5.875,5.5 L6.625,5.5 C6.69375,5.5 6.75,5.55625 6.75,5.625 L6.75,10.375 Z M10.25,10.375 C10.25,10.44375 10.19375,10.5 10.125,10.5 L9.375,10.5 C9.30625,10.5 9.25,10.44375 9.25,10.375 L9.25,5.625 C9.25,5.55625 9.30625,5.5 9.375,5.5 L10.125,5.5 C10.19375,5.5 10.25,5.55625 10.25,5.625 L10.25,10.375 Z" id="形状" fill="#3F5270"></path>
18
+ </g>
19
+ </g>
20
+ </g>
21
+ </g>
22
+ </g>
23
+ </g>
24
+ </g>
25
+ </g>
26
+ </g>
27
+ </svg>
@@ -5,6 +5,8 @@ import Wait from "./imgs/wait.svg";
5
5
  import Success from "./imgs/success.svg";
6
6
  import Fail from "./imgs/fail.svg";
7
7
  import Publish from "./imgs/publish.svg";
8
+ import Pause from "./imgs/pause.svg";
9
+ import Delete from "./imgs/delete.svg";
8
10
  var statusTag = {
9
11
  0: {
10
12
  bgColor: '#ECEFF4',
@@ -35,6 +37,30 @@ var statusTag = {
35
37
  textColor: '#004FD3',
36
38
  text: '发布中',
37
39
  icon: Publish
40
+ },
41
+ 5: {
42
+ bgColor: '#E9F1FF',
43
+ textColor: '#004FD3',
44
+ text: '排队中',
45
+ icon: Publish
46
+ },
47
+ 6: {
48
+ bgColor: '#ECEFF4',
49
+ textColor: '#3F5270',
50
+ text: '已暂停',
51
+ icon: Pause
52
+ },
53
+ 7: {
54
+ bgColor: '#E9F1FF',
55
+ textColor: '#004FD3',
56
+ text: '审核中',
57
+ icon: Publish
58
+ },
59
+ 8: {
60
+ bgColor: '#ECEFF4',
61
+ textColor: '#3F5270',
62
+ text: '已删除',
63
+ icon: Delete
38
64
  }
39
65
  };
40
66
  var StatusTag = function StatusTag(_ref) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chlp-tech/rpa-ui",
3
- "version": "0.0.11-beta.9",
3
+ "version": "0.0.12",
4
4
  "description": "rpa-ui",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",