@next-core/brick-kit 2.117.8 → 2.117.9
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/CHANGELOG.md +12 -0
- package/dist/index.bundle.js +5 -8
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +5 -8
- package/dist/index.esm.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.117.9](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.117.8...@next-core/brick-kit@2.117.9) (2022-04-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* put template preview route before others ([bcb1cac](https://github.com/easyops-cn/next-core/commit/bcb1cac988befac5dab41c325921d7738bb8c306))
|
|
12
|
+
* support setting targetRef as array ([ec822f3](https://github.com/easyops-cn/next-core/commit/ec822f37f881efe96a06b7fe53af17e6a40c79c6))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
## [2.117.8](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.117.7...@next-core/brick-kit@2.117.8) (2022-04-14)
|
|
7
19
|
|
|
8
20
|
|
package/dist/index.bundle.js
CHANGED
|
@@ -6259,15 +6259,12 @@
|
|
|
6259
6259
|
} else if (handler.target) {
|
|
6260
6260
|
targets.push(handler.target);
|
|
6261
6261
|
} else if (handler.targetRef) {
|
|
6262
|
-
var _tpl$$$getElementByRe;
|
|
6263
|
-
|
|
6264
6262
|
var tpl = getTplContext(context.tplContextId).getBrick().element;
|
|
6263
|
+
targets.push(...[].concat(handler.targetRef).map(ref => {
|
|
6264
|
+
var _tpl$$$getElementByRe;
|
|
6265
6265
|
|
|
6266
|
-
|
|
6267
|
-
|
|
6268
|
-
if (_found) {
|
|
6269
|
-
targets.push(_found);
|
|
6270
|
-
}
|
|
6266
|
+
return (_tpl$$$getElementByRe = tpl.$$getElementByRef) === null || _tpl$$$getElementByRe === void 0 ? void 0 : _tpl$$$getElementByRe.call(tpl, ref);
|
|
6267
|
+
}).filter(Boolean));
|
|
6271
6268
|
}
|
|
6272
6269
|
|
|
6273
6270
|
if (targets.length === 0) {
|
|
@@ -8089,7 +8086,7 @@
|
|
|
8089
8086
|
};
|
|
8090
8087
|
|
|
8091
8088
|
if (previewRouteIndex === -1) {
|
|
8092
|
-
routes.
|
|
8089
|
+
routes.unshift(newPreviewRoute);
|
|
8093
8090
|
} else {
|
|
8094
8091
|
routes.splice(previewRouteIndex, 1, newPreviewRoute);
|
|
8095
8092
|
}
|