@cloudbase/weda-ui-mp 3.14.0 → 3.14.2

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.
@@ -317,7 +317,6 @@
317
317
  .wd-form-item.is-borderless .wd-form-input-wrap.is-not-h5.is-focused:not(.is-disabled), .wd-form-item.is-borderless .wd-form-input-wrap.is-not-h5:focus:not(.is-disabled) {
318
318
  border-color: var(--wd-form-input-wrap-border-hover);
319
319
  background-color: var(--wd-form-input-wrap-bg-focus);
320
- color: var(--wd-form-input-wrap-text-focus);
321
320
  box-shadow: 0px 0px 0px 0px;
322
321
  }
323
322
  .wd-form-item.is-borderless .wd-form-item-wrap {
@@ -705,7 +704,6 @@ textarea {
705
704
  .wd-form-item--weui .wd-form-input-wrap.is-not-h5:focus:not(.is-disabled) {
706
705
  border-color: var(--wd-form-input-wrap-border-hover);
707
706
  background-color: var(--wd-form-input-wrap-bg-focus);
708
- color: var(--wd-form-input-wrap-text-focus);
709
707
  box-shadow: 0px 0px 0px 0px;
710
708
  }
711
709
  .wd-form.wd-form--weui .wd-upload__control,
@@ -62,7 +62,7 @@ Component({
62
62
  : GUTTER_VALUE.find((item) => item.gutterValue === gutterY)?.styleValue || 0;
63
63
  const actalClassName = classNames({
64
64
  'wd-grid': true,
65
- 'wd-grid--avoid-scrollbar': avoidScrollbar,
65
+ 'wd-grid--gap': avoidScrollbar,
66
66
  [`wd-grid-gx-${gutterXValue}`]: !isNil(gutterXValue),
67
67
  // 产品要求guterX 同时间决定row一个换行的间距和 row之间的间距
68
68
  [`wd-grid-gy-${gutterYValue}`]: !isNil(gutterYValue),
@@ -317,7 +317,6 @@
317
317
  .wd-form-item.is-borderless .wd-form-input-wrap.is-not-h5.is-focused:not(.is-disabled), .wd-form-item.is-borderless .wd-form-input-wrap.is-not-h5:focus:not(.is-disabled) {
318
318
  border-color: var(--wd-form-input-wrap-border-hover);
319
319
  background-color: var(--wd-form-input-wrap-bg-focus);
320
- color: var(--wd-form-input-wrap-text-focus);
321
320
  box-shadow: 0px 0px 0px 0px;
322
321
  }
323
322
  .wd-form-item.is-borderless .wd-form-item-wrap {
@@ -705,7 +704,6 @@ textarea {
705
704
  .wd-form-item--weui .wd-form-input-wrap.is-not-h5:focus:not(.is-disabled) {
706
705
  border-color: var(--wd-form-input-wrap-border-hover);
707
706
  background-color: var(--wd-form-input-wrap-bg-focus);
708
- color: var(--wd-form-input-wrap-text-focus);
709
707
  box-shadow: 0px 0px 0px 0px;
710
708
  }
711
709
  .wd-form.wd-form--weui .wd-upload__control,
@@ -317,7 +317,6 @@
317
317
  .wd-form-item.is-borderless .wd-form-input-wrap.is-not-h5.is-focused:not(.is-disabled), .wd-form-item.is-borderless .wd-form-input-wrap.is-not-h5:focus:not(.is-disabled) {
318
318
  border-color: var(--wd-form-input-wrap-border-hover);
319
319
  background-color: var(--wd-form-input-wrap-bg-focus);
320
- color: var(--wd-form-input-wrap-text-focus);
321
320
  box-shadow: 0px 0px 0px 0px;
322
321
  }
323
322
  .wd-form-item.is-borderless .wd-form-item-wrap {
@@ -705,7 +704,6 @@ textarea {
705
704
  .wd-form-item--weui .wd-form-input-wrap.is-not-h5:focus:not(.is-disabled) {
706
705
  border-color: var(--wd-form-input-wrap-border-hover);
707
706
  background-color: var(--wd-form-input-wrap-bg-focus);
708
- color: var(--wd-form-input-wrap-text-focus);
709
707
  box-shadow: 0px 0px 0px 0px;
710
708
  }
711
709
  .wd-form.wd-form--weui .wd-upload__control,
@@ -317,7 +317,6 @@
317
317
  .wd-form-item.is-borderless .wd-form-input-wrap.is-not-h5.is-focused:not(.is-disabled), .wd-form-item.is-borderless .wd-form-input-wrap.is-not-h5:focus:not(.is-disabled) {
318
318
  border-color: var(--wd-form-input-wrap-border-hover);
319
319
  background-color: var(--wd-form-input-wrap-bg-focus);
320
- color: var(--wd-form-input-wrap-text-focus);
321
320
  box-shadow: 0px 0px 0px 0px;
322
321
  }
323
322
  .wd-form-item.is-borderless .wd-form-item-wrap {
@@ -705,7 +704,6 @@ textarea {
705
704
  .wd-form-item--weui .wd-form-input-wrap.is-not-h5:focus:not(.is-disabled) {
706
705
  border-color: var(--wd-form-input-wrap-border-hover);
707
706
  background-color: var(--wd-form-input-wrap-bg-focus);
708
- color: var(--wd-form-input-wrap-text-focus);
709
707
  box-shadow: 0px 0px 0px 0px;
710
708
  }
711
709
  .wd-form.wd-form--weui .wd-upload__control,
@@ -479,7 +479,6 @@
479
479
  .wd-form-item.is-borderless .wd-form-input-wrap.is-not-h5.is-focused:not(.is-disabled), .wd-form-item.is-borderless .wd-form-input-wrap.is-not-h5:focus:not(.is-disabled) {
480
480
  border-color: var(--wd-form-input-wrap-border-hover);
481
481
  background-color: var(--wd-form-input-wrap-bg-focus);
482
- color: var(--wd-form-input-wrap-text-focus);
483
482
  box-shadow: 0px 0px 0px 0px;
484
483
  }
485
484
  .wd-form-item.is-borderless .wd-form-item-wrap {
@@ -867,7 +866,6 @@ textarea {
867
866
  .wd-form-item--weui .wd-form-input-wrap.is-not-h5:focus:not(.is-disabled) {
868
867
  border-color: var(--wd-form-input-wrap-border-hover);
869
868
  background-color: var(--wd-form-input-wrap-bg-focus);
870
- color: var(--wd-form-input-wrap-text-focus);
871
869
  box-shadow: 0px 0px 0px 0px;
872
870
  }
873
871
  .wd-form.wd-form--weui .wd-upload__control,
@@ -1372,7 +1370,6 @@ textarea {
1372
1370
  .wd-form-input-wrap.is-focused:not(.is-disabled), .wd-form-input-wrap:focus:not(.is-disabled) {
1373
1371
  border-color: var(--wd-form-input-wrap-border-hover);
1374
1372
  background-color: var(--wd-form-input-wrap-bg-focus);
1375
- color: var(--wd-form-input-wrap-text-focus);
1376
1373
  box-shadow: 0px 0px 0px 0px;
1377
1374
  }
1378
1375
  .wd-form-input-wrap.is-disabled {
@@ -101,7 +101,6 @@
101
101
  .wd-form-input-wrap.is-focused:not(.is-disabled), .wd-form-input-wrap:focus:not(.is-disabled) {
102
102
  border-color: var(--wd-form-input-wrap-border-hover);
103
103
  background-color: var(--wd-form-input-wrap-bg-focus);
104
- color: var(--wd-form-input-wrap-text-focus);
105
104
  box-shadow: 0px 0px 0px 0px;
106
105
  }
107
106
  .wd-form-input-wrap.is-disabled {
@@ -48,8 +48,7 @@ Component({
48
48
  try {
49
49
  return (
50
50
  '<pre><code class="hljs">' +
51
- hljs.highlight(str, { language: lang, ignoreIllegals: true })
52
- .value +
51
+ hljs.highlight(str, { language: lang, ignoreIllegals: true }).value +
53
52
  '</code></pre>'
54
53
  );
55
54
  } catch (__) {}
@@ -69,8 +68,7 @@ Component({
69
68
  this.setReadonlyAttributes({
70
69
  value: this.properties.value,
71
70
  markdownInstance: this.data.mdInstance,
72
- updateMarkdownInstance: ({ markdownInstance }) =>
73
- this.setData({ mdInstance: markdownInstance }),
71
+ updateMarkdownInstance: ({ markdownInstance }) => this.setData({ mdInstance: markdownInstance }),
74
72
  });
75
73
  },
76
74
  },
@@ -78,7 +76,6 @@ Component({
78
76
  value: function () {
79
77
  const { mdInstance } = this.data;
80
78
  if (!mdInstance) return;
81
- console.log(this.data.value);
82
79
  this.setData({
83
80
  __html: mdInstance.render(this.data.value),
84
81
  });
@@ -277,6 +277,17 @@
277
277
  overflow: auto;
278
278
  height: 100%;
279
279
  }
280
+ .wd-menulayout-body__left-menu::-webkit-scrollbar {
281
+ width: 4px;
282
+ height: 4px;
283
+ }
284
+ .wd-menulayout-body__left-menu::-webkit-scrollbar-thumb {
285
+ border-radius: var(--wd-space-base-xs, 4px);
286
+ background: var(--wd-color-text-disabled, rgba(0, 0, 0, 0.26));
287
+ }
288
+ .wd-menulayout-body__left-menu::-webkit-scrollbar-track {
289
+ background-color: transparent;
290
+ }
280
291
  .wd-menulayout-body__left-menu .wedatea2td-menu__item {
281
292
  padding: 7px 24px 7px 8px;
282
293
  }
@@ -277,6 +277,17 @@
277
277
  overflow: auto;
278
278
  height: 100%;
279
279
  }
280
+ .wd-menulayout-body__left-menu::-webkit-scrollbar {
281
+ width: 4px;
282
+ height: 4px;
283
+ }
284
+ .wd-menulayout-body__left-menu::-webkit-scrollbar-thumb {
285
+ border-radius: var(--wd-space-base-xs, 4px);
286
+ background: var(--wd-color-text-disabled, rgba(0, 0, 0, 0.26));
287
+ }
288
+ .wd-menulayout-body__left-menu::-webkit-scrollbar-track {
289
+ background-color: transparent;
290
+ }
280
291
  .wd-menulayout-body__left-menu .wedatea2td-menu__item {
281
292
  padding: 7px 24px 7px 8px;
282
293
  }
@@ -2,10 +2,7 @@ import { commonCompBehavior } from '../../utils/common-behavior';
2
2
  import formFieldBehavior from '../form-field-behavior/form-field-behavior';
3
3
  import { WD_PREFIX } from '../../utils/constant';
4
4
  import itemBehavior from '../form-field-behavior/item-behavior';
5
- import {
6
- calculateNextValue,
7
- calculatePercentByValueAndBoundary,
8
- } from '../../utils/range';
5
+ import { calculateNextValue, calculatePercentByValueAndBoundary } from '../../utils/range';
9
6
 
10
7
  Component({
11
8
  options: {
@@ -34,13 +31,20 @@ Component({
34
31
  data: {
35
32
  classPrefix: WD_PREFIX,
36
33
  percent: 0,
34
+ active: true,
37
35
  },
38
36
  methods: {
39
37
  onTap: function (e) {
38
+ if (!this.data.active) {
39
+ return;
40
+ }
40
41
  const mouseX = e.detail.x;
41
42
  this._triggerChangeWithMouseX(mouseX);
42
43
  },
43
44
  onTouchStart: function (e) {
45
+ if (!this.data.active) {
46
+ return;
47
+ }
44
48
  const mouseX = e.touches[0]?.clientX;
45
49
  if (typeof mouseX !== 'number') {
46
50
  return;
@@ -48,6 +52,9 @@ Component({
48
52
  this._triggerChangeWithMouseX(mouseX);
49
53
  },
50
54
  onTouchMove: function (e) {
55
+ if (!this.data.active) {
56
+ return;
57
+ }
51
58
  const mouseX = e.touches[0]?.clientX;
52
59
  if (typeof mouseX !== 'number') {
53
60
  return;
@@ -55,19 +62,7 @@ Component({
55
62
  this._triggerChangeWithMouseX(mouseX);
56
63
  },
57
64
  updateWidgetAPI: function () {
58
- const {
59
- name,
60
- value,
61
- label,
62
- required,
63
- visible,
64
- disabled,
65
- readOnly,
66
- showPercent,
67
- min,
68
- max,
69
- step,
70
- } = this.data;
65
+ const { name, value, label, required, visible, disabled, readOnly, showPercent, min, max, step } = this.data;
71
66
  this.setReadonlyAttributes?.({
72
67
  name,
73
68
  value,
@@ -126,9 +121,13 @@ Component({
126
121
  'value, min, max': function () {
127
122
  this._computePercent();
128
123
  },
129
- 'name, value, label, required, visible, disabled, readOnly, showPercent, min, max, step':
130
- function () {
131
- this.updateWidgetAPI();
132
- },
124
+ 'name, value, label, required, visible, disabled, readOnly, showPercent, min, max, step': function () {
125
+ this.updateWidgetAPI();
126
+ },
127
+ 'disabled,readOnly': function (disabled, readOnly) {
128
+ this.setData({
129
+ active: !(readOnly || disabled),
130
+ });
131
+ },
133
132
  },
134
133
  });
@@ -352,7 +352,6 @@
352
352
  .wd-form-item.is-borderless .wd-form-input-wrap.is-not-h5.is-focused:not(.is-disabled), .wd-form-item.is-borderless .wd-form-input-wrap.is-not-h5:focus:not(.is-disabled) {
353
353
  border-color: var(--wd-form-input-wrap-border-hover);
354
354
  background-color: var(--wd-form-input-wrap-bg-focus);
355
- color: var(--wd-form-input-wrap-text-focus);
356
355
  box-shadow: 0px 0px 0px 0px;
357
356
  }
358
357
  .wd-form-item.is-borderless .wd-form-item-wrap {
@@ -740,7 +739,6 @@ textarea {
740
739
  .wd-form-item--weui .wd-form-input-wrap.is-not-h5:focus:not(.is-disabled) {
741
740
  border-color: var(--wd-form-input-wrap-border-hover);
742
741
  background-color: var(--wd-form-input-wrap-bg-focus);
743
- color: var(--wd-form-input-wrap-text-focus);
744
742
  box-shadow: 0px 0px 0px 0px;
745
743
  }
746
744
  .wd-form.wd-form--weui .wd-upload__control,
@@ -342,7 +342,6 @@
342
342
  .wd-form-item.is-borderless .wd-form-input-wrap.is-not-h5.is-focused:not(.is-disabled), .wd-form-item.is-borderless .wd-form-input-wrap.is-not-h5:focus:not(.is-disabled) {
343
343
  border-color: var(--wd-form-input-wrap-border-hover);
344
344
  background-color: var(--wd-form-input-wrap-bg-focus);
345
- color: var(--wd-form-input-wrap-text-focus);
346
345
  box-shadow: 0px 0px 0px 0px;
347
346
  }
348
347
  .wd-form-item.is-borderless .wd-form-item-wrap {
@@ -730,7 +729,6 @@ textarea {
730
729
  .wd-form-item--weui .wd-form-input-wrap.is-not-h5:focus:not(.is-disabled) {
731
730
  border-color: var(--wd-form-input-wrap-border-hover);
732
731
  background-color: var(--wd-form-input-wrap-bg-focus);
733
- color: var(--wd-form-input-wrap-text-focus);
734
732
  box-shadow: 0px 0px 0px 0px;
735
733
  }
736
734
  .wd-form.wd-form--weui .wd-upload__control,
@@ -1 +1,3 @@
1
- <store-product id="{{id}}" appid="{{appid}}" product-id="{{productId}}" product-promotion-link="{{productPromotionLink}}" media-id="{{mediaId}}" custom-style="{{customStyle}}" custom-content="{{customContent}}" open-page="{{openPage}}" logo-position="{{logoPosition}}" bindentersuccess="bindentersuccess" bindentererror="bindentererror" />
1
+ <store-product id="{{id}}" appid="{{appid}}" product-id="{{productId}}" product-promotion-link="{{productPromotionLink}}" media-id="{{mediaId}}" custom-style="{{customStyle}}" custom-content="{{customContent}}" open-page="{{openPage}}" logo-position="{{logoPosition}}" bindentersuccess="bindentersuccess" bindentererror="bindentererror" >
2
+ <slot></slot>
3
+ </store-product>
@@ -438,7 +438,6 @@
438
438
  .wd-form-item.is-borderless .wd-form-input-wrap.is-not-h5.is-focused:not(.is-disabled), .wd-form-item.is-borderless .wd-form-input-wrap.is-not-h5:focus:not(.is-disabled) {
439
439
  border-color: var(--wd-form-input-wrap-border-hover);
440
440
  background-color: var(--wd-form-input-wrap-bg-focus);
441
- color: var(--wd-form-input-wrap-text-focus);
442
441
  box-shadow: 0px 0px 0px 0px;
443
442
  }
444
443
  .wd-form-item.is-borderless .wd-form-item-wrap {
@@ -826,7 +825,6 @@ textarea {
826
825
  .wd-form-item--weui .wd-form-input-wrap.is-not-h5:focus:not(.is-disabled) {
827
826
  border-color: var(--wd-form-input-wrap-border-hover);
828
827
  background-color: var(--wd-form-input-wrap-bg-focus);
829
- color: var(--wd-form-input-wrap-text-focus);
830
828
  box-shadow: 0px 0px 0px 0px;
831
829
  }
832
830
  .wd-form.wd-form--weui .wd-upload__control,
@@ -6,3 +6,9 @@
6
6
  display: flex;
7
7
  height: 50px;
8
8
  }
9
+ .wd-tabs-mp-root .wd-tabs__scroll::-webkit-scrollbar {
10
+ display: none;
11
+ width: 0;
12
+ height: 0;
13
+ color: transparent;
14
+ }
@@ -479,7 +479,6 @@
479
479
  .wd-form-item.is-borderless .wd-form-input-wrap.is-not-h5.is-focused:not(.is-disabled), .wd-form-item.is-borderless .wd-form-input-wrap.is-not-h5:focus:not(.is-disabled) {
480
480
  border-color: var(--wd-form-input-wrap-border-hover);
481
481
  background-color: var(--wd-form-input-wrap-bg-focus);
482
- color: var(--wd-form-input-wrap-text-focus);
483
482
  box-shadow: 0px 0px 0px 0px;
484
483
  }
485
484
  .wd-form-item.is-borderless .wd-form-item-wrap {
@@ -867,7 +866,6 @@ textarea {
867
866
  .wd-form-item--weui .wd-form-input-wrap.is-not-h5:focus:not(.is-disabled) {
868
867
  border-color: var(--wd-form-input-wrap-border-hover);
869
868
  background-color: var(--wd-form-input-wrap-bg-focus);
870
- color: var(--wd-form-input-wrap-text-focus);
871
869
  box-shadow: 0px 0px 0px 0px;
872
870
  }
873
871
  .wd-form.wd-form--weui .wd-upload__control,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "miniprogram": "./",
4
4
  "packageManager": "yarn@3.0.2",
5
5
  "dependencies": {},
6
- "version": "3.14.0",
6
+ "version": "3.14.2",
7
7
  "main": "./",
8
8
  "publishConfig": {
9
9
  "access": "public"