@cloudbase/weda-ui-mp 3.6.2 → 3.7.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.
Files changed (74) hide show
  1. package/components/form/form/wd-form.wxss +15 -0
  2. package/components/form/uploader/index.js +3 -3
  3. package/components/form/uploader/weui-uploader.wxml +1 -1
  4. package/components/form/uploader/weui-uploader.wxss +4 -0
  5. package/components/form-field-behavior/form-field-behavior.js +41 -7
  6. package/components/form-field-behavior/validator.js +3 -2
  7. package/components/form-phone/index.wxml +1 -1
  8. package/components/formdetail/wd-form-detail.wxss +5 -0
  9. package/components/tooltip/wd-tooltip.wxss +6 -0
  10. package/components/wd-button/wd-button.wxss +6 -0
  11. package/components/wd-card/wd-card.wxss +6 -0
  12. package/components/wd-cascader/index.js +198 -0
  13. package/components/wd-cascader/index.json +12 -0
  14. package/components/wd-cascader/index.wxml +59 -0
  15. package/components/wd-cascader/index.wxss +2 -0
  16. package/components/wd-cascader/utils.js +70 -0
  17. package/components/wd-cascader/wd-cascader.wxss +284 -0
  18. package/components/wd-checkbox-list/wd-checkbox-list.wxss +6 -0
  19. package/components/wd-date/modal/index.js +4 -1
  20. package/components/wd-date/modal/index.wxml +1 -1
  21. package/components/wd-date/wd-date.wxss +5 -0
  22. package/components/wd-date-range/wd-date-range.wxss +5 -0
  23. package/components/wd-divider/wd-divider.wxss +6 -0
  24. package/components/wd-form/form-utils.js +4 -0
  25. package/components/wd-form/wd-form.wxss +15 -0
  26. package/components/wd-form-arr/index.js +330 -0
  27. package/components/wd-form-arr/index.json +7 -0
  28. package/components/wd-form-arr/index.wxml +5 -0
  29. package/components/wd-form-arr/index.wxss +2 -0
  30. package/components/wd-form-arr/wd-form-obj.wxss +51 -0
  31. package/components/wd-form-item/wd-form-item.wxss +15 -0
  32. package/components/wd-form-item-obj/index.js +113 -0
  33. package/components/wd-form-item-obj/index.json +8 -0
  34. package/components/wd-form-item-obj/index.wxml +51 -0
  35. package/components/wd-form-item-obj/index.wxss +2 -0
  36. package/components/wd-form-item-obj/wd-form-item.wxss +1106 -0
  37. package/components/wd-form-obj/index.js +305 -0
  38. package/components/wd-form-obj/index.json +7 -0
  39. package/components/wd-form-obj/index.wxml +5 -0
  40. package/components/wd-form-obj/index.wxss +2 -0
  41. package/components/wd-form-obj/wd-form-obj.wxss +51 -0
  42. package/components/wd-icon/index.json +1 -1
  43. package/components/wd-icon/wd-icon.wxss +6 -0
  44. package/components/wd-image/wd-image.wxss +6 -0
  45. package/components/wd-input/inner-input/wd-input.wxss +15 -0
  46. package/components/wd-input-group/wd-input-group.wxss +6 -0
  47. package/components/wd-input-number/wd-input-number.wxss +6 -0
  48. package/components/wd-input-wrap/wd-input-wrap.wxss +6 -0
  49. package/components/wd-layout/wd-layout.wxss +6 -0
  50. package/components/wd-menu-layout/wd-menu-layout.wxss +5 -0
  51. package/components/wd-menu-list/wd-menu-list.wxss +5 -0
  52. package/components/wd-modal/wd-modal.wxss +6 -0
  53. package/components/wd-progress/wd-progress.wxss +15 -0
  54. package/components/wd-radio-list/wd-radio-list.wxss +6 -0
  55. package/components/wd-rating/wd-rating.wxss +15 -0
  56. package/components/wd-select/select.wxss +14 -3
  57. package/components/wd-switch/wd-switch.wxss +15 -0
  58. package/components/wd-tabbar/wd-tabbar.wxss +6 -0
  59. package/components/wd-tabs/wd-tabs.wxss +6 -0
  60. package/components/wd-tag/wd-tag.wxss +6 -0
  61. package/components/wd-tag-select/wd-tag-select.wxss +15 -0
  62. package/components/wd-text/wd-text.wxss +5 -0
  63. package/components/wd-textarea/wd-textarea.wxss +6 -0
  64. package/components/wd-time/wd-time.wxss +5 -0
  65. package/components/wd-unified-link/wd-link.wxss +6 -0
  66. package/components/web-view/index.js +3 -0
  67. package/index.json +2 -0
  68. package/package.json +1 -1
  69. package/style/utils.wxss +5 -0
  70. package/style/wd-design.wxss +5 -0
  71. package/utils/enum.js +13 -0
  72. package/components/dataView/index.wxss +0 -0
  73. package/components/wd-audio/index.wxss +0 -0
  74. 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-g-text-default {
3
8
  color: var(--wd-color-text-default);
4
9
  }
@@ -1250,4 +1255,14 @@ textarea {
1250
1255
  }
1251
1256
  .wd-form.size-width-hundred {
1252
1257
  width: 100%;
1258
+ }
1259
+
1260
+ .wd-mp-form-item-obj .wd-form-obj-card-header {
1261
+ display: flex;
1262
+ }
1263
+ .wd-mp-form-item-obj .wd-form-obj-item-wrap__control-wrap {
1264
+ flex-direction: column;
1265
+ }
1266
+ .wd-mp-form-item-obj .wd-form-item--weui.wd-form-item {
1267
+ width: 100%;
1253
1268
  }
@@ -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);
@@ -39,6 +39,9 @@ Component({
39
39
  this.setReadonlyAttributes &&
40
40
  this.setReadonlyAttributes({
41
41
  link,
42
+ postMessage: (message) => {
43
+ wx?.miniProgram?.postMessage(message);
44
+ },
42
45
  });
43
46
  },
44
47
 
package/index.json CHANGED
@@ -37,6 +37,8 @@
37
37
  "FormTextArea": "components/form-text-area/index",
38
38
  "FormInput": "components/form-input/index",
39
39
  "WdForm": "components/wd-form/index",
40
+ "WdFormObj": "components/wd-form-obj/index",
41
+ "WdFormArr": "components/wd-form-arr/index",
40
42
  "WdInput": "components/wd-input/index",
41
43
  "WdInputUrl": "components/wd-input-url/index",
42
44
  "WdInputPhone": "components/wd-input-phone/index",
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.2",
6
+ "version": "3.7.1",
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;
package/utils/enum.js CHANGED
@@ -1245,3 +1245,16 @@ export const WD_TABLE_CUSTOM_FORMAT = [
1245
1245
  { label: '数组', value: 'array' },
1246
1246
  { label: 'JSON', value: 'json' },
1247
1247
  ];
1248
+
1249
+ export const WD_CODE_EDITOR_LANGUAGE = [
1250
+ { label: 'JS', value: 'javascript' },
1251
+ { label: 'TypeScript', value: 'typescript' },
1252
+ { label: 'MongoDB', value: 'mongodb' },
1253
+ { label: 'SQL', value: 'sql' },
1254
+ { label: 'MySQL', value: 'mysql' },
1255
+ ];
1256
+
1257
+ export const WD_CODE_EDITOR_THEME = [
1258
+ { label: '暗黑', value: 'githubDark' },
1259
+ { label: '明亮', value: 'githubLight' },
1260
+ ];
File without changes
File without changes
File without changes