Skip to content

弹出框 es-window

有确认,取消的选择功能的弹出框

示例代码

<script setup>
import { ref } from "vue";
const showWindow = ref();
</script>

<template>
  <es-button @click="showWindow = !showWindow">创建window</es-button>
  <es-window
    :show="showWindow"
    :title="'window面板'"
    :okText="'确认'"
    :cancelText="'取消'"
    :onlyButton="false"
    :readonly="false"
    :width="700"
    :height="400"
    :isFocus="true"
    @cancel="showWindow = false"
    @ok="changOk"
    :background="'rgba(0, 1, 50, 0.5)'"
    :btnBackground="'rgba(1, 1, 50, 0.5)'"
  >
    <div style="color: black">内容</div>
  </es-window>
</template>

Attributes

属性名说明类型默认值
title标题string设置
width宽度number700
height高度number400
cancelText左边按钮文本string取消
okText右边按钮文本string确认
isFocus窗口是否主焦booleantrue