@zgfe/business-lib 1.1.3-user.9 → 1.1.4
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/es/assets/iconfont/demo_index.html +3 -3
- package/es/assets/iconfont/iconfont.css +3 -3
- package/es/assets/iconfont/iconfont.ttf +0 -0
- package/es/assets/iconfont/iconfont.woff +0 -0
- package/es/assets/iconfont/iconfont.woff2 +0 -0
- package/es/context/index.d.ts +1 -0
- package/es/demoWrapper/index.d.ts +1 -0
- package/es/demoWrapper/index.js +1 -0
- package/es/userCondition/index.js +39 -1
- package/package.json +2 -2
|
@@ -474,9 +474,9 @@
|
|
|
474
474
|
<pre><code class="language-css"
|
|
475
475
|
>@font-face {
|
|
476
476
|
font-family: 'bsicon';
|
|
477
|
-
src: url('iconfont.woff2?t=
|
|
478
|
-
url('iconfont.woff?t=
|
|
479
|
-
url('iconfont.ttf?t=
|
|
477
|
+
src: url('iconfont.woff2?t=1667463458318') format('woff2'),
|
|
478
|
+
url('iconfont.woff?t=1667463458318') format('woff'),
|
|
479
|
+
url('iconfont.ttf?t=1667463458318') format('truetype');
|
|
480
480
|
}
|
|
481
481
|
</code></pre>
|
|
482
482
|
<h3 id="-iconfont-">第二步:定义使用 iconfont 的样式</h3>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: "bsicon"; /* Project id 2545884 */
|
|
3
|
-
src: url('iconfont.woff2?t=
|
|
4
|
-
url('iconfont.woff?t=
|
|
5
|
-
url('iconfont.ttf?t=
|
|
3
|
+
src: url('iconfont.woff2?t=1667463458318') format('woff2'),
|
|
4
|
+
url('iconfont.woff?t=1667463458318') format('woff'),
|
|
5
|
+
url('iconfont.ttf?t=1667463458318') format('truetype');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.bsicon {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/es/context/index.d.ts
CHANGED
package/es/demoWrapper/index.js
CHANGED
|
@@ -16,6 +16,7 @@ import BizLoginForm from '../loginForm';
|
|
|
16
16
|
import request from '../utils/ajax';
|
|
17
17
|
import DemoContent from './content';
|
|
18
18
|
import DemoHeader from './head';
|
|
19
|
+
import '../assets/iconfont/iconfont.css';
|
|
19
20
|
|
|
20
21
|
var DemoWrapper = function DemoWrapper(_ref) {
|
|
21
22
|
var children = _ref.children,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
2
|
+
|
|
1
3
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
2
4
|
|
|
3
5
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -132,6 +134,42 @@ var BizUserCondition = function BizUserCondition(props) {
|
|
|
132
134
|
setLoading(false);
|
|
133
135
|
}
|
|
134
136
|
}, []);
|
|
137
|
+
var haveCdpValues = useMemo(function () {
|
|
138
|
+
var flag = false;
|
|
139
|
+
|
|
140
|
+
var _iterator = _createForOfIteratorHelper(value),
|
|
141
|
+
_step;
|
|
142
|
+
|
|
143
|
+
try {
|
|
144
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
145
|
+
var condition = _step.value;
|
|
146
|
+
|
|
147
|
+
var _iterator2 = _createForOfIteratorHelper(condition),
|
|
148
|
+
_step2;
|
|
149
|
+
|
|
150
|
+
try {
|
|
151
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
152
|
+
var item = _step2.value;
|
|
153
|
+
|
|
154
|
+
if (item.dataset) {
|
|
155
|
+
flag = true;
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
} catch (err) {
|
|
160
|
+
_iterator2.e(err);
|
|
161
|
+
} finally {
|
|
162
|
+
_iterator2.f();
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
} catch (err) {
|
|
166
|
+
_iterator.e(err);
|
|
167
|
+
} finally {
|
|
168
|
+
_iterator.f();
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
return flag;
|
|
172
|
+
}, [value]);
|
|
135
173
|
|
|
136
174
|
function initShowList() {
|
|
137
175
|
var showList = [];
|
|
@@ -245,7 +283,7 @@ var BizUserCondition = function BizUserCondition(props) {
|
|
|
245
283
|
show: value.length < andConditionNum,
|
|
246
284
|
label: "\u4E14",
|
|
247
285
|
onAdd: onAdd
|
|
248
|
-
}), openCdpCondition && (!menuNameMap || menuNameMap['dataset']) && !props.textMode ? /*#__PURE__*/React.createElement("div", {
|
|
286
|
+
}), openCdpCondition && (!menuNameMap || menuNameMap['dataset']) && !props.textMode && haveCdpValues ? /*#__PURE__*/React.createElement("div", {
|
|
249
287
|
className: "".concat(classPrefix, "-tip")
|
|
250
288
|
}, ' ', /*#__PURE__*/React.createElement(IconFont, {
|
|
251
289
|
type: "tishiicon"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/business-lib",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"react": "^16.12.0 || ^17.0.0",
|
|
61
61
|
"yorkie": "^2.0.0"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "f15e08ecf2babc1667abccfdbbabd70b701e088a"
|
|
64
64
|
}
|