fs-ui

轻量、可靠的移动端 Vue 组件库
3,207
Install
npm install fs-ui
Latest Version:1.0.4
Vue:2 · 3
License:MIT
Last Updated:Dec 5, 2024
Links: npm
Maintainer: zhangliping

安装

NPM

npm install fs-ui -S

YARN

 yarn add fs-ui

引入组件

方式一. 使用 babel-plugin-import (推荐)

babel-plugin-import 是一款 babel 插件,它会在编译过程中将 import 的写法自动转换为按需引入的方式

# 安装 babel-plugin-import 插件
npm i babel-plugin-import -D
// .babelrc
{
  "plugins": [
    ["import", {
      "libraryName": "fs-ui",
      "libraryDirectory": "lib",
      "style": true
    }]
  ]
}

// 对于使用 babel7 的用户,可以在 babel.config.js 中配置
  module.exports = {
    plugins: [
      ['import', {
        libraryName: 'fs-ui',
        libraryDirectory: 'lib',
        style: true
      }, 'fs-ui']
    ]
  };

接着你可以在代码中直接引入 FS-UI 组件使用

import { Button, Cell } from 'fs-ui'

方式二. 导入所有组件

import Vue from 'vue'
import fsUI from 'fs-ui'
import 'fs-ui/lib/fsui-style/index.css'

Vue.use(fsUI);

Links

LICENSE

MIT

Related Packages

vue

The progressive JavaScript framework for building modern web UI.

468,054,189 54,906
vue
eslint-plugin-vue

Official ESLint plugin for Vue.js

266,364,830 4,591
@vueuse/shared
260,835,866 22,398
@vitejs/plugin-vue

The official plugin for Vue SFC support in Vite.

257,315,514 686
@vueuse/core

Collection of essential Vue Composition Utilities

256,285,643 22,398

Version History

Version Released Vue License
1.0.4 >= 2.5.0 MIT
1.0.3 >= 2.5.0 MIT
1.0.2 >= 2.5.0 MIT
1.0.1 >= 2.5.0 MIT
1.0.0 >= 2.5.0 MIT