@trionesdev/antd-mobile-react 0.0.2-beta.1 → 0.0.2-beta.3
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/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/demo/base.js +2 -2
- package/dist/Button/style.scss +234 -232
- 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/CalendarPicker/style.scss +31 -31
- package/dist/Card/demo/base.js +2 -2
- package/dist/Card/demo/base.scss +18 -18
- package/dist/Cell/demo/base.js +16 -2
- package/dist/Checkbox/demo/base.js +11 -6
- package/dist/Checkbox/demo/disabled.js +2 -1
- package/dist/ConfigProvider/demo/base.js +2 -2
- package/dist/DemoBlock/index.d.ts +6 -0
- package/dist/DemoBlock/index.js +9 -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/Footer/demo/base.js +2 -2
- package/dist/Form/FormItem/form-item-input.d.ts +15 -0
- package/dist/Form/FormItem/form-item-input.js +39 -0
- package/dist/Form/FormItem/form-item-label.d.ts +13 -0
- package/dist/Form/FormItem/form-item-label.js +27 -0
- package/dist/Form/FormItem/form-item.d.ts +22 -0
- package/dist/Form/FormItem/form-item.js +73 -0
- package/dist/Form/FormItem/index.d.ts +5 -0
- package/dist/Form/FormItem/index.js +3 -0
- package/dist/Form/demo/input.js +1 -1
- package/dist/Form/index.d.ts +8 -1
- package/dist/Form/index.js +5 -1
- package/dist/Form/style.scss +67 -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/base-input.d.ts +13 -0
- package/dist/Input/base-input.js +41 -0
- package/dist/Input/demo/base.js +53 -12
- package/dist/Input/index.d.ts +14 -2
- package/dist/Input/index.js +11 -1
- package/dist/Input/index.scss +199 -0
- package/dist/Input/input-affix-wrapper.d.ts +9 -0
- package/dist/Input/input-affix-wrapper.js +31 -0
- package/dist/Input/input-opt.d.ts +16 -0
- package/dist/Input/input-opt.js +87 -0
- package/dist/Input/input-password.d.ts +7 -0
- package/dist/Input/input-password.js +48 -0
- package/dist/Input/input.d.ts +16 -0
- package/dist/Input/input.js +63 -0
- package/dist/Input/textarea.d.ts +13 -0
- package/dist/Input/textarea.js +45 -0
- package/dist/Input/types.d.ts +2 -0
- package/dist/Input/types.js +2 -0
- package/dist/NavBar/demo/base.scss +5 -5
- package/dist/NoticeBar/demo/base.js +2 -2
- package/dist/PageIndicator/demo/base.js +2 -2
- package/dist/Popup/demo/base.js +2 -2
- package/dist/Progress/Progress.d.ts +2 -2
- package/dist/Progress/ProgressCircle.d.ts +2 -2
- package/dist/Progress/ProgressLine.d.ts +2 -2
- package/dist/Progress/style.scss +33 -33
- package/dist/Radio/demo/base.js +2 -2
- 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/SideBar/side-bar.js +6 -6
- package/dist/SideBar/style.scss +85 -85
- package/dist/Space/demo/base.js +2 -2
- 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/demo/base.js +2 -2
- package/dist/VerificationCodeInput/index.d.ts +2 -2
- package/dist/VerificationCodeInput/index.js +1 -1
- package/dist/VerificationCodeInput/style.scss +20 -0
- package/dist/VerificationCodeInput/verification-code-input.d.ts +24 -0
- package/dist/VerificationCodeInput/verification-code-input.js +99 -0
- 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 +1 -1
- package/dist/style/variable.scss +1 -1
- package/dist/types.d.ts +0 -8
- package/dist/types.js +0 -1
- package/dist/utils/type.js +36 -36
- package/dist/utils/use-isomorphic-update-layout-effect.d.ts +1 -1
- package/dist/utils/with-default-props.js +4 -4
- package/package.json +6 -6
- package/readme.md +43 -43
package/dist/Calendar/style.scss
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
@use "../style/variable" as
|
|
2
|
-
|
|
3
|
-
$calendarCls: 'triones-antm-calendar';
|
|
4
|
-
|
|
5
|
-
.#{$calendarCls}-grid {
|
|
6
|
-
//display: flex;
|
|
7
|
-
//flex-wrap: wrap;
|
|
8
|
-
display: grid;
|
|
9
|
-
grid-template-columns: repeat(7, 1fr);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.#{$calendarCls}-cell {
|
|
13
|
-
aspect-ratio: 1;
|
|
14
|
-
display: flex;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
align-items: center;
|
|
17
|
-
border-radius:
|
|
18
|
-
cursor: default;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
|
|
21
|
-
&-date {
|
|
22
|
-
display: flex;
|
|
23
|
-
width: 100%;
|
|
24
|
-
justify-content: center;
|
|
25
|
-
align-items: center;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&-mouth {
|
|
29
|
-
display: flex;
|
|
30
|
-
width: 100%;
|
|
31
|
-
justify-content: center;
|
|
32
|
-
align-items: center;
|
|
33
|
-
font-size: 8Px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&.#{$calendarCls}-cell {
|
|
37
|
-
&-disabled {
|
|
38
|
-
color: #999999;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&-selected {
|
|
42
|
-
background-color:
|
|
43
|
-
color: white;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&-selected-range {
|
|
47
|
-
border-radius: 0;
|
|
48
|
-
background-color:
|
|
49
|
-
color: black;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.#{$calendarCls} {
|
|
55
|
-
&-header {
|
|
56
|
-
display: flex;
|
|
57
|
-
justify-content: space-between;
|
|
58
|
-
align-items: center;
|
|
59
|
-
|
|
60
|
-
&-title {
|
|
61
|
-
font-size: 16Px;
|
|
62
|
-
padding: 8Px;
|
|
63
|
-
text-align: center;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&-button {
|
|
67
|
-
padding-left: 12Px;
|
|
68
|
-
padding-right: 12Px;
|
|
69
|
-
cursor: pointer;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&-week {
|
|
74
|
-
display: grid;
|
|
75
|
-
grid-template-columns: repeat(7, 1fr);
|
|
76
|
-
|
|
77
|
-
&-cell {
|
|
78
|
-
display: flex;
|
|
79
|
-
justify-content: center;
|
|
80
|
-
align-items: center;
|
|
81
|
-
padding-top: 8Px;
|
|
82
|
-
padding-bottom: 8Px;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
|
+
|
|
3
|
+
$calendarCls: 'triones-antm-calendar';
|
|
4
|
+
|
|
5
|
+
.#{$calendarCls}-grid {
|
|
6
|
+
//display: flex;
|
|
7
|
+
//flex-wrap: wrap;
|
|
8
|
+
display: grid;
|
|
9
|
+
grid-template-columns: repeat(7, 1fr);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.#{$calendarCls}-cell {
|
|
13
|
+
aspect-ratio: 1;
|
|
14
|
+
display: flex;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
align-items: center;
|
|
17
|
+
border-radius: variable.$trionesBorderRadius;
|
|
18
|
+
cursor: default;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
|
|
21
|
+
&-date {
|
|
22
|
+
display: flex;
|
|
23
|
+
width: 100%;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
align-items: center;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&-mouth {
|
|
29
|
+
display: flex;
|
|
30
|
+
width: 100%;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
align-items: center;
|
|
33
|
+
font-size: 8Px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.#{$calendarCls}-cell {
|
|
37
|
+
&-disabled {
|
|
38
|
+
color: #999999;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&-selected {
|
|
42
|
+
background-color: variable.$trionesColorPrimary;
|
|
43
|
+
color: white;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&-selected-range {
|
|
47
|
+
border-radius: 0;
|
|
48
|
+
background-color: variable.$trionesColorPrimaryBg;
|
|
49
|
+
color: black;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.#{$calendarCls} {
|
|
55
|
+
&-header {
|
|
56
|
+
display: flex;
|
|
57
|
+
justify-content: space-between;
|
|
58
|
+
align-items: center;
|
|
59
|
+
|
|
60
|
+
&-title {
|
|
61
|
+
font-size: 16Px;
|
|
62
|
+
padding: 8Px;
|
|
63
|
+
text-align: center;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&-button {
|
|
67
|
+
padding-left: 12Px;
|
|
68
|
+
padding-right: 12Px;
|
|
69
|
+
cursor: pointer;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&-week {
|
|
74
|
+
display: grid;
|
|
75
|
+
grid-template-columns: repeat(7, 1fr);
|
|
76
|
+
|
|
77
|
+
&-cell {
|
|
78
|
+
display: flex;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
align-items: center;
|
|
81
|
+
padding-top: 8Px;
|
|
82
|
+
padding-bottom: 8Px;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -16,8 +16,8 @@ import React, { memo, useEffect, useRef, useState } from 'react';
|
|
|
16
16
|
import { CalendarGrid } from "../Calendar";
|
|
17
17
|
import { RandomUtils } from "../utils/random-utils";
|
|
18
18
|
import classNames from "classnames";
|
|
19
|
-
/**
|
|
20
|
-
* 可以手势滑动的日历组件
|
|
19
|
+
/**
|
|
20
|
+
* 可以手势滑动的日历组件
|
|
21
21
|
*/
|
|
22
22
|
export var TouchableCalendarGrid = /*#__PURE__*/memo(function (_ref) {
|
|
23
23
|
var _wrapperRef$current3;
|
|
@@ -60,8 +60,8 @@ export var TouchableCalendarGrid = /*#__PURE__*/memo(function (_ref) {
|
|
|
60
60
|
mouths = _useState10[0],
|
|
61
61
|
setMouths = _useState10[1];
|
|
62
62
|
|
|
63
|
-
/**
|
|
64
|
-
* 计算出每个格子的大小
|
|
63
|
+
/**
|
|
64
|
+
* 计算出每个格子的大小
|
|
65
65
|
*/
|
|
66
66
|
var cellSize = /*#__PURE__*/function () {
|
|
67
67
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
@@ -80,8 +80,8 @@ export var TouchableCalendarGrid = /*#__PURE__*/memo(function (_ref) {
|
|
|
80
80
|
return _ref2.apply(this, arguments);
|
|
81
81
|
};
|
|
82
82
|
}();
|
|
83
|
-
/**
|
|
84
|
-
* 计算出最大的translateY,默认为wrapperRef.current?.clientHeight
|
|
83
|
+
/**
|
|
84
|
+
* 计算出最大的translateY,默认为wrapperRef.current?.clientHeight
|
|
85
85
|
*/
|
|
86
86
|
var minTranslateY = /*#__PURE__*/function () {
|
|
87
87
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
@@ -101,9 +101,9 @@ export var TouchableCalendarGrid = /*#__PURE__*/memo(function (_ref) {
|
|
|
101
101
|
};
|
|
102
102
|
}();
|
|
103
103
|
|
|
104
|
-
/**
|
|
105
|
-
* 计算出该月的行数
|
|
106
|
-
* @param mouth
|
|
104
|
+
/**
|
|
105
|
+
* 计算出该月的行数
|
|
106
|
+
* @param mouth
|
|
107
107
|
*/
|
|
108
108
|
var mouthLines = function mouthLines(mouth) {
|
|
109
109
|
var firstDate = new Date(mouth.getFullYear(), mouth.getMonth(), 1);
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
@use "../style/variable" as
|
|
2
|
-
|
|
3
|
-
$calendarDatetimePickerCls: 'triones-antm-calendar-datetime-picker';
|
|
4
|
-
|
|
5
|
-
.#{$calendarDatetimePickerCls} {
|
|
6
|
-
border-top-left-radius:
|
|
7
|
-
border-top-right-radius:
|
|
8
|
-
|
|
9
|
-
&-header {
|
|
10
|
-
display: flex;
|
|
11
|
-
justify-content: space-between;
|
|
12
|
-
border-bottom: 1Px solid
|
|
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:
|
|
35
|
-
font-weight: bold;
|
|
36
|
-
background-color:
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&-button {
|
|
41
|
-
padding: 12Px 16Px;
|
|
42
|
-
|
|
43
|
-
&-cancel {
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&-ok {
|
|
47
|
-
color:
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
&-body {
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
}
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
|
+
|
|
3
|
+
$calendarDatetimePickerCls: 'triones-antm-calendar-datetime-picker';
|
|
4
|
+
|
|
5
|
+
.#{$calendarDatetimePickerCls} {
|
|
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,31 +1,31 @@
|
|
|
1
|
-
@use "../style/variable" as
|
|
2
|
-
|
|
3
|
-
$calendarPickerCls: 'triones-antm-calendar-picker';
|
|
4
|
-
|
|
5
|
-
.#{$calendarPickerCls} {
|
|
6
|
-
border-top-left-radius:
|
|
7
|
-
border-top-right-radius:
|
|
8
|
-
|
|
9
|
-
&-header {
|
|
10
|
-
display: flex;
|
|
11
|
-
justify-content: space-between;
|
|
12
|
-
border-bottom: 1Px solid
|
|
13
|
-
padding: 4Px;
|
|
14
|
-
&-button {
|
|
15
|
-
padding: 8Px 12Px;
|
|
16
|
-
|
|
17
|
-
&-cancel {
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&-ok {
|
|
21
|
-
color:
|
|
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
|
+
}
|
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
|
+
}
|
package/dist/Cell/demo/base.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
export default (function () {
|
|
5
6
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(DemoBlock, {
|
|
6
7
|
title: "\u57FA\u7840\u7528\u6CD5"
|
|
@@ -8,6 +9,19 @@ export default (function () {
|
|
|
8
9
|
title: "\u5206\u7EC4"
|
|
9
10
|
}, /*#__PURE__*/React.createElement(Cell.Group, {
|
|
10
11
|
title: '标题',
|
|
11
|
-
divider:
|
|
12
|
-
}, /*#__PURE__*/React.createElement(Cell, null, "\u6807\u9898"), /*#__PURE__*/React.createElement(Cell, null, "\u6807\u9898"), /*#__PURE__*/React.createElement(Cell, null, "\u6807\u9898")))
|
|
12
|
+
divider: /*#__PURE__*/React.createElement(Divider, null)
|
|
13
|
+
}, /*#__PURE__*/React.createElement(Cell, null, "\u6807\u9898"), /*#__PURE__*/React.createElement(Cell, null, "\u6807\u9898"), /*#__PURE__*/React.createElement(Cell, null, "\u6807\u9898"))), /*#__PURE__*/React.createElement(DemoBlock, {
|
|
14
|
+
title: "\u5206\u7EC4\u5E26Label"
|
|
15
|
+
}, /*#__PURE__*/React.createElement(Cell.Group, {
|
|
16
|
+
title: '标题',
|
|
17
|
+
labelCol: {
|
|
18
|
+
flex: 100
|
|
19
|
+
}
|
|
20
|
+
}, /*#__PURE__*/React.createElement(Cell, {
|
|
21
|
+
label: 'Label'
|
|
22
|
+
}, "\u6807\u9898"), /*#__PURE__*/React.createElement(Cell, {
|
|
23
|
+
label: 'Label'
|
|
24
|
+
}, "\u6807\u9898"), /*#__PURE__*/React.createElement(Cell, {
|
|
25
|
+
label: 'Label'
|
|
26
|
+
}, "\u6807\u9898"))));
|
|
13
27
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* compact: true
|
|
1
|
+
/**
|
|
2
|
+
* compact: true
|
|
3
3
|
*/
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { DemoBlock } from "../../DemoBlock";
|
|
@@ -26,18 +26,23 @@ export default (function () {
|
|
|
26
26
|
disabled: true
|
|
27
27
|
}, "\u9999\u8549")), /*#__PURE__*/React.createElement(DemoBlock, {
|
|
28
28
|
title: "Button"
|
|
29
|
-
}, /*#__PURE__*/React.createElement(Checkbox
|
|
29
|
+
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
30
|
+
shape: "button"
|
|
31
|
+
}, "\u82F9\u679C")), /*#__PURE__*/React.createElement(DemoBlock, {
|
|
30
32
|
title: "Button \u7981\u7528"
|
|
31
|
-
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Checkbox
|
|
33
|
+
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Checkbox, {
|
|
34
|
+
shape: "button",
|
|
32
35
|
disabled: true
|
|
33
|
-
}, "\u82F9\u679C"), /*#__PURE__*/React.createElement(Checkbox
|
|
36
|
+
}, "\u82F9\u679C"), /*#__PURE__*/React.createElement(Checkbox, {
|
|
37
|
+
shape: "button",
|
|
34
38
|
disabled: true,
|
|
35
39
|
checked: true
|
|
36
40
|
}, "\u82F9\u679C"))), /*#__PURE__*/React.createElement(DemoBlock, {
|
|
37
41
|
title: "\u5206\u7EC4"
|
|
38
42
|
}, /*#__PURE__*/React.createElement(Checkbox.Group, {
|
|
39
43
|
defaultValue: ['1']
|
|
40
|
-
}, /*#__PURE__*/React.createElement(Checkbox
|
|
44
|
+
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
45
|
+
shape: "button",
|
|
41
46
|
value: '1'
|
|
42
47
|
}, "\u82F9\u679C"))));
|
|
43
48
|
});
|
|
@@ -12,7 +12,8 @@ export default (function () {
|
|
|
12
12
|
disabled: true
|
|
13
13
|
}, "\u9999\u8549")), /*#__PURE__*/React.createElement(DemoBlock, {
|
|
14
14
|
title: "Button"
|
|
15
|
-
}, /*#__PURE__*/React.createElement(Checkbox
|
|
15
|
+
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
16
|
+
shape: "button",
|
|
16
17
|
checked: true,
|
|
17
18
|
disabled: true
|
|
18
19
|
}, "\u82F9\u679C")));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { FC, ReactNode } from 'react';
|
|
2
3
|
import './index.scss';
|
|
3
4
|
interface Props {
|
|
@@ -5,6 +6,11 @@ interface Props {
|
|
|
5
6
|
padding?: string;
|
|
6
7
|
background?: string;
|
|
7
8
|
children?: ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
styles?: {
|
|
12
|
+
body?: React.CSSProperties;
|
|
13
|
+
};
|
|
8
14
|
}
|
|
9
15
|
export declare const DemoBlock: FC<Props>;
|
|
10
16
|
export {};
|
package/dist/DemoBlock/index.js
CHANGED
|
@@ -1,15 +1,22 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1
7
|
import React from 'react';
|
|
2
8
|
import "./index.scss";
|
|
3
9
|
export var DemoBlock = function DemoBlock(props) {
|
|
10
|
+
var _props$styles;
|
|
4
11
|
return /*#__PURE__*/React.createElement("div", {
|
|
5
12
|
className: "demoBlock"
|
|
6
13
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7
14
|
className: "demoTitle"
|
|
8
15
|
}, props.title), /*#__PURE__*/React.createElement("div", {
|
|
9
16
|
className: "demoMain",
|
|
10
|
-
style: {
|
|
17
|
+
style: _objectSpread({
|
|
11
18
|
padding: '12px 12px',
|
|
12
19
|
background: '#ffffff'
|
|
13
|
-
}
|
|
20
|
+
}, (_props$styles = props.styles) === null || _props$styles === void 0 ? void 0 : _props$styles.body)
|
|
14
21
|
}, props.children));
|
|
15
22
|
};
|
|
@@ -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
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.demoDescription {
|
|
2
|
-
color: var(--triones-antm-color-weak);
|
|
3
|
-
}
|
|
1
|
+
.demoDescription {
|
|
2
|
+
color: var(--triones-antm-color-weak);
|
|
3
|
+
}
|
package/dist/Empty/demo/base.js
CHANGED
package/dist/Footer/demo/base.js
CHANGED