@chaoswise/business 0.0.9 → 0.0.11
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.
- package/lib/AggregateSearch/components/CloseAllIcon/assets/Close-Circle-Fill.svg +18 -0
- package/lib/AggregateSearch/components/CloseAllIcon/index.js +13 -0
- package/lib/AggregateSearch/components/CloseAllIcon/index.less +11 -0
- package/lib/AggregateSearch/components/DropDown/index.js +47 -17
- package/lib/AggregateSearch/components/DropDown/index.less +30 -15
- package/lib/AggregateSearch/components/SwitchBtn/index.less +9 -4
- package/lib/AggregateSearch/index.js +61 -16
- package/lib/AggregateSearch/index.less +48 -31
- package/lib/AggregateSearch/utils/index.js +10 -6
- package/lib/PropertyControlViewer/assets/doCommon.less +60 -64
- package/lib/PropertyControlViewer/assets/doSelect.less +60 -67
- package/lib/PropertyControlViewer/assets/index.less +114 -114
- package/lib/PropertyControlViewer/components/TagShowMoreList/index.less +84 -82
- package/lib/PropertyControlViewer/index.less +64 -149
- package/lib/Watermark/index.js +38 -8
- package/package.json +3 -2
|
@@ -1,104 +1,106 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
.form-properties-box {
|
|
2
|
+
.wrapper {
|
|
3
|
+
height: 28px;
|
|
4
|
+
font-size: 12px;
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
22
|
-
|
|
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
|
-
|
|
26
|
-
|
|
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
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
line-height: 28px;
|
|
41
|
-
}
|
|
55
|
+
.inner {
|
|
56
|
+
max-width: 220px;
|
|
57
|
+
font-size: 12px;
|
|
42
58
|
|
|
43
|
-
|
|
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
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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
|
+
}
|
|
@@ -1,117 +1,34 @@
|
|
|
1
|
-
.
|
|
2
|
-
height: 100%;
|
|
3
|
-
width: 100%;
|
|
1
|
+
.form-properties-box {
|
|
4
2
|
display: flex;
|
|
3
|
+
flex-wrap: wrap;
|
|
5
4
|
justify-content: space-between;
|
|
6
|
-
margin-bottom: 24px
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.form_box {
|
|
10
|
-
.cw-form-item-label-horizontal {
|
|
11
|
-
>label {
|
|
12
|
-
width: 100%;
|
|
13
5
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.@{ant-prefix}-checkbox-wrapper+.@{ant-prefix}-checkbox-wrapper {
|
|
22
|
-
margin-right: 8px;
|
|
23
|
-
margin-left: 0px;
|
|
24
|
-
}
|
|
6
|
+
.@{ant-prefix}-form-item {
|
|
7
|
+
padding-bottom: 0px !important;
|
|
8
|
+
margin-bottom: 16px !important;
|
|
25
9
|
}
|
|
26
10
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
width: 100%;
|
|
30
|
-
margin-bottom: 24px;
|
|
31
|
-
|
|
32
|
-
.name {
|
|
33
|
-
width: 85px;
|
|
34
|
-
margin-right: 6px;
|
|
35
|
-
display: flex;
|
|
36
|
-
justify-content: space-between;
|
|
37
|
-
// align-items: center;
|
|
38
|
-
.label {
|
|
39
|
-
display: -webkit-box;
|
|
40
|
-
-webkit-line-clamp: 2;
|
|
41
|
-
-webkit-box-orient: vertical;
|
|
42
|
-
overflow: hidden;
|
|
43
|
-
word-wrap: break-word;
|
|
44
|
-
word-break: break-all;
|
|
45
|
-
width: 95%;
|
|
46
|
-
}
|
|
47
|
-
.symbol {
|
|
48
|
-
flex: 1;
|
|
49
|
-
}
|
|
11
|
+
.@{ant-prefix}-collapse {
|
|
12
|
+
width: 100%;
|
|
50
13
|
}
|
|
51
14
|
|
|
52
|
-
.
|
|
53
|
-
flex: 1;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.CHECKBOX_form {
|
|
58
|
-
.@{ant-prefix}-form-item-control {
|
|
59
|
-
align-items: center !important;
|
|
60
|
-
display: flex !important;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.RACK_UNIT_form {
|
|
65
|
-
height: 28px !important;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.form-box-label-uni-icon {
|
|
69
|
-
padding-left: 10px;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.form-box-label-question-icon {
|
|
73
|
-
padding-left: 6px;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.form-properties-box {
|
|
77
|
-
display: flex;
|
|
78
|
-
flex-wrap: wrap;
|
|
79
|
-
justify-content: space-between;
|
|
80
|
-
|
|
15
|
+
.CM-DB-form-item-box:last-child {
|
|
81
16
|
.@{ant-prefix}-form-item {
|
|
82
|
-
|
|
83
|
-
margin-bottom: 16px !important;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.@{ant-prefix}-collapse {
|
|
87
|
-
width: 100%;
|
|
17
|
+
margin-bottom: 0 !important;
|
|
88
18
|
}
|
|
89
19
|
}
|
|
90
20
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
margin-bottom: 0 !important;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.table-label {
|
|
100
|
-
.@{ant-prefix}-form-item-label {
|
|
101
|
-
width: 100% !important;
|
|
102
|
-
margin-bottom: 6px;
|
|
103
|
-
|
|
104
|
-
& label::after {
|
|
105
|
-
display: none;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
21
|
+
.@{ant-prefix}-typography {
|
|
22
|
+
margin-bottom: 0 !important;
|
|
23
|
+
}
|
|
108
24
|
|
|
25
|
+
.view_table {
|
|
109
26
|
.@{ant-prefix}-form-item-control-wrapper {
|
|
110
|
-
|
|
27
|
+
width: calc(100% - 110px);
|
|
111
28
|
}
|
|
112
|
-
}
|
|
29
|
+
}
|
|
113
30
|
|
|
114
|
-
.
|
|
31
|
+
.form_box {
|
|
115
32
|
.cw-form-item-label-horizontal {
|
|
116
33
|
>label {
|
|
117
34
|
width: 100%;
|
|
@@ -123,69 +40,67 @@
|
|
|
123
40
|
}
|
|
124
41
|
}
|
|
125
42
|
|
|
126
|
-
.@{ant-prefix}-checkbox-wrapper {
|
|
43
|
+
.@{ant-prefix}-checkbox-wrapper+.@{ant-prefix}-checkbox-wrapper {
|
|
127
44
|
margin-right: 8px;
|
|
128
|
-
margin-left: 0px
|
|
45
|
+
margin-left: 0px;
|
|
129
46
|
}
|
|
47
|
+
}
|
|
130
48
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
49
|
+
.attrDetailLabel {
|
|
50
|
+
display: flex;
|
|
51
|
+
width: 100%;
|
|
52
|
+
margin-bottom: 24px;
|
|
53
|
+
|
|
54
|
+
.name {
|
|
55
|
+
width: 85px;
|
|
56
|
+
margin-right: 6px;
|
|
57
|
+
display: flex;
|
|
58
|
+
justify-content: space-between;
|
|
59
|
+
|
|
60
|
+
// align-items: center;
|
|
61
|
+
.label {
|
|
62
|
+
display: -webkit-box;
|
|
63
|
+
-webkit-line-clamp: 2;
|
|
64
|
+
-webkit-box-orient: vertical;
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
word-wrap: break-word;
|
|
67
|
+
word-break: break-all;
|
|
68
|
+
width: 95%;
|
|
69
|
+
}
|
|
141
70
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
overflow: hidden;
|
|
145
|
-
text-overflow: ellipsis;
|
|
146
|
-
white-space: nowrap;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
71
|
+
.symbol {
|
|
72
|
+
flex: 1;
|
|
149
73
|
}
|
|
150
74
|
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
.ciunitbitmap-content-box {
|
|
155
|
-
max-width: 320px;
|
|
156
|
-
display: flex;
|
|
157
|
-
|
|
158
|
-
.ciunitbitmap-modal-icon-box {
|
|
159
|
-
width: 24px;
|
|
160
|
-
height: 24px;
|
|
161
|
-
background-color: rgb(230, 247, 255);
|
|
162
|
-
border-radius: 50%;
|
|
163
|
-
display: flex;
|
|
164
|
-
justify-content: center;
|
|
165
|
-
align-items: center;
|
|
166
75
|
|
|
167
|
-
.
|
|
168
|
-
|
|
169
|
-
color: rgb(25, 133, 255);
|
|
76
|
+
.content {
|
|
77
|
+
flex: 1;
|
|
170
78
|
}
|
|
171
79
|
}
|
|
172
80
|
|
|
173
|
-
.ciunitbitmap-content-
|
|
174
|
-
|
|
81
|
+
.ciunitbitmap-content-box {
|
|
82
|
+
max-width: 320px;
|
|
175
83
|
display: flex;
|
|
176
|
-
align-items: center;
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
84
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
85
|
+
.ciunitbitmap-modal-icon-box {
|
|
86
|
+
width: 24px;
|
|
87
|
+
height: 24px;
|
|
88
|
+
background-color: rgb(230, 247, 255);
|
|
89
|
+
border-radius: 50%;
|
|
90
|
+
display: flex;
|
|
91
|
+
justify-content: center;
|
|
92
|
+
align-items: center;
|
|
93
|
+
|
|
94
|
+
.ciunitbitmap-modal-icon {
|
|
95
|
+
font-size: 12px;
|
|
96
|
+
color: rgb(25, 133, 255);
|
|
97
|
+
}
|
|
184
98
|
}
|
|
185
99
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
100
|
+
.ciunitbitmap-content-text {
|
|
101
|
+
margin-left: 6px;
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
}
|
|
190
105
|
}
|
|
191
106
|
}
|
package/lib/Watermark/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _Watermark from "@chaoswise/ui/lib/Watermark";
|
|
2
2
|
import _message from "@chaoswise/ui/lib/message";
|
|
3
|
-
var _excluded = ["fetchWatermark"];
|
|
3
|
+
var _excluded = ["type", "fetchWatermark", "densityConfig"];
|
|
4
4
|
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); }
|
|
5
5
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
6
6
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -25,15 +25,23 @@ import "./index.less";
|
|
|
25
25
|
|
|
26
26
|
// 疏密类型
|
|
27
27
|
var DENSITY = {
|
|
28
|
+
// 稀疏
|
|
28
29
|
sparse: 1,
|
|
30
|
+
// 标准
|
|
29
31
|
standard: 2,
|
|
32
|
+
// 密集
|
|
30
33
|
dense: 3
|
|
31
34
|
};
|
|
32
35
|
|
|
33
|
-
//
|
|
34
|
-
var
|
|
36
|
+
// 疏密值-web端
|
|
37
|
+
var DENSITY_CONFIG_DESKTOP = _defineProperty(_defineProperty(_defineProperty({}, DENSITY.sparse, [100, 200]), DENSITY.standard, [80, 160]), DENSITY.dense, [60, 120]);
|
|
38
|
+
|
|
39
|
+
// 疏密值-mobile端
|
|
40
|
+
var DENSITY_CONFIG_MOBILE = _defineProperty(_defineProperty(_defineProperty({}, DENSITY.sparse, [200, 400]), DENSITY.standard, [160, 320]), DENSITY.dense, [120, 240]);
|
|
35
41
|
var WatermarkCom = function WatermarkCom(_ref) {
|
|
36
|
-
var _ref$
|
|
42
|
+
var _ref$type = _ref.type,
|
|
43
|
+
type = _ref$type === void 0 ? "desktop" : _ref$type,
|
|
44
|
+
_ref$fetchWatermark = _ref.fetchWatermark,
|
|
37
45
|
fetchWatermark = _ref$fetchWatermark === void 0 ? /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
38
46
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
39
47
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -53,6 +61,8 @@ var WatermarkCom = function WatermarkCom(_ref) {
|
|
|
53
61
|
}
|
|
54
62
|
}, _callee);
|
|
55
63
|
})) : _ref$fetchWatermark,
|
|
64
|
+
_ref$densityConfig = _ref.densityConfig,
|
|
65
|
+
densityConfig = _ref$densityConfig === void 0 ? {} : _ref$densityConfig,
|
|
56
66
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
57
67
|
var watermarkRef = useRef();
|
|
58
68
|
var _useState = useState(false),
|
|
@@ -63,6 +73,17 @@ var WatermarkCom = function WatermarkCom(_ref) {
|
|
|
63
73
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
64
74
|
watermarkProps = _useState4[0],
|
|
65
75
|
setWatermarkProps = _useState4[1];
|
|
76
|
+
var getGapValue = useCallback(function (density) {
|
|
77
|
+
if (Object.keys(densityConfig).length > 0) {
|
|
78
|
+
return densityConfig[density];
|
|
79
|
+
} else {
|
|
80
|
+
if (type === "desktop") {
|
|
81
|
+
return DENSITY_CONFIG_DESKTOP[density];
|
|
82
|
+
} else {
|
|
83
|
+
return DENSITY_CONFIG_MOBILE[density];
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}, [densityConfig, type]);
|
|
66
87
|
useEffect(function () {
|
|
67
88
|
var fetchWatermarkFn = /*#__PURE__*/function () {
|
|
68
89
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
@@ -98,8 +119,7 @@ var WatermarkCom = function WatermarkCom(_ref) {
|
|
|
98
119
|
fontSize: size
|
|
99
120
|
},
|
|
100
121
|
rotate: rotation,
|
|
101
|
-
gap:
|
|
102
|
-
width: null
|
|
122
|
+
gap: getGapValue(density)
|
|
103
123
|
};
|
|
104
124
|
setVisible(!!status);
|
|
105
125
|
setWatermarkProps(props);
|
|
@@ -136,10 +156,20 @@ var WatermarkCom = function WatermarkCom(_ref) {
|
|
|
136
156
|
className: visible ? "portal-watermark" : "portal-watermark-hidden"
|
|
137
157
|
}, /*#__PURE__*/React.createElement(_Watermark, _extends({}, watermarkProps, rest)));
|
|
138
158
|
};
|
|
139
|
-
WatermarkCom.propTypes =
|
|
159
|
+
WatermarkCom.propTypes = {
|
|
160
|
+
/**
|
|
161
|
+
* 水印类型,可选值为 desktop、mobile 或者不设
|
|
162
|
+
*/
|
|
163
|
+
type: PropTypes.string,
|
|
140
164
|
/**
|
|
141
165
|
* 获取水印的信息,需要返回promise,async(value)=>({}),默认地址:/douc/api/v1/watermark/query
|
|
142
166
|
*/
|
|
143
167
|
fetchWatermark: PropTypes.func
|
|
144
|
-
|
|
168
|
+
/**
|
|
169
|
+
* 水印展示密度配置,默认支持三种模式,1: 稀疏,2: 标准 3: 密集,具体相关配置可以通过{1: [xx, yy]} 进行改写,其中xx为x方向间距,yy为y方向间距,单位为px,
|
|
170
|
+
* 可按需进行配置,此配置会覆盖 type 配置
|
|
171
|
+
*/
|
|
172
|
+
// densityConfig: PropTypes.object,
|
|
173
|
+
};
|
|
174
|
+
|
|
145
175
|
export default WatermarkCom;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chaoswise/business",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "业务组件库",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui",
|
|
@@ -104,5 +104,6 @@
|
|
|
104
104
|
"publishConfig": {
|
|
105
105
|
"access": "public"
|
|
106
106
|
},
|
|
107
|
-
"license": "MIT"
|
|
107
|
+
"license": "MIT",
|
|
108
|
+
"gitHead": "60181c1fdb22f05a1d323960462760a08c4769c0"
|
|
108
109
|
}
|