1 Star 22 Fork 7

智鲸开源 / itriton-uniapp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

ITRITON-UNIAPP

star fork

GitHub stars GitHub forks

介绍

@itriton/uniapp,是基于uni-app生态开发的组件库

特性

  • 众多的常用组件,让您专注逻辑,事半功倍
  • 按需引入,精简打包体积

安装

# npm方式安装
npm i @itriton/uniapp

快速上手

  1. main.js引入ITRITON库
// main.js
import itriton from '@itriton/uniapp';
Vue.use(itriton);
  1. App.vue引入基础样式(注意style标签需声明scss属性支持)
/* App.vue */
<style lang="scss">
@import "@itriton/uniapp/index.scss";
</style>
  1. uni.scss引入全局scss变量文件
/* uni.scss */
@import "@itriton/uniapp/theme.scss";
  1. pages.json配置easycom规则(按需引入)
// pages.json
{
	"easycom": {
		// npm安装的方式不需要前面的"@/",下载安装的方式需要"@/"
		// npm安装方式
		"^t-(.*)": "@itriton/uniapp/components/t-$1/t-$1.vue"
		// 下载安装方式
		// "^t-(.*)": "@/@itriton/uniapp/components/t-$1/t-$1.vue"
	},
	// 此为本身已有的内容
	"pages": [
		// ......
	]
}

使用方法

配置easycom规则后,自动按需引入,无需import组件,直接引用即可。

<template>
  <t-date-picker></t-date-picker>
</template>

版权信息

@itriton/uniapp遵循MIT开源协议,意味着您无需支付任何费用,也无需授权,即可将@itriton/uniapp应用到您的产品中。

MIT License Copyright (c) 2021 陈剑术(@itriton/uniapp) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

@itriton/uniapp是基于uni-app生态开发的组件库 展开 收起
JavaScript 等 3 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/ibaleine-open-source/itriton-uniapp.git
git@gitee.com:ibaleine-open-source/itriton-uniapp.git
ibaleine-open-source
itriton-uniapp
itriton-uniapp
master

搜索帮助