var dialog = new Dialog({ title: '购物车', type: 'url', width: 520, content: "Uplolo.aspx", showTitle: true, modal: true, onLoad: function () { var self = this; var div = this.getDialogObj(); $(div).delegate(".close", "click", f
public void showUpdateDialog(String content) { //普通的AlertDialog对话框 AlertDialog.Builder builder = new AlertDialog.Builder(LoadingActivity.this); builder.setTitle("版本更新"); builder.setMessage(content); builder.setNegativeButton("取消", new
需求:在页面的代码太多,想把弹窗代码提取为子组件,复用也方便. 这里涉及到弹窗el-dialog的一个属性show-close: show-close="false"是设置不显示关闭按钮,因为弹窗显示状态值(:visible.sync)是从父组件传递的参数,如果使用自带的关闭按钮,会报出一个错误: [Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the p