raise-common-lib 0.0.102 → 0.0.103
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/bundles/raise-common-lib.umd.js +12 -5
- package/bundles/raise-common-lib.umd.js.map +1 -1
- package/bundles/raise-common-lib.umd.min.js +1 -1
- package/bundles/raise-common-lib.umd.min.js.map +1 -1
- package/esm2015/lib/layout/nav-card-group/index.component.js +14 -7
- package/esm5/lib/layout/nav-card-group/index.component.js +14 -7
- package/fesm2015/raise-common-lib.js +12 -5
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +12 -5
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/layout/nav-card-group/index.component.d.ts +3 -1
- package/package.json +1 -1
- package/raise-common-lib.metadata.json +1 -1
|
@@ -3971,9 +3971,10 @@
|
|
|
3971
3971
|
var RSNavCardGroupComponent = /** @class */ (function () {
|
|
3972
3972
|
function RSNavCardGroupComponent(router) {
|
|
3973
3973
|
this.router = router;
|
|
3974
|
-
|
|
3975
|
-
// navClick = new EventEmitter<any>();
|
|
3974
|
+
this.navClick = new core.EventEmitter();
|
|
3976
3975
|
this.navList = [];
|
|
3976
|
+
this.customNavClick = false; // 接收输入属性
|
|
3977
|
+
// 接收输入属性
|
|
3977
3978
|
this.title = "";
|
|
3978
3979
|
}
|
|
3979
3980
|
/**
|
|
@@ -3982,8 +3983,7 @@
|
|
|
3982
3983
|
RSNavCardGroupComponent.prototype.ngOnInit = /**
|
|
3983
3984
|
* @return {?}
|
|
3984
3985
|
*/
|
|
3985
|
-
function () {
|
|
3986
|
-
};
|
|
3986
|
+
function () { };
|
|
3987
3987
|
/**
|
|
3988
3988
|
* @param {?} item
|
|
3989
3989
|
* @return {?}
|
|
@@ -3993,9 +3993,10 @@
|
|
|
3993
3993
|
* @return {?}
|
|
3994
3994
|
*/
|
|
3995
3995
|
function (item) {
|
|
3996
|
-
if (
|
|
3996
|
+
if (!this.customNavClick) {
|
|
3997
3997
|
this.router.navigate([item.url], { state: { title: item.title } });
|
|
3998
3998
|
}
|
|
3999
|
+
this.navClick.emit(item);
|
|
3999
4000
|
};
|
|
4000
4001
|
RSNavCardGroupComponent.decorators = [
|
|
4001
4002
|
{ type: core.Component, args: [{
|
|
@@ -4009,15 +4010,21 @@
|
|
|
4009
4010
|
{ type: router.Router }
|
|
4010
4011
|
]; };
|
|
4011
4012
|
RSNavCardGroupComponent.propDecorators = {
|
|
4013
|
+
navClick: [{ type: core.Output }],
|
|
4012
4014
|
navList: [{ type: core.Input }],
|
|
4015
|
+
customNavClick: [{ type: core.Input }],
|
|
4013
4016
|
title: [{ type: core.Input }]
|
|
4014
4017
|
};
|
|
4015
4018
|
return RSNavCardGroupComponent;
|
|
4016
4019
|
}());
|
|
4017
4020
|
if (false) {
|
|
4021
|
+
/** @type {?} */
|
|
4022
|
+
RSNavCardGroupComponent.prototype.navClick;
|
|
4018
4023
|
/** @type {?} */
|
|
4019
4024
|
RSNavCardGroupComponent.prototype.navList;
|
|
4020
4025
|
/** @type {?} */
|
|
4026
|
+
RSNavCardGroupComponent.prototype.customNavClick;
|
|
4027
|
+
/** @type {?} */
|
|
4021
4028
|
RSNavCardGroupComponent.prototype.title;
|
|
4022
4029
|
/** @type {?} */
|
|
4023
4030
|
RSNavCardGroupComponent.prototype.router;
|