@cloudbase/weda-ui 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.
@@ -79,7 +79,7 @@ declare const config: {
79
79
  yAxisMax: import("@sinclair/typebox").TNumber;
80
80
  yAxisMin: import("@sinclair/typebox").TNumber;
81
81
  isYAxisName: import("@sinclair/typebox").TBoolean;
82
- yAxisName: import("@sinclair/typebox").TBoolean;
82
+ yAxisName: import("@sinclair/typebox").TString;
83
83
  isYAxisShow: import("@sinclair/typebox").TBoolean;
84
84
  dataTagShow: import("@sinclair/typebox").TNever;
85
85
  isSeriesShowSymbol: import("@sinclair/typebox").TBoolean;
@@ -905,7 +905,7 @@ const data = Type.Object({
905
905
  },
906
906
  ],
907
907
  }),
908
- yAxisName: Type.Boolean({
908
+ yAxisName: Type.String({
909
909
  title: '名称',
910
910
  type: 'string',
911
911
  default: '',
@@ -75,6 +75,128 @@
75
75
  "x-index": 9,
76
76
  "x-category": "高级属性",
77
77
  "description": "开启/关闭轮播图锚点"
78
+ },
79
+ "layoutType": {
80
+ "title": "渲染模式",
81
+ "default": "normal",
82
+ "type": "string",
83
+ "x-index": 10,
84
+ "x-category": "高级属性",
85
+ "description": "渲染模式,小程序 Skyline 特有属性",
86
+ "enum": [
87
+ {
88
+ "value": "normal",
89
+ "label": "默认方式"
90
+ },
91
+ {
92
+ "value": "stackLeft",
93
+ "label": "左向堆叠"
94
+ },
95
+ {
96
+ "value": "stackRight",
97
+ "label": "右向堆叠"
98
+ },
99
+ {
100
+ "value": "tinder",
101
+ "label": "滑动卡片"
102
+ },
103
+ {
104
+ "value": "transformer",
105
+ "label": "过渡动画"
106
+ }
107
+ ],
108
+ "x-linkages": [
109
+ {
110
+ "type": "value:visible",
111
+ "target": "transformType",
112
+ "condition": "{{$self.value=='transformer'}}"
113
+ }
114
+ ],
115
+ "x-platforms": ["MP"]
116
+ },
117
+ "transformType": {
118
+ "title": "指定动画类型",
119
+ "default": "scaleAndFade",
120
+ "type": "string",
121
+ "x-index": 11,
122
+ "x-category": "高级属性",
123
+ "description": "layout-type 为 transformer 时指定动画类型,小程序 Skyline 特有属性",
124
+ "enum": [
125
+ {
126
+ "value": "scaleAndFade",
127
+ "label": "scaleAndFade"
128
+ },
129
+ {
130
+ "value": "accordion",
131
+ "label": "accordion"
132
+ },
133
+ {
134
+ "value": "threeD",
135
+ "label": "threeD"
136
+ },
137
+ {
138
+ "value": "zoomIn",
139
+ "label": "zoomIn"
140
+ },
141
+ {
142
+ "value": "zoomOut",
143
+ "label": "zoomOut"
144
+ },
145
+ {
146
+ "value": "deepthPage",
147
+ "label": "deepthPage"
148
+ }
149
+ ],
150
+ "x-platforms": ["MP"]
151
+ },
152
+ "previousMargin": {
153
+ "title": "前边距",
154
+ "type": "string",
155
+ "default": "0px",
156
+ "x-index": 12,
157
+ "x-category": "高级属性",
158
+ "description": "前边距,可用于露出前一项的一小部分,接受 px 和 rpx 值",
159
+ "x-platforms": ["MP"]
160
+ },
161
+ "nextMargin": {
162
+ "title": "后边距",
163
+ "type": "string",
164
+ "default": "0px",
165
+ "x-index": 13,
166
+ "x-category": "高级属性",
167
+ "description": "后边距,可用于露出后一项的一小部分,接受 px 和 rpx 值。skyline 于 3.5.1 版本支持",
168
+ "x-platforms": ["MP"]
169
+ },
170
+ "easingFunction": {
171
+ "title": "缓动动画类型",
172
+ "type": "string",
173
+ "default": "default",
174
+ "x-index": 14,
175
+ "x-category": "高级属性",
176
+ "description": "指定 swiper 切换缓动动画类型",
177
+ "x-platforms": ["MP"],
178
+ "enum": [
179
+ {
180
+ "value": "default",
181
+ "label": "默认缓动函数"
182
+ },
183
+ {
184
+ "value": "linear",
185
+ "label": "线性动画"
186
+ },
187
+ {
188
+ "value": "easeInCubic",
189
+ "label": "缓入动画"
190
+ },
191
+ {
192
+ "value": "easeOutCubic",
193
+ "label": "缓出动画"
194
+ },
195
+ {
196
+ "value": "easeInOutCubic",
197
+ "label": "缓入缓出动画"
198
+ }
199
+ ]
78
200
  }
79
201
  }
80
202
  },
@@ -28,6 +28,9 @@ declare const data: import("@sinclair/typebox").TObject<{
28
28
  color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
29
29
  }>>;
30
30
  }>>;
31
+ customContent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
32
+ openPage: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
33
+ logoPosition: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
31
34
  }>;
32
35
  declare const config: {
33
36
  readonly $schema: "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json";
@@ -59,6 +62,9 @@ declare const config: {
59
62
  color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
60
63
  }>>;
61
64
  }>>;
65
+ customContent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
66
+ openPage: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
67
+ logoPosition: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
62
68
  }>;
63
69
  readonly classes: readonly [];
64
70
  readonly methods: readonly [];
@@ -75,6 +81,7 @@ declare const config: {
75
81
  }>;
76
82
  readonly 'x-platforms': readonly ["MP"];
77
83
  }];
84
+ readonly isContainer: true;
78
85
  readonly meta: {
79
86
  readonly title: "小店商品";
80
87
  readonly name: "WdStoreProduct";
@@ -52,6 +52,41 @@ const data = Type.Partial(Type.Object({
52
52
  'x-component': 'jsontext',
53
53
  'x-helper-text': '自定义样式,可参考[微信小店文档](https://developers.weixin.qq.com/miniprogram/dev/component/store-product.html)',
54
54
  }),
55
+ customContent: Type.Boolean({
56
+ default: false,
57
+ title: '开启自定义插槽',
58
+ 'x-category': '通用',
59
+ 'x-index': 60,
60
+ description: '开启自定义插槽。开启后可自行控制卡片内容。',
61
+ 'x-linkages': [
62
+ {
63
+ type: 'value:visible',
64
+ target: '*(openPage,logoPosition)',
65
+ condition: '{{$self.value}}',
66
+ },
67
+ ],
68
+ }),
69
+ openPage: Type.StringEnum({
70
+ title: '跳转页面',
71
+ 'x-category': '通用',
72
+ 'x-index': 70,
73
+ 'x-helper-text': '设置点击打开的页面(同时开启 custom-content 属性后生效)。',
74
+ enum: [
75
+ { label: '商品详情页', value: 'product-detail' },
76
+ { label: '下单页', value: 'buy' },
77
+ ],
78
+ }),
79
+ logoPosition: Type.String({
80
+ title: 'logo位置',
81
+ 'x-category': '通用',
82
+ 'x-index': 80,
83
+ 'x-helper-text': '设置小店标识的位置,不允许隐藏(同时开启 custom-content 属性后生效)。',
84
+ default: 'bottom-left',
85
+ enum: [
86
+ { label: '左下方', value: 'bottom-left' },
87
+ { label: '右下方', value: 'bottom-right' },
88
+ ],
89
+ }),
55
90
  }));
56
91
  const config = defineConfig({
57
92
  $schema: 'https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json',
@@ -70,6 +105,7 @@ const config = defineConfig({
70
105
  'x-platforms': ['MP'],
71
106
  },
72
107
  ],
108
+ isContainer: true,
73
109
  meta: {
74
110
  title: '小店商品',
75
111
  name: 'WdStoreProduct',
@@ -86,7 +86,8 @@ declare const config: {
86
86
  }, {
87
87
  readonly name: "内容区域";
88
88
  readonly selector: ".wd-top-tab-root .wd-tabs__body";
89
- readonly description: "可以为顶部选项卡内容区域编写样式";
89
+ readonly description: "可以为顶部选项卡内容区域编写样式,例如:设置顶部选项卡内容区域高度撑满页面";
90
+ readonly code: ".wd-top-tab-root .wd-tabs__body {\n /* 设置顶部选项卡内容区域高度撑满页面 */\n /* 注意:此处需要设置为计算高度 【视口高度-选项卡头部标签区域高度】*/\n height: calc(100vh - 48px);\n overflow: auto;\n }\n ";
90
91
  }, {
91
92
  readonly name: "选项卡超长自动滑动遮罩";
92
93
  readonly selector: ".wd-tabs-h5-root .wd-tabs__header-item-mask";
@@ -396,7 +396,14 @@ const config = defineConfig({
396
396
  {
397
397
  name: '内容区域',
398
398
  selector: '.wd-top-tab-root .wd-tabs__body',
399
- description: '可以为顶部选项卡内容区域编写样式',
399
+ description: '可以为顶部选项卡内容区域编写样式,例如:设置顶部选项卡内容区域高度撑满页面',
400
+ code: `.wd-top-tab-root .wd-tabs__body {
401
+ /* 设置顶部选项卡内容区域高度撑满页面 */
402
+ /* 注意:此处需要设置为计算高度 【视口高度-选项卡头部标签区域高度】*/
403
+ height: calc(100vh - 48px);
404
+ overflow: auto;
405
+ }
406
+ `,
400
407
  },
401
408
  {
402
409
  name: '选项卡超长自动滑动遮罩',
@@ -29,6 +29,9 @@ export declare const components: {
29
29
  color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
30
30
  }>>;
31
31
  }>>;
32
+ customContent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
33
+ openPage: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
34
+ logoPosition: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
32
35
  }>;
33
36
  readonly classes: readonly [];
34
37
  readonly methods: readonly [];
@@ -45,6 +48,7 @@ export declare const components: {
45
48
  }>;
46
49
  readonly 'x-platforms': readonly ["MP"];
47
50
  }];
51
+ readonly isContainer: true;
48
52
  readonly meta: {
49
53
  readonly title: "小店商品";
50
54
  readonly name: "WdStoreProduct";
@@ -6481,6 +6485,68 @@ export declare const components: {
6481
6485
  "x-category": string;
6482
6486
  description: string;
6483
6487
  };
6488
+ layoutType: {
6489
+ title: string;
6490
+ default: string;
6491
+ type: string;
6492
+ "x-index": number;
6493
+ "x-category": string;
6494
+ description: string;
6495
+ enum: {
6496
+ value: string;
6497
+ label: string;
6498
+ }[];
6499
+ "x-linkages": {
6500
+ type: string;
6501
+ target: string;
6502
+ condition: string;
6503
+ }[];
6504
+ "x-platforms": string[];
6505
+ };
6506
+ transformType: {
6507
+ title: string;
6508
+ default: string;
6509
+ type: string;
6510
+ "x-index": number;
6511
+ "x-category": string;
6512
+ description: string;
6513
+ enum: {
6514
+ value: string;
6515
+ label: string;
6516
+ }[];
6517
+ "x-platforms": string[];
6518
+ };
6519
+ previousMargin: {
6520
+ title: string;
6521
+ type: string;
6522
+ default: string;
6523
+ "x-index": number;
6524
+ "x-category": string;
6525
+ description: string;
6526
+ "x-platforms": string[];
6527
+ };
6528
+ nextMargin: {
6529
+ title: string;
6530
+ type: string;
6531
+ default: string;
6532
+ "x-index": number;
6533
+ "x-category": string;
6534
+ description: string;
6535
+ "x-platforms": string[];
6536
+ };
6537
+ easingFunction: {
6538
+ title: string;
6539
+ type: string;
6540
+ default: string;
6541
+ "x-index": number;
6542
+ "x-category": string;
6543
+ description: string;
6544
+ "x-platforms": string[];
6545
+ enum: {
6546
+ value: string;
6547
+ label: string;
6548
+ }[];
6549
+ };
6484
6550
  };
6485
6551
  };
6486
6552
  events: {
@@ -8208,7 +8274,7 @@ export declare const components: {
8208
8274
  yAxisMax: import("@sinclair/typebox").TNumber;
8209
8275
  yAxisMin: import("@sinclair/typebox").TNumber;
8210
8276
  isYAxisName: import("@sinclair/typebox").TBoolean;
8211
- yAxisName: import("@sinclair/typebox").TBoolean;
8277
+ yAxisName: import("@sinclair/typebox").TString;
8212
8278
  isYAxisShow: import("@sinclair/typebox").TBoolean;
8213
8279
  dataTagShow: import("@sinclair/typebox").TNever;
8214
8280
  isSeriesShowSymbol: import("@sinclair/typebox").TBoolean;
@@ -12580,7 +12646,8 @@ export declare const components: {
12580
12646
  }, {
12581
12647
  readonly name: "内容区域";
12582
12648
  readonly selector: ".wd-top-tab-root .wd-tabs__body";
12583
- readonly description: "可以为顶部选项卡内容区域编写样式";
12649
+ readonly description: "可以为顶部选项卡内容区域编写样式,例如:设置顶部选项卡内容区域高度撑满页面";
12650
+ readonly code: ".wd-top-tab-root .wd-tabs__body {\n /* 设置顶部选项卡内容区域高度撑满页面 */\n /* 注意:此处需要设置为计算高度 【视口高度-选项卡头部标签区域高度】*/\n height: calc(100vh - 48px);\n overflow: auto;\n }\n ";
12584
12651
  }, {
12585
12652
  readonly name: "选项卡超长自动滑动遮罩";
12586
12653
  readonly selector: ".wd-tabs-h5-root .wd-tabs__header-item-mask";
@@ -19080,6 +19147,9 @@ declare const _default: {
19080
19147
  color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
19081
19148
  }>>;
19082
19149
  }>>;
19150
+ customContent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
19151
+ openPage: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
19152
+ logoPosition: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
19083
19153
  }>;
19084
19154
  readonly classes: readonly [];
19085
19155
  readonly methods: readonly [];
@@ -19096,6 +19166,7 @@ declare const _default: {
19096
19166
  }>;
19097
19167
  readonly 'x-platforms': readonly ["MP"];
19098
19168
  }];
19169
+ readonly isContainer: true;
19099
19170
  readonly meta: {
19100
19171
  readonly title: "小店商品";
19101
19172
  readonly name: "WdStoreProduct";
@@ -25532,6 +25603,68 @@ declare const _default: {
25532
25603
  "x-category": string;
25533
25604
  description: string;
25534
25605
  };
25606
+ layoutType: {
25607
+ title: string;
25608
+ default: string;
25609
+ type: string;
25610
+ "x-index": number;
25611
+ "x-category": string;
25612
+ description: string;
25613
+ enum: {
25614
+ value: string;
25615
+ label: string;
25616
+ }[];
25617
+ "x-linkages": {
25618
+ type: string;
25619
+ target: string;
25620
+ condition: string;
25621
+ }[];
25622
+ "x-platforms": string[];
25623
+ };
25624
+ transformType: {
25625
+ title: string;
25626
+ default: string;
25627
+ type: string;
25628
+ "x-index": number;
25629
+ "x-category": string;
25630
+ description: string;
25631
+ enum: {
25632
+ value: string;
25633
+ label: string;
25634
+ }[];
25635
+ "x-platforms": string[];
25636
+ };
25637
+ previousMargin: {
25638
+ title: string;
25639
+ type: string;
25640
+ default: string;
25641
+ "x-index": number;
25642
+ "x-category": string;
25643
+ description: string;
25644
+ "x-platforms": string[];
25645
+ };
25646
+ nextMargin: {
25647
+ title: string;
25648
+ type: string;
25649
+ default: string;
25650
+ "x-index": number;
25651
+ "x-category": string;
25652
+ description: string;
25653
+ "x-platforms": string[];
25654
+ };
25655
+ easingFunction: {
25656
+ title: string;
25657
+ type: string;
25658
+ default: string;
25659
+ "x-index": number;
25660
+ "x-category": string;
25661
+ description: string;
25662
+ "x-platforms": string[];
25663
+ enum: {
25664
+ value: string;
25665
+ label: string;
25666
+ }[];
25667
+ };
25535
25668
  };
25536
25669
  };
25537
25670
  events: {
@@ -27259,7 +27392,7 @@ declare const _default: {
27259
27392
  yAxisMax: import("@sinclair/typebox").TNumber;
27260
27393
  yAxisMin: import("@sinclair/typebox").TNumber;
27261
27394
  isYAxisName: import("@sinclair/typebox").TBoolean;
27262
- yAxisName: import("@sinclair/typebox").TBoolean;
27395
+ yAxisName: import("@sinclair/typebox").TString;
27263
27396
  isYAxisShow: import("@sinclair/typebox").TBoolean;
27264
27397
  dataTagShow: import("@sinclair/typebox").TNever;
27265
27398
  isSeriesShowSymbol: import("@sinclair/typebox").TBoolean;
@@ -31631,7 +31764,8 @@ declare const _default: {
31631
31764
  }, {
31632
31765
  readonly name: "内容区域";
31633
31766
  readonly selector: ".wd-top-tab-root .wd-tabs__body";
31634
- readonly description: "可以为顶部选项卡内容区域编写样式";
31767
+ readonly description: "可以为顶部选项卡内容区域编写样式,例如:设置顶部选项卡内容区域高度撑满页面";
31768
+ readonly code: ".wd-top-tab-root .wd-tabs__body {\n /* 设置顶部选项卡内容区域高度撑满页面 */\n /* 注意:此处需要设置为计算高度 【视口高度-选项卡头部标签区域高度】*/\n height: calc(100vh - 48px);\n overflow: auto;\n }\n ";
31635
31769
  }, {
31636
31770
  readonly name: "选项卡超长自动滑动遮罩";
31637
31771
  readonly selector: ".wd-tabs-h5-root .wd-tabs__header-item-mask";
@@ -1499,6 +1499,23 @@ body .wd-h5-root {
1499
1499
  bottom: 0;
1500
1500
  width: 80%;
1501
1501
  margin: 0 auto;
1502
+ display: flex;
1503
+ align-items: center;
1504
+ justify-content: center;
1505
+ }
1506
+
1507
+ .wd-pc-image-preview {
1508
+ max-width: 80%;
1509
+ max-height: 80%;
1510
+ margin-top: 50px;
1511
+ }
1512
+
1513
+ .wd-image-preview-img {
1514
+ max-width: 100%;
1515
+ max-height: 100%;
1516
+ background-size: contain;
1517
+ background-position: center center;
1518
+ background-repeat: no-repeat;
1502
1519
  }
1503
1520
 
1504
1521
  .wd-image-mask {
@@ -2691,6 +2708,7 @@ _:-ms-lang(x)::backdrop,
2691
2708
  cursor: pointer;
2692
2709
  display: flex;
2693
2710
  align-items: center;
2711
+ flex-grow: 1;
2694
2712
  }
2695
2713
  .wd-table__sortbtn .wd-table__headerop {
2696
2714
  max-width: calc(100% - var(--wd-space-base) * 6);
@@ -4018,7 +4036,6 @@ _:-ms-lang(x)::backdrop,
4018
4036
  .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) {
4019
4037
  border-color: var(--wd-form-input-wrap-border-hover);
4020
4038
  background-color: var(--wd-form-input-wrap-bg-focus);
4021
- color: var(--wd-form-input-wrap-text-focus);
4022
4039
  box-shadow: 0px 0px 0px 0px;
4023
4040
  }
4024
4041
  .wd-form-item.is-borderless .wd-form-item-wrap {
@@ -4406,7 +4423,6 @@ textarea {
4406
4423
  .wd-form-item--weui .wd-form-input-wrap.is-not-h5:focus:not(.is-disabled) {
4407
4424
  border-color: var(--wd-form-input-wrap-border-hover);
4408
4425
  background-color: var(--wd-form-input-wrap-bg-focus);
4409
- color: var(--wd-form-input-wrap-text-focus);
4410
4426
  box-shadow: 0px 0px 0px 0px;
4411
4427
  }
4412
4428
  .wd-form.wd-form--weui .wd-upload__control,
@@ -4911,7 +4927,6 @@ textarea {
4911
4927
  .wd-form-input-wrap.is-focused:not(.is-disabled), .wd-form-input-wrap:focus:not(.is-disabled) {
4912
4928
  border-color: var(--wd-form-input-wrap-border-hover);
4913
4929
  background-color: var(--wd-form-input-wrap-bg-focus);
4914
- color: var(--wd-form-input-wrap-text-focus);
4915
4930
  box-shadow: 0px 0px 0px 0px;
4916
4931
  }
4917
4932
  .wd-form-input-wrap.is-disabled {
@@ -9891,6 +9906,17 @@ page,
9891
9906
  overflow: auto;
9892
9907
  height: 100%;
9893
9908
  }
9909
+ .wd-menulayout-body__left-menu::-webkit-scrollbar {
9910
+ width: 4px;
9911
+ height: 4px;
9912
+ }
9913
+ .wd-menulayout-body__left-menu::-webkit-scrollbar-thumb {
9914
+ border-radius: var(--wd-space-base-xs, 4px);
9915
+ background: var(--wd-color-text-disabled, rgba(0, 0, 0, 0.26));
9916
+ }
9917
+ .wd-menulayout-body__left-menu::-webkit-scrollbar-track {
9918
+ background-color: transparent;
9919
+ }
9894
9920
  .wd-menulayout-body__left-menu .wedatea2td-menu__item {
9895
9921
  padding: 7px 24px 7px 8px;
9896
9922
  }