@cloudbase/weda-ui 3.11.0 → 3.11.4
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/dist/configs/components/wd-progress.d.ts +10 -0
- package/dist/configs/components/wd-progress.js +39 -2
- package/dist/configs/components/wd-top-tab.d.ts +4 -0
- package/dist/configs/components/wd-top-tab.js +5 -0
- package/dist/configs/index.d.ts +22 -0
- package/dist/configs/type-utils/type-form.js +1 -0
- package/dist/style/index.css +16 -6
- package/dist/style/index.scss +1 -1
- package/dist/style/weda-ui.min.css +2 -2
- package/dist/web/components/form/location/common/propsConfig.d.ts +1 -1
- package/dist/web/components/form/uploader/uploader.h5.js +13 -4
- package/dist/web/components/form/uploader/util.d.ts +1 -0
- package/dist/web/components/form/uploader/util.js +28 -0
- package/dist/web/components/form/uploaderFile/uploadFile.h5.js +14 -6
- package/dist/web/components/grid/col.d.ts +2 -2
- package/dist/web/components/wd-markdown/github-markdown-light.css +1 -1
- package/dist/web/components/wd-progress/wd-progress.js +5 -3
- package/dist/web/components/wd-select/select/selectUI.js +3 -3
- package/dist/web/components/wd-select/style.d.ts +1 -0
- package/dist/web/components/wd-select/style.js +1 -0
- package/dist/web/components/wd-select/wd-select.css +1 -1
- package/dist/web/components/wd-select-multiple/wd-select-multiple.css +9 -0
- package/dist/web/components/wd-table/components/FieldRender/index.js +19 -8
- package/dist/web/components/wd-table/components/ModalTable/index.js +4 -3
- package/dist/web/components/wd-table/utils/index.js +1 -1
- package/dist/web/components/wd-table/wd-table.js +2 -2
- package/dist/web/components/wd-tabs/tabs-h5.js +13 -3
- package/dist/web/components/wd-textarea/wd-textarea.js +3 -6
- package/dist/web/utils/isObjectEqual.d.ts +1 -1
- package/dist/web/utils/moment.d.ts +1 -0
- package/dist/web/utils/tool.js +2 -2
- package/package.json +17 -12
|
@@ -16,7 +16,9 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
16
16
|
layout: import("@sinclair/typebox").TUnsafe<string>;
|
|
17
17
|
labelWidth: import("@sinclair/typebox").TString;
|
|
18
18
|
labelTips: import("@sinclair/typebox").TString;
|
|
19
|
+
percentSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
|
|
19
20
|
name: import("@sinclair/typebox").TString;
|
|
21
|
+
showPercent: import("@sinclair/typebox").TBoolean;
|
|
20
22
|
min: import("@sinclair/typebox").TNumber;
|
|
21
23
|
max: import("@sinclair/typebox").TNumber;
|
|
22
24
|
value: import("@sinclair/typebox").TNumber;
|
|
@@ -32,6 +34,7 @@ declare const properties: import("@sinclair/typebox").TObject<{
|
|
|
32
34
|
min: import("@sinclair/typebox").TNumber;
|
|
33
35
|
max: import("@sinclair/typebox").TNumber;
|
|
34
36
|
step: import("@sinclair/typebox").TNumber;
|
|
37
|
+
showPercent: import("@sinclair/typebox").TBoolean;
|
|
35
38
|
}>;
|
|
36
39
|
export type DataType = Simplify<Static<typeof data>>;
|
|
37
40
|
declare const config: {
|
|
@@ -48,7 +51,9 @@ declare const config: {
|
|
|
48
51
|
layout: import("@sinclair/typebox").TUnsafe<string>;
|
|
49
52
|
labelWidth: import("@sinclair/typebox").TString;
|
|
50
53
|
labelTips: import("@sinclair/typebox").TString;
|
|
54
|
+
percentSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
|
|
51
55
|
name: import("@sinclair/typebox").TString;
|
|
56
|
+
showPercent: import("@sinclair/typebox").TBoolean;
|
|
52
57
|
min: import("@sinclair/typebox").TNumber;
|
|
53
58
|
max: import("@sinclair/typebox").TNumber;
|
|
54
59
|
value: import("@sinclair/typebox").TNumber;
|
|
@@ -64,6 +69,7 @@ declare const config: {
|
|
|
64
69
|
min: import("@sinclair/typebox").TNumber;
|
|
65
70
|
max: import("@sinclair/typebox").TNumber;
|
|
66
71
|
step: import("@sinclair/typebox").TNumber;
|
|
72
|
+
showPercent: import("@sinclair/typebox").TBoolean;
|
|
67
73
|
}>;
|
|
68
74
|
readonly classes: {
|
|
69
75
|
name: string;
|
|
@@ -169,6 +175,10 @@ declare const config: {
|
|
|
169
175
|
readonly when: "$attached";
|
|
170
176
|
readonly body: "\n [attributes]\n name = \"{{$self.id}}\"\n ";
|
|
171
177
|
readonly __k: "init-name-with-id";
|
|
178
|
+
}, {
|
|
179
|
+
readonly to: "percentSlot";
|
|
180
|
+
readonly when: "showPercent";
|
|
181
|
+
readonly body: "\n {{#if (helper_utils '===' $self.attributes.showPercent true)}}\n [[template]]\n component = \"WdText\"\n label = \"百分比\"\n [template.attributes]\n level = \"body-sm\"\n \":text\" = \"($w.{{$self.id}}.value || 0) + `%`\"\n [template.extra.commonStyle.margin]\n left = 8\n {{/if}}\n ";
|
|
172
182
|
}];
|
|
173
183
|
readonly componentOrder: 495;
|
|
174
184
|
readonly group: {
|
|
@@ -25,6 +25,11 @@ export const WD_PROGRESS_STATUS = [
|
|
|
25
25
|
];
|
|
26
26
|
// 属性类型定义
|
|
27
27
|
const data = Type.Object({
|
|
28
|
+
percentSlot: Type.Optional(Type.Slot({
|
|
29
|
+
title: '百分比',
|
|
30
|
+
'x-index': 5,
|
|
31
|
+
'x-category': X_CATEGORY.PROGRESS,
|
|
32
|
+
})),
|
|
28
33
|
name: Type.String({
|
|
29
34
|
title: '绑定字段',
|
|
30
35
|
type: 'string',
|
|
@@ -43,6 +48,12 @@ const data = Type.Object({
|
|
|
43
48
|
required: true,
|
|
44
49
|
description: '表单字段的Key值,用于提交数据时,匹配数据模型字段标识。页面内需保证唯一。',
|
|
45
50
|
}),
|
|
51
|
+
showPercent: Type.Boolean({
|
|
52
|
+
title: '显示进度百分比',
|
|
53
|
+
'x-runtime-default': false,
|
|
54
|
+
'x-index': 13,
|
|
55
|
+
'x-category': X_CATEGORY.PROGRESS,
|
|
56
|
+
}),
|
|
46
57
|
min: Type.Number({
|
|
47
58
|
title: '最小值',
|
|
48
59
|
'x-runtime-default': 0,
|
|
@@ -110,7 +121,15 @@ const data = Type.Object({
|
|
|
110
121
|
}),
|
|
111
122
|
});
|
|
112
123
|
const properties = Type.Composite([
|
|
113
|
-
Type.Pick(data, [
|
|
124
|
+
Type.Pick(data, [
|
|
125
|
+
'min',
|
|
126
|
+
'max',
|
|
127
|
+
'name',
|
|
128
|
+
'value',
|
|
129
|
+
'label',
|
|
130
|
+
'step',
|
|
131
|
+
'showPercent',
|
|
132
|
+
]),
|
|
114
133
|
Type.Pick(ItemData, ['visible', 'disabled', 'readOnly']),
|
|
115
134
|
]);
|
|
116
135
|
const CLASSES = getClasses('progress');
|
|
@@ -211,7 +230,25 @@ const config = defineConfig({
|
|
|
211
230
|
shortcut: FORM_ITEM_META.shortcut,
|
|
212
231
|
visible: FORM_ITEM_META.visible,
|
|
213
232
|
inlineStyleForm: FORM_ITEM_META.inlineStyleForm,
|
|
214
|
-
templates: [
|
|
233
|
+
templates: [
|
|
234
|
+
templateInitNameWithId,
|
|
235
|
+
{
|
|
236
|
+
to: 'percentSlot',
|
|
237
|
+
when: 'showPercent',
|
|
238
|
+
body: `
|
|
239
|
+
{{#if (helper_utils '===' $self.attributes.showPercent true)}}
|
|
240
|
+
[[template]]
|
|
241
|
+
component = "WdText"
|
|
242
|
+
label = "百分比"
|
|
243
|
+
[template.attributes]
|
|
244
|
+
level = "body-sm"
|
|
245
|
+
":text" = "($w.{{$self.id}}.value || 0) + \`%\`"
|
|
246
|
+
[template.extra.commonStyle.margin]
|
|
247
|
+
left = 8
|
|
248
|
+
{{/if}}
|
|
249
|
+
`,
|
|
250
|
+
},
|
|
251
|
+
],
|
|
215
252
|
componentOrder: 495,
|
|
216
253
|
group: {
|
|
217
254
|
[X_CATEGORY.COMMON]: {
|
|
@@ -87,6 +87,10 @@ declare const config: {
|
|
|
87
87
|
readonly name: "内容区域";
|
|
88
88
|
readonly selector: ".wd-top-tab-root .wd-tabs__body";
|
|
89
89
|
readonly description: "可以为顶部选项卡内容区域编写样式";
|
|
90
|
+
}, {
|
|
91
|
+
readonly name: "选项卡超长自动滑动遮罩";
|
|
92
|
+
readonly selector: ".wd-tabs-h5-root .wd-tabs__header-item-mask";
|
|
93
|
+
readonly description: "可以为移动端选项卡设置滑动背景色,提示选项卡内容超长可滑动";
|
|
90
94
|
}];
|
|
91
95
|
readonly methods: readonly [{
|
|
92
96
|
readonly name: "selectTab";
|
|
@@ -398,6 +398,11 @@ const config = defineConfig({
|
|
|
398
398
|
selector: '.wd-top-tab-root .wd-tabs__body',
|
|
399
399
|
description: '可以为顶部选项卡内容区域编写样式',
|
|
400
400
|
},
|
|
401
|
+
{
|
|
402
|
+
name: '选项卡超长自动滑动遮罩',
|
|
403
|
+
selector: '.wd-tabs-h5-root .wd-tabs__header-item-mask',
|
|
404
|
+
description: '可以为移动端选项卡设置滑动背景色,提示选项卡内容超长可滑动',
|
|
405
|
+
},
|
|
401
406
|
],
|
|
402
407
|
// 组件方法
|
|
403
408
|
methods: [
|
package/dist/configs/index.d.ts
CHANGED
|
@@ -601,7 +601,9 @@ export declare const components: {
|
|
|
601
601
|
layout: import("@sinclair/typebox").TUnsafe<string>;
|
|
602
602
|
labelWidth: import("@sinclair/typebox").TString;
|
|
603
603
|
labelTips: import("@sinclair/typebox").TString;
|
|
604
|
+
percentSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
|
|
604
605
|
name: import("@sinclair/typebox").TString;
|
|
606
|
+
showPercent: import("@sinclair/typebox").TBoolean;
|
|
605
607
|
min: import("@sinclair/typebox").TNumber;
|
|
606
608
|
max: import("@sinclair/typebox").TNumber;
|
|
607
609
|
value: import("@sinclair/typebox").TNumber;
|
|
@@ -617,6 +619,7 @@ export declare const components: {
|
|
|
617
619
|
min: import("@sinclair/typebox").TNumber;
|
|
618
620
|
max: import("@sinclair/typebox").TNumber;
|
|
619
621
|
step: import("@sinclair/typebox").TNumber;
|
|
622
|
+
showPercent: import("@sinclair/typebox").TBoolean;
|
|
620
623
|
}>;
|
|
621
624
|
readonly classes: {
|
|
622
625
|
name: string;
|
|
@@ -722,6 +725,10 @@ export declare const components: {
|
|
|
722
725
|
readonly when: "$attached";
|
|
723
726
|
readonly body: "\n [attributes]\n name = \"{{$self.id}}\"\n ";
|
|
724
727
|
readonly __k: "init-name-with-id";
|
|
728
|
+
}, {
|
|
729
|
+
readonly to: "percentSlot";
|
|
730
|
+
readonly when: "showPercent";
|
|
731
|
+
readonly body: "\n {{#if (helper_utils '===' $self.attributes.showPercent true)}}\n [[template]]\n component = \"WdText\"\n label = \"百分比\"\n [template.attributes]\n level = \"body-sm\"\n \":text\" = \"($w.{{$self.id}}.value || 0) + `%`\"\n [template.extra.commonStyle.margin]\n left = 8\n {{/if}}\n ";
|
|
725
732
|
}];
|
|
726
733
|
readonly componentOrder: 495;
|
|
727
734
|
readonly group: {
|
|
@@ -12930,6 +12937,10 @@ export declare const components: {
|
|
|
12930
12937
|
readonly name: "内容区域";
|
|
12931
12938
|
readonly selector: ".wd-top-tab-root .wd-tabs__body";
|
|
12932
12939
|
readonly description: "可以为顶部选项卡内容区域编写样式";
|
|
12940
|
+
}, {
|
|
12941
|
+
readonly name: "选项卡超长自动滑动遮罩";
|
|
12942
|
+
readonly selector: ".wd-tabs-h5-root .wd-tabs__header-item-mask";
|
|
12943
|
+
readonly description: "可以为移动端选项卡设置滑动背景色,提示选项卡内容超长可滑动";
|
|
12933
12944
|
}];
|
|
12934
12945
|
readonly methods: readonly [{
|
|
12935
12946
|
readonly name: "selectTab";
|
|
@@ -19980,7 +19991,9 @@ declare const _default: {
|
|
|
19980
19991
|
layout: import("@sinclair/typebox").TUnsafe<string>;
|
|
19981
19992
|
labelWidth: import("@sinclair/typebox").TString;
|
|
19982
19993
|
labelTips: import("@sinclair/typebox").TString;
|
|
19994
|
+
percentSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
|
|
19983
19995
|
name: import("@sinclair/typebox").TString;
|
|
19996
|
+
showPercent: import("@sinclair/typebox").TBoolean;
|
|
19984
19997
|
min: import("@sinclair/typebox").TNumber;
|
|
19985
19998
|
max: import("@sinclair/typebox").TNumber;
|
|
19986
19999
|
value: import("@sinclair/typebox").TNumber;
|
|
@@ -19996,6 +20009,7 @@ declare const _default: {
|
|
|
19996
20009
|
min: import("@sinclair/typebox").TNumber;
|
|
19997
20010
|
max: import("@sinclair/typebox").TNumber;
|
|
19998
20011
|
step: import("@sinclair/typebox").TNumber;
|
|
20012
|
+
showPercent: import("@sinclair/typebox").TBoolean;
|
|
19999
20013
|
}>;
|
|
20000
20014
|
readonly classes: {
|
|
20001
20015
|
name: string;
|
|
@@ -20101,6 +20115,10 @@ declare const _default: {
|
|
|
20101
20115
|
readonly when: "$attached";
|
|
20102
20116
|
readonly body: "\n [attributes]\n name = \"{{$self.id}}\"\n ";
|
|
20103
20117
|
readonly __k: "init-name-with-id";
|
|
20118
|
+
}, {
|
|
20119
|
+
readonly to: "percentSlot";
|
|
20120
|
+
readonly when: "showPercent";
|
|
20121
|
+
readonly body: "\n {{#if (helper_utils '===' $self.attributes.showPercent true)}}\n [[template]]\n component = \"WdText\"\n label = \"百分比\"\n [template.attributes]\n level = \"body-sm\"\n \":text\" = \"($w.{{$self.id}}.value || 0) + `%`\"\n [template.extra.commonStyle.margin]\n left = 8\n {{/if}}\n ";
|
|
20104
20122
|
}];
|
|
20105
20123
|
readonly componentOrder: 495;
|
|
20106
20124
|
readonly group: {
|
|
@@ -32309,6 +32327,10 @@ declare const _default: {
|
|
|
32309
32327
|
readonly name: "内容区域";
|
|
32310
32328
|
readonly selector: ".wd-top-tab-root .wd-tabs__body";
|
|
32311
32329
|
readonly description: "可以为顶部选项卡内容区域编写样式";
|
|
32330
|
+
}, {
|
|
32331
|
+
readonly name: "选项卡超长自动滑动遮罩";
|
|
32332
|
+
readonly selector: ".wd-tabs-h5-root .wd-tabs__header-item-mask";
|
|
32333
|
+
readonly description: "可以为移动端选项卡设置滑动背景色,提示选项卡内容超长可滑动";
|
|
32312
32334
|
}];
|
|
32313
32335
|
readonly methods: readonly [{
|
|
32314
32336
|
readonly name: "selectTab";
|
package/dist/style/index.css
CHANGED
|
@@ -3244,7 +3244,7 @@ _:-ms-lang(x)::backdrop,
|
|
|
3244
3244
|
visibility: visible;
|
|
3245
3245
|
}
|
|
3246
3246
|
.wd-table__body .wd-tag__text {
|
|
3247
|
-
max-width:
|
|
3247
|
+
max-width: 60px;
|
|
3248
3248
|
}
|
|
3249
3249
|
|
|
3250
3250
|
.wd-table-scroll-wrap.wd-table--status {
|
|
@@ -9397,7 +9397,6 @@ page,
|
|
|
9397
9397
|
font-size: var(--wd-tabs-vertical-heder-item-size);
|
|
9398
9398
|
line-height: calc(var(--wd-space-base) * 6);
|
|
9399
9399
|
color: var(--wd-tabs-vertical-heder-item-color);
|
|
9400
|
-
cursor: pointer;
|
|
9401
9400
|
}
|
|
9402
9401
|
.wd-tabs--vertical > .wd-tabs__header > .wd-tabs__header-item-wrap .wd-tabs__item-icon {
|
|
9403
9402
|
display: flex;
|
|
@@ -9458,8 +9457,8 @@ page,
|
|
|
9458
9457
|
width: 50px;
|
|
9459
9458
|
right: -1px;
|
|
9460
9459
|
bottom: 0px;
|
|
9461
|
-
height:
|
|
9462
|
-
background: linear-gradient(
|
|
9460
|
+
height: 50px;
|
|
9461
|
+
background: linear-gradient(270deg, rgba(255, 255, 255, 0.8), hsla(0deg, 0%, 100%, 0));
|
|
9463
9462
|
}
|
|
9464
9463
|
.wd-tabs-h5-root .wd-tabs__item {
|
|
9465
9464
|
text-align: center;
|
|
@@ -9498,6 +9497,14 @@ page,
|
|
|
9498
9497
|
display: block;
|
|
9499
9498
|
}
|
|
9500
9499
|
|
|
9500
|
+
.wd-mp-side-tab-root .wd-tabs__item {
|
|
9501
|
+
cursor: unset;
|
|
9502
|
+
}
|
|
9503
|
+
|
|
9504
|
+
.wd-mp-top-tab-root .wd-tabs__item {
|
|
9505
|
+
cursor: unset;
|
|
9506
|
+
}
|
|
9507
|
+
|
|
9501
9508
|
.wd-form-item.wd-form-item--detail-vertical-right > .wd-form-item-wrap {
|
|
9502
9509
|
align-items: flex-end;
|
|
9503
9510
|
flex-direction: column;
|
|
@@ -10266,7 +10273,7 @@ page,
|
|
|
10266
10273
|
color: var(--wd-tabbar-heder-item-color-hover);
|
|
10267
10274
|
}
|
|
10268
10275
|
.wd-tabbar__item:hover .wd-tabbar__item-text {
|
|
10269
|
-
color:
|
|
10276
|
+
color: inherit;
|
|
10270
10277
|
}
|
|
10271
10278
|
.wd-tabbar__item-text {
|
|
10272
10279
|
text-overflow: ellipsis;
|
|
@@ -10285,7 +10292,7 @@ page,
|
|
|
10285
10292
|
color: var(--wd-tabbar-heder-item-color-selected);
|
|
10286
10293
|
}
|
|
10287
10294
|
.wd-tabbar__item.is-selected .wd-tabbar__item-text {
|
|
10288
|
-
color:
|
|
10295
|
+
color: inherit;
|
|
10289
10296
|
}
|
|
10290
10297
|
.wd-tabbar .wd-link__slot {
|
|
10291
10298
|
width: 100%;
|
|
@@ -10444,6 +10451,7 @@ page,
|
|
|
10444
10451
|
border: none;
|
|
10445
10452
|
border-radius: var(--wd-progress-radius);
|
|
10446
10453
|
color: var(--wd-progress-text-color);
|
|
10454
|
+
flex-grow: 1;
|
|
10447
10455
|
}
|
|
10448
10456
|
.wd-progress__value {
|
|
10449
10457
|
background: var(--wd-progress-color-default);
|
|
@@ -10456,6 +10464,8 @@ page,
|
|
|
10456
10464
|
}
|
|
10457
10465
|
|
|
10458
10466
|
.wd-progress-container {
|
|
10467
|
+
display: flex;
|
|
10468
|
+
align-items: center;
|
|
10459
10469
|
flex-grow: 1;
|
|
10460
10470
|
}
|
|
10461
10471
|
|