-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(anchor): spatial distance calculation adjustments in front of anchor points * refactor(anchor): update common hash
- Loading branch information
1 parent
c14dd59
commit 225aa44
Showing
15 changed files
with
733 additions
and
289 deletions.
There are no files selected for viewing
Submodule _common
updated
4 files
+1 −0 | style/mobile/components/cascader/v2/_index.less | |
+5 −3 | style/web/components/anchor/_index.less | |
+4 −0 | style/web/components/anchor/_var.less | |
+7 −0 | style/web/components/form/_mixin.less |
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,32 @@ | ||
<template> | ||
<t-space> | ||
<div class="flex: 1"></div> | ||
<t-anchor :bounds="150" :getCurrentAnchor="getCurrentAnchor"> | ||
<t-anchor-item href="#基础锚点" title="基础锚点"></t-anchor-item> | ||
<t-anchor-item href="#多级锚点" title="多级锚点"></t-anchor-item> | ||
<t-anchor-item href="#指定容器锚点" title="指定容器锚点"></t-anchor-item> | ||
<t-anchor-item href="#特定交互锚点" title="特定交互锚点"></t-anchor-item> | ||
<t-anchor-item href="#尺寸" title="尺寸"> | ||
<t-anchor-item href="#size-1" title="尺寸1"> | ||
<div id="default">this is children content</div> | ||
<div>sdadasas</div> | ||
</t-anchor-item> | ||
<t-anchor-item href="#size-2" title="尺寸2"> | ||
<t-anchor-item href="#size-3" title="尺寸1"></t-anchor-item> | ||
</t-anchor-item> | ||
</t-anchor-item> | ||
</t-anchor> | ||
</t-space> | ||
</template> | ||
<script> | ||
export default { | ||
data() { | ||
return { | ||
getCurrentAnchor(value) { | ||
console.log('value1', value); | ||
return value || '#多级锚点'; | ||
}, | ||
}; | ||
}, | ||
}; | ||
</script> |
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 |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
|
||
/** | ||
* 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC | ||
* updated at 2021-11-19 10:44:26 | ||
* */ | ||
|
||
export default { | ||
|
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
Oops, something went wrong.