2.1.1 • Published 5 years ago

pc-drawer v2.1.1

Weekly downloads
108
License
-
Repository
-
Last release
5 years ago

pc-drawer组件

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

publish

  1. 修改README.md里面的版本号
  2. 执行以下命令
npm run build:lib
npm login
npm publish

usage

  1. 安装

    npm install pc-drawer --save
  2. 引入

import pcDrawer from 'pc-drawer'
  1. 注册
components: {
    pcDrawer
}
  1. 使用

props

参数说明类型可选值默认值
title抽屉标题String-' '
closable是否显示右上角的关闭按钮Boolean-true
width抽屉宽度Number | String-256
class_name上传地址urlString-' '
height抽屉高度,必须和class_name合用Number | String-'100%'
mask_closable是否允许点击遮罩层关闭Boolean-true
mask是否显示遮罩层Boolean-true
mask_style遮罩层样式Object--
showFooter是否展示底部slotBoolean-true

events

事件名称说明回调参数
on-visible-change显示状态发生变化时触发true / false

slot

name说明
content内容
footer底部内容

Customize configuration

2.1.1

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.1.1

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago