k-window的关闭与打开设置

 

  // 打开弹框窗口
  public showKwinDow() {
    const that = this as any;
    // 设置窗口居中
    that.$refs['setAddEdit'].widget.center();
    // 打开窗口
    that.$refs['setAddEdit'].widget.open();
  }

   

 // 关闭弹框窗口
  public closepopWindow() {
    const that = this as any;
    // 关闭窗口
    that.setAddEditWindow = false;
    that.$refs['setAddEdit'].widget.close();
  }

  

   setAddEditWindow: false,
   actions: ['Pin', 'Minimize', 'Maximize', 'Close'],

  

 <k-window ref='setAddEdit'
   width="350"
   :visible="setAddEditWindow"
   modal='true' 
   v-on:close="setAccountType_close"
  :actions="actions">
      <div>徐文龙</div>
 </k-window>

  

  

posted @ 2019-06-19 14:43  龙旋风  阅读(512)  评论(1)    收藏  举报