From 659d09ec24dab6c451220c8f3bb3943b0fdb3ba1 Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Mon, 08 Jan 2024 16:16:12 +0800
Subject: [PATCH] fix:地图导航
---
uni_modules/uview-ui/components/u-gap/u-gap.vue | 38 ++++++++++++++++++++++++++++++++++++++
1 files changed, 38 insertions(+), 0 deletions(-)
diff --git a/uni_modules/uview-ui/components/u-gap/u-gap.vue b/uni_modules/uview-ui/components/u-gap/u-gap.vue
new file mode 100644
index 0000000..e4429f0
--- /dev/null
+++ b/uni_modules/uview-ui/components/u-gap/u-gap.vue
@@ -0,0 +1,38 @@
+<template>
+ <view class="u-gap" :style="[gapStyle]"></view>
+</template>
+
+<script>
+ import props from './props.js';
+ /**
+ * gap ���������
+ * @description ���������������������������������������������������������������������������������������������������������������������
+ * @tutorial https://www.uviewui.com/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 <u-gap height="80" bg-color="#bbb"></u-gap>
+ */
+ export default {
+ name: "u-gap",
+ mixins: [uni.$u.mpMixin, uni.$u.mixin,props],
+ computed: {
+ gapStyle() {
+ const style = {
+ backgroundColor: this.bgColor,
+ height: uni.$u.addUnit(this.height),
+ marginTop: uni.$u.addUnit(this.marginTop),
+ marginBottom: uni.$u.addUnit(this.marginBottom),
+ }
+ return uni.$u.deepMerge(style, uni.$u.addStyle(this.customStyle))
+ }
+ }
+ };
+</script>
+
+<style lang="scss" scoped>
+ @import "../../libs/css/components.scss";
+</style>
--
Gitblit v1.8.0