Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-design-core

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-design-core

vue-design-core 要与 (vue-design-build)[https://github.com/vuedesign/vue-design-bulid] 配合使用

  • 0.1.5
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

vue-design-core

vue-design-core 要与 (vue-design-build)[https://github.com/vuedesign/vue-design-bulid] 配合使用

聚成

  • vue
  • vuex
  • vue-router
  • axios

自动加载

  • { root } src/configs 文件夹中的配置文件
  • { root } src/modules 业务模块
  • { root } src/globals 公共模块
  • { root } src/vendors 扩展:组件、指令、过滤器、mixin、插件、UI组件庫、工具
  • { root } src/App.vue 组件入口

安装

npm install vue-design-core vue-design-build --save

使用

import VueDesign from 'vue-design-core';

/* eslint-disable no-new */
new VueDesign().$mount('#app');

使用 router 中方法

import { router } from 'vue-design-core';

router.push({
    name: 'xxx'
});

使用 store 中方法

import { store } from 'vue-design-core';

store.commit('UPDATE', {});
store.dispatch('list', {});

自定义组件入口

import VueDesign, { App } from 'vue-design-core';

/* eslint-disable no-new */
new VueDesign(
    render: h => h(App)
).$mount('#app');

获取 { root } src/configs 文件夹中的配置文件

  • 获取单文件:config('文件名')
  • 获取多文件:configs(['文件名1', '文件名2', '文件名...'])
import { config, configs } from 'vue-design-core';

const globals = config('globals.js');

const menu = config('menu.json');

const configsData = configs(['globals.js', 'menu.json']);

FAQs

Package last updated on 29 Dec 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc