+
{showTitle && (
-
+
{title || locale.calendaritem.title}
-
+
)}
{renderHeaderButtons && (
-
+
{renderHeaderButtons()}
-
+
)}
{showSubTitle && (
-
{yearMonthTitle}
+
{yearMonthTitle}
)}
-
+
{weeks.map((item: string) => (
-
+
{item}
-
+
))}
-
-
+
+
)
}
@@ -794,8 +794,8 @@ export const CalendarItem = React.forwardRef<
onScroll={monthsViewScroll}
ref={monthsRef}
>
-
-
@@ -241,17 +241,17 @@ export const Elevator: FunctionComponent<
>
{list.map((item: any, idx: number) => {
return (
-
-
+
{item[floorKey]}
-
+
<>
{item.list.map((subitem: ElevatorData) => {
return (
-
+
)
})}
>
-
+
)
})}
-
+
{showKeys ? (
<>
{list.length && scrollStart ? (
-
{list[codeIndex][floorKey]}
-
+
) : null}
-
-
+
touchStart(event)}
onTouchMove={(event) => touchMove(event)}
@@ -301,7 +301,7 @@ export const Elevator: FunctionComponent<
>
{list.map((item: any, index: number) => {
return (
- handleClickIndex(item[floorKey])}
>
{item[floorKey]}
-
+
)
})}
-
-
+
+
>
) : null}
{sticky && scrollY > 0 ? (
-
+
{list[codeIndex][floorKey]}
-
+
) : null}
)
diff --git a/src/packages/ellipsis/demo.taro.tsx b/src/packages/ellipsis/demo.taro.tsx
index 7fe192afc4..c907aab0f9 100644
--- a/src/packages/ellipsis/demo.taro.tsx
+++ b/src/packages/ellipsis/demo.taro.tsx
@@ -1,8 +1,8 @@
import React from 'react'
import Taro from '@tarojs/taro'
+import { ScrollView, View } from '@tarojs/components'
import { useTranslate } from '@/sites/assets/locale/taro'
import Header from '@/sites/components/header'
-
import Demo1 from './demos/taro/demo1'
import Demo2 from './demos/taro/demo2'
import Demo3 from './demos/taro/demo3'
@@ -41,20 +41,20 @@ const EllipsisDemo = () => {
return (
<>
-
-
{translated.header}
+
+ {translated.header}
- {translated.end}
+ {translated.end}
- {translated.middle}
+ {translated.middle}
- {translated.rows}
+ {translated.rows}
- {translated.expandCollapse}
+ {translated.expandCollapse}
- {translated.width}
+ {translated.width}
-
+
>
)
}
diff --git a/src/packages/fixednav/demo.taro.tsx b/src/packages/fixednav/demo.taro.tsx
index f9086afecd..c161ebe614 100644
--- a/src/packages/fixednav/demo.taro.tsx
+++ b/src/packages/fixednav/demo.taro.tsx
@@ -1,5 +1,6 @@
import React from 'react'
import Taro from '@tarojs/taro'
+import { ScrollView } from '@tarojs/components'
import Header from '@/sites/components/header'
import Demo1 from './demos/taro/demo1'
import Demo2 from './demos/taro/demo2'
@@ -11,14 +12,14 @@ const FixedNavDemo = () => {
return (
<>
-
+
{/* */}
-
+
>
)
}
diff --git a/src/packages/fixednav/fixednav.taro.tsx b/src/packages/fixednav/fixednav.taro.tsx
index 1403ce2639..ae59d2b78d 100644
--- a/src/packages/fixednav/fixednav.taro.tsx
+++ b/src/packages/fixednav/fixednav.taro.tsx
@@ -1,6 +1,7 @@
import React, { FunctionComponent, MouseEvent } from 'react'
import classNames from 'classnames'
import { ArrowLeft } from '@nutui/icons-react-taro'
+import { View } from '@tarojs/components'
import Overlay from '@/packages/overlay/index.taro'
import { useConfig } from '@/packages/configprovider/configprovider.taro'
import { BasicComponent, ComponentDefaults } from '@/utils/typings'
@@ -97,12 +98,12 @@ export const FixedNav: FunctionComponent<
onClick={() => onUpdateValue(false)}
/>
)}
-
+
{children || (
-
+
{list.map((item: any, index) => {
return (
- handleClick(item, event)}
key={item.id || index}
@@ -112,27 +113,29 @@ export const FixedNav: FunctionComponent<
) : (
)}
-
{item.text}
- {item.num &&
{item.num}
}
-
+
+ {item.text}
+
+ {item.num && {item.num}}
+
)
})}
-
+
)}
-
+
-
onUpdateValue()}>
+
onUpdateValue()}>
{content || (
<>
-
+
{visible
? activeText || locale.fixednav.activeText
: inactiveText || locale.fixednav.inactiveText}
-
+
>
)}
-
+
)
}
diff --git a/src/packages/form/demo.taro.tsx b/src/packages/form/demo.taro.tsx
index 3881c4d845..f1a8072cb0 100644
--- a/src/packages/form/demo.taro.tsx
+++ b/src/packages/form/demo.taro.tsx
@@ -1,5 +1,6 @@
import React from 'react'
import Taro from '@tarojs/taro'
+import { ScrollView, View } from '@tarojs/components'
import { useTranslate } from '@/sites/assets/locale/taro'
import Header from '@/sites/components/header'
import Demo1 from './demos/taro/demo1'
@@ -35,22 +36,22 @@ const FormDemo = () => {
return (
<>