5.0.4 • Published 4 years ago

dl-vue-ui v5.0.4

Weekly downloads
-
License
-
Repository
-
Last release
4 years ago

Vue 3 + Typescript + Vite

This template should help get you started developing with Vue 3 and Typescript in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.

Recommended IDE Setup

Type Support For .vue Imports in TS

Since TypeScript cannot handle type information for .vue imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in .vue imports (for example to get props validation when using manual h(...) calls), you can enable Volar's .vue type support plugin by running Volar: Switch TS Plugin on/off from VSCode command palette.


组件包的使用

项目中需要安装sass和element-plus依赖

在项目的main.ts中引入

import { createApp } from 'vue'

import App from './App.vue'

import ElementPlus from 'element-plus'

import 'element-plus/theme-chalk/index.css'

import zhCn from 'element-plus/es/locale/lang/zh-cn'

import DlVueUi from 'dl-vue-ui'

createApp(App).use(ElementPlus, {

    locale: zhCn

}).use(DlVueUi).mount('#app')


DlGeneral——通用页面

参数

参数类型说明默认值
space'large' | 'small' | 'mini'头部和主体的间隙mini

插槽

插槽名说明
header头部的内容
main底部/主体的内容

DLDialog——弹出框

使用

引入组件,直接在标签内写入元素

<dl-dialog>元素</dl-dialog>

参数

参数类型说明默认值
valueboolean必填项、dialog的显示和隐藏-
titlestringdialog的标题'默认标题'
widthnumber | stringdialog的宽度,当为number类型时单位为px,string类型时需带上%,'x%''50%'
modalboolean是否需要遮罩层true
append-to-bodyboolean是否插入到body元素上false
close-on-click-modalboolean是否点击外部关闭dialogfalse
close-on-press-escapeboolean是否可以通过ESC关闭dialogfalse
show-closeboolean是否显示关闭按钮true
centerboolean是否对头部和底部采用居中布局false
is-fullscreenboolean是否显示全屏图标true
fullscreenboolean是否全屏false
magnify-iconstring方大图标 使用阿里巴巴矢量图标库'icon-fangda'
shrink-iconstring缩小图标 使用阿里巴巴矢量图标库'icon-suoxiao'
size'large'|'small'|'mini'缩放图标尺寸'small'

事件

事件名说明参数
close关闭窗口的回调方法-
change-fullscreen缩放图标点击回调-
5.0.4

4 years ago

5.0.3

4 years ago

5.0.2

4 years ago

5.0.1

4 years ago

5.0.0

4 years ago

3.0.4

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

1.0.0

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

0.0.0

4 years ago