From adecb9c7cb5f0cbf2d11869c47aa190702bf3fe9 Mon Sep 17 00:00:00 2001 From: songchenglin3 <353833373@qq.com> Date: Thu, 21 Nov 2024 16:43:15 +0800 Subject: [PATCH] fix: modify import mode --- src/packages/actionsheet/demo.tsx | 2 +- src/packages/address/demo.tsx | 2 +- src/packages/animate/demo.tsx | 2 +- src/packages/animatingnumbers/demo.tsx | 2 +- src/packages/avatar/demo.tsx | 2 +- src/packages/backtop/demo.tsx | 2 +- src/packages/badge/demo.tsx | 2 +- src/packages/barrage/demo.tsx | 2 +- src/packages/button/demo.tsx | 2 +- src/packages/calendarcard/demo.tsx | 2 +- src/packages/card/demo.tsx | 2 +- src/packages/cascader/demo.tsx | 2 +- src/packages/cell/demo.tsx | 2 +- src/packages/checkbox/demo.tsx | 2 +- src/packages/circleprogress/demo.tsx | 2 +- src/packages/collapse/demo.tsx | 2 +- src/packages/countdown/demo.tsx | 2 +- src/packages/datepicker/demo.tsx | 2 +- src/packages/divider/demo.tsx | 2 +- src/packages/drag/demo.tsx | 2 +- src/packages/elevator/demo.tsx | 2 +- src/packages/ellipsis/demo.tsx | 2 +- src/packages/empty/demo.tsx | 2 +- src/packages/form/demo.tsx | 2 +- src/packages/grid/demo.tsx | 2 +- src/packages/icon/demo.tsx | 2 +- src/packages/image/demo.tsx | 2 +- src/packages/imagepreview/demo.tsx | 2 +- src/packages/indicator/demo.tsx | 2 +- src/packages/infiniteloading/demo.tsx | 2 +- src/packages/input/demo.tsx | 2 +- src/packages/inputnumber/demo.tsx | 2 +- src/packages/layout/demo.tsx | 2 +- src/packages/loading/demo.taro.tsx | 2 +- src/packages/loading/demo.tsx | 2 +- src/packages/menu/demo.tsx | 2 +- src/packages/navbar/demo.tsx | 2 +- src/packages/noticebar/demo.tsx | 2 +- src/packages/notify/demo.tsx | 2 +- src/packages/overlay/demo.tsx | 2 +- src/packages/pagination/demo.tsx | 2 +- src/packages/picker/demo.tsx | 2 +- src/packages/popover/demo.tsx | 2 +- src/packages/popup/demo.tsx | 2 +- src/packages/progress/demo.tsx | 2 +- src/packages/radio/demo.tsx | 2 +- src/packages/range/demo.tsx | 2 +- src/packages/searchbar/demo.tsx | 2 +- src/packages/signature/demo.tsx | 2 +- src/packages/skeleton/demo.tsx | 2 +- src/packages/steps/demo.tsx | 2 +- src/packages/swipe/demo.tsx | 2 +- src/packages/swiper/demo.tsx | 2 +- src/packages/tabbar/demo.tsx | 2 +- src/packages/tabs/demo.tsx | 2 +- src/packages/textarea/demo.tsx | 2 +- src/packages/tour/demo.tsx | 2 +- src/packages/uploader/demo.tsx | 2 +- src/packages/video/demo.tsx | 2 +- src/packages/virtuallist/demo.tsx | 2 +- src/packages/watermark/demo.tsx | 2 +- 61 files changed, 61 insertions(+), 61 deletions(-) diff --git a/src/packages/actionsheet/demo.tsx b/src/packages/actionsheet/demo.tsx index 0c1ffe96bf..db9d0fcf43 100644 --- a/src/packages/actionsheet/demo.tsx +++ b/src/packages/actionsheet/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' diff --git a/src/packages/address/demo.tsx b/src/packages/address/demo.tsx index 8d55cf1c2b..ebdc09733e 100644 --- a/src/packages/address/demo.tsx +++ b/src/packages/address/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/animate/demo.tsx b/src/packages/animate/demo.tsx index b67345b023..40a2b7af48 100644 --- a/src/packages/animate/demo.tsx +++ b/src/packages/animate/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' diff --git a/src/packages/animatingnumbers/demo.tsx b/src/packages/animatingnumbers/demo.tsx index 2d41c9eecb..9931d8074a 100644 --- a/src/packages/animatingnumbers/demo.tsx +++ b/src/packages/animatingnumbers/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' diff --git a/src/packages/avatar/demo.tsx b/src/packages/avatar/demo.tsx index 3fc01bbe3f..1b47610c0a 100644 --- a/src/packages/avatar/demo.tsx +++ b/src/packages/avatar/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import './demo.scss' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' diff --git a/src/packages/backtop/demo.tsx b/src/packages/backtop/demo.tsx index 62ac74517a..837e4acd69 100644 --- a/src/packages/backtop/demo.tsx +++ b/src/packages/backtop/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' const BackTopDemo = () => { diff --git a/src/packages/badge/demo.tsx b/src/packages/badge/demo.tsx index d88fe0a2c8..aa4496247a 100644 --- a/src/packages/badge/demo.tsx +++ b/src/packages/badge/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/barrage/demo.tsx b/src/packages/barrage/demo.tsx index 10cef2d155..0ff264814f 100644 --- a/src/packages/barrage/demo.tsx +++ b/src/packages/barrage/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import './demo.scss?module' import Demo1 from './demos/h5/demo1' diff --git a/src/packages/button/demo.tsx b/src/packages/button/demo.tsx index 1b6d1bfea2..b46965c9d7 100644 --- a/src/packages/button/demo.tsx +++ b/src/packages/button/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Cell from '../cell' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' diff --git a/src/packages/calendarcard/demo.tsx b/src/packages/calendarcard/demo.tsx index 393a108c45..9b172a2a93 100644 --- a/src/packages/calendarcard/demo.tsx +++ b/src/packages/calendarcard/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/card/demo.tsx b/src/packages/card/demo.tsx index 7455a075ab..e43e757de0 100644 --- a/src/packages/card/demo.tsx +++ b/src/packages/card/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' diff --git a/src/packages/cascader/demo.tsx b/src/packages/cascader/demo.tsx index 484170b715..03a862a919 100644 --- a/src/packages/cascader/demo.tsx +++ b/src/packages/cascader/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/cell/demo.tsx b/src/packages/cell/demo.tsx index 5d6dc98b32..3a3584e00f 100644 --- a/src/packages/cell/demo.tsx +++ b/src/packages/cell/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/checkbox/demo.tsx b/src/packages/checkbox/demo.tsx index 50fc4dd753..a30f4273a0 100644 --- a/src/packages/checkbox/demo.tsx +++ b/src/packages/checkbox/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/circleprogress/demo.tsx b/src/packages/circleprogress/demo.tsx index c83212d6e5..11efe5a6bb 100644 --- a/src/packages/circleprogress/demo.tsx +++ b/src/packages/circleprogress/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Cell from '@/packages/cell' import './demo.scss' import Demo1 from './demos/h5/demo1' diff --git a/src/packages/collapse/demo.tsx b/src/packages/collapse/demo.tsx index 896416eaee..58a1c77686 100644 --- a/src/packages/collapse/demo.tsx +++ b/src/packages/collapse/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/countdown/demo.tsx b/src/packages/countdown/demo.tsx index 1c2c047e3c..204a767088 100644 --- a/src/packages/countdown/demo.tsx +++ b/src/packages/countdown/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/datepicker/demo.tsx b/src/packages/datepicker/demo.tsx index deabe2396d..d627eb72e6 100644 --- a/src/packages/datepicker/demo.tsx +++ b/src/packages/datepicker/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/divider/demo.tsx b/src/packages/divider/demo.tsx index 3603ab5d82..8cbf4bb87d 100644 --- a/src/packages/divider/demo.tsx +++ b/src/packages/divider/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/drag/demo.tsx b/src/packages/drag/demo.tsx index b1a053f61c..8373599927 100644 --- a/src/packages/drag/demo.tsx +++ b/src/packages/drag/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' diff --git a/src/packages/elevator/demo.tsx b/src/packages/elevator/demo.tsx index 9ce4efd641..a547f6220e 100644 --- a/src/packages/elevator/demo.tsx +++ b/src/packages/elevator/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/ellipsis/demo.tsx b/src/packages/ellipsis/demo.tsx index a70320256c..8398b9bd2a 100644 --- a/src/packages/ellipsis/demo.tsx +++ b/src/packages/ellipsis/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' diff --git a/src/packages/empty/demo.tsx b/src/packages/empty/demo.tsx index ef49b69847..56ea6d42b9 100644 --- a/src/packages/empty/demo.tsx +++ b/src/packages/empty/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/form/demo.tsx b/src/packages/form/demo.tsx index effa42d77a..650e54b2eb 100644 --- a/src/packages/form/demo.tsx +++ b/src/packages/form/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/grid/demo.tsx b/src/packages/grid/demo.tsx index 676614e97a..9c6ce76836 100644 --- a/src/packages/grid/demo.tsx +++ b/src/packages/grid/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/icon/demo.tsx b/src/packages/icon/demo.tsx index ed1053a344..18edcb2f9a 100644 --- a/src/packages/icon/demo.tsx +++ b/src/packages/icon/demo.tsx @@ -1,7 +1,7 @@ import React from 'react' import '@nutui/icons-react/dist/style_iconfont.css' import { Cell } from '@nutui/nutui-react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/image/demo.tsx b/src/packages/image/demo.tsx index f6ba54fa6f..a88d0ce539 100644 --- a/src/packages/image/demo.tsx +++ b/src/packages/image/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Cell from '@/packages/cell' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' diff --git a/src/packages/imagepreview/demo.tsx b/src/packages/imagepreview/demo.tsx index 413c9dd892..a3c25265d1 100644 --- a/src/packages/imagepreview/demo.tsx +++ b/src/packages/imagepreview/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/indicator/demo.tsx b/src/packages/indicator/demo.tsx index 2943d877a6..3e772985ac 100644 --- a/src/packages/indicator/demo.tsx +++ b/src/packages/indicator/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/infiniteloading/demo.tsx b/src/packages/infiniteloading/demo.tsx index 3ec1ffb741..d050c8de43 100644 --- a/src/packages/infiniteloading/demo.tsx +++ b/src/packages/infiniteloading/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' diff --git a/src/packages/input/demo.tsx b/src/packages/input/demo.tsx index b194c54a12..6a796ee02a 100644 --- a/src/packages/input/demo.tsx +++ b/src/packages/input/demo.tsx @@ -1,6 +1,6 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' diff --git a/src/packages/inputnumber/demo.tsx b/src/packages/inputnumber/demo.tsx index e3a2002037..5926619679 100644 --- a/src/packages/inputnumber/demo.tsx +++ b/src/packages/inputnumber/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/layout/demo.tsx b/src/packages/layout/demo.tsx index 6c2e5a6ffd..8de265a510 100644 --- a/src/packages/layout/demo.tsx +++ b/src/packages/layout/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/loading/demo.taro.tsx b/src/packages/loading/demo.taro.tsx index 6c08246534..3cee69a561 100644 --- a/src/packages/loading/demo.taro.tsx +++ b/src/packages/loading/demo.taro.tsx @@ -1,7 +1,7 @@ import React from 'react' import { ScrollView, View } from '@tarojs/components' import Header from '@/sites/components/header' -import { useTranslate } from '../../sites/assets/locale/taro' +import { useTranslate } from '@/sites/assets/locale/taro' import Demo1 from './demos/taro/demo1' import Demo2 from './demos/taro/demo2' import Demo3 from './demos/taro/demo3' diff --git a/src/packages/loading/demo.tsx b/src/packages/loading/demo.tsx index 131ecc62aa..9c26c40a6a 100644 --- a/src/packages/loading/demo.tsx +++ b/src/packages/loading/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/menu/demo.tsx b/src/packages/menu/demo.tsx index 3439e648b2..3efb620809 100644 --- a/src/packages/menu/demo.tsx +++ b/src/packages/menu/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/navbar/demo.tsx b/src/packages/navbar/demo.tsx index 2cc26e3dcb..94cadf0e62 100644 --- a/src/packages/navbar/demo.tsx +++ b/src/packages/navbar/demo.tsx @@ -1,6 +1,6 @@ import React from 'react' import './demo.scss' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/noticebar/demo.tsx b/src/packages/noticebar/demo.tsx index a14a9746a6..62b293d360 100644 --- a/src/packages/noticebar/demo.tsx +++ b/src/packages/noticebar/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import './demo.scss' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' diff --git a/src/packages/notify/demo.tsx b/src/packages/notify/demo.tsx index c3cab1b57a..ab5c8ee37a 100644 --- a/src/packages/notify/demo.tsx +++ b/src/packages/notify/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/overlay/demo.tsx b/src/packages/overlay/demo.tsx index 3d0821283d..f685f1dd2d 100644 --- a/src/packages/overlay/demo.tsx +++ b/src/packages/overlay/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import './demo.scss' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' diff --git a/src/packages/pagination/demo.tsx b/src/packages/pagination/demo.tsx index 3b1c97e3b1..78a527a80e 100644 --- a/src/packages/pagination/demo.tsx +++ b/src/packages/pagination/demo.tsx @@ -1,6 +1,6 @@ import React from 'react' import Cell from '@/packages/cell' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/picker/demo.tsx b/src/packages/picker/demo.tsx index df0c9940c7..9bc11fc9ff 100644 --- a/src/packages/picker/demo.tsx +++ b/src/packages/picker/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/popover/demo.tsx b/src/packages/popover/demo.tsx index 4feb92f996..893f3c95bb 100644 --- a/src/packages/popover/demo.tsx +++ b/src/packages/popover/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import './demo.scss' import Demo1 from './demos/h5/demo1' diff --git a/src/packages/popup/demo.tsx b/src/packages/popup/demo.tsx index a2e54c7713..aa9c8b3e0f 100644 --- a/src/packages/popup/demo.tsx +++ b/src/packages/popup/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' diff --git a/src/packages/progress/demo.tsx b/src/packages/progress/demo.tsx index 8742d579f0..b67be254bc 100644 --- a/src/packages/progress/demo.tsx +++ b/src/packages/progress/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/radio/demo.tsx b/src/packages/radio/demo.tsx index aa19b4ad06..868a64f3c7 100644 --- a/src/packages/radio/demo.tsx +++ b/src/packages/radio/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Cell from '@/packages/cell' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' diff --git a/src/packages/range/demo.tsx b/src/packages/range/demo.tsx index efabe171a1..4575f27000 100644 --- a/src/packages/range/demo.tsx +++ b/src/packages/range/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/searchbar/demo.tsx b/src/packages/searchbar/demo.tsx index 5d3014efaa..5a5fe879d0 100644 --- a/src/packages/searchbar/demo.tsx +++ b/src/packages/searchbar/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' diff --git a/src/packages/signature/demo.tsx b/src/packages/signature/demo.tsx index 0fcc1d3d24..fe8a41c5d1 100644 --- a/src/packages/signature/demo.tsx +++ b/src/packages/signature/demo.tsx @@ -1,6 +1,6 @@ import React from 'react' import './demo.scss' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' diff --git a/src/packages/skeleton/demo.tsx b/src/packages/skeleton/demo.tsx index 53a5016b30..e4b42d58b5 100644 --- a/src/packages/skeleton/demo.tsx +++ b/src/packages/skeleton/demo.tsx @@ -1,6 +1,6 @@ import React from 'react' import Cell from '@/packages/cell' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import './demo.scss' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' diff --git a/src/packages/steps/demo.tsx b/src/packages/steps/demo.tsx index 1ec7f65d96..0322f3b685 100644 --- a/src/packages/steps/demo.tsx +++ b/src/packages/steps/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/swipe/demo.tsx b/src/packages/swipe/demo.tsx index f577f35c0f..6ac064b660 100644 --- a/src/packages/swipe/demo.tsx +++ b/src/packages/swipe/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/swiper/demo.tsx b/src/packages/swiper/demo.tsx index df6177f423..ba76cd68c4 100644 --- a/src/packages/swiper/demo.tsx +++ b/src/packages/swiper/demo.tsx @@ -1,6 +1,6 @@ import React from 'react' import './demo.scss' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/tabbar/demo.tsx b/src/packages/tabbar/demo.tsx index 1d4fff9329..00571fd1da 100644 --- a/src/packages/tabbar/demo.tsx +++ b/src/packages/tabbar/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/tabs/demo.tsx b/src/packages/tabs/demo.tsx index f9aad59b7a..c43e4c51c2 100644 --- a/src/packages/tabs/demo.tsx +++ b/src/packages/tabs/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/textarea/demo.tsx b/src/packages/textarea/demo.tsx index 578f1bd54d..190028c7f5 100644 --- a/src/packages/textarea/demo.tsx +++ b/src/packages/textarea/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/tour/demo.tsx b/src/packages/tour/demo.tsx index ccb47d6cfe..ba684bb13e 100644 --- a/src/packages/tour/demo.tsx +++ b/src/packages/tour/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' import Demo3 from './demos/h5/demo3' diff --git a/src/packages/uploader/demo.tsx b/src/packages/uploader/demo.tsx index 2af3fe7b25..ff55c976bf 100644 --- a/src/packages/uploader/demo.tsx +++ b/src/packages/uploader/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' diff --git a/src/packages/video/demo.tsx b/src/packages/video/demo.tsx index f0efafb01e..46f359dfe7 100644 --- a/src/packages/video/demo.tsx +++ b/src/packages/video/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' diff --git a/src/packages/virtuallist/demo.tsx b/src/packages/virtuallist/demo.tsx index 0287d372af..e4a62ae923 100644 --- a/src/packages/virtuallist/demo.tsx +++ b/src/packages/virtuallist/demo.tsx @@ -1,7 +1,7 @@ import React, { useState } from 'react' import Radio from '@/packages/radio' import Cell from '@/packages/cell' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2' diff --git a/src/packages/watermark/demo.tsx b/src/packages/watermark/demo.tsx index 55cf863c07..86ae520605 100644 --- a/src/packages/watermark/demo.tsx +++ b/src/packages/watermark/demo.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useTranslate } from '../../sites/assets/locale' +import { useTranslate } from '@/sites/assets/locale' import Demo1 from './demos/h5/demo1' import Demo2 from './demos/h5/demo2'