@cloudbase/weda-ui 3.4.11 → 3.4.13

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 (168) hide show
  1. package/dist/configs/components/common/form-input-required.js +3 -3
  2. package/dist/configs/components/customer-service.js +3 -0
  3. package/dist/configs/components/dataView.js +20 -10
  4. package/dist/configs/components/form-checkbox.js +15 -2
  5. package/dist/configs/components/form-date.js +1 -1
  6. package/dist/configs/components/form-depart-tree-select.js +1 -1
  7. package/dist/configs/components/form-email.js +17 -2
  8. package/dist/configs/components/form-input.js +17 -2
  9. package/dist/configs/components/form-location.js +1 -1
  10. package/dist/configs/components/form-multi-region.js +1 -1
  11. package/dist/configs/components/form-phone.js +17 -2
  12. package/dist/configs/components/form-radio.js +15 -2
  13. package/dist/configs/components/form-rich-text.js +1 -1
  14. package/dist/configs/components/form-select-multiple.js +362 -0
  15. package/dist/configs/components/form-select.js +1 -1
  16. package/dist/configs/components/form-switch.js +16 -3
  17. package/dist/configs/components/form-text-area.js +15 -2
  18. package/dist/configs/components/form-time.js +1 -1
  19. package/dist/configs/components/form-url.js +17 -2
  20. package/dist/configs/components/form-user-tree-select.js +14 -1
  21. package/dist/configs/components/listView.js +32 -49
  22. package/dist/configs/components/table.json +1 -54
  23. package/dist/configs/components/wd-bubble.js +46 -8
  24. package/dist/configs/components/wd-button.js +3 -0
  25. package/dist/configs/components/wd-checkbox.js +464 -0
  26. package/dist/configs/components/wd-form.js +66 -10
  27. package/dist/configs/components/wd-input-email.js +37 -0
  28. package/dist/configs/components/wd-input-phone.js +43 -0
  29. package/dist/configs/components/wd-input-url.js +37 -0
  30. package/dist/configs/components/wd-input.js +94 -0
  31. package/dist/configs/components/wd-official-account.js +87 -0
  32. package/dist/configs/components/wd-radio.js +443 -0
  33. package/dist/configs/components/wd-switch.js +315 -0
  34. package/dist/configs/components/wd-table.js +11 -59
  35. package/dist/configs/components/wd-textarea.js +82 -0
  36. package/dist/configs/components/wd-tree.js +443 -0
  37. package/dist/configs/components/web-view.js +3 -0
  38. package/dist/configs/index.js +24 -1
  39. package/dist/configs/type-utils/type-form.js +681 -0
  40. package/dist/docs/common/components/json-schema-view.js +1 -1
  41. package/dist/docs/common/components/methods-view.js +1 -1
  42. package/dist/docs/common/components/properties-view.js +3 -1
  43. package/dist/docs/common/format.js +7 -7
  44. package/dist/docs/common/tableView.js +3 -1
  45. package/dist/enum/index.js +196 -0
  46. package/dist/style/index.scss +1 -1
  47. package/dist/web/actions/showMessage/index.js +4 -1
  48. package/dist/web/components/carousel/index.js +1 -1
  49. package/dist/web/components/customer-service/customer-service.js +19 -2
  50. package/dist/web/components/dataView/index.js +16 -3
  51. package/dist/web/components/flow/common/hooks/useCommonFlowData/flow-get.js +5 -1
  52. package/dist/web/components/flow/common/request.js +5 -5
  53. package/dist/web/components/flow/modules/operations/controls-items/flow-task-info-modal.js +90 -0
  54. package/dist/web/components/form/formcell/index.css +13 -1
  55. package/dist/web/components/form/formcell/index.js +1 -1
  56. package/dist/web/components/form/location/components/LocationH5/location.h5.js +1 -1
  57. package/dist/web/components/form/select/dropdown-select/index.js +9 -3
  58. package/dist/web/components/form/select/h5.js +18 -8
  59. package/dist/web/components/form/select/index.js +9 -10
  60. package/dist/web/components/form/select/region/index.js +1 -1
  61. package/dist/web/components/form/selectMultiple/dropdown-select/h5.js +111 -0
  62. package/dist/web/components/form/selectMultiple/dropdown-select/index.css +270 -0
  63. package/dist/web/components/form/selectMultiple/dropdown-select/index.js +206 -0
  64. package/dist/web/components/form/selectMultiple/dropdown-select/pc.js +115 -0
  65. package/dist/web/components/form/selectMultiple/dropdown-select/ui.js +113 -0
  66. package/dist/web/components/form/selectMultiple/h5.js +40 -0
  67. package/dist/web/components/form/selectMultiple/index.js +94 -0
  68. package/dist/web/components/form/selectMultiple/request.js +76 -0
  69. package/dist/web/components/form/selectMultiple/status/allEmpty.js +5 -0
  70. package/dist/web/components/form/selectMultiple/status/empty.js +19 -0
  71. package/dist/web/components/form/selectMultiple/status/index.css +63 -0
  72. package/dist/web/components/form/selectMultiple/status/index.js +7 -0
  73. package/dist/web/components/form/selectMultiple/status/loading.js +19 -0
  74. package/dist/web/components/form/selectMultiple/status/propsType.js +1 -0
  75. package/dist/web/components/form/selectMultiple/status/retry.js +19 -0
  76. package/dist/web/components/form/tips/index.css +9 -3
  77. package/dist/web/components/form/uploader/index.css +10 -0
  78. package/dist/web/components/form/uploader/uploader.h5.js +60 -62
  79. package/dist/web/components/form/uploader/uploader.pc.js +48 -41
  80. package/dist/web/components/form/uploaderFile/uploadFile.h5.js +8 -33
  81. package/dist/web/components/form/uploaderFile/uploadFile.pc.js +8 -37
  82. package/dist/web/components/form/userOrgSelect/common/fetch-data-service.js +76 -50
  83. package/dist/web/components/form/userOrgSelect/common/utils.js +24 -8
  84. package/dist/web/components/form/userOrgSelect/component/depart-select/depart-select-pc.js +3 -8
  85. package/dist/web/components/form/userOrgSelect/component/depart-select/index.js +14 -18
  86. package/dist/web/components/form/userOrgSelect/component/depart-select/org-modal-pc.js +20 -14
  87. package/dist/web/components/form/userOrgSelect/component/modal-select-h5.js +1 -1
  88. package/dist/web/components/form/userOrgSelect/component/org-tree.js +21 -9
  89. package/dist/web/components/form/userOrgSelect/component/user-select-h5/index.js +76 -15
  90. package/dist/web/components/form/userOrgSelect/component/user-select-pc/user-model.js +2 -7
  91. package/dist/web/components/form/userOrgSelect/component/user-select-pc/user-select-pc.js +6 -4
  92. package/dist/web/components/form/userOrgSelect/component/userOrgSelect.css +8 -2
  93. package/dist/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.h5.js +25 -51
  94. package/dist/web/components/form/userOrgSelect/hooks/use-depart-data.js +10 -6
  95. package/dist/web/components/form-input-hooks/index.js +41 -15
  96. package/dist/web/components/form-select-multiple/index.js +26 -0
  97. package/dist/web/components/form-upload-file/index.js +0 -1
  98. package/dist/web/components/form-user-tree-select/index.js +2 -2
  99. package/dist/web/components/formdetail/index.css +31 -1
  100. package/dist/web/components/formdetail/index.js +33 -1
  101. package/dist/web/components/index.js +27 -11
  102. package/dist/web/components/listView/index.js +20 -5
  103. package/dist/web/components/navigationBar/common.js +1 -1
  104. package/dist/web/components/navigationBar/horizontalMenu.js +1 -1
  105. package/dist/web/components/navigationBar/index.css +11 -0
  106. package/dist/web/components/navigationBar/index.js +8 -1
  107. package/dist/web/components/phone/index.js +26 -1
  108. package/dist/web/components/phoneCode/index.js +3 -1
  109. package/dist/web/components/richText/index.css +70 -67
  110. package/dist/web/components/richText/index.js +311 -251
  111. package/dist/web/components/richText/richtext.module.css +1 -0
  112. package/dist/web/components/richTextView/index.css +39 -0
  113. package/dist/web/components/richTextView/index.js +1 -1
  114. package/dist/web/components/share/index.js +26 -1
  115. package/dist/web/components/table/ImportFileModalByApi/uploadCSVFile.js +1 -1
  116. package/dist/web/components/wd-checkbox/checkbox.js +34 -0
  117. package/dist/web/components/wd-checkbox/index.js +3 -0
  118. package/dist/web/components/wd-checkbox-list/checkboxList.js +140 -0
  119. package/dist/web/components/wd-checkbox-list/index.js +3 -0
  120. package/dist/web/components/wd-form/hooks/use-remote-value.js +9 -2
  121. package/dist/web/components/wd-form/index.js +69 -34
  122. package/dist/web/components/wd-form/wd-form.js +42 -0
  123. package/dist/web/components/wd-form-cell/index.js +3 -0
  124. package/dist/web/components/wd-form-cell/wd-form-cell.js +42 -0
  125. package/dist/web/components/wd-form-item/index.js +4 -0
  126. package/dist/web/components/wd-form-item/wd-form-item.js +55 -0
  127. package/dist/web/components/wd-form-item/wd-input-group.js +24 -0
  128. package/dist/web/components/wd-icon/wd-icon.js +10 -2
  129. package/dist/web/components/wd-input/index.js +3 -0
  130. package/dist/web/components/wd-input/wd-input.js +155 -0
  131. package/dist/web/components/wd-input-email/index.js +3 -0
  132. package/dist/web/components/wd-input-email/wd-input-email.js +13 -0
  133. package/dist/web/components/wd-input-group/index.js +3 -0
  134. package/dist/web/components/wd-input-group/wd-input-group.js +10 -0
  135. package/dist/web/components/wd-input-phone/index.js +3 -0
  136. package/dist/web/components/wd-input-phone/wd-input-phone.js +14 -0
  137. package/dist/web/components/wd-input-url/index.js +3 -0
  138. package/dist/web/components/wd-input-url/wd-input-url.js +13 -0
  139. package/dist/web/components/wd-input-wrap/index.js +3 -0
  140. package/dist/web/components/wd-input-wrap/wd-input-wrap.js +18 -0
  141. package/dist/web/components/wd-official-account/index.css +29 -0
  142. package/dist/web/components/wd-official-account/index.js +36 -0
  143. package/dist/web/components/wd-radio/index.js +3 -0
  144. package/dist/web/components/wd-radio/wd-radio.js +30 -0
  145. package/dist/web/components/wd-radio-list/index.js +3 -0
  146. package/dist/web/components/wd-radio-list/wd-radio-list.js +104 -0
  147. package/dist/web/components/wd-switch/index.js +3 -0
  148. package/dist/web/components/wd-switch/wd-switch.js +52 -0
  149. package/dist/web/components/wd-table/components/FieldRender/index.js +5 -4
  150. package/dist/web/components/wd-table/components/FilterFieldsPanel/FilterFieldItem.js +4 -0
  151. package/dist/web/components/wd-table/components/Table/index.js +40 -9
  152. package/dist/web/components/wd-table/hooks/useQueryParams.js +4 -1
  153. package/dist/web/components/wd-table/hooks/useTableData.js +6 -1
  154. package/dist/web/components/wd-table/hooks/useViewFields.js +1 -1
  155. package/dist/web/components/wd-table/utils/index.js +6 -2
  156. package/dist/web/components/wd-table/wd-table.js +125 -99
  157. package/dist/web/components/wd-textarea/index.js +3 -0
  158. package/dist/web/components/wd-textarea/wd-textarea.js +78 -0
  159. package/dist/web/components/wd-tree/index.js +3 -0
  160. package/dist/web/components/wd-tree/utils.js +291 -0
  161. package/dist/web/components/wd-tree/wd-tree.js +193 -0
  162. package/dist/web/utils/constant.js +16 -0
  163. package/dist/web/utils/datasource.js +2 -2
  164. package/dist/web/utils/date.js +3 -3
  165. package/dist/web/utils/hooks/useFormLegacy.js +112 -0
  166. package/dist/web/utils/tool.js +12 -2
  167. package/dist/web/weda-ui.css +197 -3
  168. package/package.json +6 -5
@@ -1,4 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  export default function MethodsView({ rows }) {
3
- return ((rows === null || rows === void 0 ? void 0 : rows.length) > 0 && (_jsxs(_Fragment, { children: [_jsx("p", { children: "\u901A\u8FC7\u65B9\u6CD5 API\uFF0C\u53EF\u4EE5\u901A\u8FC7\u7A0B\u5E8F\u89E6\u53D1\u7EC4\u4EF6\u5185\u90E8\u7684\u65B9\u6CD5\uFF0C\u6BD4\u5982\u63D0\u4EA4\u8868\u5355\uFF0C\u663E\u793A\u5F39\u7A97\u7B49" }), _jsx("div", { className: "tea-table__header", children: _jsxs("table", { className: "tea-table__box", children: [_jsxs("colgroup", { children: [_jsx("col", { style: { width: '18%' } }), _jsx("col", { style: { width: '10%' } }), _jsx("col", { style: { width: 'auto' } })] }), _jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "", children: _jsx("div", { children: _jsx("span", { className: "tea-text-overflow", title: "\u65B9\u6CD5\u540D", children: "\u65B9\u6CD5\u540D" }) }) }), _jsx("th", { className: "", children: _jsx("div", { children: _jsx("span", { className: "tea-text-overflow", title: "\u65B9\u6CD5\u6807\u8BC6", children: "\u65B9\u6CD5\u6807\u8BC6" }) }) }), _jsx("th", { className: "", children: _jsx("div", { children: _jsx("span", { className: "tea-text-overflow", title: "\u65B9\u6CD5\u8BF4\u660E", children: "\u65B9\u6CD5\u8BF4\u660E" }) }) })] }) })] }) }), _jsxs("table", { className: "tea-table__box", children: [_jsxs("colgroup", { children: [_jsx("col", { style: { width: '18%' } }), _jsx("col", { style: { width: '10%' } }), _jsx("col", { style: { width: 'auto' } })] }), _jsx("tbody", { children: rows.map((row, index) => (_jsxs("tr", { children: [_jsx("td", { children: row.label }), _jsx("td", { children: _jsx("code", { children: row.name }) }), _jsx("td", { children: row.description })] }, index))) })] })] })));
3
+ return ((rows === null || rows === void 0 ? void 0 : rows.length) > 0 && (_jsxs(_Fragment, { children: [_jsx("p", { children: "\u901A\u8FC7\u65B9\u6CD5 API\uFF0C\u53EF\u4EE5\u901A\u8FC7\u7A0B\u5E8F\u89E6\u53D1\u7EC4\u4EF6\u5185\u90E8\u7684\u65B9\u6CD5\uFF0C\u6BD4\u5982\u63D0\u4EA4\u8868\u5355\uFF0C\u663E\u793A\u5F39\u7A97\u7B49" }), _jsx("div", { className: "tea-table__header", children: _jsxs("table", { className: "tea-table__box", children: [_jsxs("colgroup", { children: [_jsx("col", { style: { width: '18%' } }), _jsx("col", { style: { width: '18%' } }), _jsx("col", { style: { width: 'auto' } })] }), _jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "", children: _jsx("div", { children: _jsx("span", { className: "tea-text-overflow", title: "\u65B9\u6CD5\u540D", children: "\u65B9\u6CD5\u540D" }) }) }), _jsx("th", { className: "", children: _jsx("div", { children: _jsx("span", { className: "tea-text-overflow", title: "\u65B9\u6CD5\u6807\u8BC6", children: "\u65B9\u6CD5\u6807\u8BC6" }) }) }), _jsx("th", { className: "", children: _jsx("div", { children: _jsx("span", { className: "tea-text-overflow", title: "\u65B9\u6CD5\u8BF4\u660E", children: "\u65B9\u6CD5\u8BF4\u660E" }) }) })] }) })] }) }), _jsxs("table", { className: "tea-table__box", children: [_jsxs("colgroup", { children: [_jsx("col", { style: { width: '18%' } }), _jsx("col", { style: { width: '18%' } }), _jsx("col", { style: { width: 'auto' } })] }), _jsx("tbody", { children: rows.map((row, index) => (_jsxs("tr", { children: [_jsx("td", { children: row.label }), _jsx("td", { children: _jsx("code", { children: row.name }) }), _jsx("td", { children: row.description })] }, index))) })] })] })));
4
4
  }
@@ -1,6 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  export default function PropertiesView({ rows }) {
3
- return ((rows === null || rows === void 0 ? void 0 : rows.length) > 0 && (_jsxs(_Fragment, { children: [_jsx("p", { children: "\u901A\u8FC7\u5C5E\u6027 API\uFF0C\u53EF\u4EE5\u83B7\u53D6\u7EC4\u4EF6\u5185\u90E8\u7684\u72B6\u6001\u548C\u5C5E\u6027\u503C" }), _jsx("div", { className: "tea-table__header", children: _jsxs("table", { className: "tea-table__box", children: [_jsxs("colgroup", { children: [_jsx("col", { style: { width: '18%' } }), _jsx("col", { style: { width: '18%' } }), _jsx("col", { style: { width: '25%' } }), _jsx("col", { style: { width: 'auto' } })] }), _jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "", children: _jsx("div", { children: _jsx("span", { className: "tea-text-overflow", title: "\u53EA\u8BFB\u5C5E\u6027\u540D", children: "\u53EA\u8BFB\u5C5E\u6027\u540D" }) }) }), _jsx("th", { className: "", children: _jsx("div", { children: _jsx("span", { className: "tea-text-overflow", title: "\u53EA\u8BFB\u5C5E\u6027\u540D", children: "\u5C5E\u6027\u6807\u8BC6" }) }) }), _jsx("th", { className: "", children: _jsx("div", { children: _jsx("span", { className: "tea-text-overflow", title: "\u7C7B\u578B", children: "\u7C7B\u578B" }) }) }), _jsx("th", { className: "", children: _jsx("div", { children: _jsx("span", { className: "tea-text-overflow", title: "\u8BF4\u660E", children: "\u8BF4\u660E" }) }) })] }) })] }) }), _jsxs("table", { className: "tea-table__box", children: [_jsxs("colgroup", { children: [_jsx("col", { style: { width: '18%' } }), _jsx("col", { style: { width: '18%' } }), _jsx("col", { style: { width: '25%' } }), _jsx("col", { style: { width: 'auto' } })] }), _jsx("tbody", { children: rows.map((row, index) => (_jsxs("tr", { children: [_jsx("td", { children: _jsx("b", { children: row.title }) }), _jsx("td", { children: _jsx("code", { children: row.name }) }), _jsx("td", { children: _jsx("code", { children: Array.isArray(row.enum) && row.enum.length
3
+ return ((rows === null || rows === void 0 ? void 0 : rows.length) > 0 && (_jsxs(_Fragment, { children: [_jsx("p", { children: "\u901A\u8FC7\u5C5E\u6027 API\uFF0C\u53EF\u4EE5\u83B7\u53D6\u7EC4\u4EF6\u5185\u90E8\u7684\u72B6\u6001\u548C\u5C5E\u6027\u503C" }), _jsx("div", { className: "tea-table__header", children: _jsxs("table", { className: "tea-table__box", children: [_jsxs("colgroup", { children: [_jsx("col", { style: { width: '18%' } }), _jsx("col", { style: { width: '18%' } }), _jsx("col", { style: { width: '25%' } }), _jsx("col", { style: { width: 'auto' } })] }), _jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "", children: _jsx("div", { children: _jsx("span", { className: "tea-text-overflow", title: "\u53EA\u8BFB\u5C5E\u6027\u540D", children: "\u53EA\u8BFB\u5C5E\u6027\u540D" }) }) }), _jsx("th", { className: "", children: _jsx("div", { children: _jsx("span", { className: "tea-text-overflow", title: "\u53EA\u8BFB\u5C5E\u6027\u540D", children: "\u5C5E\u6027\u6807\u8BC6" }) }) }), _jsx("th", { className: "", children: _jsx("div", { children: _jsx("span", { className: "tea-text-overflow", title: "\u7C7B\u578B", children: "\u7C7B\u578B" }) }) }), _jsx("th", { className: "", children: _jsx("div", { children: _jsx("span", { className: "tea-text-overflow", title: "\u8BF4\u660E", children: "\u8BF4\u660E" }) }) })] }) })] }) }), _jsxs("table", { className: "tea-table__box", children: [_jsxs("colgroup", { children: [_jsx("col", { style: { width: '18%' } }), _jsx("col", { style: { width: '18%' } }), _jsx("col", { style: { width: '25%' } }), _jsx("col", { style: { width: 'auto' } })] }), _jsx("tbody", { children: rows.map((row, index) => (_jsxs("tr", { children: [_jsx("td", { children: _jsx("b", { children: row.title }) }), _jsx("td", { children: _jsx("code", { children: row.name }) }), _jsx("td", { children: _jsx("code", { children: Array.isArray(row.enum) &&
4
+ row.enum.length &&
5
+ row.enum.length < 20
4
6
  ? [...row.enum.map((item) => JSON.stringify(item))].join('|')
5
7
  : row.type }) }), _jsx("td", { children: row.description })] }, index))) })] })] })));
6
8
  }
@@ -19,7 +19,7 @@ const platTranslate = (platforms = []) => {
19
19
  return platRemark;
20
20
  };
21
21
  export const objFormat = (args, type, origin) => {
22
- var _a, _b, _c, _d, _e, _f;
22
+ var _a, _b, _c, _d, _e, _f, _g;
23
23
  //判断属性title值是否为拓展写法
24
24
  const uuidReg = /(?<=text)\('(.*)(?=',)/;
25
25
  let transformData = [];
@@ -42,15 +42,15 @@ export const objFormat = (args, type, origin) => {
42
42
  }
43
43
  else if (type === 'attribute' && item.type != 'slot') {
44
44
  const XPlatform = args[i]['x-platforms'];
45
- if ((XPlatform && !XPlatform[0].length) ||
45
+ if ((XPlatform && !((_a = XPlatform === null || XPlatform === void 0 ? void 0 : XPlatform[0]) === null || _a === void 0 ? void 0 : _a.length)) ||
46
46
  (item === null || item === void 0 ? void 0 : item.display) == false ||
47
47
  (item === null || item === void 0 ? void 0 : item.isReactNode) == true ||
48
48
  item['x-component'] == 'sub-category-title' ||
49
49
  item['x-component'] == 'Divider') {
50
50
  continue;
51
51
  }
52
- const titleName = ((_a = item.title) === null || _a === void 0 ? void 0 : _a.indexOf('{{')) != -1
53
- ? (_b = item === null || item === void 0 ? void 0 : item.title) === null || _b === void 0 ? void 0 : _b.match(uuidReg)[1]
52
+ const titleName = ((_b = item.title) === null || _b === void 0 ? void 0 : _b.indexOf('{{')) != -1
53
+ ? (_c = item === null || item === void 0 ? void 0 : item.title) === null || _c === void 0 ? void 0 : _c.match(uuidReg)[1]
54
54
  : item === null || item === void 0 ? void 0 : item.title;
55
55
  transformData.push({
56
56
  code: i,
@@ -78,9 +78,9 @@ export const objFormat = (args, type, origin) => {
78
78
  ? platTranslate(args[i]['x-platforms']).join(',')
79
79
  : '兼容三端';
80
80
  transformData.push({
81
- label: (_c = args[i]) === null || _c === void 0 ? void 0 : _c.label,
82
- name: (_d = args[i]) === null || _d === void 0 ? void 0 : _d.name,
83
- description: ((_e = args[i]) === null || _e === void 0 ? void 0 : _e.remarks) || ((_f = args[i]) === null || _f === void 0 ? void 0 : _f.description) || '-',
81
+ label: (_d = args[i]) === null || _d === void 0 ? void 0 : _d.label,
82
+ name: (_e = args[i]) === null || _e === void 0 ? void 0 : _e.name,
83
+ description: ((_f = args[i]) === null || _f === void 0 ? void 0 : _f.remarks) || ((_g = args[i]) === null || _g === void 0 ? void 0 : _g.description) || '-',
84
84
  platforms,
85
85
  });
86
86
  }
@@ -76,7 +76,9 @@ export default function TableLayoutView({ componentKey, type, origin }) {
76
76
  case 'event':
77
77
  return _jsx(EventView, { rows: tableView });
78
78
  }
79
- return (_jsxs(_Fragment, { children: [type == 'attribute' && tableView.length > 0 && (_jsxs(_Fragment, { children: [_jsx("p", { children: "\u7EC4\u4EF6\u63A5\u6536\u7684\u5916\u90E8\u4F20\u5165\u7684\u5C5E\u6027" }), _jsx("div", { className: "tea-table__header", children: _jsxs("table", { className: "tea-table__box", children: [_jsxs("colgroup", { children: [_jsx("col", { style: { width: '18%' } }), _jsx("col", { style: { width: '10%' } }), _jsx("col", { style: { width: '15%' } }), _jsx("col", { style: { width: '15%' } }), _jsx("col", { style: { width: '18%' } }), _jsx("col", { style: { width: 'auto' } })] }), _jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "", children: _jsx("div", { children: _jsx("span", { className: "tea-text-overflow", title: "\u5C5E\u6027\u540D", children: "\u5C5E\u6027\u540D" }) }) }), _jsx("th", { className: "", children: _jsx("div", { children: _jsx("span", { className: "tea-text-overflow", title: "\u5C5E\u6027\u6807\u8BC6", children: "\u5C5E\u6027\u6807\u8BC6" }) }) }), _jsx("th", { className: "", children: _jsx("div", { children: _jsx("span", { className: "tea-text-overflow", title: "\u7C7B\u578B", children: "\u7C7B\u578B" }) }) }), _jsx("th", { className: "", children: _jsx("div", { children: _jsx("span", { className: "tea-text-overflow", title: "\u5C5E\u6027\u5206\u7EC4", children: "\u5C5E\u6027\u5206\u7EC4" }) }) }), _jsx("th", { className: "", children: _jsx("div", { children: _jsx("span", { className: "tea-text-overflow", title: "\u9ED8\u8BA4\u503C", children: "\u9ED8\u8BA4\u503C" }) }) }), _jsx("th", { className: "", children: _jsx("div", { children: _jsx("span", { className: "tea-text-overflow", title: "\u8BF4\u660E", children: "\u8BF4\u660E" }) }) })] }) })] }) }), _jsxs("table", { className: "tea-table__box", children: [_jsxs("colgroup", { children: [_jsx("col", { style: { width: '18%' } }), _jsx("col", { style: { width: '10%' } }), _jsx("col", { style: { width: '15%' } }), _jsx("col", { style: { width: '15%' } }), _jsx("col", { style: { width: '18%' } }), _jsx("col", { style: { width: 'auto' } })] }), _jsx("tbody", { children: tableView.map((row, index) => (_jsxs("tr", { children: [_jsx("td", { children: _jsx("b", { children: row.title }) }), _jsx("td", { children: _jsx("code", { children: row.code }) }), _jsx("td", { children: _jsx("code", { children: Array.isArray(row.enum) && row.enum.length
79
+ return (_jsxs(_Fragment, { children: [type == 'attribute' && tableView.length > 0 && (_jsxs(_Fragment, { children: [_jsx("p", { children: "\u7EC4\u4EF6\u63A5\u6536\u7684\u5916\u90E8\u4F20\u5165\u7684\u5C5E\u6027" }), _jsx("div", { className: "tea-table__header", children: _jsxs("table", { className: "tea-table__box", children: [_jsxs("colgroup", { children: [_jsx("col", { style: { width: '18%' } }), _jsx("col", { style: { width: '10%' } }), _jsx("col", { style: { width: '15%' } }), _jsx("col", { style: { width: '15%' } }), _jsx("col", { style: { width: '18%' } }), _jsx("col", { style: { width: 'auto' } })] }), _jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "", children: _jsx("div", { children: _jsx("span", { className: "tea-text-overflow", title: "\u5C5E\u6027\u540D", children: "\u5C5E\u6027\u540D" }) }) }), _jsx("th", { className: "", children: _jsx("div", { children: _jsx("span", { className: "tea-text-overflow", title: "\u5C5E\u6027\u6807\u8BC6", children: "\u5C5E\u6027\u6807\u8BC6" }) }) }), _jsx("th", { className: "", children: _jsx("div", { children: _jsx("span", { className: "tea-text-overflow", title: "\u7C7B\u578B", children: "\u7C7B\u578B" }) }) }), _jsx("th", { className: "", children: _jsx("div", { children: _jsx("span", { className: "tea-text-overflow", title: "\u5C5E\u6027\u5206\u7EC4", children: "\u5C5E\u6027\u5206\u7EC4" }) }) }), _jsx("th", { className: "", children: _jsx("div", { children: _jsx("span", { className: "tea-text-overflow", title: "\u9ED8\u8BA4\u503C", children: "\u9ED8\u8BA4\u503C" }) }) }), _jsx("th", { className: "", children: _jsx("div", { children: _jsx("span", { className: "tea-text-overflow", title: "\u8BF4\u660E", children: "\u8BF4\u660E" }) }) })] }) })] }) }), _jsxs("table", { className: "tea-table__box", children: [_jsxs("colgroup", { children: [_jsx("col", { style: { width: '18%' } }), _jsx("col", { style: { width: '10%' } }), _jsx("col", { style: { width: '15%' } }), _jsx("col", { style: { width: '15%' } }), _jsx("col", { style: { width: '18%' } }), _jsx("col", { style: { width: 'auto' } })] }), _jsx("tbody", { children: tableView.map((row, index) => (_jsxs("tr", { children: [_jsx("td", { children: _jsx("b", { children: row.title }) }), _jsx("td", { children: _jsx("code", { children: row.code }) }), _jsx("td", { children: _jsx("code", { children: Array.isArray(row.enum) &&
80
+ row.enum.length &&
81
+ row.enum.length < 20
80
82
  ? [
81
83
  ...row.enum
82
84
  .map((item) => typeof item === 'string' ? item : item.value)
@@ -572,3 +572,199 @@ export const WD_TABLE_SELECT_COLUMN = [
572
572
  value: 'disable',
573
573
  },
574
574
  ];
575
+ // 输入组件宽度,默认代表fill
576
+ export const WD_INPUT_SIZE = [
577
+ {
578
+ label: '默认',
579
+ value: '',
580
+ },
581
+ {
582
+ label: '大',
583
+ value: 'lg',
584
+ },
585
+ {
586
+ label: '中',
587
+ value: 'md',
588
+ },
589
+ {
590
+ label: '小',
591
+ value: 'sm',
592
+ },
593
+ ];
594
+ // 输入组件对齐,默认代表 left
595
+ export const WD_INPUT_LABEL_ALIGN = [
596
+ {
597
+ label: '默认',
598
+ value: '',
599
+ },
600
+ {
601
+ label: '左对齐',
602
+ value: 'left',
603
+ },
604
+ {
605
+ label: '右对齐',
606
+ value: 'right',
607
+ },
608
+ ];
609
+ // 输入组件位置,默认代表 vertical
610
+ export const WD_INPUT_LAYOUT = [
611
+ {
612
+ label: '默认',
613
+ value: '',
614
+ },
615
+ {
616
+ label: '左侧',
617
+ value: 'horizontal',
618
+ },
619
+ {
620
+ label: '顶部',
621
+ value: 'vertical',
622
+ },
623
+ ];
624
+ // 输入组件输入键盘类型
625
+ export const WD_INPUT_TYPE = [
626
+ {
627
+ label: '文本输入键盘',
628
+ value: 'text',
629
+ },
630
+ {
631
+ label: '数字输入键盘',
632
+ value: 'number',
633
+ },
634
+ {
635
+ label: '身份证输入键盘',
636
+ value: 'idcard',
637
+ },
638
+ {
639
+ label: '带小数点的数字键盘',
640
+ value: 'digit',
641
+ },
642
+ ];
643
+ // 输入组件状态
644
+ export const WD_INPUT_STATUS = [
645
+ {
646
+ label: '编辑',
647
+ value: 'edit',
648
+ },
649
+ {
650
+ label: '禁用',
651
+ value: 'disabled',
652
+ },
653
+ {
654
+ label: '只读',
655
+ value: 'readOnly',
656
+ },
657
+ ];
658
+ // 输入组件校验规则
659
+ export const WD_INPUT_RULES = [
660
+ {
661
+ label: '自定义',
662
+ value: '',
663
+ },
664
+ {
665
+ label: '身份证',
666
+ value: 'id',
667
+ },
668
+ {
669
+ label: '银行卡',
670
+ value: 'bankCard',
671
+ },
672
+ {
673
+ label: '邮箱',
674
+ value: 'email',
675
+ },
676
+ {
677
+ label: '数字',
678
+ value: 'num',
679
+ },
680
+ {
681
+ label: '中文',
682
+ value: 'cn',
683
+ },
684
+ {
685
+ label: '手机号',
686
+ value: 'mobile',
687
+ },
688
+ {
689
+ label: '固定电话',
690
+ value: 'tel',
691
+ },
692
+ {
693
+ label: '网址',
694
+ value: 'url',
695
+ },
696
+ {
697
+ label: '车牌',
698
+ value: 'carId',
699
+ },
700
+ {
701
+ label: '中文名',
702
+ value: 'cnName',
703
+ },
704
+ {
705
+ label: '英文名',
706
+ value: 'enName',
707
+ },
708
+ {
709
+ label: '用户名',
710
+ value: 'userName',
711
+ },
712
+ {
713
+ label: '地址',
714
+ value: 'address',
715
+ },
716
+ {
717
+ label: '日期',
718
+ value: 'date',
719
+ },
720
+ {
721
+ label: '数字验证码(4-8位)',
722
+ value: 'numVcode',
723
+ },
724
+ {
725
+ label: '其他验证码(4位以上的中英文字符)',
726
+ value: 'vcode',
727
+ },
728
+ {
729
+ label: '编码',
730
+ value: 'code',
731
+ },
732
+ {
733
+ label: '港澳通行证',
734
+ value: 'hkMc',
735
+ },
736
+ {
737
+ label: '台湾通行证',
738
+ value: 'taiWan',
739
+ },
740
+ {
741
+ label: '护照',
742
+ value: 'passport',
743
+ },
744
+ {
745
+ label: '金额',
746
+ value: 'money',
747
+ },
748
+ ];
749
+ // 输入组件校验状态
750
+ export const WD_INPUT_VALIDATE_STATUS = [
751
+ {
752
+ label: '成功',
753
+ value: 'success',
754
+ },
755
+ {
756
+ label: '告警',
757
+ value: 'warn',
758
+ },
759
+ {
760
+ label: '错误',
761
+ value: 'error',
762
+ },
763
+ ];
764
+ export const WD_INPUT_ICON_TYPE = [
765
+ {
766
+ label: '无图标',
767
+ value: '',
768
+ },
769
+ ...WD_ICON_TYPE,
770
+ ];