
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
a Web Design Language Based on the Vue and Element version
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);
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| isCollapse | 是否折叠 | Boolean | -- | -- |
| currentRouteName | 当前路由 | String | -- | -- |
| data | 菜单配置项(包含一下三项) | Array | -- | [] |
| title | 菜单标题 | String | -- | -- |
| icon | 菜单图标 | String | -- | -- |
| routeName | 菜单对应路由 | String | -- | -- |
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| data | 菜单配置项(包含一下三项) | Array | -- | [] |
| title | 菜单标题 | String | -- | -- |
| icon | 菜单图标 | String | -- | -- |
| routeName | 菜单对应路由 | String | -- | -- |
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| isCollapse | 是否折叠 | Boolean | -- | -- |
| title | 侧边栏标题 | String | -- | -- |
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| title | 面板标题 | String | -- | -- |
| size | 面板大小 | String | sm, '' | '' |
| isShowHeading | 是否展示heading | Boolean | -- | true |
| isShowAction | 是否展示操作 | Boolean | -- | false |
FAQs
a Web Design Language
We found that cd-element demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.