@cloudbase/weda-ui-mp 3.11.0 → 3.11.1

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.
@@ -25,6 +25,14 @@ Component({
25
25
  type: String,
26
26
  value: 'white',
27
27
  },
28
+ enableHeaderSlot: {
29
+ type: Boolean,
30
+ value: true,
31
+ },
32
+ enableContentSlot: {
33
+ type: Boolean,
34
+ value: true,
35
+ },
28
36
  },
29
37
  data: { classPrefix: WD_PREFIX },
30
38
  lifetimes: {},
@@ -1,5 +1,5 @@
1
1
  <view id="{{id}}" style="{{style}}" class="{{classPrefix + '-layout'}} {{classPrefix + '-mp-layout-root'}} {{classPrefix + '-layout-root'}} {{className}} {{template}}">
2
- <view class="{{classPrefix + '-layout__header'}} {{template}}">
2
+ <view class="{{classPrefix + '-layout__header'}} {{template}}" wx:if="{{enableHeaderSlot}}">
3
3
  <view class="{{classPrefix + '-layout__header-item'}} {{classPrefix + '-layout__header-item-left'}}">
4
4
  <slot name="headerLeftSlot"></slot>
5
5
  </view>
@@ -7,7 +7,7 @@
7
7
  <slot name="headerRightSlot"></slot>
8
8
  </view>
9
9
  </view>
10
- <view class="{{classPrefix + '-layout__body'}} {{template}}">
10
+ <view class="{{classPrefix + '-layout__body'}} {{template}}" wx:if="{{enableContentSlot}}">
11
11
  <slot name="contentSlot"></slot>
12
12
  </view>
13
13
  </view>
@@ -10,9 +10,14 @@ import {
10
10
  Component({
11
11
  options: {
12
12
  virtualHost: true,
13
+ multipleSlots: true,
13
14
  },
14
15
  behaviors: [itemBehavior, commonCompBehavior, formFieldBehavior],
15
16
  properties: {
17
+ showPercent: {
18
+ type: Boolean,
19
+ value: false,
20
+ },
16
21
  min: {
17
22
  type: Number,
18
23
  value: 0,
@@ -58,6 +63,7 @@ Component({
58
63
  visible,
59
64
  disabled,
60
65
  readOnly,
66
+ showPercent,
61
67
  min,
62
68
  max,
63
69
  step,
@@ -70,6 +76,7 @@ Component({
70
76
  visible,
71
77
  disabled,
72
78
  readOnly,
79
+ showPercent,
73
80
  min,
74
81
  max,
75
82
  step,
@@ -119,7 +126,7 @@ Component({
119
126
  'value, min, max': function () {
120
127
  this._computePercent();
121
128
  },
122
- 'name, value, label, required, visible, disabled, readOnly, min, max, step':
129
+ 'name, value, label, required, visible, disabled, readOnly, showPercent, min, max, step':
123
130
  function () {
124
131
  this.updateWidgetAPI();
125
132
  },
@@ -24,6 +24,9 @@
24
24
  <view class="{{classPrefix}}-progress" bind:touchstart="onTouchStart" bind:tap="onTap" bind:touchmove="onTouchMove">
25
25
  <view class="{{classPrefix}}-progress__value" style="width: {{percent}}%;"></view>
26
26
  </view>
27
+ <view class="{{classPrefix}}-progress__percent" wx:if="{{showPercent}}">
28
+ <slot name="percentSlot"></slot>
29
+ </view>
27
30
  </view>
28
31
  </wd-form-item>
29
32
  </block>
@@ -21,6 +21,7 @@
21
21
  border: none;
22
22
  border-radius: var(--wd-progress-radius);
23
23
  color: var(--wd-progress-text-color);
24
+ flex-grow: 1;
24
25
  }
25
26
  .wd-progress__value {
26
27
  background: var(--wd-progress-color-default);
@@ -33,6 +34,8 @@
33
34
  }
34
35
 
35
36
  .wd-progress-container {
37
+ display: flex;
38
+ align-items: center;
36
39
  flex-grow: 1;
37
40
  }
38
41
 
@@ -58,7 +58,7 @@
58
58
  color: var(--wd-tabbar-heder-item-color-hover);
59
59
  }
60
60
  .wd-tabbar__item:hover .wd-tabbar__item-text {
61
- color: var(--wd-tabbar-heder-item-color-hover);
61
+ color: inherit;
62
62
  }
63
63
  .wd-tabbar__item-text {
64
64
  text-overflow: ellipsis;
@@ -77,7 +77,7 @@
77
77
  color: var(--wd-tabbar-heder-item-color-selected);
78
78
  }
79
79
  .wd-tabbar__item.is-selected .wd-tabbar__item-text {
80
- color: var(--wd-tabbar-heder-item-color-selected);
80
+ color: inherit;
81
81
  }
82
82
  .wd-tabbar .wd-link__slot {
83
83
  width: 100%;
@@ -169,7 +169,6 @@
169
169
  font-size: var(--wd-tabs-vertical-heder-item-size);
170
170
  line-height: calc(var(--wd-space-base) * 6);
171
171
  color: var(--wd-tabs-vertical-heder-item-color);
172
- cursor: pointer;
173
172
  }
174
173
  .wd-tabs--vertical > .wd-tabs__header > .wd-tabs__header-item-wrap .wd-tabs__item-icon {
175
174
  display: flex;
@@ -268,4 +267,12 @@
268
267
  }
269
268
  .wd-tabs-h5-root.wd-tabs--vertical > .wd-tabs__header-item-wrap .wd-tabs__item:not(.is-disabled).is-selected::after {
270
269
  display: block;
270
+ }
271
+
272
+ .wd-mp-side-tab-root .wd-tabs__item {
273
+ cursor: unset;
274
+ }
275
+
276
+ .wd-mp-top-tab-root .wd-tabs__item {
277
+ cursor: unset;
271
278
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "miniprogram": "./",
4
4
  "packageManager": "yarn@3.0.2",
5
5
  "dependencies": {},
6
- "version": "3.11.0",
6
+ "version": "3.11.1",
7
7
  "main": "./",
8
8
  "publishConfig": {
9
9
  "access": "public"