YuiWindowWrapper

基础用法

属性说明
:titlestringDialog 的标题
:isOpentrue/false是否显示 Dialog
:showMaximizetrue/false最大化按钮是否Disabled
:widthString宽度 格式: 600px

引入YuiWindowWrapper组件

import { YuiWindowWrapper } from "@/components/Application";

export default defineComponent({
  components: {
    YuiWindowWrapper,
  },
 )

使用 yui-window-wrapper 标签:

<yui-window-wrapper
    width="600px"
    :title="data.title"
    :showMaximize="data.Maximize"
    :isOpen="data.isShow"
    @closeModel="close"
    >
    <collapse-container
      class="cl-mb-10"
      title="登录过期示例"
      :can-expan="true"
      help-message="Notification 通知"
    >
      <div class="flex-1">
        <span>
          <el-button :plain="true" @click="sessionTimeout()"
            >点击触发用户登陆过期</el-button
          >
        </span>
      </div>
    </collapse-container>
    <template #footer>
      <span class="dialog-footer">
        <el-button @click="setTitle('testA')">修改Title</el-button>
        <el-button @click="setMaximize(true)">修改最大化按钮</el-button>
        <el-button type="primary" @click="setShow(false)"
          >关闭窗口</el-button
        >
      </span>
    </template>
</yui-window-wrapper>

效果

图片YuiWindowWrapper

Last Updated:
Contributors: wangyifan