@tplc/wot 0.1.16 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.18](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.42...v0.1.18) (2024-10-25)
6
+
7
+ ### [0.1.17](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.37...v0.1.17) (2024-10-21)
8
+
5
9
  ### [0.1.16](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.30...v0.1.16) (2024-10-19)
6
10
 
7
11
  ### [0.1.15](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.29...v0.1.15) (2024-10-19)
@@ -542,8 +542,8 @@ $-col-picker-list-color-checked: var(--wot-col-picker-list-color-checked,
542
542
  $-overlay-bg: var(--wot-overlay-bg, rgba(0, 0, 0, 0.65)) !default;
543
543
  $-overlay-bg-dark: var(--wot-overlay-bg-dark, rgba(0, 0, 0, 0.75)) !default;
544
544
  /* popup */
545
- $-popup-close-size: var(--wot-popup-close-size, 24px) !default; // 关闭按钮尺寸
546
- $-popup-close-color: var(--wot-popup-close-color, #666) !default; // 关闭按钮颜色
545
+ $-popup-close-size: var(--wot-popup-close-size, 20px) !default; // 关闭按钮尺寸
546
+ $-popup-close-color: var(--wot-popup-close-color, #999) !default; // 关闭按钮颜色
547
547
  /* progress */
548
548
  $-progress-padding: var(--wot-progress-padding, 9px 0 8px) !default; // 进度条内边距
549
549
  $-progress-bg: var(--wot-progress-bg, rgba(229, 229, 229, 1)) !default; // 进度条底色
@@ -6,4 +6,8 @@
6
6
  padding-bottom: constant(safe-area-inset-bottom);
7
7
  padding-bottom: env(safe-area-inset-bottom);
8
8
  }
9
+ @include m(safe-top) {
10
+ padding-top: constant(safe-area-inset-top);
11
+ padding-top: env(safe-area-inset-top);
12
+ }
9
13
  }
@@ -20,4 +20,8 @@ export const gapProps = {
20
20
  * 高度
21
21
  */
22
22
  height: makeNumericProp(15),
23
+ /**
24
+ * 是否开启顶部安全区
25
+ */
26
+ safeAreaTop: makeBooleanProp(false),
23
27
  }
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <view
3
- :class="`wd-gap ${safeAreaBottom ? 'wd-gap--safe' : ''} ${customClass}`"
3
+ :class="`wd-gap ${safeAreaBottom ? 'wd-gap--safe' : ''} ${safeAreaTop ? 'wd-gap--safe-top' : ''} ${customClass} `"
4
4
  :style="rootStyle"
5
5
  ></view>
6
6
  </template>
@@ -24,7 +24,7 @@
24
24
  right: 10px;
25
25
  font-size: $-popup-close-size;
26
26
  color: $-popup-close-color;
27
- transform: rotate(-45deg);
27
+ // transform: rotate(-45deg);
28
28
  }
29
29
 
30
30
  @include m(center) {
@@ -16,7 +16,7 @@
16
16
  @transitionend="onTransitionEnd"
17
17
  >
18
18
  <slot />
19
- <wd-icon v-if="closable" custom-class="wd-popup__close" name="add" @click="close" />
19
+ <wd-icon v-if="closable" custom-class="wd-popup__close" name="close-circle" @click="close" />
20
20
  </view>
21
21
  </template>
22
22
 
@@ -86,6 +86,11 @@ const innerOffsetTop = computed(() => {
86
86
  top = 44
87
87
  // #endif
88
88
 
89
+ // 如果是小程序 需要 44+statusBar高度
90
+ // #ifdef MP
91
+ top = 44 + (uni.getSystemInfoSync().statusBarHeight || 0)
92
+ // #endif
93
+
89
94
  return top + props.offsetTop
90
95
  })
91
96
 
@@ -69,7 +69,6 @@
69
69
  left: 0;
70
70
  width: 100%;
71
71
  height: $-tabs-nav-height;
72
- background-color: #fff;
73
72
 
74
73
  @include m(wrap) {
75
74
  height: 100%;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "@tplc/wot",
3
3
  "name": "@tplc/wot",
4
- "version": "0.1.16",
4
+ "version": "0.1.18",
5
5
  "keywords": [
6
6
  "wot-design-uni",
7
7
  "国际化",
@@ -20,6 +20,13 @@ export declare const gapProps: {
20
20
  type: (NumberConstructor | StringConstructor)[]
21
21
  default: number
22
22
  }
23
+ /**
24
+ * 是否开启顶部安全区
25
+ */
26
+ safeAreaTop: {
27
+ type: BooleanConstructor
28
+ default: boolean
29
+ }
23
30
  customStyle: {
24
31
  type: import('vue').PropType<string>
25
32
  default: string
@@ -12,6 +12,10 @@ declare const _default: import('vue').DefineComponent<
12
12
  type: (NumberConstructor | StringConstructor)[]
13
13
  default: number
14
14
  }
15
+ safeAreaTop: {
16
+ type: BooleanConstructor
17
+ default: boolean
18
+ }
15
19
  customStyle: {
16
20
  type: import('vue').PropType<string>
17
21
  default: string
@@ -44,6 +48,10 @@ declare const _default: import('vue').DefineComponent<
44
48
  type: (NumberConstructor | StringConstructor)[]
45
49
  default: number
46
50
  }
51
+ safeAreaTop: {
52
+ type: BooleanConstructor
53
+ default: boolean
54
+ }
47
55
  customStyle: {
48
56
  type: import('vue').PropType<string>
49
57
  default: string
@@ -60,6 +68,7 @@ declare const _default: import('vue').DefineComponent<
60
68
  bgColor: string
61
69
  height: string | number
62
70
  safeAreaBottom: boolean
71
+ safeAreaTop: boolean
63
72
  },
64
73
  {}
65
74
  >