2017-02-06 17:01:04 +00:00
|
|
|
import {module} from '../module';
|
|
|
|
import Dialog from '../dialog/index';
|
|
|
|
import './style.css';
|
|
|
|
|
|
|
|
export default class Confirm extends Dialog {
|
|
|
|
constructor($element) {
|
|
|
|
super($element);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Dialog.$inject = ['$element'];
|
|
|
|
|
|
|
|
module.component('vnConfirm', {
|
|
|
|
template: require('./index.html'),
|
|
|
|
bindings: {
|
|
|
|
onResponse: '&',
|
2017-02-07 16:38:30 +00:00
|
|
|
question: '@',
|
2017-02-06 17:01:04 +00:00
|
|
|
message: '@'
|
|
|
|
},
|
|
|
|
controller: Confirm
|
|
|
|
});
|