@lucifinil/luc-modal

1.0.0 • Public • Published

luc-modal

介绍

  • 对ant-design-vue modal的二次封装,保留原有的属性和方法。新增全屏、最小化的功能。 image-20240914090749678 image-20240914090804941

  • image-20240914090830909

  • 在某处可停顿 0.5s、1s、2s 等

Install

  npm i @lucifinil/luc-modal

Usages

<template>
  <div>
    <luc-modal
      :centered="true"
      :maskClosable="false"
      title="添加"
      :visible="visible"
      :width="600"
      max
      show-full-screen
      @cancel="visible = false"
    >
      <h3>hello world!</h3>
    </luc-modal>
    <a-button type="primary" @click="openModal">打开</a-button>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        visible: false,
      }
    },
    methods: {
      openModal() {
        this.visible = true;
      }
    }
  }
</script>

MIT

Readme

Keywords

Package Sidebar

Install

npm i @lucifinil/luc-modal

Weekly Downloads

73

Version

1.0.0

License

MIT

Unpacked Size

51.8 kB

Total Files

6

Last publish

Collaborators

  • lucifinil