2o3t / 2o3t-OTUI

[Library] OTUI for Vue 组件库

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2O3T-UI

Documentation

Visit 2o3t.cn.

init

import '2o3t-icon-font/dist/font-ot.css';
import '2o3t-ui/libs/styles.css';
import OTUI from '2o3t-ui';

// 三方库
const hljs = require('highlight.js');
const markdownit = require('markdown-it');
const cheerio = require('cheerio');
const clipboard = require('clipboard-polyfill');
Vue.use(OTUI, {
    global: true,
    plugins: {
        markdownit,
        cheerio,
        clipboard,
        hljs,
    },
});

or 引入 CDN

<script src="https://cdn.bootcss.com/highlight.js/9.13.1/highlight.min.js"></script>
<script src="https://cdn.bootcss.com/markdown-it/8.4.2/markdown-it.min.js"></script>
<script src="https://cdn.bootcss.com/clipboard-polyfill/3.0.0-beta3/clipboard-polyfill.promise.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min.js"></script>
import '2o3t-icon-font/dist/font-ot.css';
import '2o3t-ui/libs/styles.css';
import OTUI from '2o3t-ui';

Vue.use(OTUI, {
    global: true,
});

About

[Library] OTUI for Vue 组件库


Languages

Language:Vue 45.8%Language:CSS 34.0%Language:JavaScript 20.0%Language:HTML 0.1%Language:Shell 0.1%