@cloudbase/weda-ui-mp 3.13.7 → 3.14.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.
- package/components/form/form/wd-form.wxss +0 -2
- package/components/grid/index.js +4 -11
- package/components/swiper/index.js +20 -0
- package/components/swiper/index.wxml +1 -1
- package/components/wd-form/wd-form.wxss +0 -2
- package/components/wd-form-item/wd-form-item.wxss +0 -2
- package/components/wd-form-item-obj/wd-form-item.wxss +0 -2
- package/components/wd-image/wd-image.wxss +17 -0
- package/components/wd-input/inner-input/wd-input.wxss +0 -3
- package/components/wd-input-wrap/wd-input-wrap.wxss +0 -1
- package/components/wd-menu-layout/wd-menu-layout.wxss +11 -0
- package/components/wd-menu-list/wd-menu-list.wxss +11 -0
- package/components/wd-progress/wd-progress.wxss +0 -2
- package/components/wd-rating/wd-rating.wxss +0 -2
- package/components/wd-store-product/index.js +12 -0
- package/components/wd-store-product/index.wxml +3 -1
- package/components/wd-switch/wd-switch.wxss +0 -2
- package/components/wd-tabs/index.wxss +6 -0
- package/components/wd-tag-select/wd-tag-select.wxss +0 -2
- package/package.json +1 -1
|
@@ -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,
|
package/components/grid/index.js
CHANGED
|
@@ -51,25 +51,18 @@ Component({
|
|
|
51
51
|
});
|
|
52
52
|
},
|
|
53
53
|
init() {
|
|
54
|
-
const {
|
|
55
|
-
gutterX,
|
|
56
|
-
gutterY,
|
|
57
|
-
className: userClassName,
|
|
58
|
-
avoidScrollbar,
|
|
59
|
-
} = this.data;
|
|
54
|
+
const { gutterX, gutterY, className: userClassName, avoidScrollbar } = this.data;
|
|
60
55
|
const gutterXValue =
|
|
61
56
|
typeof gutterX === 'number' && !isNaN(gutterX)
|
|
62
57
|
? gutterX
|
|
63
|
-
: GUTTER_VALUE.find((item) => item.gutterValue === gutterX)
|
|
64
|
-
?.styleValue || 0;
|
|
58
|
+
: GUTTER_VALUE.find((item) => item.gutterValue === gutterX)?.styleValue || 0;
|
|
65
59
|
const gutterYValue =
|
|
66
60
|
typeof gutterY === 'number' && !isNaN(gutterY)
|
|
67
61
|
? gutterY
|
|
68
|
-
: GUTTER_VALUE.find((item) => item.gutterValue === gutterY)
|
|
69
|
-
?.styleValue || 0;
|
|
62
|
+
: GUTTER_VALUE.find((item) => item.gutterValue === gutterY)?.styleValue || 0;
|
|
70
63
|
const actalClassName = classNames({
|
|
71
64
|
'wd-grid': true,
|
|
72
|
-
'wd-grid--
|
|
65
|
+
'wd-grid--avoid-scrollbar': avoidScrollbar,
|
|
73
66
|
[`wd-grid-gx-${gutterXValue}`]: !isNil(gutterXValue),
|
|
74
67
|
// 产品要求guterX 同时间决定row一个换行的间距和 row之间的间距
|
|
75
68
|
[`wd-grid-gy-${gutterYValue}`]: !isNil(gutterYValue),
|
|
@@ -53,6 +53,26 @@ Component({
|
|
|
53
53
|
type: String,
|
|
54
54
|
value: 'rgba(0, 0, 0, 0.9)',
|
|
55
55
|
},
|
|
56
|
+
layoutType: {
|
|
57
|
+
type: String,
|
|
58
|
+
value: 'normal',
|
|
59
|
+
},
|
|
60
|
+
transformType: {
|
|
61
|
+
type: String,
|
|
62
|
+
value: 'scaleAndFade',
|
|
63
|
+
},
|
|
64
|
+
nextMargin: {
|
|
65
|
+
type: String,
|
|
66
|
+
value: '0px',
|
|
67
|
+
},
|
|
68
|
+
previousMargin: {
|
|
69
|
+
type: String,
|
|
70
|
+
value: '0px',
|
|
71
|
+
},
|
|
72
|
+
easingFunction: {
|
|
73
|
+
type: String,
|
|
74
|
+
value: 'default',
|
|
75
|
+
},
|
|
56
76
|
},
|
|
57
77
|
methods: {
|
|
58
78
|
...handleEvents([
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<swiper id="{{id}}" class="weda-ui {{className}}" style="{{style}}" indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" current="{{current}}" interval="{{interval}}" duration="{{duration}}" circular="{{circular}}" vertical="{{vertical}}" indicator-color="{{indicatorColor}}" indicator-active-color="{{indicatorActiveColor}}">
|
|
1
|
+
<swiper id="{{id}}" class="weda-ui {{className}}" style="{{style}}" indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" current="{{current}}" interval="{{interval}}" duration="{{duration}}" circular="{{circular}}" vertical="{{vertical}}" indicator-color="{{indicatorColor}}" indicator-active-color="{{indicatorActiveColor}}" layout-type="{{layoutType}}" transform-type="{{transformType}}" next-margin="{{nextMargin}}" previous-margin="{{previousMargin}}" easing-function="{{easingFunction}}">
|
|
2
2
|
<slot></slot>
|
|
3
3
|
</swiper>
|
|
@@ -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,
|
|
@@ -33,6 +33,23 @@
|
|
|
33
33
|
bottom: 0;
|
|
34
34
|
width: 80%;
|
|
35
35
|
margin: 0 auto;
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.wd-pc-image-preview {
|
|
42
|
+
max-width: 80%;
|
|
43
|
+
max-height: 80%;
|
|
44
|
+
margin-top: 50px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.wd-image-preview-img {
|
|
48
|
+
max-width: 100%;
|
|
49
|
+
max-height: 100%;
|
|
50
|
+
background-size: contain;
|
|
51
|
+
background-position: center center;
|
|
52
|
+
background-repeat: no-repeat;
|
|
36
53
|
}
|
|
37
54
|
|
|
38
55
|
.wd-image-mask {
|
|
@@ -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 {
|
|
@@ -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
|
}
|
|
@@ -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,
|
|
@@ -28,6 +28,18 @@ Component({
|
|
|
28
28
|
customStyle: {
|
|
29
29
|
type: Object,
|
|
30
30
|
},
|
|
31
|
+
customContent: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
value: false,
|
|
34
|
+
},
|
|
35
|
+
openPage: {
|
|
36
|
+
type: String,
|
|
37
|
+
value: '',
|
|
38
|
+
},
|
|
39
|
+
logoPosition: {
|
|
40
|
+
type: String,
|
|
41
|
+
value: 'bottom-left',
|
|
42
|
+
},
|
|
31
43
|
},
|
|
32
44
|
methods: {
|
|
33
45
|
...handleEvents([
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
<store-product id="{{id}}" appid="{{appid}}" product-id="{{productId}}" product-promotion-link="{{productPromotionLink}}" media-id="{{mediaId}}" custom-style="{{customStyle}}" 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,
|
|
@@ -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,
|