@riil-frontend/component-topology 3.5.0-a.21 → 3.5.0-a.22
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/build/1.js +1 -1
- package/build/index.js +12 -12
- package/es/core/models/TopoApp.js +1 -1
- package/es/topoCenter/components/editor/propertyViews/edge/addLinkDrawer/components/editLinkInfo.js +4 -14
- package/lib/core/models/TopoApp.js +1 -1
- package/lib/topoCenter/components/editor/propertyViews/edge/addLinkDrawer/components/editLinkInfo.js +4 -14
- package/package.json +2 -2
|
@@ -20,7 +20,7 @@ import { updateEdgeExpanded } from "../utils/edgeUtil";
|
|
|
20
20
|
import PluginManager from "./PluginManager";
|
|
21
21
|
import topoFactory from "./topoFactory"; // eslint-disable-next-line no-undef
|
|
22
22
|
|
|
23
|
-
var version = typeof "3.5.0-a.
|
|
23
|
+
var version = typeof "3.5.0-a.22" === 'string' ? "3.5.0-a.22" : null;
|
|
24
24
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
|
25
25
|
/**
|
|
26
26
|
* 拓扑显示和编辑
|
package/es/topoCenter/components/editor/propertyViews/edge/addLinkDrawer/components/editLinkInfo.js
CHANGED
|
@@ -283,20 +283,10 @@ export default function EditLinkInfo(props) {
|
|
|
283
283
|
span: "12"
|
|
284
284
|
}, /*#__PURE__*/React.createElement(FormItem, _extends({}, formItemLayout, {
|
|
285
285
|
labelAlign: labelAlign,
|
|
286
|
-
label: "\u76EE\u7684\u8282\u70B9IP"
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
// ? "不能为空"
|
|
291
|
-
// : !validator.isIP(value, "4")
|
|
292
|
-
// ? "IP地址格式不正确"
|
|
293
|
-
// : ""
|
|
294
|
-
// }
|
|
295
|
-
// validateState={
|
|
296
|
-
// validator.isIP(value, "4") && value ? "success" : "error"
|
|
297
|
-
// }
|
|
298
|
-
// validatorTrigger="onBlur"
|
|
299
|
-
|
|
286
|
+
label: "\u76EE\u7684\u8282\u70B9IP",
|
|
287
|
+
pattern: /^((25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))$/,
|
|
288
|
+
patternTrigger: "onBlur",
|
|
289
|
+
patternMessage: "IP\u5730\u5740\u683C\u5F0F\u4E0D\u6B63\u786E"
|
|
300
290
|
}), targetIpComp(target)))), /*#__PURE__*/React.createElement(Row, {
|
|
301
291
|
gutter: "16"
|
|
302
292
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
@@ -48,7 +48,7 @@ var _PluginManager = _interopRequireDefault(require("./PluginManager"));
|
|
|
48
48
|
var _topoFactory = _interopRequireDefault(require("./topoFactory"));
|
|
49
49
|
|
|
50
50
|
// eslint-disable-next-line no-undef
|
|
51
|
-
var version = typeof "3.5.0-a.
|
|
51
|
+
var version = typeof "3.5.0-a.22" === 'string' ? "3.5.0-a.22" : null;
|
|
52
52
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
|
53
53
|
/**
|
|
54
54
|
* 拓扑显示和编辑
|
package/lib/topoCenter/components/editor/propertyViews/edge/addLinkDrawer/components/editLinkInfo.js
CHANGED
|
@@ -314,20 +314,10 @@ function EditLinkInfo(props) {
|
|
|
314
314
|
span: "12"
|
|
315
315
|
}, /*#__PURE__*/_react["default"].createElement(FormItem, (0, _extends2["default"])({}, formItemLayout, {
|
|
316
316
|
labelAlign: labelAlign,
|
|
317
|
-
label: "\u76EE\u7684\u8282\u70B9IP"
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
// ? "不能为空"
|
|
322
|
-
// : !validator.isIP(value, "4")
|
|
323
|
-
// ? "IP地址格式不正确"
|
|
324
|
-
// : ""
|
|
325
|
-
// }
|
|
326
|
-
// validateState={
|
|
327
|
-
// validator.isIP(value, "4") && value ? "success" : "error"
|
|
328
|
-
// }
|
|
329
|
-
// validatorTrigger="onBlur"
|
|
330
|
-
|
|
317
|
+
label: "\u76EE\u7684\u8282\u70B9IP",
|
|
318
|
+
pattern: /^((25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))$/,
|
|
319
|
+
patternTrigger: "onBlur",
|
|
320
|
+
patternMessage: "IP\u5730\u5740\u683C\u5F0F\u4E0D\u6B63\u786E"
|
|
331
321
|
}), targetIpComp(target)))), /*#__PURE__*/_react["default"].createElement(Row, {
|
|
332
322
|
gutter: "16"
|
|
333
323
|
}, /*#__PURE__*/_react["default"].createElement(Col, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riil-frontend/component-topology",
|
|
3
|
-
"version": "3.5.0-a.
|
|
3
|
+
"version": "3.5.0-a.22",
|
|
4
4
|
"description": "拓扑",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "build-scripts start",
|
|
@@ -110,6 +110,6 @@
|
|
|
110
110
|
"access": "public"
|
|
111
111
|
},
|
|
112
112
|
"license": "MIT",
|
|
113
|
-
"homepage": "https://unpkg.com/@riil-frontend/component-topology@3.5.0-a.
|
|
113
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@3.5.0-a.22/build/index.html",
|
|
114
114
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
|
115
115
|
}
|