-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(1.6.0): weekly sync update to naruto (#2681)
* chore(deps-dev): bump fs-extra from 10.1.0 to 11.1.1 (#2651) Bumps [fs-extra](https://github.com/jprichardson/node-fs-extra) from 10.1.0 to 11.1.1. - [Changelog](https://github.com/jprichardson/node-fs-extra/blob/master/CHANGELOG.md) - [Commits](jprichardson/node-fs-extra@10.1.0...11.1.1) --- updated-dependencies: - dependency-name: fs-extra dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat(table): support TableEditableCellConfig.keepEditMode (#2662) * feat(table): support TableEditableCellConfig.keepEditMode * test: update snapshots * feat: support file list thumbnail (#2665) * feat(image): support fallback & referrerpolicy & src File * feat(upload): code save * feat(upload): support file thumnail * feat(upload): docs & features * test: update snapshots * feat: add download API to Link (#2659) * feat: add download API to Link * feat: update common * test: update snapshot * feat: update common * feat: new icon 2.0 version (#2677) * feat: new icon 2.0 version * chore: update docs * chore: release/1.6.0 (#2678) * feat: release 1.6.0 * feat: update common * chore: changelog's changes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: sheepluo <[email protected]> Co-authored-by: azhe <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
375cd0d
commit 3742231
Showing
62 changed files
with
5,077 additions
and
6,473 deletions.
There are no files selected for viewing
This file contains 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 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
Submodule _common
updated
3 files
+3 −0 | js/upload/utils.ts | |
+1 −0 | style/mobile/components/pull-down-refresh/v2/_index.less | |
+1 −0 | style/web/components/input-adornment/_index.less |
5 changes: 2 additions & 3 deletions
5
src/anchor/__tests__/__snapshots__/anchor-target.test.jsx.snap
This file contains 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,7 @@ | ||
// Vitest Snapshot v1 | ||
|
||
exports[`AnchorTarget > <slot> > should render default slot 1`] = ` | ||
"<h1 id=\\"test-target\\" class=\\"t-anchor__target\\">this is default slots<svg fill=\\"none\\" viewBox=\\"0 0 16 16\\" width=\\"1em\\" height=\\"1em\\" class=\\"t-icon t-icon-file-copy t-anchor__copy\\"> | ||
<path fill=\\"currentColor\\" d=\\"M4 1.92C4 1.34 4.52 1 5 1h4.37a1 1 0 01.71.3L13.71 5a1 1 0 01.29.7v6.38c0 .58-.52.92-1 .92H5c-.48 0-1-.34-1-.92V1.92zM5 2v10h8V6.01H9V2H5zm5 .65V5h2.32L10 2.65z\\" fill-opacity=\\"0.9\\"></path> | ||
<path fill=\\"currentColor\\" d=\\"M2 5v9.01a1 1 0 001 1h8v-1H3V5H2z\\" fill-opacity=\\"0.9\\"></path> | ||
"<h1 id=\\"test-target\\" class=\\"t-anchor__target\\">this is default slots<svg fill=\\"none\\" viewBox=\\"0 0 24 24\\" width=\\"1em\\" height=\\"1em\\" class=\\"t-icon t-icon-file-copy t-anchor__copy\\"> | ||
<path fill=\\"currentColor\\" d=\\"M6 1h9.41L21 6.59V19H6V1zm2 2v14h11V9h-6V3H8zm7 .41V7h3.59L15 3.41zM4 5v16h11v2H2V5h2z\\"></path> | ||
</svg></h1>" | ||
`; |
This file contains 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 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 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 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 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 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 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { | ||
ComputedRef, ref, Ref, watch, | ||
} from 'vue'; | ||
import { getFileUrlByFileRaw } from '../_common/js/upload/utils'; | ||
|
||
export function useImagePreviewUrl(imgUrl: Ref<string | File> | ComputedRef<string | File>) { | ||
const previewUrl = ref(''); | ||
|
||
watch( | ||
[imgUrl], | ||
([imgUrl], [preImgUrl]) => { | ||
if (preImgUrl === imgUrl) return; | ||
if (typeof imgUrl === 'string') { | ||
previewUrl.value = imgUrl; | ||
return; | ||
} | ||
getFileUrlByFileRaw(imgUrl).then((url) => { | ||
previewUrl.value = url; | ||
}); | ||
}, | ||
{ immediate: true }, | ||
); | ||
|
||
return { previewUrl }; | ||
} | ||
|
||
export default useImagePreviewUrl; |
This file contains 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 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,35 +1,36 @@ | ||
<template> | ||
<t-space direction="vertical"> | ||
<t-space break-line> | ||
<icon-font name="loading" /> | ||
<icon-font name="close" @click="onIconClose" /> | ||
<icon-font name="check-circle-filled" /> | ||
<p>How do you feel today?</p> | ||
<icon-font name="sneer" /> | ||
<icon-font name="unhappy" /> | ||
<icon-font name="excited" /> | ||
<icon-font name="surprised" /> | ||
<icon-font name="giggle" /> | ||
</t-space> | ||
<t-space break-line align="center"> | ||
<icon-font name="check-circle-filled" size="small" /> | ||
<icon-font name="check-circle-filled" /> | ||
<icon-font name="check-circle-filled" size="medium" /> | ||
<icon-font name="check-circle-filled" size="large" /> | ||
<icon-font name="check-circle-filled" size="25px" /> | ||
<icon-font name="check-circle-filled" size="2em" /> | ||
<t-space break-line> | ||
<p>What's your favourite food?</p> | ||
<icon-font name="tangerinr" style="color: orange" /> | ||
<icon-font name="bamboo-shoot" style="color: green" /> | ||
<icon-font name="apple" style="color: red" /> | ||
<icon-font name="milk" style="color: #0052d9" /> | ||
<icon-font name="peach" style="color: pink" /> | ||
</t-space> | ||
<t-space break-line align="center"> | ||
<icon-font name="check-circle-filled" style="color: red" /> | ||
<icon-font name="check-circle-filled" style="color: green" /> | ||
<icon-font name="check-circle-filled" style="color: orange" /> | ||
<t-space break-line> | ||
<p>How much icons does TDesign Icon includes?</p> | ||
<icon-font name="numbers-1" style="color: var(--td-brand-color-5)" /> | ||
<icon-font name="numbers-2" style="color: var(--td-brand-color-6)" /> | ||
<icon-font name="numbers-0" style="color: var(--td-brand-color-7)" /> | ||
<icon-font name="numbers-3" style="color: var(--td-brand-color-8)" /> | ||
</t-space> | ||
</t-space> | ||
</template> | ||
|
||
<script> | ||
import { IconFont } from 'tdesign-icons-vue'; | ||
export default { | ||
components: { IconFont }, | ||
methods: { | ||
onIconClose() { | ||
console.log('icon was clicked.'); | ||
}, | ||
components: { | ||
IconFont, | ||
}, | ||
}; | ||
</script> |
Oops, something went wrong.