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
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 | |
| 0.1.48 | >= 2.5.0 | MIT | |
| 0.1.47 | >= 2.5.0 | MIT | |
| 0.1.46 | >= 2.5.0 | MIT | |
| 0.1.45 | >= 2.5.0 | MIT | |
| 0.1.44 | >= 2.5.0 | MIT | |
| 0.1.43 | >= 2.5.0 | MIT | |
| 0.1.42 | >= 2.5.0 | MIT | |
| 0.1.41 | >= 2.5.0 | MIT | |
| 0.1.40 | >= 2.5.0 | MIT | |
| 0.1.39 | >= 2.5.0 | MIT | |
| 0.1.38 | >= 2.5.0 | MIT | |
| 0.1.37 | >= 2.5.0 | MIT | |
| 0.1.36 | >= 2.5.0 | MIT | |
| 0.1.35 | >= 2.5.0 | MIT | |
| 0.1.34 | >= 2.5.0 | MIT | |
| 0.1.33 | >= 2.5.0 | MIT | |
| 0.1.32 | >= 2.5.0 | MIT | |
| 0.1.31 | >= 2.5.0 | MIT | |
| 0.1.30 | >= 2.5.0 | MIT | |
| 0.1.29 | >= 2.5.0 | MIT | |
| 0.1.28 | >= 2.5.0 | MIT | |
| 0.1.27 | >= 2.5.0 | MIT | |
| 0.1.26 | >= 2.5.0 | MIT | |
| 0.1.25 | >= 2.5.0 | MIT | |
| 0.1.24 | >= 2.5.0 | MIT |
Showing the latest 30 of 56. See every release on npm