bulade-ui 1.1.37 → 1.1.38

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.
@@ -12,10 +12,10 @@
12
12
  </view>
13
13
  </view>
14
14
  <view
15
- class="title"
15
+ class="title {{ showTitle ?'showTitle':'' }}"
16
16
  style="{{ titleStyle }}"
17
17
  >
18
- <slot wx:if="{{ showTitle }}" />
18
+ <slot />
19
19
  </view>
20
20
  <view class="operations right">
21
21
  <button
@@ -15,6 +15,12 @@
15
15
  display: flex;
16
16
  justify-content: center;
17
17
  align-items: center;
18
+ transition: opacity 0.3s ease-in-out;
19
+ opacity: 0;
20
+ }
21
+
22
+ .showTitle {
23
+ opacity: 1;
18
24
  }
19
25
 
20
26
  .operation {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bulade-ui",
3
- "version": "1.1.37",
3
+ "version": "1.1.38",
4
4
  "description": "轻量、可靠的小程序 UI 组件库",
5
5
  "main": "miniprogram_dist/index.js",
6
6
  "scripts": {
@@ -15,8 +15,15 @@
15
15
  display: flex;
16
16
  justify-content: center;
17
17
  align-items: center;
18
+ transition: opacity .3s ease-in-out;
19
+ // transition: opacity .5s ease-in-out;
20
+ opacity: 0;
21
+ // transform: translateY(-700%);
22
+ }
23
+ .showTitle{
24
+ opacity: 1;
25
+ // transform: translateY(0);
18
26
  }
19
-
20
27
  .operation {
21
28
  background: rgba(255, 255, 255, 0.6);
22
29
  border: 1rpx solid rgba(0, 0, 0, 0.1);
@@ -12,10 +12,10 @@
12
12
  </view>
13
13
  </view>
14
14
  <view
15
- class="title"
15
+ class="title {{ showTitle ?'showTitle':'' }}"
16
16
  style="{{ titleStyle }}"
17
17
  >
18
- <slot wx:if="{{ showTitle }}" />
18
+ <slot />
19
19
  </view>
20
20
  <view class="operations right">
21
21
  <button
@@ -15,6 +15,12 @@
15
15
  display: flex;
16
16
  justify-content: center;
17
17
  align-items: center;
18
+ transition: opacity 0.3s ease-in-out;
19
+ opacity: 0;
20
+ }
21
+
22
+ .showTitle {
23
+ opacity: 1;
18
24
  }
19
25
 
20
26
  .operation {