New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

cd-element

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cd-element

a Web Design Language

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

Codeages Design Vue

a Web Design Language Based on the Vue and Element version

How to use ?

about element component, the same use method as element.

import ElementUI from 'element-ui';
import cdElement from 'cd-element';
import 'cd-element/dist/styles/index.css';

Vue.use(cdElement);
Vue.use(ElementUI);

If you want to On-demand use?

yarn add babel-plugin-import --dev

Then edit .babelrc:

"plugins": [
  ["import", {
    "libraryName": "cd-element",
    "libraryDirectory": "src/components"
  }]
],

Then edit main.js

import {
  VMenu,
  VSubmenu,
  Sidebar,
  Panel
} from 'cd-element';

Vue.component('cd-v-menu', VMenu);
Vue.component('cd-v-submenu', VSubmenu);
Vue.component('cd-sidebar', Sidebar);
Vue.component('cd-panel', Panel);

About cd-element API

Menu
一级menu
参数说明类型可选值默认值
isCollapse是否折叠Boolean----
currentRouteName当前路由String----
data菜单配置项(包含一下三项)Array--[]
title菜单标题String----
icon菜单图标String----
routeName菜单对应路由String----
二级 submenu
参数说明类型可选值默认值
data菜单配置项(包含一下三项)Array--[]
title菜单标题String----
icon菜单图标String----
routeName菜单对应路由String----
sidebar 侧边栏组件
参数说明类型可选值默认值
isCollapse是否折叠Boolean----
title侧边栏标题String----
panel 面板
参数说明类型可选值默认值
title面板标题String----
size面板大小Stringsm, ''''
isShowHeading是否展示headingBoolean--true
isShowAction是否展示操作Boolean--false

Keywords

cd-element

FAQs

Package last updated on 19 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts