-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
【更新】v0.13.0
- Loading branch information
Showing
26 changed files
with
858 additions
and
377 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Binary file not shown.
Binary file not shown.
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,57 @@ | ||
<script> | ||
/** | ||
* 可复制代码组件,代码右侧有个小复制按钮 | ||
* 用法:<CopiableCode value="xxx" /> | ||
*/ | ||
// 引入库 | ||
import { provideFluentDesignSystem, fluentButton } from "@fluentui/web-components" | ||
import useClipboard from 'vue-clipboard3' | ||
const { toClipboard } = useClipboard() | ||
provideFluentDesignSystem().register(fluentButton()) | ||
export default { | ||
name: 'WidgetCopiableCode', | ||
props: { | ||
value: String | ||
}, | ||
methods: { | ||
copy(content) { | ||
toClipboard(content) | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<template> | ||
<!-- 代码本身 --> | ||
<code class="text-base">{{ value }}</code> | ||
|
||
<!-- 复制按钮 --> | ||
<fluent-button class="text-sm" @click="copy(value)"> | ||
<span class="icon-copy">复制</span> | ||
</fluent-button> | ||
|
||
<!-- 复制完成的提示 --> | ||
<!-- TODO --> | ||
</template> | ||
|
||
<style lang="less" scoped> | ||
@import url('../assets/styles/global.less'); | ||
code { | ||
background-color: @wu-color-theme-lighter; | ||
border: 1px solid #ddd; | ||
padding: .2em .36em; | ||
border-radius: 4px; | ||
} | ||
span::before { | ||
margin-right: @wu-icon-spacing; | ||
} | ||
fluent-button { | ||
margin-left: @wu-icon-spacing; | ||
font-family: 'iconfont', 'Segoe UI Variable', 'Segoe UI', sans-serif; | ||
} | ||
</style> |
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,31 @@ | ||
<script> | ||
export default { | ||
name: 'WidgetTopNav' | ||
} | ||
</script> | ||
|
||
<template> | ||
<div class="nav flex font-bold my-3 text-lg"> | ||
<slot> | ||
<!-- | ||
expected eles: 1. span.icon-left | ||
2. span.grow | ||
3. span.icon-right | ||
--> | ||
</slot> | ||
</div> | ||
</template> | ||
|
||
<style lang="less"> | ||
@import url('../assets/styles/global.less'); | ||
.nav { | ||
margin: 0 .4em 12px; | ||
color: #666; | ||
span.icon-left { float: left; } | ||
span.icon-left::before { margin-right: .4em; } | ||
span.icon-right { float: right; } | ||
span.icon-right::after { margin-left: .4em; } | ||
} | ||
</style> |
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.