@nutui/nutui-react 2.0.0-alpha.13 → 2.0.0-alpha.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/CHANGELOG.md +30 -0
- package/dist/esm/ActionSheet/style/style.css +1 -1
- package/dist/esm/Address/style/style.css +1 -1
- package/dist/esm/Avatar.js +1 -1
- package/dist/esm/AvatarGroup.js +1 -1
- package/dist/esm/Barrage/style/style.css +1 -1
- package/dist/esm/Barrage.js +23 -24
- package/dist/esm/Calendar/style/style.css +1 -1
- package/dist/esm/Card/style/style.css +1 -1
- package/dist/esm/Card.js +35 -22
- package/dist/esm/Cascader/style/style.css +1 -1
- package/dist/esm/CircleProgress.js +1 -1
- package/dist/esm/ConfigProvider.js +1 -1
- package/dist/esm/DatePicker/style/style.css +1 -1
- package/dist/esm/ImagePreview/style/style.css +1 -1
- package/dist/esm/InfiniteLoading/style/style.css +1 -0
- package/dist/esm/{Infiniteloading.js → InfiniteLoading.js} +25 -37
- package/dist/esm/NumberKeyboard/style/style.css +1 -1
- package/dist/esm/Picker/style/style.css +1 -1
- package/dist/esm/Picker.js +37 -40
- package/dist/esm/Popover/style/index.js +1 -1
- package/dist/esm/Popover/style/style.css +1 -1
- package/dist/esm/Popover.js +214 -166
- package/dist/esm/Popup/style/style.css +1 -1
- package/dist/esm/ShortPassword/style/style.css +1 -1
- package/dist/esm/SideNavBar/style/style.css +1 -1
- package/dist/esm/SideNavBar.js +17 -15
- package/dist/esm/SideNavBarItem/style/style.css +1 -1
- package/dist/esm/SideNavBarItem.js +5 -4
- package/dist/esm/Signature/style/index.js +1 -1
- package/dist/esm/Signature/style/style.css +1 -1
- package/dist/esm/Signature.js +27 -35
- package/dist/esm/Step.js +1 -1
- package/dist/esm/Steps.js +1 -1
- package/dist/esm/SubSideNavBar/style/style.css +1 -1
- package/dist/esm/SubSideNavBar.js +12 -12
- package/dist/esm/Swiper.js +1 -1
- package/dist/esm/SwiperItem.js +1 -1
- package/dist/esm/Tag/style/style.css +1 -1
- package/dist/esm/Tag.js +26 -30
- package/dist/esm/TextArea/style/style.css +1 -1
- package/dist/esm/TimeDetail/style/style.css +1 -1
- package/dist/esm/TimeDetail.js +39 -41
- package/dist/esm/TimeSelect/style/index.js +0 -1
- package/dist/esm/TimeSelect/style/style.css +1 -1
- package/dist/esm/TimeSelect.js +91 -114
- package/dist/esm/context.js +16 -2
- package/dist/esm/context2.js +2 -2
- package/dist/esm/context4.js +5 -0
- package/dist/esm/index.js +11 -2
- package/dist/esm/nutui-react.es.js +8 -10
- package/dist/esm/types/src/locales/base.d.ts +1 -1
- package/dist/esm/types/src/packages/barrage/barrage.d.ts +6 -7
- package/dist/esm/types/src/packages/barrage/barrage.taro.d.ts +6 -7
- package/dist/esm/types/src/packages/barrage/index.d.ts +1 -0
- package/dist/esm/types/src/packages/barrage/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/button/button.d.ts +1 -0
- package/dist/esm/types/src/packages/card/card.d.ts +8 -9
- package/dist/esm/types/src/packages/card/card.taro.d.ts +8 -9
- package/dist/esm/types/src/packages/card/index.d.ts +1 -0
- package/dist/esm/types/src/packages/card/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
- package/dist/esm/types/src/packages/imagepreview/imagepreview.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/infiniteloading/demo.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/infiniteloading/index.d.ts +3 -2
- package/dist/esm/types/src/packages/infiniteloading/index.taro.d.ts +3 -2
- package/dist/esm/types/src/packages/infiniteloading/infiniteloading.d.ts +9 -14
- package/dist/esm/types/src/packages/infiniteloading/infiniteloading.taro.d.ts +8 -12
- package/dist/esm/types/src/packages/input/input.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/menu/menu.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/nutui.react.build.d.ts +2 -3
- package/dist/esm/types/src/packages/nutui.react.d.ts +2 -4
- package/dist/esm/types/src/packages/nutui.react.scss.d.ts +0 -1
- package/dist/esm/types/src/packages/nutui.react.taro.d.ts +1 -3
- package/dist/esm/types/src/packages/nutui.react.taro.scss.d.ts +0 -1
- package/dist/esm/types/src/packages/nutui.taro.react.build.d.ts +1 -2
- package/dist/esm/types/src/packages/picker/doc.en.d.ts +9 -9
- package/dist/esm/types/src/packages/popover/demo.d.ts +3 -2
- package/dist/esm/types/src/packages/popover/demo.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/popover/index.d.ts +1 -0
- package/dist/esm/types/src/packages/popover/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/popover/popover.d.ts +20 -9
- package/dist/esm/types/src/packages/popover/popover.taro.d.ts +20 -10
- package/dist/esm/types/src/packages/sidenavbar/index.d.ts +1 -0
- package/dist/esm/types/src/packages/sidenavbar/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/sidenavbar/sidenavbar.d.ts +5 -9
- package/dist/esm/types/src/packages/sidenavbar/sidenavbar.taro.d.ts +5 -9
- package/dist/esm/types/src/packages/sidenavbaritem/index.d.ts +1 -0
- package/dist/esm/types/src/packages/sidenavbaritem/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/sidenavbaritem/sidenavbaritem.d.ts +3 -3
- package/dist/esm/types/src/packages/sidenavbaritem/sidenavbaritem.taro.d.ts +3 -3
- package/dist/esm/types/src/packages/signature/index.d.ts +1 -0
- package/dist/esm/types/src/packages/signature/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/signature/signature.d.ts +10 -8
- package/dist/esm/types/src/packages/signature/signature.taro.d.ts +7 -12
- package/dist/esm/types/src/packages/subsidenavbar/index.d.ts +1 -0
- package/dist/esm/types/src/packages/subsidenavbar/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/subsidenavbar/subsidenavbar.d.ts +3 -3
- package/dist/esm/types/src/packages/subsidenavbar/subsidenavbar.taro.d.ts +3 -3
- package/dist/esm/types/src/packages/tag/index.d.ts +1 -0
- package/dist/esm/types/src/packages/tag/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/tag/tag.d.ts +4 -6
- package/dist/esm/types/src/packages/tag/tag.taro.d.ts +4 -6
- package/dist/esm/types/src/packages/timedetail/index.d.ts +1 -2
- package/dist/esm/types/src/packages/timedetail/timedetail.d.ts +9 -11
- package/dist/esm/types/src/packages/timedetail/timedetail.taro.d.ts +9 -11
- package/dist/esm/types/src/packages/timeselect/demo.taro.d.ts +0 -4
- package/dist/esm/types/src/packages/timeselect/index.d.ts +1 -0
- package/dist/esm/types/src/packages/timeselect/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/timeselect/timeselect.d.ts +25 -20
- package/dist/esm/types/src/packages/timeselect/timeselect.taro.d.ts +25 -20
- package/dist/esm/types/src/utils/index.d.ts +1 -0
- package/dist/esm/types/src/utils/use-click-away.d.ts +3 -0
- package/dist/locales/base.d.ts +1 -1
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +2 -2
- package/dist/locales/id-ID.js +2 -2
- package/dist/locales/tr-TR.js +2 -2
- package/dist/locales/zh-CN.js +2 -2
- package/dist/locales/zh-TW.js +2 -2
- package/dist/locales/zh-UG.js +2 -2
- package/dist/nutui.react.es.js +909 -820
- package/dist/nutui.react.umd.js +909 -820
- package/dist/packages/barrage/barrage.scss +0 -13
- package/dist/packages/card/card.scss +8 -14
- package/dist/packages/infiniteloading/infiniteloading.scss +2 -25
- package/dist/packages/popover/popover.scss +158 -230
- package/dist/packages/popup/popup.scss +36 -0
- package/dist/packages/sidenavbar/sidenavbar.scss +10 -16
- package/dist/packages/sidenavbaritem/sidenavbaritem.scss +7 -19
- package/dist/packages/signature/signature.scss +1 -18
- package/dist/packages/subsidenavbar/subsidenavbar.scss +10 -19
- package/dist/packages/tag/tag.scss +10 -17
- package/dist/packages/timedetail/timedetail.scss +12 -37
- package/dist/packages/timeselect/timeselect.scss +15 -44
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/themes/default.scss +0 -1
- package/dist/styles/variables-jmapp.scss +85 -144
- package/dist/styles/variables.scss +96 -155
- package/dist/types/index.d.ts +2 -3
- package/dist/types/locales/base.d.ts +1 -1
- package/dist/types/packages/barrage/barrage.d.ts +32 -9
- package/dist/types/packages/barrage/index.d.ts +1 -0
- package/dist/types/packages/button/button.d.ts +1 -0
- package/dist/types/packages/card/card.d.ts +57 -14
- package/dist/types/packages/card/index.d.ts +1 -0
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/infiniteloading/index.d.ts +3 -2
- package/dist/types/packages/infiniteloading/infiniteloading.d.ts +57 -18
- package/dist/types/packages/popover/index.d.ts +1 -0
- package/dist/types/packages/popover/popover.d.ts +99 -12
- package/dist/types/packages/sidenavbar/index.d.ts +1 -0
- package/dist/types/packages/sidenavbar/sidenavbar.d.ts +33 -13
- package/dist/types/packages/sidenavbaritem/index.d.ts +1 -0
- package/dist/types/packages/sidenavbaritem/sidenavbaritem.d.ts +3 -3
- package/dist/types/packages/signature/index.d.ts +1 -0
- package/dist/types/packages/signature/signature.d.ts +38 -12
- package/dist/types/packages/subsidenavbar/index.d.ts +1 -0
- package/dist/types/packages/subsidenavbar/subsidenavbar.d.ts +3 -3
- package/dist/types/packages/tag/index.d.ts +1 -0
- package/dist/types/packages/tag/tag.d.ts +52 -14
- package/dist/types/packages/timedetail/index.d.ts +1 -2
- package/dist/types/packages/timedetail/timedetail.d.ts +9 -11
- package/dist/types/packages/timeselect/index.d.ts +1 -0
- package/dist/types/packages/timeselect/timeselect.d.ts +62 -21
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/use-click-away.d.ts +3 -0
- package/package.json +1 -1
- package/dist/esm/Infiniteloading/style/style.css +0 -1
- package/dist/esm/TimePannel/style/css.js +0 -1
- package/dist/esm/TimePannel/style/index.js +0 -2
- package/dist/esm/TimePannel/style/style.css +0 -1
- package/dist/esm/TimePannel.js +0 -47
- package/dist/esm/offsetContext.js +0 -19
- package/dist/esm/types/src/packages/popover/Trigger.d.ts +0 -19
- package/dist/esm/types/src/packages/sidenavbar/type.d.ts +0 -34
- package/dist/esm/types/src/packages/timedetail/demo.d.ts +0 -3
- package/dist/esm/types/src/packages/timedetail/demo.taro.d.ts +0 -3
- package/dist/esm/types/src/packages/timepannel/demo.d.ts +0 -3
- package/dist/esm/types/src/packages/timepannel/demo.taro.d.ts +0 -3
- package/dist/esm/types/src/packages/timepannel/index.d.ts +0 -2
- package/dist/esm/types/src/packages/timepannel/index.taro.d.ts +0 -2
- package/dist/esm/types/src/packages/timepannel/timepannel.d.ts +0 -8
- package/dist/esm/types/src/packages/timepannel/timepannel.taro.d.ts +0 -8
- package/dist/packages/timepannel/timepannel.scss +0 -17
- package/dist/types/packages/popover/Trigger.d.ts +0 -19
- package/dist/types/packages/timepannel/index.d.ts +0 -2
- package/dist/types/packages/timepannel/timepannel.d.ts +0 -8
- /package/dist/esm/{Infiniteloading → InfiniteLoading}/style/css.js +0 -0
- /package/dist/esm/{Infiniteloading → InfiniteLoading}/style/index.js +0 -0
- /package/dist/esm/types/src/packages/sidenavbar/{offsetContext.d.ts → context.d.ts} +0 -0
- /package/dist/types/packages/sidenavbar/{offsetContext.d.ts → context.d.ts} +0 -0
|
@@ -1,25 +1,66 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { FunctionComponent, ReactNode } from 'react';
|
|
2
|
+
import { BasicComponent } from '../../utils/typings';
|
|
3
|
+
export interface TimeType {
|
|
4
|
+
value?: string;
|
|
5
|
+
text?: string;
|
|
6
|
+
[prop: string]: any;
|
|
7
|
+
}
|
|
3
8
|
export interface DateType {
|
|
4
|
-
|
|
5
|
-
|
|
9
|
+
value?: string;
|
|
10
|
+
text?: string;
|
|
11
|
+
children?: TimeType[];
|
|
12
|
+
[prop: string]: any;
|
|
13
|
+
}
|
|
14
|
+
export interface OptionKeyType {
|
|
15
|
+
valueKey: string;
|
|
16
|
+
textKey: string;
|
|
17
|
+
childrenKey: string;
|
|
6
18
|
}
|
|
7
|
-
export interface TimeSelectProps {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
export interface TimeSelectProps extends BasicComponent {
|
|
20
|
+
/**
|
|
21
|
+
* 是否显示弹层
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
visible: boolean
|
|
25
|
+
/**
|
|
26
|
+
* 是否支持多选
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
multiple?: boolean
|
|
30
|
+
/**
|
|
31
|
+
* 弹层标题
|
|
32
|
+
* @default 取件时间
|
|
33
|
+
*/
|
|
34
|
+
title?: ReactNode
|
|
35
|
+
/**
|
|
36
|
+
* 默认选中的值,非受控
|
|
37
|
+
* @default -
|
|
38
|
+
*/
|
|
39
|
+
defaultValue: DateType[]
|
|
40
|
+
/**
|
|
41
|
+
* 数据
|
|
42
|
+
* @default -
|
|
43
|
+
*/
|
|
44
|
+
options: DateType[]
|
|
45
|
+
/**
|
|
46
|
+
* 配置数据中的关键字, valueKey, textKey, childrenKey
|
|
47
|
+
* @default
|
|
48
|
+
*/
|
|
49
|
+
optionKey: OptionKeyType
|
|
50
|
+
/**
|
|
51
|
+
* 关闭遮罩之后的回调
|
|
52
|
+
* @default
|
|
53
|
+
*/
|
|
54
|
+
onSelect?: (value: DateType[]) => void
|
|
55
|
+
/**
|
|
56
|
+
* 点击左栏时的回调
|
|
57
|
+
* @default -
|
|
58
|
+
*/
|
|
59
|
+
onDateChange?: (date: DateType, value: DateType[]) => void
|
|
60
|
+
/**
|
|
61
|
+
* 点击右侧选项时的回调
|
|
62
|
+
* @default -
|
|
63
|
+
*/
|
|
64
|
+
onTimeChange?: (time: TimeType, value: DateType[]) => void
|
|
24
65
|
}
|
|
25
66
|
export declare const TimeSelect: FunctionComponent<Partial<TimeSelectProps>>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare const isObject: (val: unknown) => val is Record<any, any>;
|
|
2
2
|
export declare const isFunction: (val: unknown) => val is Function;
|
|
3
3
|
export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
|
|
4
|
+
export declare const upperCaseFirst: (str: string) => string;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.nut-theme-dark .nut-infiniteloading .nut-infinite-container .infiniteLi{color:#e6e6e6}.nut-theme-dark .nut-infiniteloading .nut-infinite-bottom .bottom-box .bottom-text{color:#828282}.nut-infiniteloading{display:block;width:100%}.nut-infiniteloading .nut-infinite-top{display:flex;align-items:center;justify-content:center;width:100%;overflow:hidden}.nut-infiniteloading .nut-infinite-top .top-box{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.nut-infiniteloading .nut-infinite-top .top-box .top-text{font-size:10px;color:var(--nutui-gray-2, #757575)}.nut-infiniteloading .nut-infinite-container .infiniteLi{color:var(--nutui-gray-1, #1a1a1a)}.nut-infiniteloading .nut-infinite-bottom{display:flex;align-items:center;justify-content:center;width:100%;padding-top:6px;font-size:var(--nutui-font-size-1, 12px);color:var(--nutui-infiniteloading-bottom-color, #c8c8c8);text-align:center}.nut-infiniteloading .nut-infinite-bottom .bottom-box .bottom-text{font-size:10px;color:var(--nutui-gray-2, #757575)}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import './style.css'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.nut-theme-dark .nut-timepannel{background-color:#141414;color:#828282}.nut-theme-dark .nut-timepannel--curr{background-color:#141414;color:#e6e6e6}.nut-timepannel{height:var(--nutui-timeselect-timepannel-height, 40px);line-height:40px;text-align:center;color:var(--nutui-timeselect-timepannel-text-color, var(--nutui-gray-2, #757575));font-size:var(--nutui-timeselect-timepannel-font-size, var(--nutui-font-size-2, 14px))}
|
package/dist/esm/TimePannel.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(object, enumerableOnly) {
|
|
3
|
-
var keys = Object.keys(object);
|
|
4
|
-
if (Object.getOwnPropertySymbols) {
|
|
5
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
6
|
-
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
7
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
8
|
-
})), keys.push.apply(keys, symbols);
|
|
9
|
-
}
|
|
10
|
-
return keys;
|
|
11
|
-
}
|
|
12
|
-
function _objectSpread(target) {
|
|
13
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
14
|
-
var source = null != arguments[i] ? arguments[i] : {};
|
|
15
|
-
i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
|
|
16
|
-
_defineProperty(target, key, source[key]);
|
|
17
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
18
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
return target;
|
|
22
|
-
}
|
|
23
|
-
import React__default from "react";
|
|
24
|
-
import { c as cn } from "./bem.js";
|
|
25
|
-
import { useConfig } from "./ConfigProvider.js";
|
|
26
|
-
import "@bem-react/classname";
|
|
27
|
-
var defaultProps = {
|
|
28
|
-
className: "",
|
|
29
|
-
date: "",
|
|
30
|
-
curKey: 0
|
|
31
|
-
};
|
|
32
|
-
var TimePannel = function TimePannel2(props) {
|
|
33
|
-
useConfig();
|
|
34
|
-
var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props), children = _defaultProps$props.children, className = _defaultProps$props.className, date = _defaultProps$props.date, curKey = _defaultProps$props.curKey, change = _defaultProps$props.change;
|
|
35
|
-
var b = cn("timepannel");
|
|
36
|
-
return React__default.createElement("div", {
|
|
37
|
-
className: "".concat(b(), " ").concat(className || ""),
|
|
38
|
-
onClick: function onClick() {
|
|
39
|
-
return change(curKey);
|
|
40
|
-
}
|
|
41
|
-
}, date);
|
|
42
|
-
};
|
|
43
|
-
TimePannel.defaultProps = defaultProps;
|
|
44
|
-
TimePannel.displayName = "NutTimePannel";
|
|
45
|
-
export {
|
|
46
|
-
TimePannel as default
|
|
47
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { createContext } from "react";
|
|
2
|
-
var handleClick = function handleClick2(e) {
|
|
3
|
-
e.stopPropagation();
|
|
4
|
-
var isIcon = e.target.className.includes("arrow-icon");
|
|
5
|
-
var isTitle = e.target.className.includes("__title") || isIcon;
|
|
6
|
-
var currentClass = e.currentTarget.className;
|
|
7
|
-
var isShow = currentClass.includes("nutShow");
|
|
8
|
-
var arrowIcon = e.currentTarget.querySelector(".arrow-icon");
|
|
9
|
-
var iconClass = arrowIcon.className;
|
|
10
|
-
if (isTitle) {
|
|
11
|
-
e.currentTarget.className = isShow ? currentClass.replace("nutShow", "nutHide") : currentClass.replace("nutHide", "nutShow");
|
|
12
|
-
arrowIcon.className = isShow ? iconClass.replace("arrow-down", "arrow-up") : iconClass.replace("arrow-up", "arrow-down");
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
var OffsetContext = createContext(20);
|
|
16
|
-
export {
|
|
17
|
-
OffsetContext as O,
|
|
18
|
-
handleClick as h
|
|
19
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface TriggerProps {
|
|
3
|
-
className?: string | undefined;
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
forwardedRef: React.RefObject<HTMLElement>;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* 过滤ref
|
|
9
|
-
*/
|
|
10
|
-
export declare function fillRef<T>(ref: React.Ref<T>, node: T): void;
|
|
11
|
-
/**
|
|
12
|
-
* 将ref合并到一个ref函数中以支持ref传递
|
|
13
|
-
*/
|
|
14
|
-
export declare function composeRef<T>(...refs: React.Ref<T>[]): React.Ref<T>;
|
|
15
|
-
export default class Trigger extends React.Component<TriggerProps, unknown> {
|
|
16
|
-
fireEvents(type: string, e: Event): void;
|
|
17
|
-
render(): JSX.Element;
|
|
18
|
-
}
|
|
19
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type NavBarProps = {
|
|
3
|
-
showhead?: boolean;
|
|
4
|
-
};
|
|
5
|
-
export interface SideNavBarProps extends React.HTMLAttributes<HTMLDivElement>, NavBarProps {
|
|
6
|
-
title: string;
|
|
7
|
-
visible: boolean;
|
|
8
|
-
width?: string;
|
|
9
|
-
offset?: number;
|
|
10
|
-
position?: 'left' | 'right';
|
|
11
|
-
handleClose: () => void;
|
|
12
|
-
children?: React.ReactNode;
|
|
13
|
-
}
|
|
14
|
-
export type SideNavBarItemProps = {
|
|
15
|
-
title: string;
|
|
16
|
-
key: string | number;
|
|
17
|
-
click?: ({ title, key }: {
|
|
18
|
-
title: string;
|
|
19
|
-
key: string | number;
|
|
20
|
-
}) => void;
|
|
21
|
-
children?: React.ReactNode;
|
|
22
|
-
};
|
|
23
|
-
export type SubNavBarProps = {
|
|
24
|
-
title: string;
|
|
25
|
-
key: string | number;
|
|
26
|
-
open?: boolean;
|
|
27
|
-
children?: React.ReactNode;
|
|
28
|
-
titleClick?: ({ title, key, isShow, }: {
|
|
29
|
-
title: string;
|
|
30
|
-
key: string | number;
|
|
31
|
-
isShow: boolean;
|
|
32
|
-
}) => void;
|
|
33
|
-
};
|
|
34
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React, { FunctionComponent } from 'react';
|
|
2
|
-
export interface TimePannelProps {
|
|
3
|
-
date: string;
|
|
4
|
-
curKey: string | number;
|
|
5
|
-
className?: string;
|
|
6
|
-
change: (curKey: string | number) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const TimePannel: FunctionComponent<Partial<TimePannelProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React, { FunctionComponent } from 'react';
|
|
2
|
-
export interface TimePannelProps {
|
|
3
|
-
date: string;
|
|
4
|
-
curKey: string | number;
|
|
5
|
-
className?: string;
|
|
6
|
-
change: (curKey: string | number) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const TimePannel: FunctionComponent<Partial<TimePannelProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
.nut-theme-dark {
|
|
2
|
-
.nut-timepannel {
|
|
3
|
-
background-color: $dark5;
|
|
4
|
-
color: $dark2;
|
|
5
|
-
&--curr {
|
|
6
|
-
background-color: $dark5;
|
|
7
|
-
color: $dark1;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
.nut-timepannel {
|
|
12
|
-
height: $timeselect-timepannel-height;
|
|
13
|
-
line-height: 40px;
|
|
14
|
-
text-align: center;
|
|
15
|
-
color: $timeselect-timepannel-text-color;
|
|
16
|
-
font-size: $timeselect-timepannel-font-size;
|
|
17
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface TriggerProps {
|
|
3
|
-
className?: string | undefined;
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
forwardedRef: React.RefObject<HTMLElement>;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* 过滤ref
|
|
9
|
-
*/
|
|
10
|
-
export declare function fillRef<T>(ref: React.Ref<T>, node: T): void;
|
|
11
|
-
/**
|
|
12
|
-
* 将ref合并到一个ref函数中以支持ref传递
|
|
13
|
-
*/
|
|
14
|
-
export declare function composeRef<T>(...refs: React.Ref<T>[]): React.Ref<T>;
|
|
15
|
-
export default class Trigger extends React.Component<TriggerProps, unknown> {
|
|
16
|
-
fireEvents(type: string, e: Event): void;
|
|
17
|
-
render(): JSX.Element;
|
|
18
|
-
}
|
|
19
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React, { FunctionComponent } from 'react';
|
|
2
|
-
export interface TimePannelProps {
|
|
3
|
-
date: string;
|
|
4
|
-
curKey: string | number;
|
|
5
|
-
className?: string;
|
|
6
|
-
change: (curKey: string | number) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const TimePannel: FunctionComponent<Partial<TimePannelProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|