@nutui/nutui-react-taro 3.0.0 → 3.0.2
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/CHANGELOG.md +24 -0
- package/dist/cjs/hooks/use-client-rect.js +1 -0
- package/dist/cjs/packages/actionsheet/style/style.css +12 -0
- package/dist/cjs/packages/address/style/style.css +12 -0
- package/dist/cjs/packages/calendar/style/style.css +12 -0
- package/dist/cjs/packages/cascader/style/style.css +12 -0
- package/dist/cjs/packages/configprovider/types.d.ts +1 -1
- package/dist/cjs/packages/datepicker/datepicker.js +8 -6
- package/dist/cjs/packages/datepicker/style/style.css +82 -0
- package/dist/cjs/packages/datepickerview/datepickerview.d.ts +3 -0
- package/dist/cjs/packages/datepickerview/datepickerview.js +119 -0
- package/dist/cjs/packages/datepickerview/index.d.ts +3 -0
- package/dist/cjs/packages/{subsidenavbar → datepickerview}/index.js +2 -2
- package/dist/cjs/packages/datepickerview/style/datepickerview.scss +4 -0
- package/dist/cjs/packages/datepickerview/style/index.js +2 -0
- package/dist/cjs/packages/datepickerview/style/style.css +78 -0
- package/dist/cjs/packages/datepickerview/style/style.harmony.css +8 -0
- package/dist/cjs/packages/datepickerview/types.d.ts +15 -0
- package/dist/cjs/packages/datepickerview/types.js +4 -0
- package/dist/cjs/packages/dialog/dialog.js +8 -3
- package/dist/cjs/packages/dialog/style/dialog.scss +0 -1
- package/dist/cjs/packages/dialog/style/style.css +0 -1
- package/dist/cjs/packages/dialog/style/style.harmony.css +0 -1
- package/dist/cjs/packages/drag/drag.js +33 -39
- package/dist/cjs/packages/drag/style/drag.scss +1 -0
- package/dist/cjs/packages/drag/style/style.css +1 -0
- package/dist/cjs/packages/drag/style/style.harmony.css +1 -0
- package/dist/cjs/packages/fixednav/fixednav.js +20 -14
- package/dist/cjs/packages/fixednav/style/fixednav.scss +0 -15
- package/dist/cjs/packages/fixednav/style/style.css +0 -14
- package/dist/cjs/packages/fixednav/style/style.harmony.css +0 -14
- package/dist/cjs/packages/form/form.d.ts +2 -0
- package/dist/cjs/packages/form/form.js +11 -2
- package/dist/cjs/packages/form/index.d.ts +2 -1
- package/dist/cjs/packages/form/index.js +1 -0
- package/dist/cjs/packages/form/style/form.scss +0 -66
- package/dist/cjs/packages/form/style/style.css +31 -21
- package/dist/cjs/packages/form/style/style.harmony.css +1 -67
- package/dist/cjs/packages/form/types.d.ts +2 -1
- package/dist/cjs/packages/form/useform.d.ts +2 -1
- package/dist/cjs/packages/form/useform.js +338 -247
- package/dist/cjs/packages/formitem/formitem.d.ts +1 -0
- package/dist/cjs/packages/formitem/formitem.js +57 -45
- package/dist/cjs/packages/formitem/style/formitem.scss +101 -21
- package/dist/cjs/packages/formitem/style/style.css +89 -12
- package/dist/cjs/packages/formitem/style/style.harmony.css +89 -12
- package/dist/cjs/packages/imagepreview/style/style.css +12 -0
- package/dist/cjs/packages/input/input.js +5 -2
- package/dist/cjs/packages/input/style/input.scss +6 -4
- package/dist/cjs/packages/input/style/style.css +4 -0
- package/dist/cjs/packages/input/style/style.harmony.css +8 -0
- package/dist/cjs/packages/numberkeyboard/style/style.css +12 -0
- package/dist/cjs/packages/nutui.react.build.d.ts +11 -15
- package/dist/cjs/packages/nutui.react.build.js +172 -180
- package/dist/cjs/packages/nutui.react.d.ts +16 -22
- package/dist/cjs/packages/nutui.react.js +177 -187
- package/dist/cjs/packages/nutui.react.scss.d.ts +5 -7
- package/dist/cjs/packages/nutui.react.scss.js +5 -7
- package/dist/cjs/packages/overlay/overlay.js +4 -5
- package/dist/cjs/packages/overlay/style/overlay.scss +0 -4
- package/dist/cjs/packages/picker/style/index.js +1 -0
- package/dist/cjs/packages/picker/style/style.css +82 -0
- package/dist/cjs/packages/popover/style/style.css +12 -0
- package/dist/cjs/packages/popup/popup.js +17 -11
- package/dist/cjs/packages/popup/style/popup.scss +12 -4
- package/dist/cjs/packages/popup/style/style.css +12 -0
- package/dist/cjs/packages/popup/style/style.harmony.css +12 -0
- package/dist/cjs/packages/shortpassword/shortpassword.js +5 -7
- package/dist/cjs/packages/shortpassword/style/shortpassword.scss +10 -0
- package/dist/cjs/packages/shortpassword/style/style.css +21 -0
- package/dist/cjs/packages/shortpassword/style/style.harmony.css +9 -0
- package/dist/cjs/packages/signature/signature.js +1 -1
- package/dist/cjs/packages/swipe/style/style.css +3 -3
- package/dist/cjs/packages/swipe/style/style.harmony.css +3 -3
- package/dist/cjs/packages/swipe/style/swipe.scss +7 -3
- package/dist/cjs/packages/swipe/swipe.js +14 -15
- package/dist/cjs/packages/tabbar/style/style.css +6 -0
- package/dist/cjs/packages/tabbaritem/style/style.css +6 -0
- package/dist/cjs/packages/tabbaritem/style/style.harmony.css +6 -0
- package/dist/cjs/packages/tabbaritem/style/tabbaritem.scss +6 -0
- package/dist/cjs/packages/tabs/tabs.js +6 -13
- package/dist/cjs/packages/textarea/textarea.js +1 -1
- package/dist/cjs/packages/timeselect/style/style.css +12 -0
- package/dist/cjs/packages/tour/style/style.css +12 -0
- package/dist/cjs/utils/get-rect-by-taro.d.ts +1 -1
- package/dist/cjs/utils/get-rect-by-taro.js +4 -1
- package/dist/cjs/utils/get-system-info.js +4 -5
- package/dist/cjs/utils/merge.d.ts +14 -0
- package/dist/cjs/utils/merge.js +98 -0
- package/dist/cjs/utils/platform-taro.js +4 -5
- package/dist/cjs/utils/to-array.d.ts +1 -0
- package/dist/cjs/utils/to-array.js +18 -0
- package/dist/es/hooks/use-client-rect.js +1 -0
- package/dist/es/packages/actionsheet/style/style.css +12 -0
- package/dist/es/packages/address/style/style.css +12 -0
- package/dist/es/packages/calendar/style/style.css +12 -0
- package/dist/es/packages/cascader/style/style.css +12 -0
- package/dist/es/packages/configprovider/types.d.ts +1 -1
- package/dist/es/packages/datepicker/datepicker.js +8 -6
- package/dist/es/packages/datepicker/style/style.css +82 -0
- package/dist/es/packages/datepickerview/datepickerview.d.ts +3 -0
- package/dist/es/packages/datepickerview/datepickerview.js +107 -0
- package/dist/es/packages/datepickerview/index.d.ts +3 -0
- package/dist/es/packages/datepickerview/index.js +2 -0
- package/dist/es/packages/datepickerview/style/datepickerview.scss +4 -0
- package/dist/es/packages/datepickerview/style/index.js +2 -0
- package/dist/es/packages/datepickerview/style/style.css +78 -0
- package/dist/es/packages/datepickerview/style/style.harmony.css +8 -0
- package/dist/es/packages/datepickerview/types.d.ts +15 -0
- package/dist/es/packages/datepickerview/types.js +1 -0
- package/dist/es/packages/dialog/dialog.js +8 -3
- package/dist/es/packages/dialog/style/dialog.scss +0 -1
- package/dist/es/packages/dialog/style/style.css +0 -1
- package/dist/es/packages/dialog/style/style.harmony.css +0 -1
- package/dist/es/packages/drag/drag.js +33 -39
- package/dist/es/packages/drag/style/drag.scss +1 -0
- package/dist/es/packages/drag/style/style.css +1 -0
- package/dist/es/packages/drag/style/style.harmony.css +1 -0
- package/dist/es/packages/fixednav/fixednav.js +20 -14
- package/dist/es/packages/fixednav/style/fixednav.scss +0 -15
- package/dist/es/packages/fixednav/style/style.css +0 -14
- package/dist/es/packages/fixednav/style/style.harmony.css +0 -14
- package/dist/es/packages/form/form.d.ts +10 -0
- package/dist/es/packages/form/form.js +11 -2
- package/dist/es/packages/form/index.d.ts +2 -1
- package/dist/es/packages/form/index.js +2 -1
- package/dist/es/packages/form/style/form.scss +0 -66
- package/dist/es/packages/form/style/style.css +31 -21
- package/dist/es/packages/form/style/style.harmony.css +1 -67
- package/dist/es/packages/form/types.d.ts +2 -1
- package/dist/es/packages/form/useform.d.ts +2 -1
- package/dist/es/packages/form/useform.js +336 -248
- package/dist/es/packages/formitem/formitem.d.ts +1 -0
- package/dist/es/packages/formitem/formitem.js +58 -46
- package/dist/es/packages/formitem/style/formitem.scss +101 -21
- package/dist/es/packages/formitem/style/style.css +89 -12
- package/dist/es/packages/formitem/style/style.harmony.css +89 -12
- package/dist/es/packages/imagepreview/style/style.css +12 -0
- package/dist/es/packages/input/input.js +5 -2
- package/dist/es/packages/input/style/input.scss +6 -4
- package/dist/es/packages/input/style/style.css +4 -0
- package/dist/es/packages/input/style/style.harmony.css +8 -0
- package/dist/es/packages/numberkeyboard/style/style.css +12 -0
- package/dist/es/packages/nutui.react.build.d.ts +11 -15
- package/dist/es/packages/nutui.react.build.js +11 -15
- package/dist/es/packages/overlay/overlay.js +4 -5
- package/dist/es/packages/overlay/style/overlay.scss +0 -4
- package/dist/es/packages/picker/style/index.js +1 -0
- package/dist/es/packages/picker/style/style.css +82 -0
- package/dist/es/packages/popover/style/style.css +12 -0
- package/dist/es/packages/popup/popup.js +17 -11
- package/dist/es/packages/popup/style/popup.scss +12 -4
- package/dist/es/packages/popup/style/style.css +12 -0
- package/dist/es/packages/popup/style/style.harmony.css +12 -0
- package/dist/es/packages/shortpassword/shortpassword.js +5 -7
- package/dist/es/packages/shortpassword/style/shortpassword.scss +10 -0
- package/dist/es/packages/shortpassword/style/style.css +21 -0
- package/dist/es/packages/shortpassword/style/style.harmony.css +9 -0
- package/dist/es/packages/signature/signature.js +2 -2
- package/dist/es/packages/swipe/style/style.css +3 -3
- package/dist/es/packages/swipe/style/style.harmony.css +3 -3
- package/dist/es/packages/swipe/style/swipe.scss +7 -3
- package/dist/es/packages/swipe/swipe.js +14 -15
- package/dist/es/packages/tabbar/style/style.css +6 -0
- package/dist/es/packages/tabbaritem/style/style.css +6 -0
- package/dist/es/packages/tabbaritem/style/style.harmony.css +6 -0
- package/dist/es/packages/tabbaritem/style/tabbaritem.scss +6 -0
- package/dist/es/packages/tabs/tabs.js +6 -13
- package/dist/es/packages/textarea/textarea.js +2 -2
- package/dist/es/packages/timeselect/style/style.css +12 -0
- package/dist/es/packages/tour/style/style.css +12 -0
- package/dist/es/utils/get-rect-by-taro.d.ts +1 -1
- package/dist/es/utils/get-rect-by-taro.js +4 -1
- package/dist/es/utils/get-system-info.js +4 -4
- package/dist/es/utils/merge.d.ts +14 -0
- package/dist/es/utils/merge.js +68 -0
- package/dist/es/utils/platform-taro.js +4 -4
- package/dist/es/utils/to-array.d.ts +1 -0
- package/dist/es/utils/to-array.js +8 -0
- package/dist/nutui.react.umd.js +5593 -5442
- package/dist/style.css +1 -1
- package/dist/style.scss +34 -36
- package/dist/styles/variables-jmapp.scss +0 -50
- package/dist/styles/variables-jrkf.scss +0 -50
- package/dist/styles/variables.scss +0 -49
- package/package.json +1 -1
- package/dist/cjs/packages/sidenavbar/context.d.ts +0 -1
- package/dist/cjs/packages/sidenavbar/context.js +0 -12
- package/dist/cjs/packages/sidenavbar/index.d.ts +0 -3
- package/dist/cjs/packages/sidenavbar/index.js +0 -12
- package/dist/cjs/packages/sidenavbar/sidenavbar.d.ts +0 -14
- package/dist/cjs/packages/sidenavbar/sidenavbar.js +0 -75
- package/dist/cjs/packages/sidenavbar/style/index.js +0 -2
- package/dist/cjs/packages/sidenavbar/style/sidenavbar.scss +0 -89
- package/dist/cjs/packages/sidenavbar/style/style.css +0 -443
- package/dist/cjs/packages/sidenavbar/style/style.harmony.css +0 -74
- package/dist/cjs/packages/sidenavbar/utils.d.ts +0 -3
- package/dist/cjs/packages/sidenavbar/utils.js +0 -23
- package/dist/cjs/packages/sidenavbaritem/index.d.ts +0 -3
- package/dist/cjs/packages/sidenavbaritem/index.js +0 -12
- package/dist/cjs/packages/sidenavbaritem/sidenavbaritem.d.ts +0 -11
- package/dist/cjs/packages/sidenavbaritem/sidenavbaritem.js +0 -34
- package/dist/cjs/packages/sidenavbaritem/style/index.js +0 -1
- package/dist/cjs/packages/sidenavbaritem/style/sidenavbaritem.scss +0 -13
- package/dist/cjs/packages/sidenavbaritem/style/style.css +0 -14
- package/dist/cjs/packages/sidenavbaritem/style/style.harmony.css +0 -14
- package/dist/cjs/packages/subsidenavbar/index.d.ts +0 -3
- package/dist/cjs/packages/subsidenavbar/style/css.js +0 -1
- package/dist/cjs/packages/subsidenavbar/style/index.js +0 -1
- package/dist/cjs/packages/subsidenavbar/style/style.css +0 -20
- package/dist/cjs/packages/subsidenavbar/style/style.harmony.css +0 -20
- package/dist/cjs/packages/subsidenavbar/style/subsidenavbar.scss +0 -26
- package/dist/cjs/packages/subsidenavbar/subsidenavbar.d.ts +0 -13
- package/dist/cjs/packages/subsidenavbar/subsidenavbar.js +0 -90
- package/dist/es/packages/sidenavbar/context.d.ts +0 -1
- package/dist/es/packages/sidenavbar/context.js +0 -2
- package/dist/es/packages/sidenavbar/index.d.ts +0 -3
- package/dist/es/packages/sidenavbar/index.js +0 -2
- package/dist/es/packages/sidenavbar/sidenavbar.d.ts +0 -38
- package/dist/es/packages/sidenavbar/sidenavbar.js +0 -63
- package/dist/es/packages/sidenavbar/style/css.js +0 -1
- package/dist/es/packages/sidenavbar/style/index.js +0 -2
- package/dist/es/packages/sidenavbar/style/sidenavbar.scss +0 -89
- package/dist/es/packages/sidenavbar/style/style.css +0 -443
- package/dist/es/packages/sidenavbar/style/style.harmony.css +0 -74
- package/dist/es/packages/sidenavbar/utils.d.ts +0 -3
- package/dist/es/packages/sidenavbar/utils.js +0 -14
- package/dist/es/packages/sidenavbaritem/index.d.ts +0 -3
- package/dist/es/packages/sidenavbaritem/index.js +0 -2
- package/dist/es/packages/sidenavbaritem/sidenavbaritem.d.ts +0 -11
- package/dist/es/packages/sidenavbaritem/sidenavbaritem.js +0 -23
- package/dist/es/packages/sidenavbaritem/style/css.js +0 -1
- package/dist/es/packages/sidenavbaritem/style/index.js +0 -1
- package/dist/es/packages/sidenavbaritem/style/sidenavbaritem.scss +0 -13
- package/dist/es/packages/sidenavbaritem/style/style.css +0 -14
- package/dist/es/packages/sidenavbaritem/style/style.harmony.css +0 -14
- package/dist/es/packages/subsidenavbar/index.d.ts +0 -3
- package/dist/es/packages/subsidenavbar/index.js +0 -2
- package/dist/es/packages/subsidenavbar/style/css.js +0 -1
- package/dist/es/packages/subsidenavbar/style/index.js +0 -1
- package/dist/es/packages/subsidenavbar/style/style.css +0 -20
- package/dist/es/packages/subsidenavbar/style/style.harmony.css +0 -20
- package/dist/es/packages/subsidenavbar/style/subsidenavbar.scss +0 -26
- package/dist/es/packages/subsidenavbar/subsidenavbar.d.ts +0 -13
- package/dist/es/packages/subsidenavbar/subsidenavbar.js +0 -79
- /package/dist/cjs/packages/{sidenavbar → datepickerview}/style/css.js +0 -0
- /package/dist/{cjs/packages/sidenavbaritem → es/packages/datepickerview}/style/css.js +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BasicComponent } from "../../utils/typings";
|
|
2
|
+
import { PickerOptions, PickerValue, PickerOption } from "../pickerview/types";
|
|
3
|
+
export interface DatePickerViewProps extends BasicComponent {
|
|
4
|
+
value?: Date;
|
|
5
|
+
defaultValue?: Date;
|
|
6
|
+
type: 'date' | 'time' | 'year-month' | 'month-day' | 'datehour' | 'datetime' | 'hour-minutes';
|
|
7
|
+
showChinese: boolean;
|
|
8
|
+
minuteStep: number;
|
|
9
|
+
startDate: Date;
|
|
10
|
+
endDate: Date;
|
|
11
|
+
threeDimensional: boolean;
|
|
12
|
+
formatter: (type: string, option: PickerOption) => PickerOption;
|
|
13
|
+
filter: (type: string, options: PickerOptions) => PickerOptions;
|
|
14
|
+
onChange: (selectedOptions: PickerOptions, selectedValue: PickerValue[], columnIndex: number) => void;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -17,6 +17,7 @@ import { customEvents, useCustomEvent, useCustomEventsPath, useParams } from "..
|
|
|
17
17
|
import { useLockScrollTaro } from "../../hooks/use-lock-scoll-taro";
|
|
18
18
|
import { mergeProps } from "../../utils/merge-props";
|
|
19
19
|
import { defaultOverlayProps } from "../overlay/overlay";
|
|
20
|
+
import { harmony } from "../../utils/platform-taro";
|
|
20
21
|
var defaultProps = _object_spread_props(_object_spread({}, defaultOverlayProps, defaultContentProps), {
|
|
21
22
|
title: '',
|
|
22
23
|
content: '',
|
|
@@ -172,6 +173,8 @@ export var BaseDialog = function(props) {
|
|
|
172
173
|
}
|
|
173
174
|
};
|
|
174
175
|
var renderContent = function() {
|
|
176
|
+
var contentZIndex = harmony() ? zIndex + 1 : zIndex // 解决harmony层级问题
|
|
177
|
+
;
|
|
175
178
|
return /*#__PURE__*/ React.createElement(CSSTransition, {
|
|
176
179
|
in: visible,
|
|
177
180
|
timeout: 300,
|
|
@@ -180,7 +183,9 @@ export var BaseDialog = function(props) {
|
|
|
180
183
|
appear: true
|
|
181
184
|
}, /*#__PURE__*/ React.createElement(Content, {
|
|
182
185
|
className: className,
|
|
183
|
-
style:
|
|
186
|
+
style: _object_spread({
|
|
187
|
+
zIndex: contentZIndex
|
|
188
|
+
}, style),
|
|
184
189
|
title: title,
|
|
185
190
|
header: header,
|
|
186
191
|
close: renderCloseIcon(),
|
|
@@ -195,7 +200,7 @@ export var BaseDialog = function(props) {
|
|
|
195
200
|
},
|
|
196
201
|
ref: refObject,
|
|
197
202
|
catchMove: lockScroll
|
|
198
|
-
}, overlay
|
|
203
|
+
}, overlay && /*#__PURE__*/ React.createElement(Overlay, {
|
|
199
204
|
zIndex: zIndex,
|
|
200
205
|
visible: visible,
|
|
201
206
|
style: overlayStyle,
|
|
@@ -203,7 +208,7 @@ export var BaseDialog = function(props) {
|
|
|
203
208
|
closeOnOverlayClick: closeOnOverlayClick,
|
|
204
209
|
lockScroll: lockScroll,
|
|
205
210
|
onClick: onHandleClickOverlay
|
|
206
|
-
}, renderContent())
|
|
211
|
+
}), renderContent());
|
|
207
212
|
};
|
|
208
213
|
export function open(selector, options) {
|
|
209
214
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
@@ -470,7 +470,6 @@
|
|
|
470
470
|
-webkit-transform: translate(-50%, -50%);
|
|
471
471
|
transform: translate(-50%, -50%);
|
|
472
472
|
border-radius: var(--nutui-dialog-border-radius, var(--nutui-radius-xl, 12px));
|
|
473
|
-
z-index: var(--nutui-dialog-z-index, 1200);
|
|
474
473
|
animation-duration: 0.3s;
|
|
475
474
|
}
|
|
476
475
|
.nut-dialog-close {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator";
|
|
2
2
|
import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
|
|
3
3
|
import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
|
|
4
|
-
import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties";
|
|
5
4
|
import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
|
|
6
5
|
import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
|
|
7
6
|
import React, { useState, useEffect, useRef } from "react";
|
|
8
|
-
import {
|
|
9
|
-
import { getWindowInfo } from "../../utils/get-system-info";
|
|
7
|
+
import { View } from "@tarojs/components";
|
|
10
8
|
import { ComponentDefaults } from "../../utils/typings";
|
|
11
9
|
import { getRectByTaro } from "../../utils/get-rect-by-taro";
|
|
10
|
+
import { getWindowInfo } from "../../utils/get-system-info";
|
|
11
|
+
import { web } from "../../utils/platform-taro";
|
|
12
12
|
var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
13
13
|
attract: false,
|
|
14
14
|
direction: undefined,
|
|
@@ -21,17 +21,7 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
|
21
21
|
className: 'myDrag'
|
|
22
22
|
});
|
|
23
23
|
export var Drag = function(props) {
|
|
24
|
-
var
|
|
25
|
-
"attract",
|
|
26
|
-
"direction",
|
|
27
|
-
"boundary",
|
|
28
|
-
"onDrag",
|
|
29
|
-
"onDragStart",
|
|
30
|
-
"onDragEnd",
|
|
31
|
-
"children",
|
|
32
|
-
"className",
|
|
33
|
-
"style"
|
|
34
|
-
]);
|
|
24
|
+
var _$_object_spread = _object_spread({}, defaultProps, props), attract = _$_object_spread.attract, direction = _$_object_spread.direction, boundary = _$_object_spread.boundary, onDrag = _$_object_spread.onDrag, onDragStart = _$_object_spread.onDragStart, onDragEnd = _$_object_spread.onDragEnd, children = _$_object_spread.children, className = _$_object_spread.className, style = _$_object_spread.style;
|
|
35
25
|
var classPrefix = 'nut-drag';
|
|
36
26
|
var _useState = _sliced_to_array(useState(boundary), 2), boundaryState = _useState[0], setBoundaryState = _useState[1];
|
|
37
27
|
var myDrag = useRef(null);
|
|
@@ -51,7 +41,7 @@ export var Drag = function(props) {
|
|
|
51
41
|
var middleLine = useRef(0);
|
|
52
42
|
var getInfo = /*#__PURE__*/ function() {
|
|
53
43
|
var _ref = _async_to_generator(function() {
|
|
54
|
-
var el,
|
|
44
|
+
var el, top, left, bottom, right, _getWindowInfo, screenWidth, windowHeight, _ref, width, height, dragTop, dragLeft;
|
|
55
45
|
return _ts_generator(this, function(_state) {
|
|
56
46
|
switch(_state.label){
|
|
57
47
|
case 0:
|
|
@@ -67,17 +57,14 @@ export var Drag = function(props) {
|
|
|
67
57
|
getRectByTaro(dragRef.current)
|
|
68
58
|
];
|
|
69
59
|
case 1:
|
|
70
|
-
_ref = _state.sent(), width = _ref.width, height = _ref.height;
|
|
71
|
-
(
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
});
|
|
79
|
-
middleLine.current = screenWidth - rec.width - rec.left - (screenWidth - rec.width) / 2;
|
|
80
|
-
}).exec();
|
|
60
|
+
_ref = _state.sent(), width = _ref.width, height = _ref.height, dragTop = _ref.top, dragLeft = _ref.left;
|
|
61
|
+
setBoundaryState({
|
|
62
|
+
top: -dragTop + top,
|
|
63
|
+
left: -dragLeft + left,
|
|
64
|
+
bottom: windowHeight - dragTop - bottom - Math.ceil(height),
|
|
65
|
+
right: screenWidth - dragLeft - right - Math.ceil(width)
|
|
66
|
+
});
|
|
67
|
+
middleLine.current = screenWidth - width - dragLeft - (screenWidth - width) / 2;
|
|
81
68
|
_state.label = 2;
|
|
82
69
|
case 2:
|
|
83
70
|
return [
|
|
@@ -132,7 +119,7 @@ export var Drag = function(props) {
|
|
|
132
119
|
});
|
|
133
120
|
}
|
|
134
121
|
};
|
|
135
|
-
var touchEnd = function(
|
|
122
|
+
var touchEnd = function() {
|
|
136
123
|
onDragEnd === null || onDragEnd === void 0 ? void 0 : onDragEnd({
|
|
137
124
|
offset: [
|
|
138
125
|
translateX.current,
|
|
@@ -152,27 +139,34 @@ export var Drag = function(props) {
|
|
|
152
139
|
}
|
|
153
140
|
};
|
|
154
141
|
useEffect(function() {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
142
|
+
if (dragRef.current) {
|
|
143
|
+
if (web()) {
|
|
144
|
+
timer.current = window.setTimeout(function() {
|
|
145
|
+
getInfo();
|
|
146
|
+
}, 300);
|
|
147
|
+
} else {
|
|
148
|
+
getInfo();
|
|
149
|
+
}
|
|
150
|
+
}
|
|
158
151
|
return function() {
|
|
159
152
|
clearTimeout(timer.current);
|
|
160
153
|
};
|
|
161
|
-
}, [
|
|
162
|
-
|
|
154
|
+
}, [
|
|
155
|
+
dragRef.current
|
|
156
|
+
]);
|
|
157
|
+
return /*#__PURE__*/ React.createElement(View, {
|
|
163
158
|
style: style,
|
|
164
|
-
className: "".concat(classPrefix, " ").concat(className)
|
|
165
|
-
}, reset), {
|
|
159
|
+
className: "".concat(classPrefix, " ").concat(className),
|
|
166
160
|
ref: myDrag
|
|
167
|
-
}
|
|
161
|
+
}, /*#__PURE__*/ React.createElement(View, {
|
|
168
162
|
className: "".concat(classPrefix, "-inner"),
|
|
169
|
-
onTouchStart: function(event) {
|
|
170
|
-
return touchStart(event);
|
|
171
|
-
},
|
|
172
163
|
ref: dragRef,
|
|
164
|
+
catchMove: true,
|
|
165
|
+
// @ts-ignore
|
|
166
|
+
onTouchStart: touchStart,
|
|
167
|
+
// @ts-ignore
|
|
173
168
|
onTouchMove: touchMove,
|
|
174
169
|
onTouchEnd: touchEnd,
|
|
175
|
-
// eslint-disable-next-line react/no-unknown-property
|
|
176
170
|
style: currstyle
|
|
177
171
|
}, children));
|
|
178
172
|
};
|
|
@@ -7,6 +7,7 @@ import { View } from "@tarojs/components";
|
|
|
7
7
|
import Overlay from "../overlay/index";
|
|
8
8
|
import { useConfig } from "../configprovider/index";
|
|
9
9
|
import { defaultOverlayProps } from "../overlay/overlay";
|
|
10
|
+
import Badge from "../badge/index";
|
|
10
11
|
var defaultProps = _object_spread_props(_object_spread({}, defaultOverlayProps), {
|
|
11
12
|
activeText: '',
|
|
12
13
|
inactiveText: '',
|
|
@@ -28,6 +29,20 @@ export var FixedNav = function(props) {
|
|
|
28
29
|
var classes = classNames(classPrefix, {
|
|
29
30
|
active: visible
|
|
30
31
|
}, type, className);
|
|
32
|
+
var renderListItem = function(item, index) {
|
|
33
|
+
return /*#__PURE__*/ React.createElement(View, {
|
|
34
|
+
className: "".concat(classPrefix, "-list-item"),
|
|
35
|
+
onClick: function(event) {
|
|
36
|
+
return onSelect(item, event);
|
|
37
|
+
},
|
|
38
|
+
key: item.id || index
|
|
39
|
+
}, /*#__PURE__*/ React.isValidElement(item.icon) ? item.icon : /*#__PURE__*/ React.createElement("img", {
|
|
40
|
+
src: item.icon,
|
|
41
|
+
alt: ""
|
|
42
|
+
}), /*#__PURE__*/ React.createElement(View, {
|
|
43
|
+
className: "".concat(classPrefix, "-list-text")
|
|
44
|
+
}, item.text));
|
|
45
|
+
};
|
|
31
46
|
return /*#__PURE__*/ React.createElement(View, {
|
|
32
47
|
className: classes,
|
|
33
48
|
style: _object_spread({}, position, style)
|
|
@@ -42,20 +57,11 @@ export var FixedNav = function(props) {
|
|
|
42
57
|
}, children || /*#__PURE__*/ React.createElement(View, {
|
|
43
58
|
className: "".concat(classPrefix, "-list")
|
|
44
59
|
}, list.map(function(item, index) {
|
|
45
|
-
return /*#__PURE__*/ React.createElement(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
key: item.id || index
|
|
51
|
-
}, /*#__PURE__*/ React.isValidElement(item.icon) ? item.icon : /*#__PURE__*/ React.createElement("img", {
|
|
52
|
-
src: item.icon,
|
|
53
|
-
alt: ""
|
|
54
|
-
}), /*#__PURE__*/ React.createElement(View, {
|
|
55
|
-
className: "".concat(classPrefix, "-list-text")
|
|
56
|
-
}, item.text), item.num && /*#__PURE__*/ React.createElement(View, {
|
|
57
|
-
className: "b"
|
|
58
|
-
}, item.num));
|
|
60
|
+
return /*#__PURE__*/ React.createElement(React.Fragment, null, item.num ? /*#__PURE__*/ React.createElement(Badge, {
|
|
61
|
+
value: item.num,
|
|
62
|
+
top: 8,
|
|
63
|
+
right: 6
|
|
64
|
+
}, renderListItem(item, index)) : /*#__PURE__*/ React.createElement(React.Fragment, null, renderListItem(item, index)));
|
|
59
65
|
}))), /*#__PURE__*/ React.createElement(View, {
|
|
60
66
|
className: "".concat(classPrefix, "-btn"),
|
|
61
67
|
onClick: function() {
|
|
@@ -95,21 +95,6 @@
|
|
|
95
95
|
.nut-fixednav-list-text {
|
|
96
96
|
font-size: 10px;
|
|
97
97
|
}
|
|
98
|
-
|
|
99
|
-
.b {
|
|
100
|
-
position: absolute;
|
|
101
|
-
right: 0;
|
|
102
|
-
top: 1px;
|
|
103
|
-
height: 14px;
|
|
104
|
-
line-height: 14px;
|
|
105
|
-
font-size: 10px;
|
|
106
|
-
padding: 0 3px;
|
|
107
|
-
color: white;
|
|
108
|
-
background: $color-primary;
|
|
109
|
-
border-radius: 7px;
|
|
110
|
-
text-align: center;
|
|
111
|
-
min-width: 12px;
|
|
112
|
-
}
|
|
113
98
|
}
|
|
114
99
|
}
|
|
115
100
|
|
|
@@ -136,20 +136,6 @@
|
|
|
136
136
|
.nut-fixednav-list-item .nut-fixednav-list-text {
|
|
137
137
|
font-size: 10px;
|
|
138
138
|
}
|
|
139
|
-
.nut-fixednav-list-item .b {
|
|
140
|
-
position: absolute;
|
|
141
|
-
right: 0;
|
|
142
|
-
top: 1px;
|
|
143
|
-
height: 14px;
|
|
144
|
-
line-height: 14px;
|
|
145
|
-
font-size: 10px;
|
|
146
|
-
padding: 0 3px;
|
|
147
|
-
color: white;
|
|
148
|
-
background: var(--nutui-color-primary, #ff0f23);
|
|
149
|
-
border-radius: 7px;
|
|
150
|
-
text-align: center;
|
|
151
|
-
min-width: 12px;
|
|
152
|
-
}
|
|
153
139
|
.nut-fixednav.left {
|
|
154
140
|
right: auto;
|
|
155
141
|
left: 0;
|
|
@@ -81,20 +81,6 @@
|
|
|
81
81
|
.nut-fixednav-list-item .nut-fixednav-list-text {
|
|
82
82
|
font-size: 10px;
|
|
83
83
|
}
|
|
84
|
-
.nut-fixednav-list-item .b {
|
|
85
|
-
position: absolute;
|
|
86
|
-
right: 0;
|
|
87
|
-
top: 1px;
|
|
88
|
-
height: 14px;
|
|
89
|
-
line-height: 14px;
|
|
90
|
-
font-size: 10px;
|
|
91
|
-
padding: 0 3px;
|
|
92
|
-
color: white;
|
|
93
|
-
background: #ff0f23;
|
|
94
|
-
border-radius: 7px;
|
|
95
|
-
text-align: center;
|
|
96
|
-
min-width: 12px;
|
|
97
|
-
}
|
|
98
84
|
.nut-fixednav.left {
|
|
99
85
|
right: auto;
|
|
100
86
|
left: 0;
|
|
@@ -22,8 +22,18 @@ export interface FormProps extends TFormProps {
|
|
|
22
22
|
* @default -
|
|
23
23
|
*/
|
|
24
24
|
form: any
|
|
25
|
+
/**
|
|
26
|
+
* 是否禁用
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
disabled: boolean
|
|
25
30
|
divider: boolean;
|
|
26
31
|
/**
|
|
32
|
+
* 统一设置字段触发验证的时机
|
|
33
|
+
* @default onChange
|
|
34
|
+
*/
|
|
35
|
+
validateTrigger: string | string[] | false
|
|
36
|
+
/**
|
|
27
37
|
* 表单项 label 的位置
|
|
28
38
|
* @default 'left'\
|
|
29
39
|
*/
|
|
@@ -12,7 +12,9 @@ import Cell from "../cell/index";
|
|
|
12
12
|
var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
13
13
|
labelPosition: 'right',
|
|
14
14
|
starPosition: 'left',
|
|
15
|
+
disabled: false,
|
|
15
16
|
divider: false,
|
|
17
|
+
validateTrigger: 'onChange',
|
|
16
18
|
onFinish: function(values) {},
|
|
17
19
|
onFinishFailed: function(values, errorFields) {}
|
|
18
20
|
});
|
|
@@ -23,15 +25,17 @@ var PositionInfo = {
|
|
|
23
25
|
};
|
|
24
26
|
export var Form = /*#__PURE__*/ React.forwardRef(function(props, ref) {
|
|
25
27
|
var classPrefix = 'nut-form';
|
|
26
|
-
var _ref = _object_spread({}, defaultProps, props), className = _ref.className, style = _ref.style, footer = _ref.footer, children = _ref.children, initialValues = _ref.initialValues, divider = _ref.divider, onFinish = _ref.onFinish, onFinishFailed = _ref.onFinishFailed, labelPosition = _ref.labelPosition, starPosition = _ref.starPosition, form = _ref.form, rest = _object_without_properties(_ref, [
|
|
28
|
+
var _ref = _object_spread({}, defaultProps, props), className = _ref.className, style = _ref.style, footer = _ref.footer, children = _ref.children, initialValues = _ref.initialValues, divider = _ref.divider, disabled = _ref.disabled, onFinish = _ref.onFinish, onFinishFailed = _ref.onFinishFailed, validateTrigger = _ref.validateTrigger, labelPosition = _ref.labelPosition, starPosition = _ref.starPosition, form = _ref.form, rest = _object_without_properties(_ref, [
|
|
27
29
|
"className",
|
|
28
30
|
"style",
|
|
29
31
|
"footer",
|
|
30
32
|
"children",
|
|
31
33
|
"initialValues",
|
|
32
34
|
"divider",
|
|
35
|
+
"disabled",
|
|
33
36
|
"onFinish",
|
|
34
37
|
"onFinishFailed",
|
|
38
|
+
"validateTrigger",
|
|
35
39
|
"labelPosition",
|
|
36
40
|
"starPosition",
|
|
37
41
|
"form"
|
|
@@ -78,7 +82,12 @@ export var Form = /*#__PURE__*/ React.forwardRef(function(props, ref) {
|
|
|
78
82
|
}), /*#__PURE__*/ React.createElement(Cell.Group, {
|
|
79
83
|
divider: divider
|
|
80
84
|
}, /*#__PURE__*/ React.createElement(Context.Provider, {
|
|
81
|
-
value:
|
|
85
|
+
value: {
|
|
86
|
+
formInstance: formInstance,
|
|
87
|
+
labelPosition: labelPosition,
|
|
88
|
+
disabled: disabled,
|
|
89
|
+
validateTrigger: validateTrigger
|
|
90
|
+
}
|
|
82
91
|
}, children), footer ? /*#__PURE__*/ React.createElement(Cell, {
|
|
83
92
|
className: "".concat(classPrefix, "-footer")
|
|
84
93
|
}, footer) : null));
|
|
@@ -2,11 +2,12 @@ import React from 'react';
|
|
|
2
2
|
import { FormProps } from "./form";
|
|
3
3
|
import { FormItem } from "../formitem/formitem";
|
|
4
4
|
import { FormInstance } from './types';
|
|
5
|
-
import { useForm } from "./useform";
|
|
5
|
+
import { useForm, useWatch } from "./useform";
|
|
6
6
|
export type { FormItemRuleWithoutValidator, FormInstance, FormFieldEntity, } from './types';
|
|
7
7
|
type CompoundedComponent = React.ForwardRefExoticComponent<Partial<FormProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> & React.RefAttributes<FormInstance>> & {
|
|
8
8
|
Item: typeof FormItem;
|
|
9
9
|
useForm: typeof useForm;
|
|
10
|
+
useWatch: typeof useWatch;
|
|
10
11
|
};
|
|
11
12
|
declare const InnerForm: CompoundedComponent;
|
|
12
13
|
export default InnerForm;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Form } from "./form";
|
|
3
3
|
import { FormItem } from "../formitem/formitem";
|
|
4
|
-
import { useForm } from "./useform";
|
|
4
|
+
import { useForm, useWatch } from "./useform";
|
|
5
5
|
var InnerForm = Form;
|
|
6
6
|
InnerForm.Item = FormItem;
|
|
7
7
|
InnerForm.useForm = useForm;
|
|
8
|
+
InnerForm.useWatch = useWatch;
|
|
8
9
|
export default InnerForm;
|
|
@@ -1,67 +1 @@
|
|
|
1
|
-
.form-layout-right .nut-form-item-label {
|
|
2
|
-
text-align: right;
|
|
3
|
-
padding-right: 24px;
|
|
4
|
-
white-space: nowrap;
|
|
5
|
-
}
|
|
6
1
|
|
|
7
|
-
.form-layout-left .nut-form-item-label {
|
|
8
|
-
position: relative;
|
|
9
|
-
text-align: left;
|
|
10
|
-
padding-left: 12px;
|
|
11
|
-
white-space: nowrap;
|
|
12
|
-
|
|
13
|
-
.required {
|
|
14
|
-
display: block;
|
|
15
|
-
line-height: 1.5;
|
|
16
|
-
position: absolute;
|
|
17
|
-
left: 0.1em;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.form-layout-top .nut-form-item {
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
align-items: flex-start;
|
|
24
|
-
white-space: nowrap;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.form-layout-top .nut-form-item-label {
|
|
28
|
-
padding-bottom: 4px;
|
|
29
|
-
display: block;
|
|
30
|
-
padding-right: 24px;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.form-layout-top .nut-form-item-body {
|
|
34
|
-
margin-left: 0;
|
|
35
|
-
width: 100%;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
[dir='rtl'] .form-layout-right .nut-form-item-label,
|
|
39
|
-
.nut-rtl .form-layout-right .nut-form-item-label {
|
|
40
|
-
text-align: left;
|
|
41
|
-
padding-right: 0;
|
|
42
|
-
padding-left: 24px;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
[dir='rtl'] .form-layout-left .nut-form-item-label,
|
|
46
|
-
.nut-rtl .form-layout-left .nut-form-item-label {
|
|
47
|
-
text-align: right;
|
|
48
|
-
padding-left: 0;
|
|
49
|
-
padding-right: 12px;
|
|
50
|
-
|
|
51
|
-
.required {
|
|
52
|
-
left: auto;
|
|
53
|
-
right: 0.1em;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
[dir='rtl'] .form-layout-top .nut-form-item-label,
|
|
58
|
-
.nut-rtl .form-layout-top .nut-form-item-label {
|
|
59
|
-
padding-right: 0;
|
|
60
|
-
padding-left: 24px;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
[dir='rtl'] .form-layout-top .nut-form-item-body,
|
|
64
|
-
.nut-rtl .form-layout-top .nut-form-item-body {
|
|
65
|
-
margin-left: 0;
|
|
66
|
-
margin-right: 0;
|
|
67
|
-
}
|
|
@@ -142,32 +142,38 @@
|
|
|
142
142
|
|
|
143
143
|
.nut-form-item {
|
|
144
144
|
display: flex;
|
|
145
|
-
|
|
146
|
-
padding: 4px 12px;
|
|
145
|
+
line-height: unset;
|
|
147
146
|
}
|
|
148
|
-
.nut-form-item
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
transition: transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms;
|
|
147
|
+
.nut-form-item-disabled {
|
|
148
|
+
opacity: 0.4;
|
|
149
|
+
pointer-events: none;
|
|
152
150
|
}
|
|
153
151
|
.nut-form-item-label {
|
|
152
|
+
display: flex;
|
|
153
|
+
flex-direction: row;
|
|
154
154
|
font-size: var(--nutui-form-item-label-font-size, var(--nutui-font-size-base, 14px));
|
|
155
155
|
font-weight: normal;
|
|
156
156
|
width: var(--nutui-form-item-label-width, 90px);
|
|
157
157
|
margin-right: var(--nutui-form-item-label-margin-right, 10px);
|
|
158
|
-
flex:
|
|
159
|
-
display: inline-block !important;
|
|
158
|
+
flex: 0 0 auto;
|
|
160
159
|
word-wrap: break-word;
|
|
161
160
|
text-align: var(--nutui-form-item-label-text-align, left);
|
|
161
|
+
line-height: unset;
|
|
162
162
|
}
|
|
163
|
-
.nut-form-item-label
|
|
164
|
-
content: "*";
|
|
163
|
+
.nut-form-item-label-required {
|
|
165
164
|
color: var(--nutui-form-item-required-color, var(--nutui-color-primary, #ff0f23));
|
|
166
165
|
margin-right: var(--nutui-form-item-required-margin-right, 4px);
|
|
166
|
+
display: block;
|
|
167
|
+
position: absolute;
|
|
168
|
+
left: -10px;
|
|
169
|
+
}
|
|
170
|
+
.nut-form-item .nut-form-item-labeltxt {
|
|
171
|
+
position: relative;
|
|
172
|
+
font-size: 12px;
|
|
167
173
|
}
|
|
168
174
|
.nut-form-item-body {
|
|
169
175
|
flex: 1;
|
|
170
|
-
display: flex
|
|
176
|
+
display: flex;
|
|
171
177
|
flex-direction: column;
|
|
172
178
|
}
|
|
173
179
|
.nut-form-item-body-slots {
|
|
@@ -177,6 +183,9 @@
|
|
|
177
183
|
padding: 0;
|
|
178
184
|
border: 0;
|
|
179
185
|
}
|
|
186
|
+
.nut-form-item-body-slots .nut-input-container {
|
|
187
|
+
height: auto;
|
|
188
|
+
}
|
|
180
189
|
.nut-form-item-body-slots .nut-input-text {
|
|
181
190
|
font-size: var(--nutui-form-item-body-font-size, var(--nutui-font-size-base, 14px));
|
|
182
191
|
text-align: var(--nutui-form-item-body-input-text-align, left);
|
|
@@ -191,7 +200,7 @@
|
|
|
191
200
|
min-height: 24px;
|
|
192
201
|
}
|
|
193
202
|
.nut-form-item-body-slots .nut-textarea {
|
|
194
|
-
padding: 0
|
|
203
|
+
padding: 0;
|
|
195
204
|
}
|
|
196
205
|
.nut-form-item-body-slots .nut-textarea .nut-textarea-textarea {
|
|
197
206
|
font: inherit;
|
|
@@ -237,38 +246,39 @@
|
|
|
237
246
|
text-align: right;
|
|
238
247
|
}
|
|
239
248
|
|
|
240
|
-
|
|
241
|
-
|
|
249
|
+
/* position */
|
|
250
|
+
.nut-form-item-label-right {
|
|
251
|
+
justify-content: flex-end;
|
|
242
252
|
padding-right: 24px;
|
|
243
253
|
white-space: nowrap;
|
|
244
254
|
}
|
|
245
255
|
|
|
246
|
-
.
|
|
256
|
+
.nut-form-item-label-left {
|
|
247
257
|
position: relative;
|
|
248
|
-
text-align: left;
|
|
249
258
|
padding-left: 12px;
|
|
250
259
|
white-space: nowrap;
|
|
251
260
|
}
|
|
252
|
-
|
|
261
|
+
|
|
262
|
+
.nut-form-item-label-left-required {
|
|
253
263
|
display: block;
|
|
254
264
|
line-height: 1.5;
|
|
255
265
|
position: absolute;
|
|
256
266
|
left: 0.1em;
|
|
257
267
|
}
|
|
258
268
|
|
|
259
|
-
.
|
|
269
|
+
.nut-form-item-top {
|
|
260
270
|
flex-direction: column;
|
|
261
271
|
align-items: flex-start;
|
|
262
272
|
white-space: nowrap;
|
|
263
273
|
}
|
|
264
274
|
|
|
265
|
-
.
|
|
266
|
-
padding-bottom: 4px;
|
|
275
|
+
.nut-form-item-label-top {
|
|
267
276
|
display: block;
|
|
277
|
+
padding-bottom: 4px;
|
|
268
278
|
padding-right: 24px;
|
|
269
279
|
}
|
|
270
280
|
|
|
271
|
-
.
|
|
281
|
+
.nut-form-item-body-top {
|
|
272
282
|
margin-left: 0;
|
|
273
283
|
width: 100%;
|
|
274
284
|
}
|