@cloudbase/weda-ui 3.4.12 → 3.4.14

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 (228) hide show
  1. package/dist/configs/components/dataView.js +3 -0
  2. package/dist/configs/components/echart.js +505 -0
  3. package/dist/configs/components/form-date.js +1 -1
  4. package/dist/configs/components/form-depart-tree-select.js +1 -1
  5. package/dist/configs/components/form-location.js +1 -1
  6. package/dist/configs/components/form-multi-region.js +1 -1
  7. package/dist/configs/components/form-rich-text.js +1 -1
  8. package/dist/configs/components/form-select-multiple.js +1 -1
  9. package/dist/configs/components/form-select.js +1 -1
  10. package/dist/configs/components/form-switch.js +1 -1
  11. package/dist/configs/components/form-time.js +1 -1
  12. package/dist/configs/components/form-user-tree-select.js +1 -1
  13. package/dist/configs/components/listView.js +1 -0
  14. package/dist/configs/components/wd-checkbox.js +1 -1
  15. package/dist/configs/components/wd-input.js +1 -1
  16. package/dist/configs/components/wd-official-account.js +1 -0
  17. package/dist/configs/components/wd-radio.js +1 -1
  18. package/dist/configs/components/wd-table.js +3 -3
  19. package/dist/configs/components/wd-textarea.js +1 -1
  20. package/dist/configs/index.js +2 -0
  21. package/dist/style/index.scss +1 -1
  22. package/dist/web/actions/showMessage/index.js +1 -1
  23. package/dist/web/actions/showMessage/style.js +2 -0
  24. package/dist/web/actions/showModal/index.js +1 -1
  25. package/dist/web/actions/showModal/style.js +2 -0
  26. package/dist/web/components/button/index.js +1 -1
  27. package/dist/web/components/button/style.js +2 -0
  28. package/dist/web/components/calendar/index.js +1 -1
  29. package/dist/web/components/calendar/style.js +2 -0
  30. package/dist/web/components/carousel/index.js +1 -1
  31. package/dist/web/components/carousel/style.js +2 -0
  32. package/dist/web/components/chart/common/echarts.js +1 -0
  33. package/dist/web/components/chart/statisticsCard/index.js +1 -1
  34. package/dist/web/components/chart/statisticsCard/style.js +2 -0
  35. package/dist/web/components/customer-service/customer-service.js +1 -0
  36. package/dist/web/components/echart/echart.js +82 -0
  37. package/dist/web/components/echart/index.js +3 -0
  38. package/dist/web/components/flow/process/constants.js +3 -1
  39. package/dist/web/components/form/checkbox/index.js +1 -0
  40. package/dist/web/components/form/checkbox/style.js +2 -0
  41. package/dist/web/components/form/enumSelect/index.js +2 -0
  42. package/dist/web/components/form/enumSelect/style.js +1 -0
  43. package/dist/web/components/form/form/index.js +1 -1
  44. package/dist/web/components/form/form/style.js +2 -0
  45. package/dist/web/components/form/formcell/index.js +1 -1
  46. package/dist/web/components/form/formcell/style.js +2 -0
  47. package/dist/web/components/form/input/index.js +1 -1
  48. package/dist/web/components/form/input/style.js +2 -0
  49. package/dist/web/components/form/location/common/mapChoose.js +1 -1
  50. package/dist/web/components/form/location/common/selectModal.js +1 -1
  51. package/dist/web/components/form/location/common/style.js +3 -0
  52. package/dist/web/components/form/location/components/LocationH5/location.h5.js +1 -1
  53. package/dist/web/components/form/location/components/LocationH5/style.js +2 -0
  54. package/dist/web/components/form/location/components/LocationPC/location.PC.js +1 -1
  55. package/dist/web/components/form/location/components/LocationPC/style.js +2 -0
  56. package/dist/web/components/form/location/index.js +1 -1
  57. package/dist/web/components/form/location/style.js +1 -0
  58. package/dist/web/components/form/radio/index.js +1 -1
  59. package/dist/web/components/form/radio/style.js +2 -0
  60. package/dist/web/components/form/select/allTimePicker/calendar.js +1 -1
  61. package/dist/web/components/form/select/allTimePicker/index.js +1 -1
  62. package/dist/web/components/form/select/allTimePicker/style.js +3 -0
  63. package/dist/web/components/form/select/dropdown-select/h5.js +1 -1
  64. package/dist/web/components/form/select/dropdown-select/index.js +3 -3
  65. package/dist/web/components/form/select/dropdown-select/pc.js +1 -1
  66. package/dist/web/components/form/select/dropdown-select/style.js +2 -0
  67. package/dist/web/components/form/select/index.js +2 -2
  68. package/dist/web/components/form/select/moment-locale.js +1 -0
  69. package/dist/web/components/form/select/status/allEmpty.js +1 -1
  70. package/dist/web/components/form/select/status/empty.js +1 -1
  71. package/dist/web/components/form/select/status/loading.js +1 -1
  72. package/dist/web/components/form/select/status/retry.js +1 -1
  73. package/dist/web/components/form/select/status/style.js +2 -0
  74. package/dist/web/components/form/select/style.js +2 -0
  75. package/dist/web/components/form/select/year.js +1 -1
  76. package/dist/web/components/form/selectMultiple/dropdown-select/h5.js +1 -1
  77. package/dist/web/components/form/selectMultiple/dropdown-select/pc.js +1 -1
  78. package/dist/web/components/form/selectMultiple/dropdown-select/style.js +2 -0
  79. package/dist/web/components/form/selectMultiple/index.css +37 -0
  80. package/dist/web/components/form/selectMultiple/index.js +1 -0
  81. package/dist/web/components/form/selectMultiple/status/allEmpty.js +1 -1
  82. package/dist/web/components/form/selectMultiple/status/empty.js +1 -1
  83. package/dist/web/components/form/selectMultiple/status/loading.js +1 -1
  84. package/dist/web/components/form/selectMultiple/status/retry.js +1 -1
  85. package/dist/web/components/form/selectMultiple/status/style.js +2 -0
  86. package/dist/web/components/form/selectMultiple/style.js +2 -0
  87. package/dist/web/components/form/switch/index.js +1 -0
  88. package/dist/web/components/form/switch/style.js +2 -0
  89. package/dist/web/components/form/textarea/index.js +1 -1
  90. package/dist/web/components/form/textarea/style.js +2 -0
  91. package/dist/web/components/form/tips/index.js +1 -1
  92. package/dist/web/components/form/tips/style.js +3 -0
  93. package/dist/web/components/form/uploader/index.js +1 -1
  94. package/dist/web/components/form/uploader/style.js +2 -0
  95. package/dist/web/components/form/uploaderFile/index.js +1 -1
  96. package/dist/web/components/form/uploaderFile/style.js +2 -0
  97. package/dist/web/components/form/userOrgSelect/component/depart-select/index.js +0 -1
  98. package/dist/web/components/form/userOrgSelect/component/user-select-h5/index.js +21 -7
  99. package/dist/web/components/form/userOrgSelect/component/user-select-h5/style.js +3 -0
  100. package/dist/web/components/form/userOrgSelect/hooks/use-depart-data.js +8 -4
  101. package/dist/web/components/form-checkbox/index.js +1 -0
  102. package/dist/web/components/form-date/index.js +1 -0
  103. package/dist/web/components/form-depart-tree-select/index.js +1 -0
  104. package/dist/web/components/form-image-uploader/index.js +1 -0
  105. package/dist/web/components/form-image-uploader/style.js +1 -0
  106. package/dist/web/components/form-input/index.js +1 -0
  107. package/dist/web/components/form-input-hooks/index.js +3 -2
  108. package/dist/web/components/form-location/index.js +1 -0
  109. package/dist/web/components/form-multi-region/index.js +1 -0
  110. package/dist/web/components/form-phone/index.js +1 -0
  111. package/dist/web/components/form-radio/index.js +1 -0
  112. package/dist/web/components/form-rich-text/index.js +1 -0
  113. package/dist/web/components/form-select/index.js +1 -0
  114. package/dist/web/components/form-select-multiple/index.js +1 -0
  115. package/dist/web/components/form-switch/index.js +1 -0
  116. package/dist/web/components/form-text-area/index.js +1 -0
  117. package/dist/web/components/form-time/index.js +1 -0
  118. package/dist/web/components/form-upload-file/index.js +1 -1
  119. package/dist/web/components/form-url/index.js +1 -0
  120. package/dist/web/components/form-user-tree-select/index.js +1 -0
  121. package/dist/web/components/formdetail/index.js +4 -2
  122. package/dist/web/components/formdetail/style.js +2 -0
  123. package/dist/web/components/graphicCard/index.js +1 -1
  124. package/dist/web/components/graphicCard/style.js +2 -0
  125. package/dist/web/components/grid/col.js +1 -1
  126. package/dist/web/components/grid/grid.js +1 -2
  127. package/dist/web/components/grid/row.js +1 -1
  128. package/dist/web/components/grid/style.js +2 -0
  129. package/dist/web/components/image/index.js +1 -1
  130. package/dist/web/components/image/style.js +2 -0
  131. package/dist/web/components/index.js +12 -41
  132. package/dist/web/components/link/index.js +1 -1
  133. package/dist/web/components/link/style.js +2 -0
  134. package/dist/web/components/listView/index.js +1 -1
  135. package/dist/web/components/listView/style.js +2 -0
  136. package/dist/web/components/lottery/index.js +5 -3
  137. package/dist/web/components/lottery/style.js +2 -0
  138. package/dist/web/components/modal/modal.h5.js +1 -1
  139. package/dist/web/components/modal/modal.pc.js +1 -0
  140. package/dist/web/components/modal/style.js +3 -0
  141. package/dist/web/components/navLayout/index.js +1 -1
  142. package/dist/web/components/navLayout/style.js +3 -0
  143. package/dist/web/components/navigationBar/common.js +1 -1
  144. package/dist/web/components/navigationBar/horizontalMenu.js +1 -1
  145. package/dist/web/components/navigationBar/index.css +11 -0
  146. package/dist/web/components/navigationBar/index.js +9 -2
  147. package/dist/web/components/navigationBar/style.js +2 -0
  148. package/dist/web/components/pageLayout/PageContent/index.js +1 -1
  149. package/dist/web/components/pageLayout/PageContent/style.js +2 -0
  150. package/dist/web/components/pageLayout/index.js +1 -1
  151. package/dist/web/components/pageLayout/style.js +2 -0
  152. package/dist/web/components/phone/index.js +1 -0
  153. package/dist/web/components/phoneCode/index.js +1 -0
  154. package/dist/web/components/picker/datePicker.js +1 -0
  155. package/dist/web/components/picker/picker.js +1 -0
  156. package/dist/web/components/picker/style.js +1 -0
  157. package/dist/web/components/picker/timePicker.js +1 -0
  158. package/dist/web/components/qrcode/qr-code.js +1 -0
  159. package/dist/web/components/richText/index.js +7 -5
  160. package/dist/web/components/richText/style.js +2 -0
  161. package/dist/web/components/richTextView/index.js +1 -1
  162. package/dist/web/components/richTextView/style.js +2 -0
  163. package/dist/web/components/scrollView/index.js +1 -0
  164. package/dist/web/components/scrollView/style.js +1 -0
  165. package/dist/web/components/share/index.js +1 -0
  166. package/dist/web/components/statusContent/index.js +1 -1
  167. package/dist/web/components/statusContent/style.js +2 -0
  168. package/dist/web/components/style.js +5 -0
  169. package/dist/web/components/swiper/index.js +1 -1
  170. package/dist/web/components/swiper/style.js +2 -0
  171. package/dist/web/components/table/BaseTable.js +1 -2
  172. package/dist/web/components/table/ExportFileModalByApi/index.js +1 -1
  173. package/dist/web/components/table/ExportFileModalByApi/style.js +3 -0
  174. package/dist/web/components/table/Form/Location.js +1 -1
  175. package/dist/web/components/table/Form/style.js +2 -0
  176. package/dist/web/components/table/ImportFileModal/index.js +1 -1
  177. package/dist/web/components/table/ImportFileModal/style.js +2 -0
  178. package/dist/web/components/table/ImportFileModalByApi/index.js +0 -2
  179. package/dist/web/components/table/ImportFileModalByApi/style.js +3 -0
  180. package/dist/web/components/table/ImportFileModalByApi/uploadCSVFile.js +1 -1
  181. package/dist/web/components/table/SelectableBlock/index.js +1 -1
  182. package/dist/web/components/table/SelectableBlock/style.js +2 -0
  183. package/dist/web/components/table/UserDepartment/ViewCell.js +1 -1
  184. package/dist/web/components/table/UserDepartment/style.js +2 -0
  185. package/dist/web/components/table/index.js +1 -1
  186. package/dist/web/components/table/style.js +4 -0
  187. package/dist/web/components/tabs/index.js +1 -0
  188. package/dist/web/components/tabs/style.js +2 -0
  189. package/dist/web/components/tabs/tabs.h5.js +0 -1
  190. package/dist/web/components/text/index.js +1 -1
  191. package/dist/web/components/text/style.js +3 -0
  192. package/dist/web/components/uploaderFileView/index.js +1 -1
  193. package/dist/web/components/uploaderFileView/style.js +2 -0
  194. package/dist/web/components/uploaderView/index.js +1 -1
  195. package/dist/web/components/uploaderView/style.js +2 -0
  196. package/dist/web/components/userInfo/index.js +1 -0
  197. package/dist/web/components/wd-bubble/wd-bubble.js +1 -0
  198. package/dist/web/components/wd-button/wd-button.js +1 -0
  199. package/dist/web/components/wd-form/hooks/use-remote-value.js +9 -2
  200. package/dist/web/components/wd-form/index.js +46 -23
  201. package/dist/web/components/wd-icon/wd-icon.js +10 -2
  202. package/dist/web/components/wd-image/index.js +1 -0
  203. package/dist/web/components/wd-link/wd-link.js +1 -0
  204. package/dist/web/components/wd-official-account/index.js +1 -1
  205. package/dist/web/components/wd-official-account/style.js +2 -0
  206. package/dist/web/components/wd-table/components/ExportFileModalByApi/ExportFileModalByApi.js +1 -1
  207. package/dist/web/components/wd-table/components/ExportFileModalByApi/index.js +7 -14
  208. package/dist/web/components/wd-table/components/ExportFileModalByApi/style.js +2 -0
  209. package/dist/web/components/wd-table/components/FieldRender/Form/Location.js +1 -1
  210. package/dist/web/components/wd-table/components/FieldRender/Form/style.js +2 -0
  211. package/dist/web/components/wd-table/components/FieldRender/UserDepartment/ViewCell.js +1 -1
  212. package/dist/web/components/wd-table/components/FieldRender/UserDepartment/style.js +2 -0
  213. package/dist/web/components/wd-table/components/FilterFieldsPanel/FilterFieldItem.js +4 -0
  214. package/dist/web/components/wd-table/components/ImportFileModalByApi/index.js +1 -0
  215. package/dist/web/components/wd-table/components/ImportFileModalByApi/style.js +1 -0
  216. package/dist/web/components/wd-table/components/Table/index.js +28 -7
  217. package/dist/web/components/wd-table/hooks/useTableData.js +6 -1
  218. package/dist/web/components/wd-table/hooks/useViewFields.js +1 -1
  219. package/dist/web/components/wd-table/wd-table.js +58 -44
  220. package/dist/web/components/wd-text/wd-text.js +1 -0
  221. package/dist/web/components/web-view/style.js +2 -0
  222. package/dist/web/components/web-view/web-view.js +1 -1
  223. package/dist/web/components/wedaVideo/index.js +1 -2
  224. package/dist/web/components/wedaVideo/style.js +4 -0
  225. package/dist/web/utils/hooks/useFormLegacy.js +3 -2
  226. package/dist/web/utils/platform.js +1 -1
  227. package/dist/web/weda-ui.css +4 -0
  228. package/package.json +16 -1
@@ -1,6 +1,6 @@
1
1
  import { isH5Platform } from '../../utils/platform';
2
2
  import { message, setConfig } from 'tea-component';
3
- import './index.css';
3
+ import './style';
4
4
  const iconType = {
5
5
  success: 'success',
6
6
  error: 'error',
@@ -0,0 +1,2 @@
1
+ import './index.css';
2
+ import '../../components/style';
@@ -4,7 +4,7 @@ import * as React from 'react';
4
4
  import { forwardRef, useState, useEffect, useImperativeHandle } from 'react';
5
5
  import { Modal, Button, Text, ConfigProvider } from 'tea-component';
6
6
  import { noop } from '../../utils/constant';
7
- import './index.css';
7
+ import './style';
8
8
  const ModalShow = forwardRef(function ModalShow(props, ref) {
9
9
  const [visible, setVisible] = useState(false);
10
10
  // 渲染之后,马上显示
@@ -0,0 +1,2 @@
1
+ import './index.css';
2
+ import '../../components/style';
@@ -4,7 +4,7 @@ import { Button as TeaButton, ConfigProvider, } from 'tea-component';
4
4
  import classNames from '../../utils/classnames';
5
5
  import { usePlatform, textToString } from '../../utils/platform';
6
6
  import { emptyObject } from '../../utils/constant';
7
- import './index.css';
7
+ import './style';
8
8
  // 不用 react-weui 而直接用底层实现的原因是 react-weui 不能支持表单类型
9
9
  const Button = ({ text, size, type, contentSlot, formType, loading, disabled, events = emptyObject, className, style, id, ...props }) => {
10
10
  const platform = usePlatform();
@@ -0,0 +1,2 @@
1
+ import './index.css';
2
+ import '../style';
@@ -6,8 +6,8 @@ import * as PropTypes from 'prop-types';
6
6
  import classNames from '../../utils/classnames';
7
7
  import dayjs from 'dayjs';
8
8
  import { createDateList } from './util';
9
- import './index.css';
10
9
  import { emptyArray } from '../../utils/constant';
10
+ import './style';
11
11
  // 抽取配置常量
12
12
  const blockName = 'weda-calendar'; // 类名前缀
13
13
  const minYear = 1970; // 最早选择年份
@@ -0,0 +1,2 @@
1
+ import './index.css';
2
+ import '../style';
@@ -3,9 +3,9 @@ import { useState, useEffect, useRef } from 'react';
3
3
  import classNames from '../../utils/classnames';
4
4
  import Swipe from 'react-easy-swipe';
5
5
  import { useDebouncedCallback, useEventListener, useResizeObserver, } from '@react-hookz/web';
6
- import './index.css';
7
6
  import Image from '../image';
8
7
  import { emptyObject } from '../../utils/constant';
8
+ import './style';
9
9
  export default function Carousel({ className, style, autoplay, circular, vertical, indicatorDots, indicatorColor, indicatorActiveColor, duration, interval, current, events = emptyObject, id, images: defalutImages, }) {
10
10
  const isCorrectDatas = Array.isArray(defalutImages);
11
11
  const images = isCorrectDatas ? defalutImages : [];
@@ -0,0 +1,2 @@
1
+ import './index.css';
2
+ import '../style';
@@ -1,3 +1,4 @@
1
+ /* eslint-disable tree-shaking/no-side-effects-in-initialization */
1
2
  // 引入 echarts 核心模块,核心模块提供了 echarts 使用必须要的接口。
2
3
  import * as echarts from 'echarts/core';
3
4
  // 引入图表,图表后缀都为 Chart
@@ -1,12 +1,12 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useState, useRef } from 'react';
3
- import './index.css';
4
3
  import classNames from '../../../utils/classnames';
5
4
  import { ConfigProvider } from 'tea-component';
6
5
  import { usePlatform } from '../../../utils/platform';
7
6
  import { useDeepCompareEffect, useIsMounted } from '@react-hookz/web';
8
7
  import { callDataSource, callWedaApi } from '../../../utils/tcb';
9
8
  import { getUuid } from '../../../utils/tool';
9
+ import './style';
10
10
  const CLASS_PREFIX = 'weda-statistics-card';
11
11
  // 默认显示值
12
12
  const defaultVal = 1000;
@@ -0,0 +1,2 @@
1
+ import './index.css';
2
+ import '../../style';
@@ -5,6 +5,7 @@ import { emptyObject } from '../../utils/constant';
5
5
  // @ts-ignore忽略ts交验
6
6
  // eslint-disable-next-line rulesdir/no-phantom-deps,import/no-unresolved
7
7
  import { autorun } from 'mobx';
8
+ import '../style';
8
9
  export const CustomerService = forwardRef(function CustomerService(props, ref) {
9
10
  var _a, _b;
10
11
  const { id, className, style, events = emptyObject, } = props;
@@ -0,0 +1,82 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /* eslint-disable max-lines */
3
+ import { forwardRef, useImperativeHandle, useState, useCallback, useEffect, } from 'react';
4
+ import classNames from '../../utils/classnames';
5
+ import { useConfig } from '../../utils/config-context';
6
+ import { usePlatform } from '../../utils/platform';
7
+ let ReactEcharts = null;
8
+ const getEchartInstance = async () => {
9
+ if (ReactEcharts)
10
+ return ReactEcharts;
11
+ const { default: _ } = await import(
12
+ /* webpackChunkName: "echarts-for-react" */ 'echarts-for-react');
13
+ ReactEcharts = _;
14
+ };
15
+ export const Echart = forwardRef(function Echart(props, ref) {
16
+ const { className = '', style, id } = props;
17
+ const platform = usePlatform();
18
+ // 样式
19
+ const { classPrefix } = useConfig();
20
+ // 响应式css api
21
+ const platformCss = `${classPrefix}-${platform}-chart`;
22
+ const classes = {
23
+ [`${classPrefix}-chart`]: true,
24
+ [platformCss]: true,
25
+ };
26
+ const [init, setInit] = useState(false);
27
+ // 图表实例
28
+ const [echartsInstance, setEchartsInstance] = useState(null);
29
+ // 主题
30
+ const [themeState, setThemeState] = useState('');
31
+ useEffect(() => {
32
+ getEchartInstance().then(() => setInit(true));
33
+ }, []);
34
+ /**
35
+ * 设置图表配置
36
+ */
37
+ const setOption = useCallback((opts) => {
38
+ if (echartsInstance && opts)
39
+ echartsInstance.setOption(opts);
40
+ }, [echartsInstance]);
41
+ /**
42
+ * 设置主题
43
+ */
44
+ const setTheme = useCallback((opts) => {
45
+ if (echartsInstance && (opts === null || opts === void 0 ? void 0 : opts.theme))
46
+ setThemeState(opts.theme);
47
+ }, [echartsInstance]);
48
+ // Widget API,挂载组件只读属性和组件方法
49
+ useImperativeHandle(ref, () => {
50
+ return {
51
+ setOption,
52
+ setTheme,
53
+ echartsInstance,
54
+ };
55
+ }, [echartsInstance, setOption, setTheme]);
56
+ /**
57
+ * 获取图表实例
58
+ * @param instance
59
+ */
60
+ const onChartReadyCallback = (instance) => {
61
+ setEchartsInstance(instance);
62
+ };
63
+ /**
64
+ * 单击
65
+ */
66
+ const click = useCallback((...args) => {
67
+ var _a;
68
+ (_a = props.events) === null || _a === void 0 ? void 0 : _a.click(...args);
69
+ }, [props.events]);
70
+ /**
71
+ * 双击
72
+ */
73
+ const dblclick = useCallback((...args) => {
74
+ var _a;
75
+ (_a = props.events) === null || _a === void 0 ? void 0 : _a.dblclick(...args);
76
+ }, [props.events]);
77
+ const onEvents = {
78
+ click,
79
+ dblclick,
80
+ };
81
+ return (_jsx("div", { id: id, style: { width: '100%', ...style }, "data-testid": "wd-chart-test", children: init && (_jsx(ReactEcharts, { style: style, className: classNames(classes, className), option: props.option || {}, theme: themeState || (props.dark ? 'dark' : 'auto'), opts: props.opts, onChartReady: onChartReadyCallback, onEvents: onEvents })) }));
82
+ });
@@ -0,0 +1,3 @@
1
+ import { Echart } from './echart';
2
+ export { Echart } from './echart';
3
+ export default Echart;
@@ -26,7 +26,9 @@ NAME_CODE_MAPPING,
26
26
  /** 状态名称映射 */
27
27
  NAME_MAPPING,
28
28
  /** 状态名称-状态文本信息映射 */
29
- NAME_TEXT_MAPPING, } = OPERATION_NODE_STATUS.reduce((result, curr) => {
29
+ NAME_TEXT_MAPPING,
30
+ // eslint-disable-next-line tree-shaking/no-side-effects-in-initialization
31
+ } = OPERATION_NODE_STATUS.reduce((result, curr) => {
30
32
  result.CODE_NAME_MAPPING[curr.code] = curr.name;
31
33
  result.NAME_CODE_MAPPING[curr.name.toUpperCase()] = curr.code;
32
34
  result.NAME_MAPPING[curr.name.toUpperCase()] = curr.name;
@@ -10,6 +10,7 @@ import { renderDecorator } from '../renderDecorator';
10
10
  import { callWedaApi } from '../../../utils/tcb';
11
11
  import destr from 'destr';
12
12
  import { emptyArray, emptyObject } from '../../../utils/constant';
13
+ import './style';
13
14
  export default function Checkbox({
14
15
  // 系统属性
15
16
  id, className, style, events = emptyObject,
@@ -0,0 +1,2 @@
1
+ // common style
2
+ import '../../style';
@@ -1,5 +1,7 @@
1
1
  import MultipleSelect from './MultipleSelect';
2
+ // eslint-disable-next-line tree-shaking/no-side-effects-in-initialization
2
3
  import NormalSelect from './NormalSelect';
4
+ import './style';
3
5
  const EnumSelect = NormalSelect;
4
6
  /** @ts-ignore jsx */
5
7
  EnumSelect.MultipleSelect = MultipleSelect;
@@ -0,0 +1 @@
1
+ import '../../style';
@@ -4,9 +4,9 @@ import classNames from '../../../utils/classnames';
4
4
  import { ConfigProvider, Form as TeaForm, message as TeaMessage, } from 'tea-component';
5
5
  import { usePlatform, isInIde } from '../../../utils/platform';
6
6
  import { callDataSource, callConnector } from '../../../utils/tcb';
7
- import './index.css';
8
7
  import isObjectEqual from '../../../utils/isObjectEqual';
9
8
  import { getDataSourceByName } from '../../../utils/datasource';
9
+ import './style';
10
10
  const formTypeWithInitValue = ['edit', 'read'];
11
11
  /**
12
12
  * 表单容器组件
@@ -0,0 +1,2 @@
1
+ import './index.css';
2
+ import '../../style';
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import classNames from '../../../utils/classnames';
3
- import './index.css';
4
3
  import { usePlatform } from '../../../utils/platform';
5
4
  import { ConfigProvider, Form as TeaForm } from 'tea-component';
5
+ import './style';
6
6
  export default function FormCell({ className, style, label, layout, children, multiCell, requiredFlag, size, }) {
7
7
  const platform = usePlatform();
8
8
  const isFlex = layout !== 'vertical';
@@ -0,0 +1,2 @@
1
+ import './index.css';
2
+ import '../../style';
@@ -5,8 +5,8 @@ import { usePlatform } from '../../../utils/platform';
5
5
  import { Input as TeaInput, ConfigProvider, Icon } from 'tea-component';
6
6
  import { renderDecorator } from '../renderDecorator';
7
7
  import { useSyncValue } from '../../../utils/hooks/useSyncValue';
8
- import './index.css';
9
8
  import { emptyObject } from '../../../utils/constant';
9
+ import './style';
10
10
  export default function Input({ id, className, style, events = emptyObject,
11
11
  // 组件属性
12
12
  label = '标题', labelVisible = true, name = 'formInput', defaultValue = '', password = false, placeholder = '请输入', type = 'text', maxLength = 140, disabled = false, focus: autoFocus = false, layout = 'horizontal', requiredFlag = false, size = 'l', clearable = true, decorator, onChange: outerOnChange, }) {
@@ -0,0 +1,2 @@
1
+ import './index.css';
2
+ import '../../style';
@@ -6,8 +6,8 @@ import classNames from '../../../../utils/classnames';
6
6
  import debounce from '../../../../utils/debounce';
7
7
  import { tmapApiUrl } from '../constants';
8
8
  import { getTMap, calculateDistance, base64LocationIcon, } from '../../../../utils/tmap';
9
- import './mapChoose.css';
10
9
  import { Icon } from 'tea-component';
10
+ import './style';
11
11
  const { useEffect, useState, useRef, useMemo } = React;
12
12
  let relativePosition;
13
13
  const defaultLatLng = {
@@ -6,7 +6,7 @@ import { Modal, Button } from 'tea-component';
6
6
  import { usePlatform } from '../../../../utils/platform';
7
7
  import classNames from '../../../../utils/classnames';
8
8
  import MapChoose from './mapChoose';
9
- import './selectModal.css';
9
+ import './style';
10
10
  const { useRef, useState } = React;
11
11
  const defaultLatLng = { latlng: { lat: null, lng: null } };
12
12
  export default function SelectModal({ currentLocations = defaultLatLng, location = defaultLatLng, setLocation, isSelectMapVisible = false, setIsSelectMapVisible, chooseLocation, APIKEY = '', locationRange, customRange, }) {
@@ -0,0 +1,3 @@
1
+ import './selectModal.css';
2
+ import './mapChoose.css';
3
+ import '../../../style';
@@ -4,7 +4,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  import * as React from 'react';
5
5
  import classNames from '../../../../../utils/classnames';
6
6
  import weui from '../../../../../utils/weui';
7
- import './index.css';
8
7
  import { renderDecorator } from '../../../renderDecorator';
9
8
  import MapView from '../../common/mapView';
10
9
  import SelectModal from '../../common/selectModal';
@@ -12,6 +11,7 @@ import { propTypes, defaultProps } from '../../common/propsConfig';
12
11
  import { callDataSource } from '../../../../../utils/tcb';
13
12
  import { inH5IsMobile } from '../../../../../utils/platform';
14
13
  import styles from './location.module.css';
14
+ import './style';
15
15
  const { useEffect, useState, useRef } = React;
16
16
  export default function LocationH5(props) {
17
17
  const {
@@ -0,0 +1,2 @@
1
+ import './index.css';
2
+ import '../../../../style';
@@ -12,7 +12,7 @@ import useLocationInfo from '../../common/useLocationInfo';
12
12
  import { propTypes, defaultProps } from '../../common/propsConfig';
13
13
  import { callDataSource } from '../../../../../utils/tcb';
14
14
  import Header from './Header';
15
- import './index.css';
15
+ import './style';
16
16
  const { useState, useEffect } = React;
17
17
  export default function LocationPC(props) {
18
18
  // 属性、变量
@@ -0,0 +1,2 @@
1
+ import './index.css';
2
+ import '../../../../style';
@@ -1,12 +1,12 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from 'react';
3
3
  import { ConfigProvider } from 'tea-component';
4
- import './index.css';
5
4
  import { usePlatform } from '../../../utils/platform';
6
5
  import LocationH5 from './components/LocationH5/location.h5';
7
6
  import LocationPC from './components/LocationPC/location.PC';
8
7
  import { CommonErrorBoundary } from '../../common/error-boundary';
9
8
  import { useLoopRenderDetect } from '../../common/use-loop-render-detect';
9
+ import './style';
10
10
  export default function Location(props) {
11
11
  return (_jsx(CommonErrorBoundary, { children: _jsx(LocationImpl, { ...props }) }));
12
12
  }
@@ -0,0 +1 @@
1
+ import './index.css';
@@ -6,10 +6,10 @@ import classNames from '../../../utils/classnames';
6
6
  import getLocalCounter from '../../../utils/getLocalCounter';
7
7
  import isObjectEqual from '../../../utils/isObjectEqual';
8
8
  import { callWedaApi } from '../../../utils/tcb';
9
- import './index.css';
10
9
  import { renderDecorator } from '../renderDecorator';
11
10
  import destr from 'destr';
12
11
  import { emptyArray, emptyObject } from '../../../utils/constant';
12
+ import './style';
13
13
  export default function Radio({
14
14
  // 系统属性
15
15
  id, className, style, events = emptyObject,
@@ -0,0 +1,2 @@
1
+ import './index.css';
2
+ import '../../style';
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React from 'react';
3
- import './calendar.css';
4
3
  import { weeks } from './dataUtils';
4
+ import './style';
5
5
  /**
6
6
  * 日历组件
7
7
  */
@@ -2,8 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useEffect, useMemo, useRef, useState } from 'react';
3
3
  import Calendar from './calendar';
4
4
  import { Portal } from '../../../common/portal';
5
- import './index.css';
6
5
  import { defaultData, defaultDateTime, getCurrentHoursIndex, getCurrentMinutesIndex, getCurrentMonthIndex, getCurrentSecondsIndex, getCurrentYearIndex, getFormatData, getIndex, getIOSNotNaNDate, getLastDate, getStartDate, isSpace, isTime, } from './dataUtils';
6
+ import './style';
7
7
  /**
8
8
  * 年月日时分秒日期选择器
9
9
  */
@@ -0,0 +1,3 @@
1
+ import './calendar.css';
2
+ import './index.css';
3
+ import '../../../style';
@@ -1,13 +1,13 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useEffect, useRef, useState, useMemo } from 'react';
3
3
  import { Portal } from '../../../common/portal';
4
- import './index.css';
5
4
  import { Status } from '../status';
6
5
  import Loading from '../status/loading';
7
6
  import Retry from '../status/retry';
8
7
  import Empty from '../status/empty';
9
8
  import AllEmpty from '../status/allEmpty';
10
9
  import { PAGE_SIZE, requestFatherRelatedOption, RequestOptionType, } from '../request';
10
+ import './style';
11
11
  export function SelectPickerH5({ updateValue, selectedValue, options, isTurnPages, loadMore, onSearchValue, reTry, status, isShow, params, }) {
12
12
  const focusRef = useRef();
13
13
  const contentRef = useRef();
@@ -5,7 +5,7 @@ import { formatNeedDataFetch, PAGE_SIZE, requestEnumOption, requestFatherRelated
5
5
  import SelectPickerPc from './pc';
6
6
  import { usePlatform } from '../../../../utils/platform';
7
7
  import { Status } from '../status';
8
- import { useDeepCompareEffect } from '@react-hookz/web';
8
+ import { useDebouncedEffect, useDeepCompareEffect } from '@react-hookz/web';
9
9
  export function PureSelect({ params, selectedValue, updateValue, placeholder, size, disabled, isShow, }) {
10
10
  const isRequestingRef = useRef(false);
11
11
  const [status, setStatus] = useState(Status.ALl_EMPTY);
@@ -146,9 +146,9 @@ export function PureSelect({ params, selectedValue, updateValue, placeholder, si
146
146
  return () => clearTimeout(timer);
147
147
  }
148
148
  };
149
- useEffect(() => {
149
+ useDebouncedEffect(() => {
150
150
  handleSearch();
151
- }, [searchValue]);
151
+ }, [searchValue], 300);
152
152
  // 加载更多
153
153
  const loadMore = () => {
154
154
  if (!isRequestingRef.current &&
@@ -6,7 +6,7 @@ import Loading from '../status/loading';
6
6
  import Retry from '../status/retry';
7
7
  import { Status } from '../status';
8
8
  import Empty from '../status/empty';
9
- import './index.css';
9
+ import './style';
10
10
  export default function SelectPickerPc({ format, selectedValue, updateValue, placeholder, size, disabled, reTry, loadMore, status, options, onSearchValue, defaultSearchValue, findData, }) {
11
11
  const [showDelete, setShowDelete] = useState(false);
12
12
  const [optList, setOptList] = useState(options);
@@ -0,0 +1,2 @@
1
+ import './index.css';
2
+ import '../../../style';
@@ -1,7 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import * as React from 'react';
3
3
  import * as _moment from 'moment';
4
- import 'moment/locale/zh-cn';
4
+ import './moment-locale';
5
+ import './style';
5
6
  import { usePlatform } from '../../../utils/platform';
6
7
  import SelectH5, { decodeIsoDatetime } from './h5';
7
8
  import classNames from '../../../utils/classnames';
@@ -19,7 +20,6 @@ export const moment = (typeof _moment === 'function' ? _moment : _moment.default
19
20
  const Select = React.memo(function Select(props) {
20
21
  return (_jsx(CommonErrorBoundary, { children: _jsx(SelectImpl, { ...props }) }));
21
22
  });
22
- Select.whyDidYouRender = true;
23
23
  export default Select;
24
24
  function SelectImpl(props) {
25
25
  const { id, style, className, label = '标题', labelVisible = true, layout = 'horizontal', requiredFlag = false, size = 'l', decorator, } = props;
@@ -0,0 +1 @@
1
+ import 'moment/locale/zh-cn';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import './index.css';
2
+ import './style';
3
3
  export default function AllEmpty({ height }) {
4
4
  return (_jsx("div", { className: "weda-ui-custom-picker__empty", style: { height }, children: "\u6682\u65E0\u6570\u636E" }));
5
5
  }
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useMemo } from 'react';
3
- import './index.css';
4
3
  import { usePlatform } from '../../../../utils/platform';
4
+ import './style';
5
5
  export default function Empty({ height }) {
6
6
  const platform = usePlatform();
7
7
  const loadingHeight = useMemo(() => {
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useMemo } from 'react';
3
- import './index.css';
4
3
  import { usePlatform } from '../../../../utils/platform';
4
+ import './style';
5
5
  export default function Loading({ height }) {
6
6
  const platform = usePlatform();
7
7
  const loadingHeight = useMemo(() => {
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useMemo } from 'react';
3
- import './index.css';
3
+ import './style';
4
4
  import { usePlatform } from '../../../../utils/platform';
5
5
  export default function Retry({ reTry, height }) {
6
6
  const platform = usePlatform();
@@ -0,0 +1,2 @@
1
+ import './index.css';
2
+ import '../../../style';
@@ -0,0 +1,2 @@
1
+ import './index.css';
2
+ import '../../style';
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { Popover, ConfigProvider, useConfig, Input, Icon, Button, } from 'tea-component';
4
4
  import classNames from '../../../utils/classnames';
5
5
  import { moment } from './index';
6
- import './index.css';
6
+ import './style';
7
7
  /**
8
8
  * pc 版简易年份选择器
9
9
  * 传参与 DatePicker 保持一致
@@ -1,7 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useEffect, useRef, useState } from 'react';
3
3
  import { Portal } from '../../../common/portal';
4
- import './index.css';
5
4
  import { Status } from '../status';
6
5
  import Loading from '../status/loading';
7
6
  import Retry from '../status/retry';
@@ -9,6 +8,7 @@ import Empty from '../status/empty';
9
8
  import AllEmpty from '../status/allEmpty';
10
9
  import { PAGE_SIZE } from '../request';
11
10
  import { alertErrorMessage } from '../../../../utils/platform';
11
+ import './style';
12
12
  export function SelectPickerH5({ updateValue, selectedValue, options, isTurnPages, loadMore, onSearchValue, reTry, status, isShow, getIsShow, }) {
13
13
  const focusRef = useRef();
14
14
  const contentRef = useRef();
@@ -6,7 +6,7 @@ import Loading from '../status/loading';
6
6
  import Retry from '../status/retry';
7
7
  import { Status } from '../status';
8
8
  import Empty from '../status/empty';
9
- import './index.css';
9
+ import './style';
10
10
  export default function SelectPickerPc({ format, selectedValue, updateValue, placeholder, size, disabled, reTry, loadMore, status, options, allOptions, onSearchValue, defaultSearchValue, }) {
11
11
  const [optList, setOptList] = useState(options);
12
12
  const findDataRef = useRef(undefined);
@@ -0,0 +1,2 @@
1
+ import './index.css';
2
+ import '../../../style';
@@ -0,0 +1,37 @@
1
+ .weda-ui .weui-cell.weui-check__label {
2
+ padding: 16px;
3
+ }
4
+
5
+ .weda-ui .weui-flex__item .weui-cell.weui-check__label {
6
+ padding-left: 0;
7
+ }
8
+
9
+ .weda-ui.weda-select .weui-cell_form {
10
+ padding: 0 16px;
11
+ }
12
+
13
+ .weda-ui.weda-select .weui-flex__item .weui-cell_form {
14
+ padding: 0;
15
+ padding-right: 16px;
16
+ }
17
+
18
+ .select-picker .weui-input-arrow {
19
+ margin: auto 0;
20
+ width: 24px;
21
+ height: 24px;
22
+ background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect opacity='0.01' width='24' height='24' fill='%23D8D8D8'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15.6003 12.5769L7.93943 20L6.99981 19.0875L14.3157 11.9986L6.99983 4.91249L7.93945 4L15.5754 11.3961C15.5858 11.4048 15.596 11.4139 15.6059 11.4235L15.8278 11.639C16.0302 11.8355 16.03 12.1605 15.8274 12.3568L15.6253 12.5526L15.6049 12.5725C15.6034 12.574 15.6018 12.5754 15.6003 12.5769Z' fill='black' fill-opacity='0.4'/%3E %3C/svg%3E ");
23
+ }
24
+
25
+ .weda-ui .wedatea2td-input:disabled {
26
+ background-color: inherit;
27
+ }
28
+ .select-region-pc .wedatea2td-cascader-menu--thin .wedatea2td-list > li {
29
+ padding: 10px 24px 10px 8px;
30
+ }
31
+ .weda-ui-custom-picker__header-confirm {
32
+ flex: 0 0 auto;
33
+ padding: 0 20px;
34
+ font-size: 16px;
35
+ color: #0052d9;
36
+ cursor: pointer;
37
+ }
@@ -9,6 +9,7 @@ import { emptyObject } from '../../../utils/constant';
9
9
  import { CommonErrorBoundary } from '../../common/error-boundary';
10
10
  import { useLoopRenderDetect } from '../../common/use-loop-render-detect';
11
11
  import { PureSelectPc } from './dropdown-select/ui';
12
+ import './style';
12
13
  export default function SelectMultiple(props) {
13
14
  return (_jsx(CommonErrorBoundary, { children: _jsx(SelectImpl, { ...props }) }));
14
15
  }