@chaoswise/business 0.0.8 → 0.0.10

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,94 +1,93 @@
1
- .ci-detail-user {
2
- width: 100%;
3
- display: flex;
4
- flex-wrap: wrap;
5
- // line-height: 28px;
1
+ @uploda-card-width : 88px;
2
+ @uploda-card-height : 88px;
6
3
 
7
- .ci-detail-user-item {
4
+ .form-properties-box {
5
+ .ci-detail-user {
6
+ width: 100%;
8
7
  display: flex;
9
- // align-items: center;
8
+ flex-wrap: wrap;
9
+
10
+ .ci-detail-user-item {
11
+ display: flex;
12
+ }
13
+
14
+ .ci-detail-user-name {
15
+ width: calc(100% - 32px);
16
+ white-space: nowrap;
17
+ overflow: hidden;
18
+ text-overflow: ellipsis;
19
+ }
20
+
21
+ .ci-detail-avatar {
22
+ color: #fff;
23
+ background-color: #008dff;
24
+ margin-right: 8px;
25
+ }
26
+ }
27
+
28
+ .ci-detail-user-group {
29
+ width: 100%;
30
+
31
+ .user-group-item {
32
+ font-weight: 600;
33
+ background: #008dff;
34
+ color: #fff;
35
+ display: inline-block;
36
+ height: 25px;
37
+ padding: 0 5px;
38
+ border-radius: 10px;
39
+ margin-right: 5px;
40
+ }
10
41
  }
11
42
 
12
- .ci-detail-user-name {
13
- width: calc(100% - 32px);
43
+ .desBox {
44
+ width: 100%;
45
+ height: 100%;
14
46
  white-space: nowrap;
15
47
  overflow: hidden;
16
48
  text-overflow: ellipsis;
17
49
  }
18
50
 
19
- .ci-detail-avatar {
20
- color: #fff;
21
- background-color: #008dff;
22
- margin-right: 8px;
23
- }
24
- }
25
-
26
- .ci-detail-user-group {
27
- width: 100%;
28
-
29
- .user-group-item {
30
- font-weight: 600;
31
- background: #008dff;
32
- color: #fff;
33
- display: inline-block;
34
- height: 25px;
35
- padding: 0 5px;
36
- // line-height: 25px;
37
- border-radius: 10px;
38
- margin-right: 5px;
51
+ .doTextArea {
52
+ width: 100%;
53
+ line-height: 20px;
54
+ min-height: 50;
39
55
  }
40
- }
41
-
42
- .desBox {
43
- width: 100%;
44
- height: 100%;
45
- white-space: nowrap;
46
- overflow: hidden;
47
- text-overflow: ellipsis;
48
- }
49
-
50
- .doTextArea {
51
- width: 100%;
52
- line-height: 20px;
53
- min-height: 50;
54
- }
55
56
 
56
- @uploda-card-width : 88px;
57
- @uploda-card-height : 88px;
58
57
 
59
- .ci-detail-image {
58
+ .ci-detail-image {
60
59
 
61
60
  .@{ant-prefix}-upload-list-item-uploading-text {
62
61
  text-align: center;
63
62
  }
64
63
 
65
64
  .@{ant-prefix}-upload.@{ant-prefix}-upload-select-picture-card {
66
- width: @uploda-card-width !important;
67
- height: @uploda-card-height !important;
65
+ width: @uploda-card-width !important;
66
+ height: @uploda-card-height !important;
68
67
  }
69
68
 
70
69
  .@{ant-prefix}-upload-list-picture-card .@{ant-prefix}-upload-list-item {
71
- width: @uploda-card-width !important;
72
- height: @uploda-card-height !important;
70
+ width: @uploda-card-width !important;
71
+ height: @uploda-card-height !important;
73
72
  }
74
73
 
75
74
  .@{ant-prefix}-upload-list-picture-card-container {
76
- width: @uploda-card-width !important;
77
- height: @uploda-card-height !important;
75
+ width: @uploda-card-width !important;
76
+ height: @uploda-card-height !important;
78
77
  }
79
78
 
80
79
  .@{ant-prefix}-upload-list {
81
80
  padding: 0 !important;
82
81
  background-color: #fff !important;
83
82
  }
84
- }
83
+ }
85
84
 
86
85
 
87
- .ci-detail-file {
86
+ .ci-detail-file {
88
87
 
89
- .cw-upload-drag_ {
90
- margin-top: 0 !important;
91
- }
88
+ .cw-upload-drag_ {
89
+ margin-top: 0 !important;
90
+ }
92
91
 
93
92
  .@{ant-prefix}-upload-list {
94
93
  background-color: white;
@@ -99,9 +98,9 @@
99
98
  margin-top: 4px !important;
100
99
  }
101
100
 
102
- }
101
+ }
103
102
 
104
- .ci-detail-quote-card {
103
+ .ci-detail-quote-card {
105
104
 
106
105
  .@{ant-prefix}-card-body {
107
106
  padding: 3px;
@@ -120,70 +119,71 @@
120
119
  font-weight: normal;
121
120
  }
122
121
 
123
- .ci-detail-quote-card-title {
124
- width: 100%;
125
- height: 28px;
126
- display: flex;
127
- align-items: center;
128
- justify-content: space-between;
122
+ .ci-detail-quote-card-title {
123
+ width: 100%;
124
+ height: 28px;
125
+ display: flex;
126
+ align-items: center;
127
+ justify-content: space-between;
128
+ }
129
+
130
+ .ci-detail-quote-card-title-span {
131
+ overflow: hidden;
132
+ white-space: nowrap;
133
+ text-overflow: ellipsis;
134
+ font-size: 12px;
135
+ }
136
+
137
+ }
138
+
139
+ .ci-detail-quote-list {
140
+ .@{ant-prefix}-list-item {
141
+ margin-bottom: 12px !important;
142
+ }
129
143
  }
130
144
 
131
- .ci-detail-quote-card-title-span {
145
+ .ci-table-view {
146
+ width: 100%;
132
147
  overflow: hidden;
133
148
  white-space: nowrap;
134
149
  text-overflow: ellipsis;
135
- font-size: 12px;
136
150
  }
137
151
 
138
- }
152
+ //u为范围-点阵图
153
+ .unit-bitmap-box {
139
154
 
140
- .ci-detail-quote-list {
141
- .@{ant-prefix}-list-item {
142
- margin-bottom: 12px !important;
155
+ .lattice {
156
+ cursor: pointer;
157
+ float: left;
158
+ display: block;
159
+ width: 26px;
160
+ height: 26px;
161
+ margin: 2px 4px 2px 0px;
162
+ padding: 0;
163
+ color: rgba(0, 0, 0, .65);
164
+ line-height: 26px;
165
+ text-align: center;
166
+ background: #E8E8E8;
167
+ border: 1px solid transparent;
168
+ border-radius: 2px;
169
+ -webkit-transition: background .3s ease;
170
+ transition: background .3s ease;
143
171
  }
144
- }
145
-
146
- .ci-table-view {
147
- width: 100%;
148
- overflow: hidden;
149
- white-space: nowrap;
150
- text-overflow: ellipsis;
151
- }
152
-
153
- //u为范围-点阵图
154
- .unit-bitmap-box {
155
-
156
- .lattice {
157
- cursor: pointer;
158
- float: left;
159
- display: block;
160
- width: 26px;
161
- height: 26px;
162
- margin: 2px 4px 2px 0px;
163
- padding: 0;
164
- color: rgba(0, 0, 0, .65);
165
- line-height: 26px;
166
- text-align: center;
167
- background: #E8E8E8;
168
- border: 1px solid transparent;
169
- border-radius: 2px;
170
- -webkit-transition: background .3s ease;
171
- transition: background .3s ease;
172
- }
173
172
 
174
- .locked_lattice {
175
- color: rgba(0, 0, 0, .25);
176
- background: #f5f5f5;
177
- border: 1px solid transparent;
178
- border-radius: 0;
179
- cursor: not-allowed;
180
- }
173
+ .locked_lattice {
174
+ color: rgba(0, 0, 0, .25);
175
+ background: #f5f5f5;
176
+ border: 1px solid transparent;
177
+ border-radius: 0;
178
+ cursor: not-allowed;
179
+ }
181
180
 
182
- .usaged_lattice {
183
- color: #fff;
184
- background: #1890FF;
185
- border: 1px solid transparent;
186
- border-radius: 0;
187
- }
181
+ .usaged_lattice {
182
+ color: #fff;
183
+ background: #1890FF;
184
+ border: 1px solid transparent;
185
+ border-radius: 0;
186
+ }
188
187
 
188
+ }
189
189
  }
@@ -34,17 +34,16 @@ var DoUnitBitmap = function DoUnitBitmap(_ref) {
34
34
  return /*#__PURE__*/React.createElement("div", {
35
35
  className: 'unit-bitmap-box'
36
36
  }, (list === null || list === void 0 ? void 0 : list.length) > 0 ? /*#__PURE__*/React.createElement(Fragment, null, list === null || list === void 0 ? void 0 : list.map(function (item) {
37
- var _classnames, _classnames2;
38
37
  return /*#__PURE__*/React.createElement(Fragment, {
39
38
  key: item.index
40
39
  }, item.status == 2 ? /*#__PURE__*/React.createElement(_Popover, {
41
40
  content: content(item)
42
41
  }, /*#__PURE__*/React.createElement("div", {
43
42
  key: item.index,
44
- className: classnames('lattice', (_classnames = {}, _defineProperty(_classnames, 'locked_lattice', item.status === 1), _defineProperty(_classnames, 'usaged_lattice', item.status === 2), _classnames))
43
+ className: classnames('lattice', _defineProperty(_defineProperty({}, 'locked_lattice', item.status === 1), 'usaged_lattice', item.status === 2))
45
44
  }, item.index)) : /*#__PURE__*/React.createElement("div", {
46
45
  key: item.index,
47
- className: classnames('lattice', (_classnames2 = {}, _defineProperty(_classnames2, 'locked_lattice', item.status === 1), _defineProperty(_classnames2, 'usaged_lattice', item.status === 2), _classnames2))
46
+ className: classnames('lattice', _defineProperty(_defineProperty({}, 'locked_lattice', item.status === 1), 'usaged_lattice', item.status === 2))
48
47
  }, item.index));
49
48
  })) : '-');
50
49
  };
@@ -1,5 +1,9 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
1
2
  import _TooltipText from "@chaoswise/ui/lib/TooltipText";
2
3
  import _Typography from "@chaoswise/ui/lib/Antd/Typography";
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
3
7
  import React, { Fragment } from "react";
4
8
  var Paragraph = _Typography.Paragraph;
5
9
  var DoCommon = function DoCommon(_ref) {
@@ -16,14 +20,14 @@ var DoCommon = function DoCommon(_ref) {
16
20
  key: index
17
21
  }, paragraphEllipsis ? /*#__PURE__*/React.createElement(Paragraph, {
18
22
  ellipsis: paragraphEllipsis,
19
- style: {
23
+ style: _defineProperty({
20
24
  whiteSpace: 'initial'
21
- }
22
- }, item.value) : /*#__PURE__*/React.createElement("span", {
23
- style: {
25
+ }, "whiteSpace", 'pre-line')
26
+ }, item.value || '-') : /*#__PURE__*/React.createElement("span", {
27
+ style: _defineProperty({
24
28
  whiteSpace: 'initial'
25
- }
26
- }, item.value));
29
+ }, "whiteSpace", 'pre-line')
30
+ }, item.value || '-'));
27
31
  })));
28
32
  };
29
33
  export default DoCommon;
@@ -1,104 +1,106 @@
1
- .wrapper {
2
- height: 28px;
3
- font-size: 12px;
4
- display: flex;
5
- align-items: center;
1
+ .form-properties-box {
2
+ .wrapper {
3
+ height: 28px;
4
+ font-size: 12px;
5
+ display: flex;
6
+ align-items: center;
6
7
 
7
- .wrapper-inner {
8
- float: left;
9
- height: 20px;
10
- line-height: 20px;
11
- margin-right: 8px;
12
- background: #fafafa;
13
- border: 1px solid #d9d9d9;
14
- border-radius: 2px;
15
- cursor: pointer;
16
- overflow: hidden;
17
- text-overflow: ellipsis;
18
- white-space: nowrap;
19
- }
8
+ .wrapper-inner {
9
+ float: left;
10
+ height: 20px;
11
+ line-height: 20px;
12
+ margin-right: 8px;
13
+ background: #fafafa;
14
+ border: 1px solid #d9d9d9;
15
+ border-radius: 2px;
16
+ cursor: pointer;
17
+ overflow: hidden;
18
+ text-overflow: ellipsis;
19
+ white-space: nowrap;
20
+ }
20
21
 
21
- .wrapper-inner:last-child {
22
- margin-right: 0;
22
+ .wrapper-inner:last-child {
23
+ margin-right: 0;
24
+ }
25
+
26
+ .wrapper-inner-fixed {
27
+ float: left;
28
+ height: 20px;
29
+ line-height: 20px;
30
+ margin-right: 2px;
31
+ padding: 0px 6px;
32
+ background: #fafafa;
33
+ border: 1px solid #d9d9d9;
34
+ border-radius: 2px;
35
+ cursor: pointer;
36
+ }
37
+
38
+ &.edit-wrapper {
39
+ .wrapper-inner {
40
+ height: 28px;
41
+ line-height: 28px;
42
+ }
43
+
44
+ .wrapper-inner-fixed {
45
+ height: 28px;
46
+ line-height: 28px;
47
+ }
48
+ }
23
49
  }
24
50
 
25
- .wrapper-inner-fixed {
26
- float: left;
27
- height: 20px;
28
- line-height: 20px;
29
- margin-right: 2px;
30
- padding: 0px 6px;
31
- background: #fafafa;
32
- border: 1px solid #d9d9d9;
33
- border-radius: 2px;
34
- cursor: pointer;
51
+ .@{ant-prefix}-popover-inner-content:nth-child(4n) {
52
+ margin-right: 0px;
35
53
  }
36
54
 
37
- &.edit-wrapper {
38
- .wrapper-inner {
39
- height: 28px;
40
- line-height: 28px;
41
- }
55
+ .inner {
56
+ max-width: 220px;
57
+ font-size: 12px;
42
58
 
43
- .wrapper-inner-fixed {
59
+ .@{ant-prefix}-popover-inner-content {
60
+ // float: left;
61
+ // max-width: 85px;
44
62
  height: 28px;
45
63
  line-height: 28px;
64
+ background: #fafafa;
65
+ border: 1px solid #d9d9d9;
66
+ border-radius: 2px;
67
+ // padding: 0 6px;
68
+ margin-bottom: 2px;
69
+ cursor: pointer;
70
+ // overflow: hidden;
71
+ // text-overflow: ellipsis;
72
+ // white-space: nowrap;
46
73
  }
47
74
  }
48
- }
49
-
50
- .ant-popover-inner-content:nth-child(4n) {
51
- margin-right: 0px;
52
- }
53
75
 
54
- .inner {
55
- max-width: 220px;
56
- font-size: 12px;
57
-
58
- .ant-popover-inner-content {
59
- // float: left;
60
- // max-width: 85px;
61
- height: 28px;
62
- line-height: 28px;
63
- background: #fafafa;
64
- border: 1px solid #d9d9d9;
65
- border-radius: 2px;
66
- // padding: 0 6px;
67
- margin-bottom: 2px;
68
- cursor: pointer;
69
- // overflow: hidden;
70
- // text-overflow: ellipsis;
71
- // white-space: nowrap;
76
+ .inner:after {
77
+ /*伪元素是行内元素 正常浏览器清除浮动方法*/
78
+ content: "";
79
+ display: block;
80
+ height: 0;
81
+ clear: both;
82
+ visibility: hidden;
72
83
  }
73
- }
74
84
 
75
- .inner:after {
76
- /*伪元素是行内元素 正常浏览器清除浮动方法*/
77
- content: "";
78
- display: block;
79
- height: 0;
80
- clear: both;
81
- visibility: hidden;
82
- }
83
85
 
84
-
85
- .ellipsis-box {
86
- overflow: hidden;
87
- text-overflow: ellipsis;
88
- white-space: nowrap;
89
- }
86
+ .ellipsis-box {
87
+ overflow: hidden;
88
+ text-overflow: ellipsis;
89
+ white-space: nowrap;
90
+ }
90
91
 
91
92
 
92
- .tag-ci-detail-avatar {
93
- color: #fff;
94
- background-color: #008dff;
95
- margin-right: 8px;
96
- font-size: 10px !important;
97
- margin-top: -2px;
98
- }
93
+ .tag-ci-detail-avatar {
94
+ color: #fff;
95
+ background-color: #008dff;
96
+ margin-right: 8px;
97
+ font-size: 10px !important;
98
+ margin-top: -2px;
99
+ }
99
100
 
100
101
  .tag-wrapper-inner {
101
102
  .@{ant-prefix}-popover-inner-content {
102
103
  padding: 8px !important;
103
104
  }
104
- }
105
+ }
106
+ }