style-plus-ui

0.1.0 • Public • Published

style-plus-ui

Install

# Install stylePlus for vue 3 project

npm i style-plus-ui -S

Use

Use All (完整引入)

import { createApp } from "vue";
import App from "./App.vue";
import stylePlusUi from "style-plus-ui";
import "style-plus-ui/lib/style-plus-ui.css";

createApp(App)
  .use(stylePlusUi)
  .mount("#app");

Use Part (按需引入)

import { createApp } from 'vue'
import App from './App.vue'
import { SButton, STheme,SLoading,... } from 'style-plus-ui'
import 'style-plus-ui/lib/style-plus-ui.css'

const components = [SButton, STheme,SLoading,...];

function installStylePlusUi() {
    components.forEach(component => {
        app.use(component);
    })
}

const app = createApp(App);
installStylePlusUi();
app.mount('#app');

Package Sidebar

Install

npm i style-plus-ui

Weekly Downloads

1

Version

0.1.0

License

ISC

Unpacked Size

88.3 kB

Total Files

24

Last publish

Collaborators

  • fzd2383155523