🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@gypsophlia/create-ui

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gypsophlia/create-ui

- [x] 全局加载 - [x] 按需加载 - [x] [介绍网站](https://mrpluto0.github.io/CreateUI/) - [ ] 国际化配置

latest
Source
npmnpm
Version
1.1.7
Version published
Maintainers
1
Created
Source

CreateUI 组件库

功能

  • 全局加载
  • 按需加载
  • 介绍网站
  • 国际化配置

组件

  • Chatbox 畅聊气泡
  • Loading 加载动画
  • Toast 消息提示框
  • Modal 模态对话框
  • Musicbox 八音盒

安装

npm install @gypsophlia/create-ui -S

用法

全局引入

import CreateUI from "@gypsophlia/create-ui";
import "@gypsophlia/create-ui/lib/theme/index.css";
Vue.use(CreateUI);

按需引入

import { Chatbox } from "@gypsophlia/create-ui";
Vue.use(Chatbox);

按需引入配置

babel-plugin-component

安装插件

npm install babel-plugin-component -D

Babel 配置

plugins: [
  [
    "component",
    {
      libraryName: "@gypsophlia/create-ui",
      styleLibrary: {
        name: "theme",
        base: false,
      },
    },
  ],
];

babel-plugin-import

安装插件

npm install babel-plugin-import -D

Babel 配置

plugins: [
  [
    "import",
    {
      libraryName: "@gypsophlia/create-ui",
      styleLibraryDirectory: "lib/theme",
    },
  ],
];

或将以下配置写入vue.config.js中的 configureWebpack

Webpack 配置

// webpack.config.js
resolve: {
  extensions: [".css"];
}

Keywords

UI

FAQs

Package last updated on 21 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts