@cloudbase/weda-ui 3.4.14 → 3.4.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/configs/components/dataView.js +0 -3
- package/dist/configs/components/listView.js +0 -1
- package/dist/configs/components/wd-official-account.js +0 -1
- package/dist/configs/index.js +0 -2
- package/dist/style/index.scss +1 -1
- package/dist/web/actions/showMessage/index.js +1 -1
- package/dist/web/actions/showModal/index.js +1 -1
- package/dist/web/components/button/index.js +1 -1
- package/dist/web/components/calendar/index.js +1 -1
- package/dist/web/components/carousel/index.js +1 -1
- package/dist/web/components/chart/common/echarts.js +0 -1
- package/dist/web/components/chart/statisticsCard/index.js +1 -1
- package/dist/web/components/customer-service/customer-service.js +0 -1
- package/dist/web/components/flow/process/constants.js +1 -3
- package/dist/web/components/form/checkbox/index.js +0 -1
- package/dist/web/components/form/enumSelect/index.js +0 -2
- package/dist/web/components/form/form/index.js +1 -1
- package/dist/web/components/form/formcell/index.js +1 -1
- package/dist/web/components/form/input/index.js +1 -1
- package/dist/web/components/form/location/common/mapChoose.js +1 -1
- package/dist/web/components/form/location/common/selectModal.js +1 -1
- package/dist/web/components/form/location/components/LocationH5/location.h5.js +1 -1
- package/dist/web/components/form/location/components/LocationPC/location.PC.js +1 -1
- package/dist/web/components/form/location/index.js +1 -1
- package/dist/web/components/form/radio/index.js +1 -1
- package/dist/web/components/form/select/allTimePicker/calendar.js +1 -1
- package/dist/web/components/form/select/allTimePicker/index.js +1 -1
- package/dist/web/components/form/select/dropdown-select/h5.js +1 -1
- package/dist/web/components/form/select/dropdown-select/pc.js +1 -1
- package/dist/web/components/form/select/index.js +1 -2
- package/dist/web/components/form/select/status/allEmpty.js +1 -1
- package/dist/web/components/form/select/status/empty.js +1 -1
- package/dist/web/components/form/select/status/loading.js +1 -1
- package/dist/web/components/form/select/status/retry.js +1 -1
- package/dist/web/components/form/select/year.js +1 -1
- package/dist/web/components/form/selectMultiple/dropdown-select/h5.js +1 -1
- package/dist/web/components/form/selectMultiple/dropdown-select/pc.js +1 -1
- package/dist/web/components/form/selectMultiple/index.js +0 -1
- package/dist/web/components/form/selectMultiple/status/allEmpty.js +1 -1
- package/dist/web/components/form/selectMultiple/status/empty.js +1 -1
- package/dist/web/components/form/selectMultiple/status/loading.js +1 -1
- package/dist/web/components/form/selectMultiple/status/retry.js +1 -1
- package/dist/web/components/form/switch/index.js +0 -1
- package/dist/web/components/form/textarea/index.js +1 -1
- package/dist/web/components/form/tips/index.js +1 -1
- package/dist/web/components/form/uploader/index.js +1 -1
- package/dist/web/components/form/uploaderFile/index.js +1 -1
- package/dist/web/components/form/userOrgSelect/component/depart-select/index.js +1 -0
- package/dist/web/components/form/userOrgSelect/component/user-select-h5/index.js +1 -1
- package/dist/web/components/form-checkbox/index.js +0 -1
- package/dist/web/components/form-date/index.js +0 -1
- package/dist/web/components/form-depart-tree-select/index.js +0 -1
- package/dist/web/components/form-image-uploader/index.js +0 -1
- package/dist/web/components/form-input/index.js +0 -1
- package/dist/web/components/form-location/index.js +0 -1
- package/dist/web/components/form-multi-region/index.js +0 -1
- package/dist/web/components/form-phone/index.js +0 -1
- package/dist/web/components/form-radio/index.js +0 -1
- package/dist/web/components/form-rich-text/index.js +0 -1
- package/dist/web/components/form-select/index.js +0 -1
- package/dist/web/components/form-select-multiple/index.js +0 -1
- package/dist/web/components/form-switch/index.js +0 -1
- package/dist/web/components/form-text-area/index.js +0 -1
- package/dist/web/components/form-time/index.js +0 -1
- package/dist/web/components/form-upload-file/index.js +0 -1
- package/dist/web/components/form-url/index.js +0 -1
- package/dist/web/components/form-user-tree-select/index.js +0 -1
- package/dist/web/components/formdetail/index.css +9 -0
- package/dist/web/components/formdetail/index.js +1 -1
- package/dist/web/components/graphicCard/index.js +1 -1
- package/dist/web/components/grid/col.js +1 -1
- package/dist/web/components/grid/grid.js +2 -1
- package/dist/web/components/grid/row.js +1 -1
- package/dist/web/components/image/index.js +1 -1
- package/dist/web/components/index.js +31 -2
- package/dist/web/components/link/index.js +1 -1
- package/dist/web/components/listView/index.js +1 -1
- package/dist/web/components/lottery/index.js +3 -5
- package/dist/web/components/modal/modal.h5.js +1 -1
- package/dist/web/components/modal/modal.pc.js +0 -1
- package/dist/web/components/navLayout/index.js +1 -1
- package/dist/web/components/navigationBar/index.js +1 -1
- package/dist/web/components/pageLayout/PageContent/index.js +1 -1
- package/dist/web/components/pageLayout/index.js +1 -1
- package/dist/web/components/phone/index.js +0 -1
- package/dist/web/components/phoneCode/index.js +0 -1
- package/dist/web/components/picker/datePicker.js +0 -1
- package/dist/web/components/picker/picker.js +0 -1
- package/dist/web/components/picker/timePicker.js +0 -1
- package/dist/web/components/qrcode/qr-code.js +0 -1
- package/dist/web/components/richText/index.js +3 -3
- package/dist/web/components/richTextView/index.js +1 -1
- package/dist/web/components/scrollView/index.js +0 -1
- package/dist/web/components/share/index.js +0 -1
- package/dist/web/components/statusContent/index.css +6 -3
- package/dist/web/components/statusContent/index.js +1 -1
- package/dist/web/components/swiper/index.js +2 -2
- package/dist/web/components/table/BaseTable.js +2 -1
- package/dist/web/components/table/ExportFileModalByApi/index.js +1 -1
- package/dist/web/components/table/Form/Location.js +1 -1
- package/dist/web/components/table/ImportFileModal/index.js +1 -1
- package/dist/web/components/table/ImportFileModalByApi/index.js +2 -0
- package/dist/web/components/table/SelectableBlock/index.js +1 -1
- package/dist/web/components/table/UserDepartment/ViewCell.js +1 -1
- package/dist/web/components/table/index.js +1 -1
- package/dist/web/components/tabs/index.js +0 -1
- package/dist/web/components/tabs/tabs.h5.js +1 -0
- package/dist/web/components/text/index.js +1 -1
- package/dist/web/components/uploaderFileView/index.js +1 -1
- package/dist/web/components/uploaderView/index.js +1 -1
- package/dist/web/components/userInfo/index.js +0 -1
- package/dist/web/components/wd-bubble/wd-bubble.js +0 -1
- package/dist/web/components/wd-button/wd-button.js +0 -1
- package/dist/web/components/wd-form/index.js +0 -1
- package/dist/web/components/wd-icon/wd-icon.js +1 -1
- package/dist/web/components/wd-image/index.js +0 -1
- package/dist/web/components/wd-link/wd-link.js +0 -1
- package/dist/web/components/wd-official-account/index.js +1 -1
- package/dist/web/components/wd-table/components/ExportFileModalByApi/ExportFileModalByApi.js +1 -1
- package/dist/web/components/wd-table/components/ExportFileModalByApi/index.js +1 -1
- package/dist/web/components/wd-table/components/FieldRender/Form/Location.js +1 -1
- package/dist/web/components/wd-table/components/FieldRender/UserDepartment/ViewCell.js +1 -1
- package/dist/web/components/wd-table/components/ImportFileModalByApi/index.js +0 -1
- package/dist/web/components/wd-table/wd-table.js +0 -1
- package/dist/web/components/wd-text/wd-text.js +0 -1
- package/dist/web/components/web-view/web-view.js +1 -1
- package/dist/web/components/wedaVideo/index.js +2 -1
- package/dist/web/utils/platform.js +1 -1
- package/dist/web/weda-ui.css +25 -0
- package/package.json +1 -16
- package/dist/configs/components/echart.js +0 -505
- package/dist/web/actions/showMessage/style.js +0 -2
- package/dist/web/actions/showModal/style.js +0 -2
- package/dist/web/components/button/style.js +0 -2
- package/dist/web/components/calendar/style.js +0 -2
- package/dist/web/components/carousel/style.js +0 -2
- package/dist/web/components/chart/statisticsCard/style.js +0 -2
- package/dist/web/components/echart/echart.js +0 -82
- package/dist/web/components/echart/index.js +0 -3
- package/dist/web/components/form/checkbox/style.js +0 -2
- package/dist/web/components/form/enumSelect/style.js +0 -1
- package/dist/web/components/form/form/style.js +0 -2
- package/dist/web/components/form/formcell/style.js +0 -2
- package/dist/web/components/form/input/style.js +0 -2
- package/dist/web/components/form/location/common/style.js +0 -3
- package/dist/web/components/form/location/components/LocationH5/style.js +0 -2
- package/dist/web/components/form/location/components/LocationPC/style.js +0 -2
- package/dist/web/components/form/location/style.js +0 -1
- package/dist/web/components/form/radio/style.js +0 -2
- package/dist/web/components/form/select/allTimePicker/style.js +0 -3
- package/dist/web/components/form/select/dropdown-select/style.js +0 -2
- package/dist/web/components/form/select/moment-locale.js +0 -1
- package/dist/web/components/form/select/status/style.js +0 -2
- package/dist/web/components/form/select/style.js +0 -2
- package/dist/web/components/form/selectMultiple/dropdown-select/style.js +0 -2
- package/dist/web/components/form/selectMultiple/index.css +0 -37
- package/dist/web/components/form/selectMultiple/status/style.js +0 -2
- package/dist/web/components/form/selectMultiple/style.js +0 -2
- package/dist/web/components/form/switch/style.js +0 -2
- package/dist/web/components/form/textarea/style.js +0 -2
- package/dist/web/components/form/tips/style.js +0 -3
- package/dist/web/components/form/uploader/style.js +0 -2
- package/dist/web/components/form/uploaderFile/style.js +0 -2
- package/dist/web/components/form/userOrgSelect/component/user-select-h5/style.js +0 -3
- package/dist/web/components/form-image-uploader/style.js +0 -1
- package/dist/web/components/formdetail/style.js +0 -2
- package/dist/web/components/graphicCard/style.js +0 -2
- package/dist/web/components/grid/style.js +0 -2
- package/dist/web/components/image/style.js +0 -2
- package/dist/web/components/link/style.js +0 -2
- package/dist/web/components/listView/style.js +0 -2
- package/dist/web/components/lottery/style.js +0 -2
- package/dist/web/components/modal/style.js +0 -3
- package/dist/web/components/navLayout/style.js +0 -3
- package/dist/web/components/navigationBar/style.js +0 -2
- package/dist/web/components/pageLayout/PageContent/style.js +0 -2
- package/dist/web/components/pageLayout/style.js +0 -2
- package/dist/web/components/picker/style.js +0 -1
- package/dist/web/components/richText/style.js +0 -2
- package/dist/web/components/richTextView/style.js +0 -2
- package/dist/web/components/scrollView/style.js +0 -1
- package/dist/web/components/statusContent/style.js +0 -2
- package/dist/web/components/style.js +0 -5
- package/dist/web/components/swiper/style.js +0 -2
- package/dist/web/components/table/ExportFileModalByApi/style.js +0 -3
- package/dist/web/components/table/Form/style.js +0 -2
- package/dist/web/components/table/ImportFileModal/style.js +0 -2
- package/dist/web/components/table/ImportFileModalByApi/style.js +0 -3
- package/dist/web/components/table/SelectableBlock/style.js +0 -2
- package/dist/web/components/table/UserDepartment/style.js +0 -2
- package/dist/web/components/table/style.js +0 -4
- package/dist/web/components/tabs/style.js +0 -2
- package/dist/web/components/text/style.js +0 -3
- package/dist/web/components/uploaderFileView/style.js +0 -2
- package/dist/web/components/uploaderView/style.js +0 -2
- package/dist/web/components/wd-official-account/style.js +0 -2
- package/dist/web/components/wd-table/components/ExportFileModalByApi/style.js +0 -2
- package/dist/web/components/wd-table/components/FieldRender/Form/style.js +0 -2
- package/dist/web/components/wd-table/components/FieldRender/UserDepartment/style.js +0 -2
- package/dist/web/components/wd-table/components/ImportFileModalByApi/style.js +0 -1
- package/dist/web/components/web-view/style.js +0 -2
- package/dist/web/components/wedaVideo/style.js +0 -4
|
@@ -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 './
|
|
7
|
+
import './index.css';
|
|
8
8
|
const ModalShow = forwardRef(function ModalShow(props, ref) {
|
|
9
9
|
const [visible, setVisible] = useState(false);
|
|
10
10
|
// 渲染之后,马上显示
|
|
@@ -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 './
|
|
7
|
+
import './index.css';
|
|
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();
|
|
@@ -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';
|
|
9
10
|
import { emptyArray } from '../../utils/constant';
|
|
10
|
-
import './style';
|
|
11
11
|
// 抽取配置常量
|
|
12
12
|
const blockName = 'weda-calendar'; // 类名前缀
|
|
13
13
|
const minYear = 1970; // 最早选择年份
|
|
@@ -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';
|
|
6
7
|
import Image from '../image';
|
|
7
8
|
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 : [];
|
|
@@ -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';
|
|
3
4
|
import classNames from '../../../utils/classnames';
|
|
4
5
|
import { ConfigProvider } from 'tea-component';
|
|
5
6
|
import { usePlatform } from '../../../utils/platform';
|
|
6
7
|
import { useDeepCompareEffect, useIsMounted } from '@react-hookz/web';
|
|
7
8
|
import { callDataSource, callWedaApi } from '../../../utils/tcb';
|
|
8
9
|
import { getUuid } from '../../../utils/tool';
|
|
9
|
-
import './style';
|
|
10
10
|
const CLASS_PREFIX = 'weda-statistics-card';
|
|
11
11
|
// 默认显示值
|
|
12
12
|
const defaultVal = 1000;
|
|
@@ -5,7 +5,6 @@ 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';
|
|
9
8
|
export const CustomerService = forwardRef(function CustomerService(props, ref) {
|
|
10
9
|
var _a, _b;
|
|
11
10
|
const { id, className, style, events = emptyObject, } = props;
|
|
@@ -26,9 +26,7 @@ NAME_CODE_MAPPING,
|
|
|
26
26
|
/** 状态名称映射 */
|
|
27
27
|
NAME_MAPPING,
|
|
28
28
|
/** 状态名称-状态文本信息映射 */
|
|
29
|
-
NAME_TEXT_MAPPING,
|
|
30
|
-
// eslint-disable-next-line tree-shaking/no-side-effects-in-initialization
|
|
31
|
-
} = OPERATION_NODE_STATUS.reduce((result, curr) => {
|
|
29
|
+
NAME_TEXT_MAPPING, } = OPERATION_NODE_STATUS.reduce((result, curr) => {
|
|
32
30
|
result.CODE_NAME_MAPPING[curr.code] = curr.name;
|
|
33
31
|
result.NAME_CODE_MAPPING[curr.name.toUpperCase()] = curr.code;
|
|
34
32
|
result.NAME_MAPPING[curr.name.toUpperCase()] = curr.name;
|
|
@@ -10,7 +10,6 @@ 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';
|
|
14
13
|
export default function Checkbox({
|
|
15
14
|
// 系统属性
|
|
16
15
|
id, className, style, events = emptyObject,
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import MultipleSelect from './MultipleSelect';
|
|
2
|
-
// eslint-disable-next-line tree-shaking/no-side-effects-in-initialization
|
|
3
2
|
import NormalSelect from './NormalSelect';
|
|
4
|
-
import './style';
|
|
5
3
|
const EnumSelect = NormalSelect;
|
|
6
4
|
/** @ts-ignore jsx */
|
|
7
5
|
EnumSelect.MultipleSelect = MultipleSelect;
|
|
@@ -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';
|
|
7
8
|
import isObjectEqual from '../../../utils/isObjectEqual';
|
|
8
9
|
import { getDataSourceByName } from '../../../utils/datasource';
|
|
9
|
-
import './style';
|
|
10
10
|
const formTypeWithInitValue = ['edit', 'read'];
|
|
11
11
|
/**
|
|
12
12
|
* 表单容器组件
|
|
@@ -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';
|
|
3
4
|
import { usePlatform } from '../../../utils/platform';
|
|
4
5
|
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';
|
|
@@ -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';
|
|
8
9
|
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, }) {
|
|
@@ -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';
|
|
9
10
|
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 './
|
|
9
|
+
import './selectModal.css';
|
|
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, }) {
|
|
@@ -4,6 +4,7 @@ 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';
|
|
7
8
|
import { renderDecorator } from '../../../renderDecorator';
|
|
8
9
|
import MapView from '../../common/mapView';
|
|
9
10
|
import SelectModal from '../../common/selectModal';
|
|
@@ -11,7 +12,6 @@ import { propTypes, defaultProps } from '../../common/propsConfig';
|
|
|
11
12
|
import { callDataSource } from '../../../../../utils/tcb';
|
|
12
13
|
import { inH5IsMobile } from '../../../../../utils/platform';
|
|
13
14
|
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 {
|
|
@@ -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 './
|
|
15
|
+
import './index.css';
|
|
16
16
|
const { useState, useEffect } = React;
|
|
17
17
|
export default function LocationPC(props) {
|
|
18
18
|
// 属性、变量
|
|
@@ -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';
|
|
4
5
|
import { usePlatform } from '../../../utils/platform';
|
|
5
6
|
import LocationH5 from './components/LocationH5/location.h5';
|
|
6
7
|
import LocationPC from './components/LocationPC/location.PC';
|
|
7
8
|
import { CommonErrorBoundary } from '../../common/error-boundary';
|
|
8
9
|
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
|
}
|
|
@@ -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';
|
|
9
10
|
import { renderDecorator } from '../renderDecorator';
|
|
10
11
|
import destr from 'destr';
|
|
11
12
|
import { emptyArray, emptyObject } from '../../../utils/constant';
|
|
12
|
-
import './style';
|
|
13
13
|
export default function Radio({
|
|
14
14
|
// 系统属性
|
|
15
15
|
id, className, style, events = emptyObject,
|
|
@@ -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';
|
|
5
6
|
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
|
*/
|
|
@@ -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';
|
|
4
5
|
import { Status } from '../status';
|
|
5
6
|
import Loading from '../status/loading';
|
|
6
7
|
import Retry from '../status/retry';
|
|
7
8
|
import Empty from '../status/empty';
|
|
8
9
|
import AllEmpty from '../status/allEmpty';
|
|
9
10
|
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();
|
|
@@ -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 './
|
|
9
|
+
import './index.css';
|
|
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);
|
|
@@ -1,8 +1,7 @@
|
|
|
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 '
|
|
5
|
-
import './style';
|
|
4
|
+
import 'moment/locale/zh-cn';
|
|
6
5
|
import { usePlatform } from '../../../utils/platform';
|
|
7
6
|
import SelectH5, { decodeIsoDatetime } from './h5';
|
|
8
7
|
import classNames from '../../../utils/classnames';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import './
|
|
2
|
+
import './index.css';
|
|
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';
|
|
3
4
|
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';
|
|
3
4
|
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 './
|
|
3
|
+
import './index.css';
|
|
4
4
|
import { usePlatform } from '../../../../utils/platform';
|
|
5
5
|
export default function Retry({ reTry, height }) {
|
|
6
6
|
const platform = usePlatform();
|
|
@@ -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 './
|
|
6
|
+
import './index.css';
|
|
7
7
|
/**
|
|
8
8
|
* pc 版简易年份选择器
|
|
9
9
|
* 传参与 DatePicker 保持一致
|
|
@@ -1,6 +1,7 @@
|
|
|
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';
|
|
4
5
|
import { Status } from '../status';
|
|
5
6
|
import Loading from '../status/loading';
|
|
6
7
|
import Retry from '../status/retry';
|
|
@@ -8,7 +9,6 @@ import Empty from '../status/empty';
|
|
|
8
9
|
import AllEmpty from '../status/allEmpty';
|
|
9
10
|
import { PAGE_SIZE } from '../request';
|
|
10
11
|
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 './
|
|
9
|
+
import './index.css';
|
|
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);
|
|
@@ -9,7 +9,6 @@ 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';
|
|
13
12
|
export default function SelectMultiple(props) {
|
|
14
13
|
return (_jsx(CommonErrorBoundary, { children: _jsx(SelectImpl, { ...props }) }));
|
|
15
14
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import './
|
|
2
|
+
import './index.css';
|
|
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';
|
|
3
4
|
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';
|
|
3
4
|
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,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';
|
|
3
4
|
import { usePlatform } from '../../../../utils/platform';
|
|
4
|
-
import './style';
|
|
5
5
|
export default function Retry({ reTry, height }) {
|
|
6
6
|
const platform = usePlatform();
|
|
7
7
|
const loadingHeight = useMemo(() => {
|
|
@@ -6,7 +6,6 @@ import { ConfigProvider, Switch as TeaSwitch } from 'tea-component';
|
|
|
6
6
|
import { renderDecorator } from '../renderDecorator';
|
|
7
7
|
import { useSyncValue } from '../../../utils/hooks/useSyncValue';
|
|
8
8
|
import { emptyObject } from '../../../utils/constant';
|
|
9
|
-
import './style';
|
|
10
9
|
import styles from './switch.module.css';
|
|
11
10
|
export default function Switch({
|
|
12
11
|
// 系统属性
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import classNames from '../../../utils/classnames';
|
|
4
|
+
import './index.css';
|
|
4
5
|
import { ConfigProvider, Input } from 'tea-component';
|
|
5
6
|
import { usePlatform } from '../../../utils/platform';
|
|
6
7
|
import { renderDecorator } from '../renderDecorator';
|
|
7
8
|
import { useSyncValue } from '../../../utils/hooks/useSyncValue';
|
|
8
9
|
import { emptyObject } from '../../../utils/constant';
|
|
9
|
-
import './style';
|
|
10
10
|
export default function Textarea({
|
|
11
11
|
// 系统属性
|
|
12
12
|
id, className, style, events = emptyObject,
|
|
@@ -5,7 +5,7 @@ import { usePlatform } from '../../../utils/platform';
|
|
|
5
5
|
import { ImageUploaderH5 as UploaderH5 } from './uploader.h5';
|
|
6
6
|
import classNames from '../../../utils/classnames';
|
|
7
7
|
import { UploaderPCInner } from './uploader.pc';
|
|
8
|
-
import './
|
|
8
|
+
import './index.css';
|
|
9
9
|
import { renderDecorator } from '../renderDecorator';
|
|
10
10
|
/**
|
|
11
11
|
* 图片组件上传,区分 h5端/pc端
|
|
@@ -4,7 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
import { usePlatform } from '../../../utils/platform';
|
|
5
5
|
import { UploadFileH5 as UploaderH5 } from './uploadFile.h5';
|
|
6
6
|
import { UploadFilePc } from './uploadFile.pc';
|
|
7
|
-
import './
|
|
7
|
+
import './index.css';
|
|
8
8
|
/**
|
|
9
9
|
* 文件组件上传,区分 h5端/pc端
|
|
10
10
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import React, { useState, useEffect } from 'react';
|
|
3
3
|
import { ConfigProvider } from 'tea-component';
|
|
4
|
+
// import './index.less';
|
|
4
5
|
import { useSyncValue } from '../../../../../utils/hooks/useSyncValue';
|
|
5
6
|
import { usePlatform, isInIde } from '../../../../../utils/platform';
|
|
6
7
|
import { deepClone } from '../../../../../utils/tool';
|
|
@@ -2,6 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React, { useState, useEffect, useRef } from 'react';
|
|
3
3
|
import { UserSelectPC } from '../user-select-pc/user-select-pc';
|
|
4
4
|
import { UserTreeSelectH5 as UserSelectH5 } from './user-select-h5';
|
|
5
|
+
import '../userOrgSelect.css';
|
|
5
6
|
import { isInIde, filterStrList, getUserInfo, usePlatform, } from '../../../../../utils/platform';
|
|
6
7
|
import { useSyncValue } from '../../../../../utils/hooks/useSyncValue';
|
|
7
8
|
import isObjectEqual from '../../../../../utils/isObjectEqual';
|
|
@@ -12,7 +13,6 @@ import { useDepartData } from '../../hooks/use-depart-data';
|
|
|
12
13
|
import { parseStrToArr } from '../../common/utils';
|
|
13
14
|
import { useDeepCompareEffect } from '@react-hookz/web';
|
|
14
15
|
import { getUuid } from '../../../../../utils/tool';
|
|
15
|
-
import './style';
|
|
16
16
|
export default function UserTreeSelect(props) {
|
|
17
17
|
const { events = emptyObject, defaultValue = emptyArray, confirmValue = '', defaultValueType = 'noneUser', onChange = null, multiple = false, request = defaultRequest, where, confirmAction, closeAction, secondDisplay, // 辅助信息
|
|
18
18
|
corpScope, // 展示企业范围
|
|
@@ -4,7 +4,6 @@ import { FormItemWrapper } from '../common/form-item-wrapper';
|
|
|
4
4
|
import Checkbox from '../form/checkbox';
|
|
5
5
|
import Tips from '../form/tips';
|
|
6
6
|
import { useFormInputTrait } from '../form-input-hooks';
|
|
7
|
-
import '../style';
|
|
8
7
|
const FormCheckbox = React.forwardRef(function FormCheckbox(props, inputRef) {
|
|
9
8
|
const { className, id, style, required, requiredFlag, events, label, labelVisible, enumName, format,
|
|
10
9
|
// tipBlock,
|
|
@@ -5,7 +5,6 @@ import { FormItemWrapper } from '../common/form-item-wrapper';
|
|
|
5
5
|
import Select from '../form/select';
|
|
6
6
|
import Tips from '../form/tips';
|
|
7
7
|
import { useFormInputTrait } from '../form-input-hooks';
|
|
8
|
-
import '../style';
|
|
9
8
|
const submitFormatter = (value) => {
|
|
10
9
|
if (value == undefined) {
|
|
11
10
|
return NaN;
|
|
@@ -4,7 +4,6 @@ import { FormItemWrapper } from '../common/form-item-wrapper';
|
|
|
4
4
|
import Tips from '../form/tips';
|
|
5
5
|
import DepartTreeSelect from '../form/userOrgSelect/component/depart-select';
|
|
6
6
|
import { useFormInputTrait } from '../form-input-hooks';
|
|
7
|
-
import '../style';
|
|
8
7
|
const FormDepartTreeSelect = React.forwardRef(function FormDepartTreeSelect(props, inputRef) {
|
|
9
8
|
const { className, id, style, confirmValue, label, labelVisible, multiple, defaultValueType, placeholder, required, requiredFlag, size, events, departmentScope, ...restProps } = props;
|
|
10
9
|
const { name, value, onChange, disabled, layout,
|
|
@@ -5,7 +5,6 @@ import { useFormInputTrait } from '../form-input-hooks';
|
|
|
5
5
|
import { Uploader } from '../../components';
|
|
6
6
|
import { FormItemWrapper } from '../common/form-item-wrapper';
|
|
7
7
|
import { useRef, useState } from 'react';
|
|
8
|
-
import './style';
|
|
9
8
|
const FormImageUploader = React.forwardRef(function FormImageUploader(props, ref) {
|
|
10
9
|
const { className, id, style, events, required, requiredFlag, labelVisible, value: propValue, title, acceptTypes, maxSize, maxUploadCount, single, showShape, ...restProps } = props;
|
|
11
10
|
const normalizedValue = typeof propValue === 'string'
|
|
@@ -5,7 +5,6 @@ import { useFormInputTrait } from '../form-input-hooks';
|
|
|
5
5
|
import Input from '../form/input';
|
|
6
6
|
import Tips from '../form/tips';
|
|
7
7
|
import { FormItemWrapper } from '../common/form-item-wrapper';
|
|
8
|
-
import '../style';
|
|
9
8
|
const logger = debug('wd-input');
|
|
10
9
|
const WdInput = React.forwardRef(function WdInput(props, inputRef) {
|
|
11
10
|
const { className, id, style, required, requiredFlag, label, labelVisible, placeholder, size, type, maxLength, password, focus, clearable, events, ...restProps } = props;
|
|
@@ -4,7 +4,6 @@ import { FormItemWrapper } from '../common/form-item-wrapper';
|
|
|
4
4
|
import Location from '../form/location';
|
|
5
5
|
import Tips from '../form/tips';
|
|
6
6
|
import { useFormInputTrait } from '../form-input-hooks';
|
|
7
|
-
import '../style';
|
|
8
7
|
const FormLocation = React.forwardRef(function FormLocation(props, inputRef) {
|
|
9
8
|
const { className, id, style, events, required, requiredFlag, label, labelVisible, customRange, dataSource, defauleShowLocation, locationRange, locationType, showLngLat, showMap, zoom, drag,
|
|
10
9
|
// @ts-expect-error 里面有,但dataForm没有,但json有传
|
|
@@ -4,7 +4,6 @@ import { FormItemWrapper } from '../common/form-item-wrapper';
|
|
|
4
4
|
import Select from '../form/select';
|
|
5
5
|
import Tips from '../form/tips';
|
|
6
6
|
import { useFormInputTrait } from '../form-input-hooks';
|
|
7
|
-
import '../style';
|
|
8
7
|
const FormSwitch = React.forwardRef(function FormSwitch(props, inputRef) {
|
|
9
8
|
const { className, id, style, events, required, requiredFlag, label, labelVisible, regionType, size, placeholder, ...restProps } = props;
|
|
10
9
|
const { value, name, onChange, disabled, layout,
|
|
@@ -4,7 +4,6 @@ import { FormItemWrapper } from '../common/form-item-wrapper';
|
|
|
4
4
|
import Radio from '../form/radio';
|
|
5
5
|
import Tips from '../form/tips';
|
|
6
6
|
import { useFormInputTrait } from '../form-input-hooks';
|
|
7
|
-
import '../style';
|
|
8
7
|
const FormRadio = React.forwardRef(function FormRadio(props, inputRef) {
|
|
9
8
|
const { className, id, style, label, labelVisible,
|
|
10
9
|
// size,
|
|
@@ -4,7 +4,6 @@ import { useFormInputTrait } from '../form-input-hooks';
|
|
|
4
4
|
import Tips from '../form/tips';
|
|
5
5
|
import RichText from '../richText';
|
|
6
6
|
import { FormItemWrapper } from '../common/form-item-wrapper';
|
|
7
|
-
import '../style';
|
|
8
7
|
const FromRichText = React.forwardRef(function FormRichText(props, inputRef) {
|
|
9
8
|
const { className, id, style, events, title, titleVisible, maxSize, acceptTypes, required, requiredFlag, ...restProps } = props;
|
|
10
9
|
const { value, name, onChange, disabled, layout,
|
|
@@ -4,7 +4,6 @@ import { FormItemWrapper } from '../common/form-item-wrapper';
|
|
|
4
4
|
import Select from '../form/select';
|
|
5
5
|
import Tips from '../form/tips';
|
|
6
6
|
import { useFormInputTrait } from '../form-input-hooks';
|
|
7
|
-
import '../style';
|
|
8
7
|
const FormSelect = React.forwardRef(function FormSelect(props, inputRef) {
|
|
9
8
|
const { className, id, style, events, required, requiredFlag, label, labelVisible, dataSourceName, enumName, format, placeholder, primaryField, range, size, tipBlock, viewId, where, ...restProps } = props;
|
|
10
9
|
const { value, name, onChange, disabled, layout,
|
|
@@ -4,7 +4,6 @@ import { FormItemWrapper } from '../common/form-item-wrapper';
|
|
|
4
4
|
import SelectMultiple from '../form/selectMultiple';
|
|
5
5
|
import Tips from '../form/tips';
|
|
6
6
|
import { useFormInputTrait } from '../form-input-hooks';
|
|
7
|
-
import '../style';
|
|
8
7
|
const FormSelectMultiple = React.forwardRef(function FormSelectMultiple(props, inputRef) {
|
|
9
8
|
const { className, id, style, events, required, requiredFlag, label, labelVisible, dataSourceName, enumName, format, placeholder, primaryField, range, size, tipBlock, viewId,
|
|
10
9
|
// where,
|
|
@@ -4,7 +4,6 @@ import { FormItemWrapper } from '../common/form-item-wrapper';
|
|
|
4
4
|
import Switch from '../form/switch';
|
|
5
5
|
import Tips from '../form/tips';
|
|
6
6
|
import { useFormInputTrait } from '../form-input-hooks';
|
|
7
|
-
import '../style';
|
|
8
7
|
const FormSwitch = React.forwardRef(function FormSwitch(props, inputRef) {
|
|
9
8
|
const { className, id, style, events, required, requiredFlag, label, labelVisible, ...restProps } = props;
|
|
10
9
|
const { value, name, onChange, disabled, layout,
|