uni-lucky-ui
v1.0.0
Published
Lucky UI components for UniApp, Vue 3, H5, App, and mini programs.
Downloads
158
Maintainers
Readme
Lucky UI
Lucky UI is a UniApp component library for Vue 3 applications across H5, App, and mini program targets.
Install
Install from npm:
npm install uni-lucky-uiRegister the plugin when global lk-* components are needed:
import { createSSRApp } from 'vue';
import App from './App.vue';
import LuckyUI from 'uni-lucky-ui';
export function createApp() {
const app = createSSRApp(App);
app.use(LuckyUI);
return { app };
}Import the theme once:
@use 'uni-lucky-ui/theme/src/index.scss';Components can also be imported directly:
import LkButton from 'uni-lucky-ui/components/lk-button/lk-button.vue';For uni_modules usage, copy this directory into a UniApp project:
src/uni_modules/lucky-uiRegister the plugin when global components are needed:
import { createSSRApp } from 'vue';
import App from './App.vue';
import LuckyUI from './uni_modules/lucky-ui';
export function createApp() {
const app = createSSRApp(App);
app.use(LuckyUI);
return { app };
}Import the theme once:
@use './uni_modules/lucky-ui/theme/src/index.scss';Components can also be imported directly:
import LkButton from '@/uni_modules/lucky-ui/components/lk-button/lk-button.vue';Release Status
This package is prepared as [email protected]. Public components are installable through the default plugin export as lk-* components. Internal demo and debugging components are intentionally excluded from plugin registration.
