js
NiDialog.open({
windowClass: '',
size:'elements',
backdrop: 'static',
keyboard: false,
templateUrl: '/static/tpl/admin/dialogs/addElements.tpl',
controller: 'addElementsCtrl'
});
通过size控制,属性值为class,编译时会自动拼接类名为modal-elements,只需要将样式在css文件中设置就可以啦
.modal-elements{
min-width: 768px;
}