@nutui/nutui-react-taro 1.3.12 → 1.3.13
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 +14 -0
- package/dist/esm/Address.js +5 -5
- package/dist/esm/Audio.js +5 -5
- package/dist/esm/AvatarGroup.js +4 -4
- package/dist/esm/Calendar.js +5 -5
- package/dist/esm/CalendarItem.js +4 -4
- package/dist/esm/Cascader.js +2 -2
- package/dist/esm/Cell.js +2 -2
- package/dist/esm/ConfigProvider.js +3 -3
- package/dist/esm/CountDown.js +4 -4
- package/dist/esm/DatePicker.js +5 -5
- package/dist/esm/Dialog.js +4 -4
- package/dist/esm/Empty.js +4 -4
- package/dist/esm/FixedNav.js +4 -4
- package/dist/esm/Form.js +4 -4
- package/dist/esm/Grid.js +4 -4
- package/dist/esm/GridItem.js +4 -4
- package/dist/esm/Image/style/index.js +2 -0
- package/dist/esm/Image.js +8 -0
- package/dist/esm/Infiniteloading.js +4 -4
- package/dist/esm/Input.js +4 -4
- package/dist/esm/MenuItem.js +4 -4
- package/dist/esm/NumberKeyboard.js +4 -4
- package/dist/esm/Pagination.js +4 -4
- package/dist/esm/Picker.js +4 -4
- package/dist/esm/PullToRefresh.js +4 -4
- package/dist/esm/Range.js +4 -4
- package/dist/esm/SearchBar.js +4 -4
- package/dist/esm/ShortPassword.js +4 -4
- package/dist/esm/SideNavBar.js +4 -4
- package/dist/esm/Signature.js +4 -4
- package/dist/esm/Sticky.js +4 -4
- package/dist/esm/Table.js +4 -4
- package/dist/esm/TextArea.js +4 -4
- package/dist/esm/TimeDetail.js +4 -4
- package/dist/esm/TimePannel.js +4 -4
- package/dist/esm/TimeSelect.js +6 -6
- package/dist/esm/TrendArrow/style/index.js +2 -0
- package/dist/esm/TrendArrow.js +6 -0
- package/dist/esm/Uploader.js +4 -4
- package/dist/esm/VirtualList.js +4 -4
- package/dist/esm/WaterMark/style/index.js +2 -0
- package/dist/esm/WaterMark.js +9 -0
- package/dist/esm/{address.taro-8d642b4a.js → address.taro-5e5bdac3.js} +2 -2
- package/dist/esm/{audio.taro-6920085d.js → audio.taro-ba2f6d01.js} +2 -2
- package/dist/esm/{avatargroup-5b2584d9.js → avatargroup-94384671.js} +1 -1
- package/dist/esm/{calendar.taro-0a8cbd0c.js → calendar.taro-355827c6.js} +2 -2
- package/dist/esm/{calendaritem.taro-3a12e7f2.js → calendaritem.taro-45d428b9.js} +1 -1
- package/dist/esm/{cascader.taro-8c9891b4.js → cascader.taro-459f7d45.js} +13 -2
- package/dist/esm/{cell.taro-1f034402.js → cell.taro-cf50c4f2.js} +7 -5
- package/dist/esm/{configprovider-3e87d67a.js → configprovider-c5b2fa7f.js} +1 -1
- package/dist/esm/{configprovider.taro-6c7b3056.js → configprovider.taro-3838604b.js} +1 -1
- package/dist/esm/{countdown.taro-f2d9ffed.js → countdown.taro-c9a93845.js} +1 -1
- package/dist/esm/{datepicker.taro-9f8afe51.js → datepicker.taro-4a3249c6.js} +1 -1
- package/dist/esm/{dialog.taro-17e19e5e.js → dialog.taro-78bb9f20.js} +1 -1
- package/dist/esm/{empty.taro-ab9c4f03.js → empty.taro-b69b51fb.js} +1 -1
- package/dist/esm/{fixednav.taro-582322a1.js → fixednav.taro-7f01a850.js} +1 -1
- package/dist/esm/{form.taro-e086758a.js → form.taro-111f816d.js} +1 -1
- package/dist/esm/{grid.taro-5d75c0ad.js → grid.taro-d244170c.js} +1 -1
- package/dist/esm/{griditem.taro-ca62dbb5.js → griditem.taro-f7ee189b.js} +1 -1
- package/dist/esm/image.taro-3464cdbe.js +105 -0
- package/dist/esm/{infiniteloading.taro-9701755f.js → infiniteloading.taro-b2f06309.js} +1 -1
- package/dist/esm/{input.taro-14380bc6.js → input.taro-63918b1f.js} +1 -1
- package/dist/esm/{menuitem.taro-bb55f482.js → menuitem.taro-f110c04a.js} +1 -1
- package/dist/esm/{numberkeyboard.taro-53c350b8.js → numberkeyboard.taro-8ff8d319.js} +1 -1
- package/dist/esm/nutui-react.es.js +41 -38
- package/dist/esm/{pagination.taro-62bbd23f.js → pagination.taro-6fbed587.js} +1 -1
- package/dist/esm/{picker.taro-f003b725.js → picker.taro-715409a3.js} +1 -1
- package/dist/esm/{pulltorefresh.taro-fe2fa54c.js → pulltorefresh.taro-92ad45af.js} +1 -1
- package/dist/esm/{range.taro-4e5f8f31.js → range.taro-062fc2f0.js} +1 -1
- package/dist/esm/{searchbar.taro-0d3c0081.js → searchbar.taro-7347bd21.js} +1 -1
- package/dist/esm/{shortpassword.taro-2e96ca22.js → shortpassword.taro-e75c0b88.js} +1 -1
- package/dist/esm/{sidenavbar.taro-4297f552.js → sidenavbar.taro-8e999f21.js} +1 -1
- package/dist/esm/{signature.taro-6589435b.js → signature.taro-a4f4b45a.js} +1 -1
- package/dist/esm/{sticky.taro-30d4e453.js → sticky.taro-f35f365b.js} +1 -1
- package/dist/esm/{table.taro-7ac89a6c.js → table.taro-96be07f2.js} +1 -1
- package/dist/esm/{textarea.taro-e1bf7f4d.js → textarea.taro-b5fc010b.js} +1 -1
- package/dist/esm/{timedetail.taro-519808cf.js → timedetail.taro-d5b32ecb.js} +1 -1
- package/dist/esm/{timepannel.taro-9904f6e6.js → timepannel.taro-38ff5c77.js} +1 -1
- package/dist/esm/{timeselect.taro-8c4439a8.js → timeselect.taro-f3972356.js} +3 -3
- package/dist/esm/trendarrow.taro-5a7153e4.js +100 -0
- package/dist/esm/types/src/locales/base.d.ts +3 -0
- package/dist/esm/types/src/packages/address/address.d.ts +2 -2
- package/dist/esm/types/src/packages/address/address.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/audio/audio.d.ts +2 -2
- package/dist/esm/types/src/packages/audio/audio.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/avatar/avatar.d.ts +2 -2
- package/dist/esm/types/src/packages/avatar/avatar.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/backtop/backtop.d.ts +2 -2
- package/dist/esm/types/src/packages/backtop/backtop.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/badge/badge.d.ts +2 -2
- package/dist/esm/types/src/packages/badge/badge.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/button/button.d.ts +2 -2
- package/dist/esm/types/src/packages/button/button.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/cascader/cascader.d.ts +2 -0
- package/dist/esm/types/src/packages/cascader/cascader.taro.d.ts +2 -0
- package/dist/esm/types/src/packages/cascader/cascaderItem.d.ts +1 -0
- package/dist/esm/types/src/packages/cascader/cascaderItem.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/cell/cell.d.ts +2 -2
- package/dist/esm/types/src/packages/cell/cell.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/checkbox/checkbox.d.ts +2 -2
- package/dist/esm/types/src/packages/checkbox/checkbox.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/circleprogress/circleprogress.d.ts +1 -1
- package/dist/esm/types/src/packages/circleprogress/circleprogress.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/collapseitem/collapseitem.d.ts +2 -2
- package/dist/esm/types/src/packages/dialog/config.d.ts +3 -3
- package/dist/esm/types/src/packages/dialog/dialog.d.ts +2 -2
- package/dist/esm/types/src/packages/dialog/dialog.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/fixednav/fixednav.d.ts +2 -2
- package/dist/esm/types/src/packages/fixednav/fixednav.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/form/form.d.ts +2 -2
- package/dist/esm/types/src/packages/formitem/formitem.d.ts +2 -2
- package/dist/esm/types/src/packages/griditem/griditem.d.ts +2 -2
- package/dist/esm/types/src/packages/griditem/griditem.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/image/__test__/image.spec.d.ts +1 -0
- package/dist/esm/types/src/packages/image/demo.d.ts +3 -0
- package/dist/esm/types/src/packages/image/image.d.ts +23 -0
- package/dist/esm/types/src/packages/image/image.taro.d.ts +23 -0
- package/dist/esm/types/src/packages/image/index.d.ts +2 -0
- package/dist/esm/types/src/packages/image/index.taro.d.ts +2 -0
- package/dist/esm/types/src/packages/infiniteloading/infiniteloading.d.ts +2 -2
- package/dist/esm/types/src/packages/infiniteloading/infiniteloading.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/input/input.d.ts +2 -2
- package/dist/esm/types/src/packages/input/input.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/inputnumber/inputnumber.d.ts +2 -2
- package/dist/esm/types/src/packages/inputnumber/inputnumber.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/menu/menu.d.ts +2 -2
- package/dist/esm/types/src/packages/menu/menu.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/menuitem/menuitem.d.ts +2 -2
- package/dist/esm/types/src/packages/menuitem/menuitem.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/navbar/navbar.d.ts +2 -2
- package/dist/esm/types/src/packages/navbar/navbar.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/noticebar/noticebar.d.ts +2 -2
- package/dist/esm/types/src/packages/noticebar/noticebar.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/nutui.react.build.d.ts +4 -1
- package/dist/esm/types/src/packages/nutui.react.d.ts +7 -1
- package/dist/esm/types/src/packages/nutui.react.scss.d.ts +3 -0
- package/dist/esm/types/src/packages/nutui.react.taro.d.ts +7 -1
- package/dist/esm/types/src/packages/nutui.react.taro.scss.d.ts +3 -0
- package/dist/esm/types/src/packages/nutui.taro.react.build.d.ts +4 -1
- package/dist/esm/types/src/packages/picker/pickerSlot.d.ts +2 -2
- package/dist/esm/types/src/packages/picker/pickerSlot.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/popover/popover.d.ts +2 -2
- package/dist/esm/types/src/packages/popover/popover.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/popup/popup.d.ts +2 -2
- package/dist/esm/types/src/packages/popup/popup.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/progress/progress.d.ts +2 -2
- package/dist/esm/types/src/packages/progress/progress.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/radio/radio.d.ts +2 -2
- package/dist/esm/types/src/packages/radio/radio.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/rate/rate.d.ts +2 -2
- package/dist/esm/types/src/packages/rate/rate.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/searchbar/searchbar.d.ts +2 -2
- package/dist/esm/types/src/packages/searchbar/searchbar.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/shortpassword/shortpassword.d.ts +2 -2
- package/dist/esm/types/src/packages/shortpassword/shortpassword.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/step/step.d.ts +2 -2
- package/dist/esm/types/src/packages/step/step.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/sticky/sticky.d.ts +2 -2
- package/dist/esm/types/src/packages/tabbaritem/tabbaritem.d.ts +2 -2
- package/dist/esm/types/src/packages/tabbaritem/tabbaritem.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/table/table.d.ts +2 -2
- package/dist/esm/types/src/packages/table/table.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/table/types.d.ts +2 -2
- package/dist/esm/types/src/packages/tabs/tabs.d.ts +2 -2
- package/dist/esm/types/src/packages/tabs/tabs.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/tag/tag.d.ts +2 -2
- package/dist/esm/types/src/packages/tag/tag.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/trendarrow/__test__/trendarrow.spec.d.ts +1 -0
- package/dist/esm/types/src/packages/trendarrow/demo.d.ts +4 -0
- package/dist/esm/types/src/packages/trendarrow/index.d.ts +2 -0
- package/dist/esm/types/src/packages/trendarrow/index.taro.d.ts +2 -0
- package/dist/esm/types/src/packages/trendarrow/trendarrow.d.ts +18 -0
- package/dist/esm/types/src/packages/trendarrow/trendarrow.taro.d.ts +18 -0
- package/dist/esm/types/src/packages/uploader/uploader.d.ts +2 -2
- package/dist/esm/types/src/packages/uploader/uploader.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/virtuallist/type.d.ts +1 -1
- package/dist/esm/types/src/packages/virtuallist/utils.d.ts +1 -1
- package/dist/esm/types/src/packages/virtuallist/virtuallist.d.ts +2 -2
- package/dist/esm/types/src/packages/virtuallist/virtuallist.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/watermark/__tests__/watermark.spec.d.ts +2 -0
- package/dist/esm/types/src/packages/watermark/demo.d.ts +4 -0
- package/dist/esm/types/src/packages/watermark/index.d.ts +2 -0
- package/dist/esm/types/src/packages/watermark/index.taro.d.ts +2 -0
- package/dist/esm/types/src/packages/watermark/watermark.d.ts +22 -0
- package/dist/esm/types/src/packages/watermark/watermark.taro.d.ts +22 -0
- package/dist/esm/types/src/utils/typings.d.ts +1 -1
- package/dist/esm/{uploader.taro-2e16bff6.js → uploader.taro-568b7ab5.js} +1 -1
- package/dist/esm/{virtuallist.taro-e3035825.js → virtuallist.taro-f97ca13a.js} +1 -1
- package/dist/esm/watermark.taro-7aab4afb.js +120 -0
- package/dist/esm/{zh-CN-14165629.js → zh-CN-dfc384d0.js} +3 -0
- package/dist/locales/base.d.ts +3 -0
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +4 -1
- package/dist/locales/id-ID.js +4 -1
- package/dist/locales/zh-CN.js +4 -1
- package/dist/locales/zh-TW.js +4 -1
- package/dist/nutui.react.es.js +557 -248
- package/dist/nutui.react.umd.js +559 -247
- package/dist/packages/cascader/cascader.scss +1 -1
- package/dist/packages/image/image.scss +51 -0
- package/dist/packages/trendarrow/trendarrow.scss +17 -0
- package/dist/packages/watermark/watermark.scss +13 -0
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/font/config.json +4 -2
- package/dist/styles/font/demo_index.html +51 -5
- package/dist/styles/font/iconfont.css +11 -3
- package/dist/styles/font/iconfont.js +65 -62
- package/dist/styles/font/iconfont.json +14 -0
- package/dist/styles/font/iconfont.ttf +0 -0
- package/dist/styles/font/iconfont.woff +0 -0
- package/dist/styles/font/iconfont.woff2 +0 -0
- package/dist/styles/themes/default.scss +3 -0
- package/dist/styles/variables.scss +4 -0
- package/dist/types/index.d.ts +110 -42
- package/dist/types/nutui.taro.react.build.ts +7 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ import React__default, { useState, useEffect } from 'react';
|
|
|
8
8
|
import classNames from 'classnames';
|
|
9
9
|
import { c as cn } from './bem-893ad28d.js';
|
|
10
10
|
import { I as Icon } from './icon.taro-1d0d4fb7.js';
|
|
11
|
-
import { u as useConfig } from './configprovider.taro-
|
|
11
|
+
import { u as useConfig } from './configprovider.taro-3838604b.js';
|
|
12
12
|
import { C as ComponentDefaults } from './typings-1c5f2628.js';
|
|
13
13
|
var defaultProps = _objectSpread(_objectSpread({}, ComponentDefaults), {}, {
|
|
14
14
|
className: '',
|
|
@@ -4,7 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
4
4
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
import React__default, { useState, useEffect } from 'react';
|
|
7
|
-
import { u as useConfig } from './configprovider.taro-
|
|
7
|
+
import { u as useConfig } from './configprovider.taro-3838604b.js';
|
|
8
8
|
import { c as cn } from './bem-893ad28d.js';
|
|
9
9
|
var defaultProps = {
|
|
10
10
|
defaultValue: '',
|
|
@@ -4,7 +4,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
4
4
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5
5
|
import React__default, { useState, useEffect } from 'react';
|
|
6
6
|
import { c as cn } from './bem-893ad28d.js';
|
|
7
|
-
import { u as useConfig } from './configprovider.taro-
|
|
7
|
+
import { u as useConfig } from './configprovider.taro-3838604b.js';
|
|
8
8
|
var defaultProps = {
|
|
9
9
|
className: '',
|
|
10
10
|
currentKey: 0,
|
|
@@ -3,7 +3,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
3
3
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
import { c as cn } from './bem-893ad28d.js';
|
|
6
|
-
import { u as useConfig } from './configprovider.taro-
|
|
6
|
+
import { u as useConfig } from './configprovider.taro-3838604b.js';
|
|
7
7
|
var defaultProps = {
|
|
8
8
|
className: '',
|
|
9
9
|
date: '',
|
|
@@ -5,10 +5,10 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
import React__default, { useState, useEffect } from 'react';
|
|
7
7
|
import { P as Popup } from './popup.taro-33d0bbc8.js';
|
|
8
|
-
import { T as TimePannel } from './timepannel.taro-
|
|
9
|
-
import { T as TimeDetail } from './timedetail.taro-
|
|
8
|
+
import { T as TimePannel } from './timepannel.taro-38ff5c77.js';
|
|
9
|
+
import { T as TimeDetail } from './timedetail.taro-d5b32ecb.js';
|
|
10
10
|
import { c as cn } from './bem-893ad28d.js';
|
|
11
|
-
import { u as useConfig } from './configprovider.taro-
|
|
11
|
+
import { u as useConfig } from './configprovider.taro-3838604b.js';
|
|
12
12
|
var defaultProps = {
|
|
13
13
|
className: '',
|
|
14
14
|
style: {},
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["rate", "digits", "showSign", "showZero", "arrowLeft", "syncTextColor", "textColor", "riseColor", "dropColor", "iconSize", "upIconName", "downIconName", "className", "children"];
|
|
4
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
|
+
import React__default, { useRef } from 'react';
|
|
7
|
+
import { c as cn } from './bem-893ad28d.js';
|
|
8
|
+
import { I as Icon } from './icon.taro-1d0d4fb7.js';
|
|
9
|
+
var defaultProps = {
|
|
10
|
+
rate: 0,
|
|
11
|
+
digits: 2,
|
|
12
|
+
showSign: false,
|
|
13
|
+
showZero: false,
|
|
14
|
+
arrowLeft: false,
|
|
15
|
+
syncTextColor: true,
|
|
16
|
+
textColor: '#333',
|
|
17
|
+
riseColor: '#fa2c19',
|
|
18
|
+
dropColor: '#64b578',
|
|
19
|
+
iconSize: '12px',
|
|
20
|
+
upIconName: 'triangle-up',
|
|
21
|
+
downIconName: 'triangle-down',
|
|
22
|
+
className: ''
|
|
23
|
+
};
|
|
24
|
+
var TrendArrow = function TrendArrow(props) {
|
|
25
|
+
var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props),
|
|
26
|
+
rate = _defaultProps$props.rate,
|
|
27
|
+
digits = _defaultProps$props.digits,
|
|
28
|
+
showSign = _defaultProps$props.showSign,
|
|
29
|
+
showZero = _defaultProps$props.showZero,
|
|
30
|
+
arrowLeft = _defaultProps$props.arrowLeft,
|
|
31
|
+
syncTextColor = _defaultProps$props.syncTextColor,
|
|
32
|
+
textColor = _defaultProps$props.textColor,
|
|
33
|
+
riseColor = _defaultProps$props.riseColor,
|
|
34
|
+
dropColor = _defaultProps$props.dropColor,
|
|
35
|
+
iconSize = _defaultProps$props.iconSize,
|
|
36
|
+
upIconName = _defaultProps$props.upIconName,
|
|
37
|
+
downIconName = _defaultProps$props.downIconName,
|
|
38
|
+
className = _defaultProps$props.className,
|
|
39
|
+
children = _defaultProps$props.children,
|
|
40
|
+
rest = _objectWithoutProperties(_defaultProps$props, _excluded);
|
|
41
|
+
var b = cn('trendarrow');
|
|
42
|
+
var handleClick = function handleClick() {};
|
|
43
|
+
var rateTrend = useRef(rate > 0);
|
|
44
|
+
var myFixed = function myFixed(num) {
|
|
45
|
+
var digit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
46
|
+
if (Object.is(parseFloat(num), NaN)) {
|
|
47
|
+
return console.log("\u4F20\u5165\u7684\u503C\uFF1A".concat(num, "\u4E0D\u662F\u4E00\u4E2A\u6570\u5B57"));
|
|
48
|
+
}
|
|
49
|
+
num = parseFloat(num);
|
|
50
|
+
// eslint-disable-next-line no-restricted-properties
|
|
51
|
+
var numPow = Math.pow(10, digit);
|
|
52
|
+
return (Math.round((num + Number.EPSILON) * numPow) / numPow).toFixed(digit);
|
|
53
|
+
};
|
|
54
|
+
var calcStyle = function () {
|
|
55
|
+
var arrowColor = rateTrend.current ? riseColor : dropColor;
|
|
56
|
+
var textEquArrowColor = syncTextColor ? arrowColor : textColor;
|
|
57
|
+
var style = {
|
|
58
|
+
color: rate === 0 ? textColor : textEquArrowColor
|
|
59
|
+
};
|
|
60
|
+
return style;
|
|
61
|
+
}();
|
|
62
|
+
var calcRate = function () {
|
|
63
|
+
rateTrend.current = rate > 0;
|
|
64
|
+
var absRate = Math.abs(rate);
|
|
65
|
+
if (!showZero && rate === 0) {
|
|
66
|
+
return '--';
|
|
67
|
+
}
|
|
68
|
+
var resultRate = "".concat(
|
|
69
|
+
// eslint-disable-next-line no-nested-ternary
|
|
70
|
+
showSign && rate !== 0 ? rateTrend.current ? '+' : '-' : '').concat(myFixed(Number(absRate), digits), "%");
|
|
71
|
+
return resultRate;
|
|
72
|
+
}();
|
|
73
|
+
var calcIconProps = function () {
|
|
74
|
+
var iconProps = {
|
|
75
|
+
name: rateTrend.current ? upIconName : downIconName,
|
|
76
|
+
color: rateTrend.current ? riseColor : dropColor,
|
|
77
|
+
size: iconSize
|
|
78
|
+
};
|
|
79
|
+
return iconProps;
|
|
80
|
+
}();
|
|
81
|
+
var renderContent = function renderContent(arrowLeft) {
|
|
82
|
+
var classNameSuffix = !arrowLeft ? 'icon-after' : 'icon-before';
|
|
83
|
+
return React__default.createElement("span", {
|
|
84
|
+
className: "".concat(b(classNameSuffix), " ").concat(b('rate')),
|
|
85
|
+
style: calcStyle
|
|
86
|
+
}, calcRate);
|
|
87
|
+
};
|
|
88
|
+
return React__default.createElement("div", _objectSpread(_objectSpread({
|
|
89
|
+
className: "".concat(b(), " ").concat(className)
|
|
90
|
+
}, rest), {}, {
|
|
91
|
+
onClick: handleClick
|
|
92
|
+
}), !arrowLeft && renderContent(!arrowLeft), children || React__default.createElement(React__default.Fragment, null, Number(rate) !== 0 && React__default.createElement(Icon, {
|
|
93
|
+
size: calcIconProps.size,
|
|
94
|
+
name: calcIconProps.name,
|
|
95
|
+
color: calcIconProps.color
|
|
96
|
+
})), arrowLeft && renderContent(!arrowLeft));
|
|
97
|
+
};
|
|
98
|
+
TrendArrow.defaultProps = defaultProps;
|
|
99
|
+
TrendArrow.displayName = 'NutTrendArrow';
|
|
100
|
+
export { TrendArrow as T };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { FunctionComponent, CSSProperties } from 'react';
|
|
2
2
|
import { RegionData, ChangeCallBack, CloseCallBack, AddressList } from './type';
|
|
3
|
-
import {
|
|
4
|
-
export interface AddressProps extends
|
|
3
|
+
import { BasicComponent } from '@/utils/typings';
|
|
4
|
+
export interface AddressProps extends BasicComponent {
|
|
5
5
|
className?: string;
|
|
6
6
|
style?: CSSProperties;
|
|
7
7
|
modelValue: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { FunctionComponent, CSSProperties } from 'react';
|
|
2
2
|
import { RegionData, ChangeCallBack, CloseCallBack, AddressList } from './type';
|
|
3
|
-
import {
|
|
4
|
-
export interface AddressProps extends
|
|
3
|
+
import { BasicComponent } from '@/utils/typings';
|
|
4
|
+
export interface AddressProps extends BasicComponent {
|
|
5
5
|
className?: string;
|
|
6
6
|
style?: CSSProperties;
|
|
7
7
|
modelValue: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { CSSProperties, FunctionComponent, ReactEventHandler } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface AudioProps extends
|
|
2
|
+
import { BasicComponent } from '@/utils/typings';
|
|
3
|
+
export interface AudioProps extends BasicComponent {
|
|
4
4
|
className: string;
|
|
5
5
|
style: CSSProperties;
|
|
6
6
|
url: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { CSSProperties, FunctionComponent } from 'react';
|
|
2
2
|
import Taro from '@tarojs/taro';
|
|
3
|
-
import {
|
|
4
|
-
export interface AudioProps extends
|
|
3
|
+
import { BasicComponent } from '@/utils/typings';
|
|
4
|
+
export interface AudioProps extends BasicComponent {
|
|
5
5
|
className?: string;
|
|
6
6
|
style?: CSSProperties;
|
|
7
7
|
url: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface AvatarProps extends
|
|
2
|
+
import { BasicComponent } from '@/utils/typings';
|
|
3
|
+
export interface AvatarProps extends BasicComponent {
|
|
4
4
|
size: string;
|
|
5
5
|
icon: string;
|
|
6
6
|
iconSize?: string | number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface AvatarProps extends
|
|
2
|
+
import { BasicComponent } from '@/utils/typings';
|
|
3
|
+
export interface AvatarProps extends BasicComponent {
|
|
4
4
|
size: string;
|
|
5
5
|
icon: string;
|
|
6
6
|
iconSize?: string | number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface BackTopProps extends
|
|
2
|
+
import { BasicComponent } from '@/utils/typings';
|
|
3
|
+
export interface BackTopProps extends BasicComponent {
|
|
4
4
|
className?: string;
|
|
5
5
|
bottom: number;
|
|
6
6
|
right: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface BackTopProps extends
|
|
2
|
+
import { BasicComponent } from '@/utils/typings';
|
|
3
|
+
export interface BackTopProps extends BasicComponent {
|
|
4
4
|
className?: string;
|
|
5
5
|
bottom: number;
|
|
6
6
|
right: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface BadgeProps extends
|
|
2
|
+
import { BasicComponent } from '@/utils/typings';
|
|
3
|
+
export interface BadgeProps extends BasicComponent {
|
|
4
4
|
value: any;
|
|
5
5
|
dot: boolean;
|
|
6
6
|
max: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface BadgeProps extends
|
|
2
|
+
import { BasicComponent } from '@/utils/typings';
|
|
3
|
+
export interface BadgeProps extends BasicComponent {
|
|
4
4
|
value: any;
|
|
5
5
|
dot: boolean;
|
|
6
6
|
max: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface ButtonProps extends
|
|
2
|
+
import { BasicComponent } from '@/utils/typings';
|
|
3
|
+
export interface ButtonProps extends BasicComponent {
|
|
4
4
|
className: string;
|
|
5
5
|
color: string;
|
|
6
6
|
shape: ButtonShape;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
import { ButtonProps as MiniProgramButtonProps } from '@tarojs/components';
|
|
3
|
-
import {
|
|
3
|
+
import { BasicComponent } from '@/utils/typings';
|
|
4
4
|
declare type OmitMiniProgramButtonProps = Omit<MiniProgramButtonProps, 'size' | 'type' | 'onClick'>;
|
|
5
|
-
export interface ButtonProps extends
|
|
5
|
+
export interface ButtonProps extends BasicComponent, OmitMiniProgramButtonProps {
|
|
6
6
|
className: string;
|
|
7
7
|
color: string;
|
|
8
8
|
shape: ButtonShape;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface CellProps extends
|
|
2
|
+
import { BasicComponent } from '@/utils/typings';
|
|
3
|
+
export interface CellProps extends BasicComponent {
|
|
4
4
|
title: ReactNode;
|
|
5
5
|
subTitle: ReactNode;
|
|
6
6
|
desc: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface CellProps extends
|
|
2
|
+
import { BasicComponent } from '@/utils/typings';
|
|
3
|
+
export interface CellProps extends BasicComponent {
|
|
4
4
|
title: ReactNode;
|
|
5
5
|
subTitle: ReactNode;
|
|
6
6
|
desc: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
import CheckboxGroup from '@/packages/checkboxgroup';
|
|
3
|
-
import {
|
|
3
|
+
import { BasicComponent } from '@/utils/typings';
|
|
4
4
|
interface InheritParentProps {
|
|
5
5
|
getParentVals?: () => string[] | undefined;
|
|
6
6
|
max?: number | undefined;
|
|
7
7
|
}
|
|
8
|
-
export interface CheckboxProps extends
|
|
8
|
+
export interface CheckboxProps extends BasicComponent {
|
|
9
9
|
checked: boolean;
|
|
10
10
|
disabled: boolean;
|
|
11
11
|
textPosition: 'left' | 'right';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
import CheckboxGroup from '@/packages/checkboxgroup/index.taro';
|
|
3
|
-
import {
|
|
3
|
+
import { BasicComponent } from '@/utils/typings';
|
|
4
4
|
interface InheritParentProps {
|
|
5
5
|
getParentVals?: () => string[] | undefined;
|
|
6
6
|
max?: number | undefined;
|
|
7
7
|
}
|
|
8
|
-
export interface CheckboxProps extends
|
|
8
|
+
export interface CheckboxProps extends BasicComponent {
|
|
9
9
|
checked: boolean;
|
|
10
10
|
disabled: boolean;
|
|
11
11
|
textPosition: 'left' | 'right';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface CollapseItemProps extends
|
|
2
|
+
import { BasicComponent } from '@/utils/typings';
|
|
3
|
+
export interface CollapseItemProps extends BasicComponent {
|
|
4
4
|
title: string;
|
|
5
5
|
name: string;
|
|
6
6
|
isOpen: boolean;
|
|
@@ -3,7 +3,7 @@ export declare type DialogConfigType = {
|
|
|
3
3
|
prefixCls?: string;
|
|
4
4
|
simple?: boolean;
|
|
5
5
|
};
|
|
6
|
-
export interface
|
|
6
|
+
export interface BasicDialogProps {
|
|
7
7
|
className?: string;
|
|
8
8
|
style?: CSSProperties;
|
|
9
9
|
visible?: boolean;
|
|
@@ -32,13 +32,13 @@ export declare type DialogReturnProps = {
|
|
|
32
32
|
update: (newConfig: ConfirmProps) => void;
|
|
33
33
|
close: () => void;
|
|
34
34
|
};
|
|
35
|
-
export interface ConfirmProps extends
|
|
35
|
+
export interface ConfirmProps extends BasicDialogProps {
|
|
36
36
|
content?: ReactNode;
|
|
37
37
|
icon?: ReactNode | null;
|
|
38
38
|
isNotice?: boolean;
|
|
39
39
|
noticeType?: string;
|
|
40
40
|
}
|
|
41
|
-
export interface DialogComponent extends ForwardRefExoticComponent<PropsWithChildren<
|
|
41
|
+
export interface DialogComponent extends ForwardRefExoticComponent<PropsWithChildren<BasicDialogProps>> {
|
|
42
42
|
confirm: (props: ConfirmProps) => DialogReturnProps;
|
|
43
43
|
alert: (props: ConfirmProps) => DialogReturnProps;
|
|
44
44
|
config: (config: DialogConfigType) => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare type DialogProps =
|
|
1
|
+
import { BasicDialogProps, DialogComponent } from './config';
|
|
2
|
+
export declare type DialogProps = BasicDialogProps;
|
|
3
3
|
export declare const Dialog: DialogComponent;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare type DialogProps =
|
|
1
|
+
import { BasicDialogProps, DialogComponent } from './config';
|
|
2
|
+
export declare type DialogProps = BasicDialogProps;
|
|
3
3
|
export declare const Dialog: DialogComponent;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { FunctionComponent, MouseEvent } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { BasicComponent } from '@/utils/typings';
|
|
3
3
|
declare type Direction = 'right' | 'left';
|
|
4
4
|
declare type Position = {
|
|
5
5
|
top?: string;
|
|
6
6
|
bottom?: string;
|
|
7
7
|
};
|
|
8
|
-
export interface FixedNavProps extends
|
|
8
|
+
export interface FixedNavProps extends BasicComponent {
|
|
9
9
|
fixednavClass: string;
|
|
10
10
|
visible: boolean;
|
|
11
11
|
overlay: boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { BasicComponent } from '@/utils/typings';
|
|
3
3
|
declare type Direction = 'right' | 'left';
|
|
4
4
|
declare type Position = {
|
|
5
5
|
top?: string;
|
|
6
6
|
bottom?: string;
|
|
7
7
|
};
|
|
8
|
-
export interface FixedNavProps extends
|
|
8
|
+
export interface FixedNavProps extends BasicComponent {
|
|
9
9
|
fixednavClass: string;
|
|
10
10
|
visible: boolean;
|
|
11
11
|
overlay: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { BasicComponent } from '@/utils/typings';
|
|
3
3
|
import { FormItem } from '../formitem/formitem';
|
|
4
4
|
import { BaseForm } from './types';
|
|
5
|
-
export interface FormProps extends
|
|
5
|
+
export interface FormProps extends BasicComponent, BaseForm {
|
|
6
6
|
}
|
|
7
7
|
export declare const Form: FunctionComponent<Partial<FormProps> & React.HTMLAttributes<HTMLFormElement>> & {
|
|
8
8
|
Item: typeof FormItem;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseFormField } from './types';
|
|
3
3
|
import { FormItemContext } from './formitemcontext';
|
|
4
|
-
import {
|
|
4
|
+
import { BasicComponent } from '@/utils/typings';
|
|
5
5
|
declare type TextAlign = 'start' | 'end' | 'left' | 'right' | 'center' | 'justify' | 'match-parent';
|
|
6
|
-
export interface FormItemProps extends
|
|
6
|
+
export interface FormItemProps extends BasicComponent, BaseFormField {
|
|
7
7
|
labelWidth: string | number;
|
|
8
8
|
errorMessageAlign: TextAlign;
|
|
9
9
|
showErrorLine: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { BasicComponent } from '@/utils/typings';
|
|
3
3
|
declare type GridDirection = 'horizontal' | 'vertical';
|
|
4
|
-
export interface GridItemProps extends
|
|
4
|
+
export interface GridItemProps extends BasicComponent {
|
|
5
5
|
text: string | ReactNode;
|
|
6
6
|
icon: string | ReactNode;
|
|
7
7
|
iconSize?: string | number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { BasicComponent } from '@/utils/typings';
|
|
3
3
|
declare type GridDirection = 'horizontal' | 'vertical';
|
|
4
|
-
export interface GridItemProps extends
|
|
4
|
+
export interface GridItemProps extends BasicComponent {
|
|
5
5
|
text: string | ReactNode;
|
|
6
6
|
icon: string | ReactNode;
|
|
7
7
|
iconSize?: string | number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
export interface ImageProps {
|
|
3
|
+
className: string;
|
|
4
|
+
style: React.CSSProperties;
|
|
5
|
+
src: string;
|
|
6
|
+
fit: ImageFit;
|
|
7
|
+
position: ImagePosition;
|
|
8
|
+
alt: string;
|
|
9
|
+
width: string;
|
|
10
|
+
height: string;
|
|
11
|
+
round: boolean;
|
|
12
|
+
radius: string | number;
|
|
13
|
+
showError: boolean;
|
|
14
|
+
showLoading: boolean;
|
|
15
|
+
slotLoding: React.ReactNode;
|
|
16
|
+
slotError: React.ReactNode | string;
|
|
17
|
+
onClick?: (e: MouseEvent) => void;
|
|
18
|
+
onLoad?: () => void;
|
|
19
|
+
onError?: () => void;
|
|
20
|
+
}
|
|
21
|
+
export declare type ImageFit = 'contain' | 'cover' | 'fill' | 'none' | 'scale-down' | string;
|
|
22
|
+
export declare type ImagePosition = 'center' | 'top' | 'right' | 'bottom' | 'left' | string;
|
|
23
|
+
export declare const Image: FunctionComponent<Partial<ImageProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick' | 'onLoad' | 'onError'>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
export interface ImageProps {
|
|
3
|
+
className: string;
|
|
4
|
+
style: React.CSSProperties;
|
|
5
|
+
src: string;
|
|
6
|
+
fit: ImageFit;
|
|
7
|
+
position: ImagePosition;
|
|
8
|
+
alt: string;
|
|
9
|
+
width: string;
|
|
10
|
+
height: string;
|
|
11
|
+
round: boolean;
|
|
12
|
+
radius: string | number;
|
|
13
|
+
showError: boolean;
|
|
14
|
+
showLoading: boolean;
|
|
15
|
+
slotLoding: React.ReactNode;
|
|
16
|
+
slotError: React.ReactNode | string;
|
|
17
|
+
onClick?: (e: MouseEvent) => void;
|
|
18
|
+
onLoad?: () => void;
|
|
19
|
+
onError?: () => void;
|
|
20
|
+
}
|
|
21
|
+
export declare type ImageFit = 'contain' | 'cover' | 'fill' | 'none' | 'scale-down' | string;
|
|
22
|
+
export declare type ImagePosition = 'center' | 'top' | 'right' | 'bottom' | 'left' | string;
|
|
23
|
+
export declare const Image: FunctionComponent<Partial<ImageProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick' | 'onLoad' | 'onError'>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface InfiniteloadingProps extends
|
|
2
|
+
import { BasicComponent } from '@/utils/typings';
|
|
3
|
+
export interface InfiniteloadingProps extends BasicComponent {
|
|
4
4
|
hasMore: boolean;
|
|
5
5
|
threshold: number;
|
|
6
6
|
containerId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface InfiniteloadingProps extends
|
|
2
|
+
import { BasicComponent } from '@/utils/typings';
|
|
3
|
+
export interface InfiniteloadingProps extends BasicComponent {
|
|
4
4
|
hasMore: boolean;
|
|
5
5
|
upperThreshold: number;
|
|
6
6
|
containerId: string;
|