-
Notifications
You must be signed in to change notification settings - Fork 280
feat(lottie): new component #2867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
e36e7d2
fix: 构建全量 css 文件
oasis-cloud 6f5409e
Merge branch 'feat_v3.x' into feat/loading_v15
oasis-cloud 2656ce1
chore: add icon demo for wx or taro h5
oasis-cloud bf5c301
fix: export by env
oasis-cloud 8632cb2
docs: update
oasis-cloud 89ebc56
docs: update
oasis-cloud 9456b4e
docs: update
oasis-cloud 04cf9d0
docs: update
oasis-cloud 3dc03b3
chore: update deps
oasis-cloud 94da9f9
chore: update deps
oasis-cloud 4f3c672
fix: canvas test
oasis-cloud 91ffa4d
fix: canvas test
oasis-cloud 9538919
chore: update deps
oasis-cloud 7fdf461
test: update case
oasis-cloud 331f0cd
fix: ai suggestions
oasis-cloud 9d7cd4a
Merge branch 'feat_v3.x' into feat/loading_v15
xiaoyatong File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,30 @@ | ||
import React from 'react' | ||
import { Loading, Cell } from '@nutui/nutui-react' | ||
import { Cell, Loading } from '@nutui/nutui-react' | ||
import data from '../../../lottie/animation/light/loading.json' | ||
|
||
const Demo1 = () => { | ||
return ( | ||
<Cell> | ||
<Loading type="circular" /> | ||
<Loading type="spinner" /> | ||
</Cell> | ||
<> | ||
<Cell> | ||
<Loading type="circular" /> | ||
</Cell> | ||
<Cell> | ||
<Loading type="spinner" /> | ||
</Cell> | ||
<Cell> | ||
<Loading direction="vertical" type="lottie" jsonData={data} /> | ||
</Cell> | ||
<Cell> | ||
<Loading | ||
direction="vertical" | ||
type="lottie" | ||
jsonData={data} | ||
lottieProps={{ autoplay: false, loop: false }} | ||
> | ||
正在奋力加载中,感谢您的等待 | ||
</Loading> | ||
</Cell> | ||
</> | ||
) | ||
} | ||
export default Demo1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,39 @@ | ||
import React from 'react' | ||
import { Loading, Cell } from '@nutui/nutui-react-taro' | ||
import { Cell, Loading } from '@nutui/nutui-react-taro' | ||
import data from '@/packages/lottie/animation/light/loading.json' | ||
|
||
const Demo1 = () => { | ||
return ( | ||
<Cell> | ||
<Loading type="circular" /> | ||
<Loading type="spinner" /> | ||
</Cell> | ||
<> | ||
<Cell> | ||
<Loading type="circular" /> | ||
</Cell> | ||
<Cell> | ||
<Loading type="spinner" /> | ||
</Cell> | ||
<Cell> | ||
<Loading | ||
direction="vertical" | ||
type="lottie" | ||
jsonData={data} | ||
lottieProps={{ style: { width: 56, height: 56 } }} | ||
/> | ||
</Cell> | ||
<Cell> | ||
<Loading | ||
direction="vertical" | ||
type="lottie" | ||
jsonData={data} | ||
lottieProps={{ | ||
autoplay: false, | ||
loop: false, | ||
style: { width: 56, height: 56 }, | ||
}} | ||
> | ||
正在奋力加载中,感谢您的等待 | ||
</Loading> | ||
</Cell> | ||
</> | ||
) | ||
} | ||
export default Demo1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
# Loading | ||
|
||
# | ||
|
||
A loading icon, Used to show the loading state | ||
|
||
### Import | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
# Loading 加载中 | ||
|
||
# | ||
|
||
加载图标,用于显示正在加载中的状态 | ||
|
||
### 引入 | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
# Loading 加载中 | ||
|
||
# | ||
|
||
加载图标,用于显示正在加载中的状态 | ||
|
||
### 引入 | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
import { Loading } from './loading.taro' | ||
|
||
export type { | ||
LoadingProps, | ||
LoadingType, | ||
LoadingDirection, | ||
} from './loading.taro' | ||
export type { LoadingProps, LoadingType, LoadingDirection } from './types' | ||
export default Loading |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { Loading } from './loading' | ||
|
||
export type { LoadingProps, LoadingType, LoadingDirection } from './loading' | ||
export type { LoadingProps, LoadingType, LoadingDirection } from './types' | ||
export default Loading |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.