@cloudbase/weda-ui-mp 3.6.3 → 3.6.5
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 +5 -0
- package/components/form/select/dropdown-select/index.js +12 -7
- package/components/form-field-behavior/form-field-behavior.js +9 -4
- package/components/form-field-behavior/validator.js +3 -2
- package/components/form-phone/index.wxml +1 -1
- package/components/formdetail/wd-form-detail.wxss +5 -0
- package/components/tooltip/wd-tooltip.wxss +6 -0
- package/components/wd-button/wd-button.wxss +6 -0
- package/components/wd-card/wd-card.wxss +6 -0
- package/components/wd-checkbox-list/wd-checkbox-list.wxss +6 -0
- package/components/wd-date/wd-date.wxss +5 -0
- package/components/wd-date-range/wd-date-range.wxss +5 -0
- package/components/wd-divider/wd-divider.wxss +6 -0
- package/components/wd-form/wd-form.wxss +5 -0
- package/components/wd-form-item/wd-form-item.wxss +5 -0
- package/components/wd-icon/wd-icon.wxss +6 -0
- package/components/wd-image/wd-image.wxss +6 -0
- package/components/wd-input/inner-input/wd-input.wxss +5 -0
- package/components/wd-input-group/wd-input-group.wxss +6 -0
- package/components/wd-input-number/wd-input-number.wxss +6 -0
- package/components/wd-input-wrap/wd-input-wrap.wxss +6 -0
- package/components/wd-layout/wd-layout.wxss +6 -0
- package/components/wd-menu-layout/wd-menu-layout.wxss +5 -0
- package/components/wd-menu-list/wd-menu-list.wxss +5 -0
- package/components/wd-modal/wd-modal.wxss +6 -0
- package/components/wd-progress/wd-progress.wxss +5 -0
- package/components/wd-radio-list/wd-radio-list.wxss +6 -0
- package/components/wd-rating/wd-rating.wxss +5 -0
- package/components/wd-select/select.wxss +5 -0
- package/components/wd-switch/wd-switch.wxss +5 -0
- package/components/wd-tabbar/wd-tabbar.wxss +6 -0
- package/components/wd-tabs/wd-tabs.wxss +6 -0
- package/components/wd-tag/wd-tag.wxss +6 -0
- package/components/wd-tag-select/wd-tag-select.wxss +5 -0
- package/components/wd-text/wd-text.wxss +5 -0
- package/components/wd-textarea/wd-textarea.wxss +6 -0
- package/components/wd-time/wd-time.wxss +5 -0
- package/components/wd-unified-link/wd-link.wxss +6 -0
- package/package.json +1 -1
- package/style/utils.wxss +5 -0
- package/style/wd-design.wxss +5 -0
- package/components/dataView/index.wxss +0 -0
- package/components/wd-audio/index.wxss +0 -0
- package/components/wd-date/calendar/index.wxss +0 -0
|
@@ -227,9 +227,11 @@ Component({
|
|
|
227
227
|
option,
|
|
228
228
|
loadStatus,
|
|
229
229
|
searchOption,
|
|
230
|
-
searchStatus
|
|
230
|
+
searchStatus,
|
|
231
|
+
_needFetch
|
|
231
232
|
) {
|
|
232
233
|
if (this.data.searchValue === '') {
|
|
234
|
+
// 初始化会走到这
|
|
233
235
|
const { chooseIndexValue } = this.properties;
|
|
234
236
|
let index = -1;
|
|
235
237
|
if (chooseIndexValue !== '') {
|
|
@@ -250,12 +252,15 @@ Component({
|
|
|
250
252
|
clickIndex: index,
|
|
251
253
|
});
|
|
252
254
|
} else {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
255
|
+
if (_needFetch) {
|
|
256
|
+
// 只有needFetch 才设置searchOption
|
|
257
|
+
this.setData({
|
|
258
|
+
status: searchStatus,
|
|
259
|
+
showOption: searchOption,
|
|
260
|
+
isFinish: true,
|
|
261
|
+
index: -1,
|
|
262
|
+
});
|
|
263
|
+
}
|
|
259
264
|
}
|
|
260
265
|
},
|
|
261
266
|
},
|
|
@@ -390,11 +390,16 @@ export default Behavior({
|
|
|
390
390
|
if (status === this.data._status) return;
|
|
391
391
|
this.data._status = status;
|
|
392
392
|
const { disabled: _disabled, readOnly: _readOnly } = this.data;
|
|
393
|
-
const
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
_readOnly
|
|
393
|
+
const statusParams = convertStatus(status, _disabled, _readOnly);
|
|
394
|
+
const form = this.$widget.closest(
|
|
395
|
+
(w) => w.getConfig?.()?.componentType === 'form'
|
|
397
396
|
);
|
|
397
|
+
let disabled = statusParams.disabled;
|
|
398
|
+
let readOnly = statusParams.readOnly;
|
|
399
|
+
if (form) {
|
|
400
|
+
disabled = statusParams.disabled || form.formType === 'read';
|
|
401
|
+
readOnly = statusParams.readOnly || form.formType === 'read';
|
|
402
|
+
}
|
|
398
403
|
this.setData({ disabled, readOnly });
|
|
399
404
|
},
|
|
400
405
|
'required,before,after,requiredMsg,isUnionValue': function (
|
|
@@ -13,8 +13,9 @@ const pattern = {
|
|
|
13
13
|
userName: /^[\da-zA-Z\u2E80-\uFE4F \s]{2,}$/,
|
|
14
14
|
carId:
|
|
15
15
|
/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-Z0-9]{4}[A-Z0-9挂学警港澳]{1}$/,
|
|
16
|
-
mobile:
|
|
17
|
-
|
|
16
|
+
mobile:
|
|
17
|
+
/^(\+\d{1,4}[\s-]?)?(\(?\d{1,4}\)?[\s-]?)?(\d{1,4}[\s-]?)?(\d{1,4})?\d{1,9}(\s?(x|ext)\s?\d{1,6})?$/,
|
|
18
|
+
tel: /^(\+\d{1,4}[\s-]?)?(\(?\d{1,4}\)?[\s-]?)?(\d{1,4}[\s-]?)?(\d{1,4})?\d{1,9}(\s?(x|ext)\s?\d{1,6})?$/,
|
|
18
19
|
address: /^[\da-zA-Z\u2E80-\uFE4F \s-]{4,400}$/,
|
|
19
20
|
date: /((^((1[8-9]\d{2})|([2-9]\d{3}))([-\/\._])(10|12|0?[13578])([-\/\._])(3[01]|[12][0-9]|0?[1-9])$)|(^((1[8-9]\d{2})|([2-9]\d{3}))([-\/\._])(11|0?[469])([-\/\._])(30|[12][0-9]|0?[1-9])$)|(^((1[8-9]\d{2})|([2-9]\d{3}))([-\/\._])(0?2)([-\/\._])(2[0-8]|1[0-9]|0?[1-9])$)|(^([2468][048]00)([-\/\._])(0?2)([-\/\._])(29)$)|(^([3579][26]00)([-\/\._])(0?2)([-\/\._])(29)$)|(^([1][89][0][48])([-\/\._])(0?2)([-\/\._])(29)$)|(^([2-9][0-9][0][48])([-\/\._])(0?2)([-\/\._])(29)$)|(^([1][89][2468][048])([-\/\._])(0?2)([-\/\._])(29)$)|(^([2-9][0-9][2468][048])([-\/\._])(0?2)([-\/\._])(29)$)|(^([1][89][13579][26])([-\/\._])(0?2)([-\/\._])(29)$)|(^([2-9][0-9][13579][26])([-\/\._])(0?2)([-\/\._])(29)$))/,
|
|
20
21
|
numVcode: /^[0-9]{4,8}$/,
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
._B00_Xa {
|
|
3
|
+
/* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
|
|
4
|
+
word-break: inherit;
|
|
5
|
+
}
|
|
6
|
+
|
|
1
7
|
.wd-form-input-group {
|
|
2
8
|
--wd-form-input-group-border-radius: var(--wd-border-radius);
|
|
3
9
|
--wd-form-input-group-text-default: var(--wd-color-text-form-default);
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
._B00_Xa {
|
|
3
|
+
/* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
|
|
4
|
+
word-break: inherit;
|
|
5
|
+
}
|
|
6
|
+
|
|
1
7
|
.wd-form-input-wrap {
|
|
2
8
|
--wd-form-input-wrap-border-radius: var(--wd-border-radius);
|
|
3
9
|
--wd-form-input-wrap-text-default: var(--wd-color-text-form-default);
|
package/package.json
CHANGED
package/style/utils.wxss
CHANGED
package/style/wd-design.wxss
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|