@cloudbase/weda-ui 3.4.13 → 3.4.15
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 +3 -0
- package/dist/configs/components/echart.js +505 -0
- package/dist/configs/components/listView.js +1 -0
- package/dist/configs/components/wd-official-account.js +1 -0
- package/dist/configs/index.js +2 -0
- package/dist/web/actions/showMessage/index.js +1 -1
- package/dist/web/actions/showMessage/style.js +2 -0
- package/dist/web/actions/showModal/index.js +1 -1
- package/dist/web/actions/showModal/style.js +2 -0
- package/dist/web/components/button/index.js +1 -1
- package/dist/web/components/button/style.js +2 -0
- package/dist/web/components/calendar/index.js +1 -1
- package/dist/web/components/calendar/style.js +2 -0
- package/dist/web/components/carousel/index.js +1 -1
- package/dist/web/components/carousel/style.js +2 -0
- package/dist/web/components/chart/common/echarts.js +1 -0
- package/dist/web/components/chart/statisticsCard/index.js +1 -1
- package/dist/web/components/chart/statisticsCard/style.js +2 -0
- package/dist/web/components/customer-service/customer-service.js +1 -0
- package/dist/web/components/echart/echart.js +82 -0
- package/dist/web/components/echart/index.js +3 -0
- package/dist/web/components/flow/process/constants.js +3 -1
- package/dist/web/components/form/checkbox/index.js +1 -0
- package/dist/web/components/form/checkbox/style.js +2 -0
- package/dist/web/components/form/enumSelect/index.js +2 -0
- package/dist/web/components/form/enumSelect/style.js +1 -0
- package/dist/web/components/form/form/index.js +1 -1
- package/dist/web/components/form/form/style.js +2 -0
- package/dist/web/components/form/formcell/index.js +1 -1
- package/dist/web/components/form/formcell/style.js +2 -0
- package/dist/web/components/form/input/index.js +1 -1
- package/dist/web/components/form/input/style.js +2 -0
- 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/common/style.js +3 -0
- package/dist/web/components/form/location/components/LocationH5/location.h5.js +1 -1
- package/dist/web/components/form/location/components/LocationH5/style.js +2 -0
- package/dist/web/components/form/location/components/LocationPC/location.PC.js +1 -1
- package/dist/web/components/form/location/components/LocationPC/style.js +2 -0
- package/dist/web/components/form/location/index.js +1 -1
- package/dist/web/components/form/location/style.js +1 -0
- package/dist/web/components/form/radio/index.js +1 -1
- package/dist/web/components/form/radio/style.js +2 -0
- 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/allTimePicker/style.js +3 -0
- 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/dropdown-select/style.js +2 -0
- package/dist/web/components/form/select/index.js +2 -1
- package/dist/web/components/form/select/moment-locale.js +1 -0
- 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/status/style.js +2 -0
- package/dist/web/components/form/select/style.js +2 -0
- 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/dropdown-select/style.js +2 -0
- package/dist/web/components/form/selectMultiple/index.css +37 -0
- package/dist/web/components/form/selectMultiple/index.js +1 -0
- 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/selectMultiple/status/style.js +2 -0
- package/dist/web/components/form/selectMultiple/style.js +2 -0
- package/dist/web/components/form/switch/index.js +1 -0
- package/dist/web/components/form/switch/style.js +2 -0
- package/dist/web/components/form/textarea/index.js +1 -1
- package/dist/web/components/form/textarea/style.js +2 -0
- package/dist/web/components/form/tips/index.js +1 -1
- package/dist/web/components/form/tips/style.js +3 -0
- package/dist/web/components/form/uploader/index.js +1 -1
- package/dist/web/components/form/uploader/style.js +2 -0
- package/dist/web/components/form/uploaderFile/index.js +1 -1
- package/dist/web/components/form/uploaderFile/style.js +2 -0
- package/dist/web/components/form/userOrgSelect/component/depart-select/index.js +0 -1
- package/dist/web/components/form/userOrgSelect/component/user-select-h5/index.js +1 -1
- package/dist/web/components/form/userOrgSelect/component/user-select-h5/style.js +3 -0
- package/dist/web/components/form-checkbox/index.js +1 -0
- package/dist/web/components/form-date/index.js +1 -0
- package/dist/web/components/form-depart-tree-select/index.js +1 -0
- package/dist/web/components/form-image-uploader/index.js +1 -0
- package/dist/web/components/form-image-uploader/style.js +1 -0
- package/dist/web/components/form-input/index.js +1 -0
- package/dist/web/components/form-location/index.js +1 -0
- package/dist/web/components/form-multi-region/index.js +1 -0
- package/dist/web/components/form-phone/index.js +1 -0
- package/dist/web/components/form-radio/index.js +1 -0
- package/dist/web/components/form-rich-text/index.js +1 -0
- package/dist/web/components/form-select/index.js +1 -0
- package/dist/web/components/form-select-multiple/index.js +1 -0
- package/dist/web/components/form-switch/index.js +1 -0
- package/dist/web/components/form-text-area/index.js +1 -0
- package/dist/web/components/form-time/index.js +1 -0
- package/dist/web/components/form-upload-file/index.js +1 -0
- package/dist/web/components/form-url/index.js +1 -0
- package/dist/web/components/form-user-tree-select/index.js +1 -0
- package/dist/web/components/formdetail/index.js +1 -1
- package/dist/web/components/formdetail/style.js +2 -0
- package/dist/web/components/graphicCard/index.js +1 -1
- package/dist/web/components/graphicCard/style.js +2 -0
- package/dist/web/components/grid/col.js +1 -1
- package/dist/web/components/grid/grid.js +1 -2
- package/dist/web/components/grid/row.js +1 -1
- package/dist/web/components/grid/style.js +2 -0
- package/dist/web/components/image/index.js +1 -1
- package/dist/web/components/image/style.js +2 -0
- package/dist/web/components/index.js +2 -31
- package/dist/web/components/link/index.js +1 -1
- package/dist/web/components/link/style.js +2 -0
- package/dist/web/components/listView/index.js +1 -1
- package/dist/web/components/listView/style.js +2 -0
- package/dist/web/components/lottery/index.js +5 -3
- package/dist/web/components/lottery/style.js +2 -0
- package/dist/web/components/modal/modal.h5.js +1 -1
- package/dist/web/components/modal/modal.pc.js +1 -0
- package/dist/web/components/modal/style.js +3 -0
- package/dist/web/components/navLayout/index.js +1 -1
- package/dist/web/components/navLayout/style.js +3 -0
- package/dist/web/components/navigationBar/index.js +1 -1
- package/dist/web/components/navigationBar/style.js +2 -0
- package/dist/web/components/pageLayout/PageContent/index.js +1 -1
- package/dist/web/components/pageLayout/PageContent/style.js +2 -0
- package/dist/web/components/pageLayout/index.js +1 -1
- package/dist/web/components/pageLayout/style.js +2 -0
- package/dist/web/components/phone/index.js +1 -0
- package/dist/web/components/phoneCode/index.js +1 -0
- package/dist/web/components/picker/datePicker.js +1 -0
- package/dist/web/components/picker/picker.js +1 -0
- package/dist/web/components/picker/style.js +1 -0
- package/dist/web/components/picker/timePicker.js +1 -0
- package/dist/web/components/qrcode/qr-code.js +1 -0
- package/dist/web/components/richText/index.js +7 -5
- package/dist/web/components/richText/style.js +2 -0
- package/dist/web/components/richTextView/index.js +1 -1
- package/dist/web/components/richTextView/style.js +2 -0
- package/dist/web/components/scrollView/index.js +1 -0
- package/dist/web/components/scrollView/style.js +1 -0
- package/dist/web/components/share/index.js +1 -0
- package/dist/web/components/statusContent/index.js +1 -1
- package/dist/web/components/statusContent/style.js +2 -0
- package/dist/web/components/style.js +5 -0
- package/dist/web/components/swiper/index.js +1 -1
- package/dist/web/components/swiper/style.js +2 -0
- package/dist/web/components/table/BaseTable.js +1 -2
- package/dist/web/components/table/ExportFileModalByApi/index.js +1 -1
- package/dist/web/components/table/ExportFileModalByApi/style.js +3 -0
- package/dist/web/components/table/Form/Location.js +1 -1
- package/dist/web/components/table/Form/style.js +2 -0
- package/dist/web/components/table/ImportFileModal/index.js +1 -1
- package/dist/web/components/table/ImportFileModal/style.js +2 -0
- package/dist/web/components/table/ImportFileModalByApi/index.js +0 -2
- package/dist/web/components/table/ImportFileModalByApi/style.js +3 -0
- package/dist/web/components/table/SelectableBlock/index.js +1 -1
- package/dist/web/components/table/SelectableBlock/style.js +2 -0
- package/dist/web/components/table/UserDepartment/ViewCell.js +1 -1
- package/dist/web/components/table/UserDepartment/style.js +2 -0
- package/dist/web/components/table/index.js +1 -1
- package/dist/web/components/table/style.js +4 -0
- package/dist/web/components/tabs/index.js +1 -0
- package/dist/web/components/tabs/style.js +2 -0
- package/dist/web/components/tabs/tabs.h5.js +0 -1
- package/dist/web/components/text/index.js +1 -1
- package/dist/web/components/text/style.js +3 -0
- package/dist/web/components/uploaderFileView/index.js +1 -1
- package/dist/web/components/uploaderFileView/style.js +2 -0
- package/dist/web/components/uploaderView/index.js +1 -1
- package/dist/web/components/uploaderView/style.js +2 -0
- package/dist/web/components/userInfo/index.js +1 -0
- package/dist/web/components/wd-bubble/wd-bubble.js +1 -0
- package/dist/web/components/wd-button/wd-button.js +1 -0
- package/dist/web/components/wd-form/index.js +1 -0
- package/dist/web/components/wd-icon/wd-icon.js +1 -1
- package/dist/web/components/wd-image/index.js +1 -0
- package/dist/web/components/wd-link/wd-link.js +1 -0
- package/dist/web/components/wd-official-account/index.js +1 -1
- package/dist/web/components/wd-official-account/style.js +2 -0
- package/dist/web/components/wd-table/components/ExportFileModalByApi/ExportFileModalByApi.js +1 -1
- package/dist/web/components/wd-table/components/ExportFileModalByApi/index.js +7 -14
- package/dist/web/components/wd-table/components/ExportFileModalByApi/style.js +2 -0
- package/dist/web/components/wd-table/components/FieldRender/Form/Location.js +1 -1
- package/dist/web/components/wd-table/components/FieldRender/Form/style.js +2 -0
- package/dist/web/components/wd-table/components/FieldRender/UserDepartment/ViewCell.js +1 -1
- package/dist/web/components/wd-table/components/FieldRender/UserDepartment/style.js +2 -0
- package/dist/web/components/wd-table/components/ImportFileModalByApi/index.js +1 -0
- package/dist/web/components/wd-table/components/ImportFileModalByApi/style.js +1 -0
- package/dist/web/components/wd-table/wd-table.js +1 -0
- package/dist/web/components/wd-text/wd-text.js +1 -0
- package/dist/web/components/web-view/style.js +2 -0
- package/dist/web/components/web-view/web-view.js +1 -1
- package/dist/web/components/wedaVideo/index.js +1 -2
- package/dist/web/components/wedaVideo/style.js +4 -0
- package/dist/web/utils/platform.js +1 -1
- package/package.json +16 -1
|
@@ -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
|
+
});
|
|
@@ -26,7 +26,9 @@ NAME_CODE_MAPPING,
|
|
|
26
26
|
/** 状态名称映射 */
|
|
27
27
|
NAME_MAPPING,
|
|
28
28
|
/** 状态名称-状态文本信息映射 */
|
|
29
|
-
NAME_TEXT_MAPPING,
|
|
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,
|
|
@@ -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
|
* 表单容器组件
|
|
@@ -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';
|
|
@@ -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, }) {
|
|
@@ -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 './
|
|
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, }) {
|
|
@@ -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 {
|
|
@@ -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 './style';
|
|
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';
|
|
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,
|
|
@@ -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
|
*/
|
|
@@ -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();
|
|
@@ -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 './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);
|
|
@@ -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
|
|
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';
|
|
@@ -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 './
|
|
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 './
|
|
3
|
+
import './style';
|
|
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 './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 './
|
|
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,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
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import './
|
|
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,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 Retry({ reTry, height }) {
|
|
6
6
|
const platform = usePlatform();
|
|
7
7
|
const loadingHeight = useMemo(() => {
|
|
@@ -6,6 +6,7 @@ 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';
|
|
9
10
|
import styles from './switch.module.css';
|
|
10
11
|
export default function Switch({
|
|
11
12
|
// 系统属性
|
|
@@ -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';
|
|
5
4
|
import { ConfigProvider, Input } from 'tea-component';
|
|
6
5
|
import { usePlatform } from '../../../utils/platform';
|
|
7
6
|
import { renderDecorator } from '../renderDecorator';
|
|
8
7
|
import { useSyncValue } from '../../../utils/hooks/useSyncValue';
|
|
9
8
|
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 './style';
|
|
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 './style';
|
|
8
8
|
/**
|
|
9
9
|
* 文件组件上传,区分 h5端/pc端
|
|
10
10
|
*/
|
|
@@ -1,7 +1,6 @@
|
|
|
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';
|
|
5
4
|
import { useSyncValue } from '../../../../../utils/hooks/useSyncValue';
|
|
6
5
|
import { usePlatform, isInIde } from '../../../../../utils/platform';
|
|
7
6
|
import { deepClone } from '../../../../../utils/tool';
|