This commit is contained in:
hupeng
2023-10-11 11:27:47 +08:00
commit d0b337c596
659 changed files with 67106 additions and 0 deletions

View File

@ -0,0 +1,5 @@
## 1.0.12023-05-16
1. 优化组件依赖,修改后无需全局引入,组件导入即可使用
2. 优化部分功能
## 1.0.02023-05-10
1. 新增间隔槽组件

View File

@ -0,0 +1,25 @@
export default {
props: {
// 背景颜色默认transparent
bgColor: {
type: String,
default: 'transparent'
},
// 分割槽高度单位px默认20
height: {
type: [String, Number],
default: 20
},
// 与上一个组件的距离
marginTop: {
type: [String, Number],
default: 0
},
// 与下一个组件的距离
marginBottom: {
type: [String, Number],
default: 0
},
...uni.$uv?.props?.gap
}
}

View File

@ -0,0 +1,36 @@
<template>
<view class="uv-gap" :style="[gapStyle]"></view>
</template>
<script>
import mpMixin from '@/uni_modules/uv-ui-tools/libs/mixin/mpMixin.js'
import mixin from '@/uni_modules/uv-ui-tools/libs/mixin/mixin.js'
import props from './props.js';
/**
* gap 间隔槽
* @description 该组件一般用于内容块之间的用一个灰色块隔开的场景,方便用户风格统一,减少工作量
* @tutorial https://www.uvui.cn/components/gap.html
* @property {String} bgColor 背景颜色 (默认 'transparent'
* @property {String | Number} height 分割槽高度单位px (默认 20
* @property {String | Number} marginTop 与前一个组件的距离单位px 默认 0
* @property {String | Number} marginBottom 与后一个组件的距离单位px (默认 0
* @property {Object} customStyle 定义需要用到的外部样式
*
* @example <uv-gap height="80" bg-color="#bbb"></uv-gap>
*/
export default {
name: "uv-gap",
mixins: [mpMixin, mixin,props],
computed: {
gapStyle() {
const style = {
backgroundColor: this.bgColor,
height: this.$uv.addUnit(this.height),
marginTop: this.$uv.addUnit(this.marginTop),
marginBottom: this.$uv.addUnit(this.marginBottom),
}
return this.$uv.deepMerge(style, this.$uv.addStyle(this.customStyle))
}
}
};
</script>

View File

@ -0,0 +1,87 @@
{
"id": "uv-gap",
"displayName": "uv-gap 间隔槽 全面兼容小程序、nvue、vue2、vue3等多端",
"version": "1.0.1",
"description": "该组件一般用于内容块之间的用一个灰色块隔开的场景,方便用户风格统一,减少工作量。",
"keywords": [
"gap",
"uvui",
"uv-ui",
"间隔槽",
"内容块"
],
"repository": "",
"engines": {
"HBuilderX": "^3.1.0"
},
"dcloudext": {
"type": "component-vue",
"sale": {
"regular": {
"price": "0.00"
},
"sourcecode": {
"price": "0.00"
}
},
"contact": {
"qq": ""
},
"declaration": {
"ads": "无",
"data": "插件不采集任何数据",
"permissions": "无"
},
"npmurl": ""
},
"uni_modules": {
"dependencies": [
"uv-ui-tools"
],
"encrypt": [],
"platforms": {
"cloud": {
"tcb": "y",
"aliyun": "y"
},
"client": {
"Vue": {
"vue2": "y",
"vue3": "y"
},
"App": {
"app-vue": "y",
"app-nvue": "y"
},
"H5-mobile": {
"Safari": "y",
"Android Browser": "y",
"微信浏览器(Android)": "y",
"QQ浏览器(Android)": "y"
},
"H5-pc": {
"Chrome": "y",
"IE": "y",
"Edge": "y",
"Firefox": "y",
"Safari": "y"
},
"小程序": {
"微信": "y",
"阿里": "y",
"百度": "y",
"字节跳动": "y",
"QQ": "y",
"钉钉": "u",
"快手": "u",
"飞书": "u",
"京东": "u"
},
"快应用": {
"华为": "u",
"联盟": "u"
}
}
}
}
}

View File

@ -0,0 +1,12 @@
## Gap 间隔槽
> **组件名uv-gap**
该组件一般用于内容块之间的用一个灰色块隔开的场景,方便用户风格统一,减少工作量。
### <a href="https://www.uvui.cn/components/gap.html" target="_blank">查看文档</a>
### [完整示例项目下载 | 关注更多组件](https://ext.dcloud.net.cn/plugin?name=uv-ui)
#### 如使用过程中有任何问题或者您对uv-ui有一些好的建议欢迎加入 uv-ui 交流群:<a href="https://ext.dcloud.net.cn/plugin?id=12287" target="_blank">uv-ui</a>、<a href="https://www.uvui.cn/components/addQQGroup.html" target="_blank">官方QQ群</a>