1.3.9 • Published 3 years ago

scx-kit v1.3.9

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

English | 简体中文

Some front end kits for SCX

NPM

npm install scx-kit

Quick start

1. Install the vite plugin for ScxIcon .

import {scxIconPlugin} from 'scx-kit/scx-icon-vite-plugins.js';

export default {
    base: './',
    plugins: [scxIconPlugin({
        //Icon inject type, js (use js) or html (inject to the index.html)
        type: 'js',
        //your svg icon root, It can also be an array []
        svgRoot: 'your-svg-root',
    })]
}

2. Install vue component for ScxIcon .

import {createApp} from 'vue';
import {ScxComponent} from 'scx-kit/scx-component.js';
import App from './App.vue';
import 'scx-kit/_scx-theme/default.css'; // Don't forget to import theme
import 'scx-kit/_scx-theme/dark.css';
import 'scx-icon/register'; //if type = js you need import this virtual module

createApp(App)
    .use(ScxComponent)
    .mount('#app');

3. Use ScxIcon component .

<!-- You will see a smile face icon -->
<scx-icon icon="outlined-face-smile"/>

For more information, see docs

Stats

Alt

1.3.7

3 years ago

1.3.6

3 years ago

1.3.5

3 years ago

1.3.4

3 years ago

1.3.9

3 years ago

1.3.8

3 years ago

1.3.3

3 years ago

1.2.0

3 years ago

1.2.8

3 years ago

1.1.9

3 years ago

1.2.7

3 years ago

1.1.8

3 years ago

1.2.6

3 years ago

1.1.7

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.3.2

3 years ago

1.2.3

3 years ago

1.3.1

3 years ago

1.2.2

3 years ago

1.3.0

3 years ago

1.2.1

3 years ago

1.1.12

3 years ago

1.1.11

3 years ago

1.1.10

3 years ago

1.1.15

3 years ago

1.1.14

3 years ago

1.1.13

3 years ago

1.2.9

3 years ago

1.2.10

3 years ago

1.2.11

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.0.2

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago