@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.
Files changed (44) hide show
  1. package/components/form/form/wd-form.wxss +5 -0
  2. package/components/form/select/dropdown-select/index.js +12 -7
  3. package/components/form-field-behavior/form-field-behavior.js +9 -4
  4. package/components/form-field-behavior/validator.js +3 -2
  5. package/components/form-phone/index.wxml +1 -1
  6. package/components/formdetail/wd-form-detail.wxss +5 -0
  7. package/components/tooltip/wd-tooltip.wxss +6 -0
  8. package/components/wd-button/wd-button.wxss +6 -0
  9. package/components/wd-card/wd-card.wxss +6 -0
  10. package/components/wd-checkbox-list/wd-checkbox-list.wxss +6 -0
  11. package/components/wd-date/wd-date.wxss +5 -0
  12. package/components/wd-date-range/wd-date-range.wxss +5 -0
  13. package/components/wd-divider/wd-divider.wxss +6 -0
  14. package/components/wd-form/wd-form.wxss +5 -0
  15. package/components/wd-form-item/wd-form-item.wxss +5 -0
  16. package/components/wd-icon/wd-icon.wxss +6 -0
  17. package/components/wd-image/wd-image.wxss +6 -0
  18. package/components/wd-input/inner-input/wd-input.wxss +5 -0
  19. package/components/wd-input-group/wd-input-group.wxss +6 -0
  20. package/components/wd-input-number/wd-input-number.wxss +6 -0
  21. package/components/wd-input-wrap/wd-input-wrap.wxss +6 -0
  22. package/components/wd-layout/wd-layout.wxss +6 -0
  23. package/components/wd-menu-layout/wd-menu-layout.wxss +5 -0
  24. package/components/wd-menu-list/wd-menu-list.wxss +5 -0
  25. package/components/wd-modal/wd-modal.wxss +6 -0
  26. package/components/wd-progress/wd-progress.wxss +5 -0
  27. package/components/wd-radio-list/wd-radio-list.wxss +6 -0
  28. package/components/wd-rating/wd-rating.wxss +5 -0
  29. package/components/wd-select/select.wxss +5 -0
  30. package/components/wd-switch/wd-switch.wxss +5 -0
  31. package/components/wd-tabbar/wd-tabbar.wxss +6 -0
  32. package/components/wd-tabs/wd-tabs.wxss +6 -0
  33. package/components/wd-tag/wd-tag.wxss +6 -0
  34. package/components/wd-tag-select/wd-tag-select.wxss +5 -0
  35. package/components/wd-text/wd-text.wxss +5 -0
  36. package/components/wd-textarea/wd-textarea.wxss +6 -0
  37. package/components/wd-time/wd-time.wxss +5 -0
  38. package/components/wd-unified-link/wd-link.wxss +6 -0
  39. package/package.json +1 -1
  40. package/style/utils.wxss +5 -0
  41. package/style/wd-design.wxss +5 -0
  42. package/components/dataView/index.wxss +0 -0
  43. package/components/wd-audio/index.wxss +0 -0
  44. package/components/wd-date/calendar/index.wxss +0 -0
@@ -1,4 +1,9 @@
1
1
  @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
2
7
  .wd-form,
3
8
  .wd-form-item,
4
9
  .gsd-h5-react-formitem {
@@ -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
- this.setData({
254
- status: searchStatus,
255
- showOption: searchOption,
256
- isFinish: true,
257
- index: -1,
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 { disabled, readOnly } = convertStatus(
394
- status,
395
- _disabled,
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: /^1[3456789]\d{9}$/,
17
- tel: /^(0\d{2,3}-)?(\d{7,8})$/,
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}$/,
@@ -10,7 +10,7 @@
10
10
  layout="{{actualLayout}}"
11
11
  labelVisible="{{labelVisible}}"
12
12
  clearable="{{clearable}}"
13
- maxLength="{{11}}"
13
+ maxLength="{{20}}"
14
14
  password="{{false}}"
15
15
  defaultValue="{{value}}"
16
16
  placeholder="{{placeholder}}"
@@ -1,4 +1,9 @@
1
1
  @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
2
7
  .wd-g-text-default {
3
8
  color: var(--wd-color-text-default);
4
9
  }
@@ -1,3 +1,9 @@
1
+ @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
1
7
  .wd-bubble {
2
8
  --wd-bubble-top: 0px;
3
9
  --wd-bubble-inner-horizontal-padding: 12px;
@@ -1,3 +1,9 @@
1
+ @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
1
7
  .wd-btn {
2
8
  --wd-btn-sm-padding: 0.0625rem calc(var(--wd-space-base) * 2);
3
9
  --wd-btn-md-padding: 0.25rem calc(var(--wd-space-base) * 4);
@@ -1,3 +1,9 @@
1
+ @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
1
7
  .wd-card-root {
2
8
  --wd-card-border-radius: var(--wd-border-radius-md);
3
9
  --wd-card-border-color: var(--wd-color-gray-3);
@@ -1,3 +1,9 @@
1
+ @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
1
7
  .wd-checkbox-group,
2
8
  .wd-checkbox-wrap {
3
9
  --wd-checkbox-wrap-margin-btm: 0.75rem;
@@ -0,0 +1,5 @@
1
+ @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
@@ -0,0 +1,5 @@
1
+ @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
@@ -1,3 +1,9 @@
1
+ @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
1
7
  .wd-divider {
2
8
  --wd-divider-size-border: 1px;
3
9
  --wd-divider-color-border: var(--wd-color-border-separator);
@@ -1,4 +1,9 @@
1
1
  @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
2
7
  .wd-form,
3
8
  .wd-form-item,
4
9
  .gsd-h5-react-formitem {
@@ -1,4 +1,9 @@
1
1
  @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
2
7
  .wd-form,
3
8
  .wd-form-item,
4
9
  .gsd-h5-react-formitem {
@@ -1,3 +1,9 @@
1
+ @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
1
7
  .wd-icon {
2
8
  --wd-icon-size-xxs: 0.875rem;
3
9
  --wd-icon-size-xs: 1rem;
@@ -1,3 +1,9 @@
1
+ @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
1
7
  .wd-image-mask,
2
8
  .wd-image {
3
9
  --wd-image-mask-pc: var(--wd-bg-mask);
@@ -1,4 +1,9 @@
1
1
  @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
2
7
  .wd-g-text-default {
3
8
  color: var(--wd-color-text-default);
4
9
  }
@@ -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-input-number-root {
2
8
  --wd-input-number-content-width-max: 3.4375rem;
3
9
  --wd-input-number-btn-text-color: var(--wd-color-text-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);
@@ -1,3 +1,9 @@
1
+ @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
1
7
  .wd-layout-root {
2
8
  --wd-layout-border-color: var(--wd-color-border-separator);
3
9
  --wd-layout-bg: var(--wd-white);
@@ -1,4 +1,9 @@
1
1
  @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
2
7
  .wd-menulayout,
3
8
  .wd-menulayout__dropdown,
4
9
  .wedatea2td-drawer {
@@ -1,4 +1,9 @@
1
1
  @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
2
7
  .wd-menulayout,
3
8
  .wd-menulayout__dropdown,
4
9
  .wedatea2td-drawer {
@@ -1,3 +1,9 @@
1
+ @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
1
7
  @-webkit-keyframes wd-fadein {
2
8
  0% {
3
9
  opacity: 0;
@@ -1,4 +1,9 @@
1
1
  @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
2
7
  .wd-progress {
3
8
  --wd-progress-color-text: var(--wd-color-text-default);
4
9
  --wd-progress-bg: var(--wd-color-gray-2);
@@ -1,3 +1,9 @@
1
+ @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
1
7
  .wd-radio-group,
2
8
  .wd-radio-wrap {
3
9
  --wd-radio-inner-border: var(--wd-color-gray-4);
@@ -1,4 +1,9 @@
1
1
  @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
2
7
  .wd-rating {
3
8
  color: var(--wd-color-text-default);
4
9
  font-size: var(--wd-font-size-default);
@@ -1,4 +1,9 @@
1
1
  @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
2
7
  .wd-form-select-wrap,
3
8
  .wd-form-select-option-wrap {
4
9
  --wd-from-select-option-wrap-pd: calc(var(--wd-space-base) * 2);
@@ -1,4 +1,9 @@
1
1
  @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
2
7
  .wd-switch {
3
8
  --wd-switch-bg-default-checked: var(--wd-color-brand);
4
9
  --wd-switch-bg-default-checked-disabled: var(--wd-color-brand-disabled);
@@ -1,3 +1,9 @@
1
+ @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
1
7
  .wd-tabbar {
2
8
  --wd-tabbar-heder-item-color: var(--wd-color-text-placeholder);
3
9
  --wd-tabbar-heder-item-color-selected: var(--wd-color-brand);
@@ -1,3 +1,9 @@
1
+ @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
1
7
  .wd-tabs-root {
2
8
  --wd-tabs-border-color: var(--wd-color-gray-3);
3
9
  --wd-tabs-bg: transparent;
@@ -1,3 +1,9 @@
1
+ @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
1
7
  .wd-tag-root {
2
8
  --wd-tag-padding-sm: 2px var(--wd-space-base);
3
9
  --wd-tag-padding-md: 2px calc(var(--wd-space-base) * 2);
@@ -1,4 +1,9 @@
1
1
  @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
2
7
  .wd-g-text-default {
3
8
  color: var(--wd-color-text-default);
4
9
  }
@@ -1,4 +1,9 @@
1
1
  @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
2
7
  .wd-g-text-default {
3
8
  color: var(--wd-color-text-default);
4
9
  }
@@ -1,3 +1,9 @@
1
+ @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
1
7
  .wd-form-textarea-wrap {
2
8
  --wd-form-textarea-group-max-height: 13.125rem;
3
9
  --wd-form-textarea-wrap-height-sm: var(--wd-form-height-sm);
@@ -0,0 +1,5 @@
1
+ @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
@@ -1,3 +1,9 @@
1
+ @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
1
7
  .wd-link {
2
8
  --wd-link-color-text: var(--wd-color-text-link);
3
9
  --wd-link-color-text-hover: var(--wd-color-text-link-hover);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "miniprogram": "./",
4
4
  "packageManager": "yarn@3.0.2",
5
5
  "dependencies": {},
6
- "version": "3.6.3",
6
+ "version": "3.6.5",
7
7
  "main": "./",
8
8
  "publishConfig": {
9
9
  "access": "public"
package/style/utils.wxss CHANGED
@@ -1,4 +1,9 @@
1
1
  @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
2
7
  .wd-g-text-default {
3
8
  color: var(--wd-color-text-default);
4
9
  }
@@ -1,4 +1,9 @@
1
1
  @charset "UTF-8";
2
+ ._B00_Xa {
3
+ /* 如果生成的wxss 为空文件似乎会导致IDE编译报错, 所以这里给他弄个占位 */
4
+ word-break: inherit;
5
+ }
6
+
2
7
  :root,
3
8
  page {
4
9
  --wd-font-size-1: 0.625rem;
File without changes
File without changes
File without changes