Skip to content

Commit

Permalink
fix: modify import mode (#2782)
Browse files Browse the repository at this point in the history
  • Loading branch information
irisSong authored Nov 21, 2024
1 parent 70720bc commit beb7be2
Show file tree
Hide file tree
Showing 61 changed files with 61 additions and 61 deletions.
2 changes: 1 addition & 1 deletion src/packages/actionsheet/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/address/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/animate/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
2 changes: 1 addition & 1 deletion src/packages/animatingnumbers/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
2 changes: 1 addition & 1 deletion src/packages/avatar/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/backtop/demo.tsx
Original file line number Diff line number Diff line change
@@ -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 = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/packages/badge/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/barrage/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/button/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/calendarcard/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/card/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/cascader/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/cell/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/checkbox/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/circleprogress/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/collapse/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/countdown/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/datepicker/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/divider/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/drag/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/elevator/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/ellipsis/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/empty/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/form/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/grid/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/icon/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/image/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/imagepreview/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/indicator/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/infiniteloading/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/input/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/inputnumber/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/layout/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/loading/demo.taro.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/loading/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/menu/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/navbar/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/noticebar/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/notify/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/overlay/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/pagination/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/picker/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/popover/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/popup/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/progress/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/radio/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/range/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/searchbar/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/signature/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
2 changes: 1 addition & 1 deletion src/packages/skeleton/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/steps/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/swipe/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/swiper/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/tabbar/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion src/packages/tabs/demo.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
Loading

0 comments on commit beb7be2

Please sign in to comment.