core component to vnComponent working
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
9d8c64fb92
commit
b926f8f8ad
|
@ -214,7 +214,7 @@ export default class ArrayModel extends ModelProxy {
|
|||
}
|
||||
ArrayModel.$inject = ['$q', '$filter', '$element', '$scope'];
|
||||
|
||||
ngModule.component('vnArrayModel', {
|
||||
ngModule.vnComponent('vnArrayModel', {
|
||||
controller: ArrayModel,
|
||||
bindings: {
|
||||
orgData: '<?',
|
||||
|
|
|
@ -272,7 +272,7 @@ export default class CrudModel extends ModelProxy {
|
|||
}
|
||||
CrudModel.$inject = ['$q', '$http', '$element', '$scope'];
|
||||
|
||||
ngModule.component('vnCrudModel', {
|
||||
ngModule.vnComponent('vnCrudModel', {
|
||||
controller: CrudModel,
|
||||
bindings: {
|
||||
orgData: '<?',
|
||||
|
|
|
@ -25,7 +25,7 @@ class Icon {
|
|||
}
|
||||
Icon.$inject = ['$attrs'];
|
||||
|
||||
ngModule.component('vnIcon', {
|
||||
ngModule.vnComponent('vnIcon', {
|
||||
template: '<i class="{{::$ctrl.iconClass}} unselectable">{{::$ctrl.iconContent}}</i>',
|
||||
controller: Icon,
|
||||
bindings: {
|
||||
|
|
|
@ -30,7 +30,7 @@ export class DataModel extends Component {
|
|||
clear() {}
|
||||
}
|
||||
|
||||
ngModule.component('vnDataModel', {
|
||||
ngModule.vnComponent('vnDataModel', {
|
||||
controller: DataModel,
|
||||
bindings: {
|
||||
data: '=?',
|
||||
|
@ -269,7 +269,7 @@ export default class ModelProxy extends DataModel {
|
|||
}
|
||||
}
|
||||
|
||||
ngModule.component('vnModelProxy', {
|
||||
ngModule.vnComponent('vnModelProxy', {
|
||||
controller: ModelProxy,
|
||||
bindings: {
|
||||
orgData: '<?',
|
||||
|
|
|
@ -114,7 +114,7 @@ export default class MultiCheck extends FormInput {
|
|||
}
|
||||
}
|
||||
|
||||
ngModule.component('vnMultiCheck', {
|
||||
ngModule.vnComponent('vnMultiCheck', {
|
||||
template: require('./multi-check.html'),
|
||||
controller: MultiCheck,
|
||||
bindings: {
|
||||
|
|
|
@ -90,7 +90,7 @@ class Pagination extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
ngModule.component('vnPagination', {
|
||||
ngModule.vnComponent('vnPagination', {
|
||||
template: require('./pagination.html'),
|
||||
bindings: {
|
||||
model: '<',
|
||||
|
|
|
@ -22,7 +22,7 @@ export default class Controller extends Component {
|
|||
|
||||
Controller.$inject = ['$element', '$scope', '$window'];
|
||||
|
||||
ngModule.component('vnScrollUp', {
|
||||
ngModule.vnComponent('vnScrollUp', {
|
||||
template: require('./scroll-up.html'),
|
||||
controller: Controller,
|
||||
bindings: {
|
||||
|
|
|
@ -19,7 +19,7 @@ export default class Portal {
|
|||
}
|
||||
Portal.$inject = ['$transclude', 'vnSlotService'];
|
||||
|
||||
ngModule.component('vnPortal', {
|
||||
ngModule.vnComponent('vnPortal', {
|
||||
controller: Portal,
|
||||
transclude: true,
|
||||
bindings: {
|
||||
|
|
|
@ -144,7 +144,7 @@ export default class Controller extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
ngModule.component('vnSnackbar', {
|
||||
ngModule.vnComponent('vnSnackbar', {
|
||||
template: require('./snackbar.html'),
|
||||
controller: Controller
|
||||
});
|
||||
|
|
|
@ -54,4 +54,4 @@ export const component = {
|
|||
},
|
||||
controller: Spinner
|
||||
};
|
||||
ngModule.component('vnSpinner', component);
|
||||
ngModule.vnComponent('vnSpinner', component);
|
||||
|
|
|
@ -74,7 +74,7 @@ export default class StepControl {
|
|||
|
||||
StepControl.$inject = ['$state'];
|
||||
|
||||
ngModule.component('vnStepControl', {
|
||||
ngModule.vnComponent('vnStepControl', {
|
||||
template: require('./step-control.html'),
|
||||
controller: StepControl,
|
||||
bindings: {
|
||||
|
|
|
@ -197,7 +197,7 @@ export default class Tooltip extends Component {
|
|||
}
|
||||
Tooltip.$inject = ['$element', '$scope', '$timeout'];
|
||||
|
||||
ngModule.component('vnTooltip', {
|
||||
ngModule.vnComponent('vnTooltip', {
|
||||
template: require('./tooltip.html'),
|
||||
controller: Tooltip,
|
||||
transclude: true,
|
||||
|
|
|
@ -49,7 +49,7 @@ class Controller {
|
|||
}
|
||||
Controller.$inject = ['$element', '$scope', '$compile'];
|
||||
|
||||
ngModule.component('vnTreeviewChild', {
|
||||
ngModule.vnComponent('vnTreeviewChild', {
|
||||
template: require('./child.html'),
|
||||
controller: Controller,
|
||||
bindings: {
|
||||
|
|
|
@ -2,7 +2,7 @@ import ngModule from '../../module';
|
|||
|
||||
class Controller {}
|
||||
|
||||
ngModule.component('vnTreeviewChilds', {
|
||||
ngModule.vnComponent('vnTreeviewChilds', {
|
||||
template: require('./childs.html'),
|
||||
controller: Controller,
|
||||
bindings: {
|
||||
|
|
|
@ -247,7 +247,7 @@ export default class Treeview extends Component {
|
|||
|
||||
Treeview.$inject = ['$element', '$scope', '$transclude', '$window'];
|
||||
|
||||
ngModule.component('vnTreeview', {
|
||||
ngModule.vnComponent('vnTreeview', {
|
||||
template: require('./index.html'),
|
||||
controller: Treeview,
|
||||
bindings: {
|
||||
|
|
|
@ -267,7 +267,7 @@ export default class Watcher extends Component {
|
|||
}
|
||||
Watcher.$inject = ['$element', '$scope', '$state', '$stateParams', '$transitions', '$http', 'vnApp', '$translate', '$attrs', '$q'];
|
||||
|
||||
ngModule.component('vnWatcher', {
|
||||
ngModule.vnComponent('vnWatcher', {
|
||||
template: require('./watcher.html'),
|
||||
bindings: {
|
||||
url: '@?',
|
||||
|
|
Loading…
Reference in New Issue