天天看點

Ant Design of Vue

支援的環境:

現代浏覽器和 ie9 及以上(需要 polyfills)。

支援服務端渲染。

electron(一個跨平台的、基于 web 前端技術的桌面 gui 應用程式開發架構。可以使用 html、css 來繪制界面和控制布局,使用 javascript 來控制使用者行為和業務邏輯,使用 node.js 來通信、處理音頻視訊等,幾乎所有的 web 前端技術和架構(jquery、vue、react、angular 等)都可以應用到桌面 gui 開發中。)

Ant Design of Vue

$ npm install ant-design-vue --save

$ yarn add ant-design-vue

引入樣式:

import vue from 'vue';

import antd from 'ant-design-vue';

import app from './app';

vue.config.productiontip = false;

vue.use(antd);

加載元件:

// .babelrc or babel-loader option

{ "plugins": [ ["import", { "libraryname": "ant-design-vue", "librarydirectory": "es", "style": "css" ,"style": "true"}] ] }

// babel-plugin-import 會幫助你加載 js 和 css、less

import { datepicker } from 'ant-design-vue';

繼續閱讀