0.2.3 • Published 4 years ago

pie-sl-ganshu-com v0.2.3

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

pie-sl-ganshu-com

甘肃省公用组件

总体引入

import piesatCom from "pie-sl-ganshu-com";
Vue.use(piesatCom)

按需引入

import { // 文件名引入
  header,
  TitleBarLine,
  TitleBarRound,
  table,
  drawer,
  dialog
} from "piesatCom";
Vue.use(header)
Vue.use(TitleBarLine)
Vue.use(TitleBarRound)
Vue.use(table)
Vue.use(drawer)
Vue.use(dialog)

实现按需引入需要

  1. 安装babel-plugin-import
  2. 配置babel.config.js
      "plugins": [
        [
        "import",
        {
          "libraryName": "pie-sl-ganshu-com",
          "camel2DashComponentName": true, // 打开驼峰转连字符
          "camel2UnderlineComponentName": false,
          "style": (name) =>{
            const cssName = name.split('/')[2];
            return `pie-sl-ganshu-com/lib/style/${cssName}.css`
          }
        }
      ]
      ]

使用方法

在html 使用短横线连接
MainHeader
TitleBarLine
TitleBarRound
ElTableEX
ElDrawerSelf
ElDDialogSelf

MainHeader

Props

		menuList: { // 菜单
      require: true,
      type: Array
    },
    baseURL: { // 后台ip
      require: true,
      type: String
    },
    roleName: { // 用户名
      require: true,
      type: String
    },
    title: { // 项目名称
      require: true,
      type: String
    },
    msgVisible: { // 是否显示信息图标
      type: Boolean,
      default: true
    },
    homeURL: { // 主页地址
      type: String
    },
    exitHome: { // 退出ip
      type: String
    }, 
    version: {
      //版本号
      type: String,
      default: "v.1.1.0"
    },
    documentUrl: {
      // 用户手册
      type: String
    }

TitleBarLine

<title-bar-line color="red">标题</title-bar-line>

TitleBarRound

<title-bar-round>标题</title-bar-round>

ElTableEX

ElDrawerSelf

ElDialogSelf

0.2.3

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.4

4 years ago

0.1.2

5 years ago

0.1.3

5 years ago

0.0.20

5 years ago

0.1.1

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.4

5 years ago

0.0.1

5 years ago