1.3.9 • Published 2 years ago

scx-kit v1.3.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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

2 years ago

1.3.6

2 years ago

1.3.5

2 years ago

1.3.4

2 years ago

1.3.9

2 years ago

1.3.8

2 years ago

1.3.3

2 years ago

1.2.0

2 years ago

1.2.8

2 years ago

1.1.9

2 years ago

1.2.7

2 years ago

1.1.8

2 years ago

1.2.6

2 years ago

1.1.7

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.3.2

2 years ago

1.2.3

2 years ago

1.3.1

2 years ago

1.2.2

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.15

2 years ago

1.1.14

2 years ago

1.1.13

2 years ago

1.2.9

2 years ago

1.2.10

2 years ago

1.2.11

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.0.2

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago