1.0.3 • Published 3 years ago

dialog-drawer-free-cs v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

dialog-drawer-free-cs

基于element-ui的无阻Dialog

Install

npm install dialog-drawer-free-cs --save

Usage

import DialogDrawerFree from 'dialog-drawer-free-cs'

Vue.use(DialogDrawerFree);

<dialog-drawer-free />

Props

字段名称                类型           说明                             默认值
title                  String        标题                             -
width                  String        宽度                             -
visible                Boolean       是否显示Dialog                   false
append-to-body         Boolean       Dialog 自身是否插入至 body 元素上  false

Extend

内置了 el-dialogtitle、dialog-bodysub__title、el-button-group
  <dialog-drawer-free
    title="这是无阻详情弹框"
    width="600px"
    :visible.sync="visible"
  >
    <template slot="title">
      <span class="el-dialog__title">这是无阻详情弹框-自定义title</span>
      <el-button-group>
        <el-button type="primary" size="mini">调拨</el-button>
        <el-button type="primary" size="mini">打印</el-button>
        <el-button type="primary" size="mini">修改</el-button>
        <el-dropdown>
          <el-button type="primary" size="mini" icon="el-icon-more" class="el-button__more" />
          <el-dropdown-menu slot="dropdown">
            <el-dropdown-item>按钮1</el-dropdown-item>
            <el-dropdown-item>按钮2</el-dropdown-item>
            <el-dropdown-item>按钮3</el-dropdown-item>
          </el-dropdown-menu>
        </el-dropdown>
      </el-button-group>
    </template>
    <div class="dialog-body__sub__title">这是title</div>
    <template slot="footer">
      <el-button @click="visible = false">关闭</el-button>
      <el-button type="primary">保存</el-button>
    </template>
  </dialog-drawer-free>
1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago