@trionesdev/antd-mobile-react 0.0.2-beta.15 → 0.0.2-beta.17
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/LICENSE +21 -21
- package/dist/ActionSheet/style.scss +52 -52
- package/dist/Avatar/demo/base.js +2 -2
- package/dist/Avatar/demo/style.scss +6 -6
- package/dist/Badge/demo/base.js +2 -2
- package/dist/Badge/demo/base.scss +6 -6
- package/dist/Button/button.d.ts +2 -1
- package/dist/Button/button.js +1 -1
- package/dist/Button/demo/base.js +2 -2
- package/dist/Button/style.scss +234 -234
- package/dist/Calendar/style.scss +85 -85
- package/dist/Calendar/touchable-calendar-grid.js +9 -9
- package/dist/CalendarDatetimePicker/style.scss +54 -54
- package/dist/CalendarDatetimePickerCell/CalendarDatetimePickerCell.d.ts +5 -4
- package/dist/CalendarDatetimePickerCell/CalendarDatetimePickerCell.js +7 -6
- package/dist/CalendarDatetimePickerCell/demo/base.js +2 -3
- package/dist/CalendarDatetimePickerCell/index.d.ts +1 -1
- package/dist/CalendarDatetimePickerCell/index.js +1 -1
- package/dist/CalendarDatetimePickerCell/style.scss +10 -10
- package/dist/CalendarPicker/style.scss +31 -31
- package/dist/CalendarPickerCell/CalendarPickerCell.d.ts +2 -2
- package/dist/CalendarPickerCell/CalendarPickerCell.js +3 -3
- package/dist/CalendarPickerCell/CalendarRangePickerCell.d.ts +2 -2
- package/dist/CalendarPickerCell/CalendarRangePickerCell.js +3 -3
- package/dist/CalendarPickerCell/demo/base.js +2 -4
- package/dist/Card/demo/base.js +2 -2
- package/dist/Card/demo/base.scss +18 -18
- package/dist/CascaderPicker/style.scss +45 -45
- package/dist/CascaderPickerCell/CascaderPickerCell.d.ts +2 -2
- package/dist/CascaderPickerCell/CascaderPickerCell.js +3 -3
- package/dist/CascaderPickerCell/demo/base.js +1 -2
- package/dist/CascaderPickerCell/style.scss +24 -24
- package/dist/Cell/demo/base.js +1 -1
- package/dist/Checkbox/demo/base.js +2 -2
- package/dist/ConfigProvider/demo/base.js +2 -2
- package/dist/DemoBlock/index.scss +20 -20
- package/dist/DemoDescription/index.scss +3 -3
- package/dist/Divider/demo/base.js +2 -2
- package/dist/Ellipsis/demo/base.js +2 -2
- package/dist/Empty/demo/base.js +2 -2
- package/dist/ErrorBlock/demo/base.js +2 -2
- package/dist/FloatButton/style.scss +123 -123
- package/dist/Footer/demo/base.js +2 -2
- package/dist/Form/FormItem/{form-item-input.d.ts → form-item-content.d.ts} +3 -1
- package/dist/Form/FormItem/{form-item-input.js → form-item-content.js} +1 -1
- package/dist/Form/FormItem/form-item-label.d.ts +3 -3
- package/dist/Form/FormItem/form-item-label.js +10 -8
- package/dist/Form/FormItem/form-item.d.ts +33 -4
- package/dist/Form/FormItem/form-item.js +22 -21
- package/dist/Form/demo/input.js +6 -2
- package/dist/Form/demo/vertical.js +45 -0
- package/dist/Form/index.d.ts +2 -2
- package/dist/Form/style.scss +106 -67
- package/dist/FormCell/index.d.ts +3 -0
- package/dist/FormCell/index.js +2 -0
- package/dist/Grid/demo/base.js +2 -2
- package/dist/Grid/demo/base.scss +7 -7
- package/dist/Icon/demo/base.js +2 -2
- package/dist/Image/demo/base.js +2 -2
- package/dist/Image/demo/base.scss +4 -4
- package/dist/Image/style.scss +30 -30
- package/dist/ImagesPreview/style.scss +34 -34
- package/dist/ImagesWall/style.scss +70 -70
- package/dist/Input/demo/base.js +28 -2
- package/dist/Input/index.scss +240 -223
- package/dist/Input/input-affix-wrapper.d.ts +3 -1
- package/dist/Input/input-affix-wrapper.js +4 -4
- package/dist/Input/input.d.ts +3 -1
- package/dist/Input/input.js +5 -2
- package/dist/Loading/DotLoading.d.ts +1 -0
- package/dist/Loading/DotLoading.js +1 -0
- package/dist/Loading/SpinLoading.d.ts +1 -0
- package/dist/Loading/SpinLoading.js +1 -0
- package/dist/Loading/demo/base.d.ts +3 -0
- package/dist/{SpinLoading → Loading}/demo/base.js +8 -2
- package/dist/Loading/demo/dot-loading.d.ts +3 -0
- package/dist/Loading/demo/dot-loading.js +25 -0
- package/dist/Loading/index.d.ts +5 -0
- package/dist/Loading/index.js +3 -0
- package/dist/NavBar/demo/base.scss +5 -5
- package/dist/NoticeBar/demo/base.js +2 -2
- package/dist/Overlay/style.scss +20 -20
- package/dist/PageIndicator/demo/base.js +2 -2
- package/dist/Picker/style.scss +44 -44
- package/dist/PickerView/style.scss +72 -72
- package/dist/Popup/demo/base.js +2 -2
- package/dist/Popup/style.scss +129 -129
- package/dist/Radio/demo/base.scss +4 -4
- package/dist/Result/demo/base.js +2 -2
- package/dist/SafeArea/demo/base.scss +18 -18
- package/dist/ScrollView/style.scss +19 -19
- package/dist/SideBar/side-bar.js +6 -6
- package/dist/SideBar/style.scss +85 -85
- package/dist/Skeleton/demo/base.d.ts +3 -0
- package/dist/Skeleton/demo/base.js +8 -0
- package/dist/Skeleton/index.d.ts +3 -0
- package/dist/Skeleton/index.js +2 -0
- package/dist/Space/demo/base.js +2 -2
- package/dist/Stepper/demo/base.d.ts +3 -0
- package/dist/Stepper/demo/base.js +23 -0
- package/dist/Stepper/index.d.ts +3 -0
- package/dist/Stepper/index.js +2 -0
- package/dist/Swiper/style.scss +54 -54
- package/dist/Switch/demo/base.js +2 -2
- package/dist/TabBar/demo/base.js +2 -2
- package/dist/Tag/demo/base.js +2 -2
- package/dist/Tag/demo/style.scss +8 -8
- package/dist/Toast/style.scss +63 -63
- package/dist/VerificationCodeInput/style.scss +20 -20
- package/dist/WaterMark/demo/demo1.js +2 -2
- package/dist/WaterMark/demo/demo1.scss +6 -6
- package/dist/WaterMark/demo/demo2.js +2 -2
- package/dist/index.d.ts +22 -18
- package/dist/index.js +3 -1
- package/dist/style/variable.scss +1 -1
- package/dist/utils/type.js +36 -36
- package/dist/utils/with-default-props.js +4 -4
- package/package.json +9 -13
- package/readme.md +43 -43
- package/dist/SpinLoading/index.d.ts +0 -3
- package/dist/SpinLoading/index.js +0 -2
- /package/dist/{SpinLoading/demo/base.d.ts → Form/demo/vertical.d.ts} +0 -0
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
@use "../style/variable" as variable;
|
|
2
|
-
|
|
3
|
-
$calendarDatetimePopupCls: 'triones-antm-calendar-datetime-popup';
|
|
4
|
-
|
|
5
|
-
.#{$calendarDatetimePopupCls} {
|
|
6
|
-
border-top-left-radius: variable.$trionesBorderRadius;
|
|
7
|
-
border-top-right-radius: variable.$trionesBorderRadius;
|
|
8
|
-
|
|
9
|
-
&-header {
|
|
10
|
-
display: flex;
|
|
11
|
-
justify-content: space-between;
|
|
12
|
-
border-bottom: 1Px solid variable.$trionesBorderColor;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
&-display {
|
|
16
|
-
display: flex;
|
|
17
|
-
padding-left: 8Px;
|
|
18
|
-
|
|
19
|
-
&-date {
|
|
20
|
-
padding-inline: 8Px;
|
|
21
|
-
cursor: default;
|
|
22
|
-
display: flex;
|
|
23
|
-
align-items: center;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&-time {
|
|
27
|
-
padding-inline: 12Px;
|
|
28
|
-
display: flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
cursor: default;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&-active {
|
|
34
|
-
color: variable.$trionesColorText;
|
|
35
|
-
font-weight: bold;
|
|
36
|
-
background-color: variable.$trionesColorBgTextActive;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&-button {
|
|
41
|
-
padding: 12Px 16Px;
|
|
42
|
-
|
|
43
|
-
&-cancel {
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&-ok {
|
|
47
|
-
color: variable.$trionesColorPrimary;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
&-body {
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
}
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
|
+
|
|
3
|
+
$calendarDatetimePopupCls: 'triones-antm-calendar-datetime-popup';
|
|
4
|
+
|
|
5
|
+
.#{$calendarDatetimePopupCls} {
|
|
6
|
+
border-top-left-radius: variable.$trionesBorderRadius;
|
|
7
|
+
border-top-right-radius: variable.$trionesBorderRadius;
|
|
8
|
+
|
|
9
|
+
&-header {
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
border-bottom: 1Px solid variable.$trionesBorderColor;
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
&-display {
|
|
16
|
+
display: flex;
|
|
17
|
+
padding-left: 8Px;
|
|
18
|
+
|
|
19
|
+
&-date {
|
|
20
|
+
padding-inline: 8Px;
|
|
21
|
+
cursor: default;
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&-time {
|
|
27
|
+
padding-inline: 12Px;
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
cursor: default;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&-active {
|
|
34
|
+
color: variable.$trionesColorText;
|
|
35
|
+
font-weight: bold;
|
|
36
|
+
background-color: variable.$trionesColorBgTextActive;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&-button {
|
|
41
|
+
padding: 12Px 16Px;
|
|
42
|
+
|
|
43
|
+
&-cancel {
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&-ok {
|
|
47
|
+
color: variable.$trionesColorPrimary;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
&-body {
|
|
52
|
+
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
1
2
|
import { FC } from 'react';
|
|
2
3
|
import './style.scss';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
export type CalendarDatetimePickerCellProps = Omit<CellProps, 'value'> & {
|
|
4
|
+
import { FormCellProps } from '../FormCell';
|
|
5
|
+
export type CalendarDatetimePickerCellProps = Omit<FormCellProps, 'value'> & {
|
|
6
6
|
value?: dayjs.Dayjs | Date;
|
|
7
7
|
format?: string;
|
|
8
8
|
onChange?: (value?: dayjs.Dayjs) => void;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
declare const CalendarDatetimePickerCell: FC<CalendarDatetimePickerCellProps>;
|
|
11
|
+
export default CalendarDatetimePickerCell;
|
|
@@ -8,12 +8,12 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
8
8
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
9
9
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10
10
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11
|
+
import dayjs from 'dayjs';
|
|
11
12
|
import React, { useEffect, useState } from 'react';
|
|
12
13
|
import "./style.scss";
|
|
13
|
-
import dayjs from "dayjs";
|
|
14
|
-
import Cell from "../Cell";
|
|
15
14
|
import CalendarDatetimePicker from "../CalendarDatetimePicker";
|
|
16
|
-
|
|
15
|
+
import FormCell from "../FormCell";
|
|
16
|
+
var CalendarDatetimePickerCell = function CalendarDatetimePickerCell(_ref) {
|
|
17
17
|
var value = _ref.value,
|
|
18
18
|
_ref$format = _ref.format,
|
|
19
19
|
format = _ref$format === void 0 ? 'YYYY-MM-DD HH:mm' : _ref$format,
|
|
@@ -52,9 +52,10 @@ export var CalendarDatetimePickerCell = function CalendarDatetimePickerCell(_ref
|
|
|
52
52
|
setInnerOpen(false);
|
|
53
53
|
onChange === null || onChange === void 0 || onChange(date);
|
|
54
54
|
}
|
|
55
|
-
}), /*#__PURE__*/React.createElement(
|
|
55
|
+
}), /*#__PURE__*/React.createElement(FormCell, _extends({}, rest, {
|
|
56
56
|
onClick: function onClick() {
|
|
57
57
|
setInnerOpen(true);
|
|
58
58
|
}
|
|
59
|
-
}
|
|
60
|
-
};
|
|
59
|
+
}), handleValueRender()));
|
|
60
|
+
};
|
|
61
|
+
export default CalendarDatetimePickerCell;
|
|
@@ -6,7 +6,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { DemoBlock } from "../../DemoBlock";
|
|
9
|
-
import
|
|
9
|
+
import CalendarDatetimePickerCell from "../CalendarDatetimePickerCell";
|
|
10
10
|
export default (function () {
|
|
11
11
|
var toastContainer = React.useRef();
|
|
12
12
|
var _React$useState = React.useState(false),
|
|
@@ -18,7 +18,6 @@ export default (function () {
|
|
|
18
18
|
}), /*#__PURE__*/React.createElement(DemoBlock, {
|
|
19
19
|
title: "\u65E5\u671F\u65F6\u95F4\u9009\u62E9\u5668"
|
|
20
20
|
}, /*#__PURE__*/React.createElement(CalendarDatetimePickerCell, {
|
|
21
|
-
|
|
22
|
-
wrapperAlign: "right"
|
|
21
|
+
align: "end"
|
|
23
22
|
})));
|
|
24
23
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import CalendarDatetimePickerCell, { CalendarDatetimePickerCellProps } from "./CalendarDatetimePickerCell";
|
|
2
2
|
export type { CalendarDatetimePickerCellProps };
|
|
3
3
|
export default CalendarDatetimePickerCell;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import CalendarDatetimePickerCell from "./CalendarDatetimePickerCell";
|
|
2
2
|
export default CalendarDatetimePickerCell;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
@use "../style/variable" as variable;
|
|
2
|
-
$calendarDatetimePickerCls: 'triones-antm-calendar-datetime-picker';
|
|
3
|
-
|
|
4
|
-
.#{$calendarDatetimePickerCls}{
|
|
5
|
-
min-width: 50Px;
|
|
6
|
-
line-height: 1.4;
|
|
7
|
-
&-placeholder{
|
|
8
|
-
color: variable.$trionesColorTextPlaceholder;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
|
+
$calendarDatetimePickerCls: 'triones-antm-calendar-datetime-picker';
|
|
3
|
+
|
|
4
|
+
.#{$calendarDatetimePickerCls}{
|
|
5
|
+
min-width: 50Px;
|
|
6
|
+
line-height: 1.4;
|
|
7
|
+
&-placeholder{
|
|
8
|
+
color: variable.$trionesColorTextPlaceholder;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
@use "../style/variable" as variable;
|
|
2
|
-
|
|
3
|
-
$calendarPickerCls: 'triones-antm-calendar-picker';
|
|
4
|
-
|
|
5
|
-
.#{$calendarPickerCls} {
|
|
6
|
-
border-top-left-radius: variable.$trionesBorderRadius;
|
|
7
|
-
border-top-right-radius: variable.$trionesBorderRadius;
|
|
8
|
-
|
|
9
|
-
&-header {
|
|
10
|
-
display: flex;
|
|
11
|
-
justify-content: space-between;
|
|
12
|
-
border-bottom: 1Px solid variable.$trionesBorderColor;
|
|
13
|
-
padding: 4Px;
|
|
14
|
-
&-button {
|
|
15
|
-
padding: 8Px 12Px;
|
|
16
|
-
|
|
17
|
-
&-cancel {
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&-ok {
|
|
21
|
-
color: variable.$trionesColorPrimary;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&-body {
|
|
29
|
-
pointer-events: unset;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
|
+
|
|
3
|
+
$calendarPickerCls: 'triones-antm-calendar-picker';
|
|
4
|
+
|
|
5
|
+
.#{$calendarPickerCls} {
|
|
6
|
+
border-top-left-radius: variable.$trionesBorderRadius;
|
|
7
|
+
border-top-right-radius: variable.$trionesBorderRadius;
|
|
8
|
+
|
|
9
|
+
&-header {
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
border-bottom: 1Px solid variable.$trionesBorderColor;
|
|
13
|
+
padding: 4Px;
|
|
14
|
+
&-button {
|
|
15
|
+
padding: 8Px 12Px;
|
|
16
|
+
|
|
17
|
+
&-cancel {
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&-ok {
|
|
21
|
+
color: variable.$trionesColorPrimary;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&-body {
|
|
29
|
+
pointer-events: unset;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FC } from "react";
|
|
3
3
|
import dayjs from "dayjs";
|
|
4
|
-
import {
|
|
5
|
-
export type CalendarPickerCellProps = Omit<
|
|
4
|
+
import { FormCellProps } from '../FormCell';
|
|
5
|
+
export type CalendarPickerCellProps = Omit<FormCellProps, 'value'> & {
|
|
6
6
|
month?: dayjs.Dayjs | Date;
|
|
7
7
|
title?: React.ReactNode;
|
|
8
8
|
value?: dayjs.Dayjs | Date;
|
|
@@ -10,7 +10,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
10
10
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11
11
|
import React, { useState } from "react";
|
|
12
12
|
import dayjs from "dayjs";
|
|
13
|
-
import
|
|
13
|
+
import FormCell from "../FormCell";
|
|
14
14
|
import CalendarPicker from "../CalendarPicker";
|
|
15
15
|
export var CalendarPickerCell = function CalendarPickerCell(_ref) {
|
|
16
16
|
var month = _ref.month,
|
|
@@ -46,9 +46,9 @@ export var CalendarPickerCell = function CalendarPickerCell(_ref) {
|
|
|
46
46
|
setInternalValue(date);
|
|
47
47
|
onChange === null || onChange === void 0 || onChange(date);
|
|
48
48
|
}
|
|
49
|
-
}), /*#__PURE__*/React.createElement(
|
|
49
|
+
}), /*#__PURE__*/React.createElement(FormCell, _extends({}, rest, {
|
|
50
50
|
onClick: function onClick() {
|
|
51
51
|
setInnerOpen(true);
|
|
52
52
|
}
|
|
53
|
-
}
|
|
53
|
+
}), handleValueRender()));
|
|
54
54
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FC } from "react";
|
|
3
3
|
import dayjs from "dayjs";
|
|
4
|
-
import {
|
|
5
|
-
export type CalendarRangePickerCellProps = Omit<
|
|
4
|
+
import { FormCellProps } from '../FormCell';
|
|
5
|
+
export type CalendarRangePickerCellProps = Omit<FormCellProps, 'value'> & {
|
|
6
6
|
month?: dayjs.Dayjs;
|
|
7
7
|
title?: React.ReactNode;
|
|
8
8
|
value?: (dayjs.Dayjs | Date)[];
|
|
@@ -9,7 +9,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
9
9
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10
10
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11
11
|
import React, { useState } from "react";
|
|
12
|
-
import
|
|
12
|
+
import FormCell from "../FormCell";
|
|
13
13
|
import CalendarPicker from "../CalendarPicker";
|
|
14
14
|
import { toDayjsArray } from "../utils/dayjs";
|
|
15
15
|
export var CalendarRangePickerCell = function CalendarRangePickerCell(_ref) {
|
|
@@ -48,9 +48,9 @@ export var CalendarRangePickerCell = function CalendarRangePickerCell(_ref) {
|
|
|
48
48
|
setInternalValue(date);
|
|
49
49
|
onChange === null || onChange === void 0 || onChange(date);
|
|
50
50
|
}
|
|
51
|
-
}), /*#__PURE__*/React.createElement(
|
|
51
|
+
}), /*#__PURE__*/React.createElement(FormCell, _extends({}, rest, {
|
|
52
52
|
onClick: function onClick() {
|
|
53
53
|
setInnerOpen(true);
|
|
54
54
|
}
|
|
55
|
-
}
|
|
55
|
+
}), handleValueRender()));
|
|
56
56
|
};
|
|
@@ -20,14 +20,12 @@ export default (function () {
|
|
|
20
20
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(DemoBlock, {
|
|
21
21
|
title: "\u65E5\u5386\u9009\u62E9"
|
|
22
22
|
}, /*#__PURE__*/React.createElement(CalendarPickerCell, {
|
|
23
|
-
|
|
24
|
-
wrapperAlign: "right",
|
|
23
|
+
align: "end",
|
|
25
24
|
placeholder: "\u8BF7\u9009\u62E9\u65E5\u671F"
|
|
26
25
|
})), /*#__PURE__*/React.createElement(DemoBlock, {
|
|
27
26
|
title: "\u65E5\u5386\u9009\u62E9(\u533A\u95F4)"
|
|
28
27
|
}, /*#__PURE__*/React.createElement(CalendarPickerCell.Range, {
|
|
29
|
-
|
|
30
|
-
wrapperAlign: "right",
|
|
28
|
+
align: "end",
|
|
31
29
|
placeholder: "\u8BF7\u9009\u62E9\u65E5\u671F"
|
|
32
30
|
})));
|
|
33
31
|
});
|
package/dist/Card/demo/base.js
CHANGED
package/dist/Card/demo/base.scss
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
$class-prefix-card: 'card-demo';
|
|
2
|
-
|
|
3
|
-
.#{$class-prefix-card} {
|
|
4
|
-
&-content {
|
|
5
|
-
height: 50px;
|
|
6
|
-
}
|
|
7
|
-
&-footer {
|
|
8
|
-
padding-top: 11px;
|
|
9
|
-
border-top: 1px solid #e5e5e5;
|
|
10
|
-
display: flex;
|
|
11
|
-
justify-content: flex-end;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&-customBody {
|
|
15
|
-
color: green;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
}
|
|
1
|
+
$class-prefix-card: 'card-demo';
|
|
2
|
+
|
|
3
|
+
.#{$class-prefix-card} {
|
|
4
|
+
&-content {
|
|
5
|
+
height: 50px;
|
|
6
|
+
}
|
|
7
|
+
&-footer {
|
|
8
|
+
padding-top: 11px;
|
|
9
|
+
border-top: 1px solid #e5e5e5;
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: flex-end;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&-customBody {
|
|
15
|
+
color: green;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
}
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
@use "../style/variable" as variable;
|
|
2
|
-
$cascaderPickerCls: 'triones-antm-cascader-picker';
|
|
3
|
-
|
|
4
|
-
.#{$cascaderPickerCls} {
|
|
5
|
-
width: 100%;
|
|
6
|
-
height: 300Px;
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
position: relative;
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
|
|
12
|
-
&-header {
|
|
13
|
-
display: flex;
|
|
14
|
-
justify-content: space-between;
|
|
15
|
-
align-items: center;
|
|
16
|
-
border-bottom: 1Px solid variable.$trionesBorderColor;
|
|
17
|
-
padding: 4Px;
|
|
18
|
-
|
|
19
|
-
&-button {
|
|
20
|
-
|
|
21
|
-
padding: 8Px;
|
|
22
|
-
font-size: 12Px;
|
|
23
|
-
&-cancel{
|
|
24
|
-
color: variable.$trionesColorTextSecondary;
|
|
25
|
-
}
|
|
26
|
-
&-ok{
|
|
27
|
-
color: variable.$trionesColorPrimary;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&-title {
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&-body {
|
|
36
|
-
flex: 1 1;
|
|
37
|
-
width: 100%;
|
|
38
|
-
pointer-events: unset;
|
|
39
|
-
overflow: hidden;
|
|
40
|
-
}
|
|
41
|
-
&-view{
|
|
42
|
-
--height: 100%;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
}
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
|
+
$cascaderPickerCls: 'triones-antm-cascader-picker';
|
|
3
|
+
|
|
4
|
+
.#{$cascaderPickerCls} {
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 300Px;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
position: relative;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
|
|
12
|
+
&-header {
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
align-items: center;
|
|
16
|
+
border-bottom: 1Px solid variable.$trionesBorderColor;
|
|
17
|
+
padding: 4Px;
|
|
18
|
+
|
|
19
|
+
&-button {
|
|
20
|
+
|
|
21
|
+
padding: 8Px;
|
|
22
|
+
font-size: 12Px;
|
|
23
|
+
&-cancel{
|
|
24
|
+
color: variable.$trionesColorTextSecondary;
|
|
25
|
+
}
|
|
26
|
+
&-ok{
|
|
27
|
+
color: variable.$trionesColorPrimary;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&-title {
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&-body {
|
|
36
|
+
flex: 1 1;
|
|
37
|
+
width: 100%;
|
|
38
|
+
pointer-events: unset;
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
}
|
|
41
|
+
&-view{
|
|
42
|
+
--height: 100%;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
2
|
import "./style.scss";
|
|
3
|
-
import {
|
|
4
|
-
export type CascaderPickerCellProps = Omit<
|
|
3
|
+
import { FormCellProps } from '../FormCell';
|
|
4
|
+
export type CascaderPickerCellProps = Omit<FormCellProps, 'value'> & {
|
|
5
5
|
onChange?: (value: any[]) => void;
|
|
6
6
|
options?: any[];
|
|
7
7
|
/**
|
|
@@ -17,7 +17,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
17
17
|
import React, { useEffect, useState } from "react";
|
|
18
18
|
import CascaderPopup from "../CascaderPicker";
|
|
19
19
|
import "./style.scss";
|
|
20
|
-
import
|
|
20
|
+
import FormCell from "../FormCell";
|
|
21
21
|
var cls = 'triones-antm-cascader-picker';
|
|
22
22
|
export var CascaderPickerCell = function CascaderPickerCell(_ref) {
|
|
23
23
|
var onChange = _ref.onChange,
|
|
@@ -62,9 +62,9 @@ export var CascaderPickerCell = function CascaderPickerCell(_ref) {
|
|
|
62
62
|
setOpen(false);
|
|
63
63
|
onChange === null || onChange === void 0 || onChange(value || []);
|
|
64
64
|
}
|
|
65
|
-
})), /*#__PURE__*/React.createElement(
|
|
65
|
+
})), /*#__PURE__*/React.createElement(FormCell, _extends({}, rest, {
|
|
66
66
|
onClick: function onClick() {
|
|
67
67
|
setOpen(true);
|
|
68
68
|
}
|
|
69
|
-
}
|
|
69
|
+
}), valueText()));
|
|
70
70
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
@use "../style/variable" as variable;
|
|
2
|
-
$cascaderPickerCls: 'triones-antm-cascader-picker';
|
|
3
|
-
|
|
4
|
-
.#{$cascaderPickerCls}{
|
|
5
|
-
width: 100%;
|
|
6
|
-
line-height: 1.4;
|
|
7
|
-
display: flex;
|
|
8
|
-
|
|
9
|
-
&-left {
|
|
10
|
-
justify-content: flex-start;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
&-center {
|
|
14
|
-
justify-content: center;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&-right {
|
|
18
|
-
justify-content: flex-end;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&-placeholder{
|
|
22
|
-
color: variable.$trionesColorTextPlaceholder;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
|
+
$cascaderPickerCls: 'triones-antm-cascader-picker';
|
|
3
|
+
|
|
4
|
+
.#{$cascaderPickerCls}{
|
|
5
|
+
width: 100%;
|
|
6
|
+
line-height: 1.4;
|
|
7
|
+
display: flex;
|
|
8
|
+
|
|
9
|
+
&-left {
|
|
10
|
+
justify-content: flex-start;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&-center {
|
|
14
|
+
justify-content: center;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&-right {
|
|
18
|
+
justify-content: flex-end;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&-placeholder{
|
|
22
|
+
color: variable.$trionesColorTextPlaceholder;
|
|
23
|
+
}
|
|
24
|
+
}
|
package/dist/Cell/demo/base.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { DemoBlock } from "../../DemoBlock";
|
|
3
3
|
import Cell from "../index";
|
|
4
|
-
import { Divider } from "@trionesdev/antd-mobile-base-react";
|
|
5
4
|
import { RightOutline } from "@trionesdev/antd-mobile-icons-react";
|
|
5
|
+
import { Divider } from "../../index";
|
|
6
6
|
export default (function () {
|
|
7
7
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(DemoBlock, {
|
|
8
8
|
title: "\u57FA\u7840\u7528\u6CD5"
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
.demoBlock {
|
|
2
|
-
font-size: 14px;
|
|
3
|
-
margin-bottom: 12px;
|
|
4
|
-
&:last-of-type {
|
|
5
|
-
padding-bottom: 32px;
|
|
6
|
-
}
|
|
7
|
-
scrollbar-width: thin;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.demoTitle {
|
|
11
|
-
padding: 12px 12px 8px;
|
|
12
|
-
color: #697b8c;
|
|
13
|
-
font-size: 14px;
|
|
14
|
-
background: #fafbfc;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.demoMain {
|
|
18
|
-
border-right: none;
|
|
19
|
-
border-left: none;
|
|
20
|
-
}
|
|
1
|
+
.demoBlock {
|
|
2
|
+
font-size: 14px;
|
|
3
|
+
margin-bottom: 12px;
|
|
4
|
+
&:last-of-type {
|
|
5
|
+
padding-bottom: 32px;
|
|
6
|
+
}
|
|
7
|
+
scrollbar-width: thin;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.demoTitle {
|
|
11
|
+
padding: 12px 12px 8px;
|
|
12
|
+
color: #697b8c;
|
|
13
|
+
font-size: 14px;
|
|
14
|
+
background: #fafbfc;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.demoMain {
|
|
18
|
+
border-right: none;
|
|
19
|
+
border-left: none;
|
|
20
|
+
}
|