-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
205 additions
and
152 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
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,18 +1,12 @@ | ||
// https://vitepress.dev/guide/custom-theme | ||
import { h } from 'vue' | ||
import type { Theme } from 'vitepress' | ||
import DefaultTheme from 'vitepress/theme' | ||
import './style.css' | ||
|
||
import VueDirectives from '../../../src' | ||
export default { | ||
extends: DefaultTheme, | ||
Layout: () => { | ||
return h(DefaultTheme.Layout, null, { | ||
// https://vitepress.dev/guide/extending-default-theme#layout-slots | ||
}) | ||
}, | ||
enhanceApp({ app, router, siteData }) { | ||
enhanceApp({ app }) { | ||
app.use(VueDirectives); | ||
} | ||
} satisfies Theme |
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,34 @@ | ||
# 指令预览 | ||
|
||
## 指令分类 | ||
|
||
### 动画 | ||
|
||
### 性能优化 | ||
|
||
### 事件处理器 | ||
|
||
### 其他 | ||
|
||
## 所有指令 | ||
|
||
| 指令 | 说明 | | ||
| ---------------------------------------------- |--------------------------- | | ||
|[v-backtop] | 为元素添加返回顶部功能 | | ||
|[v-clickOutside]| 点击元素外部触发时事件 | | ||
|
||
:::tip | ||
更多指令待开发🚧,请查看[参与开源](../directives.md) | ||
::: | ||
|
||
<style scoped> | ||
table { | ||
display: table; | ||
width: 100%; | ||
border-collapse: collapse; | ||
} | ||
table a { | ||
color: #4c86ad; | ||
text-decoration: none; | ||
} | ||
</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
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,7 @@ | |
"name": "@ileostar/v3-directives", | ||
"version": "0.0.5", | ||
"type": "module", | ||
"packageManager": "[email protected].1", | ||
"packageManager": "[email protected].3", | ||
"description": "Custom Vue3 directives", | ||
"author": "ileostar <[email protected]> (https://github.com/ileostar)", | ||
"license": "MIT", | ||
|
@@ -45,23 +45,23 @@ | |
"registry": "https://registry.npmjs.org/" | ||
}, | ||
"dependencies": { | ||
"@floating-ui/dom": "^1.6.1", | ||
"vue": "^3.4.15", | ||
"@floating-ui/dom": "^1.6.3", | ||
"vue": "^3.4.19", | ||
"vue-router": "^4.2.5" | ||
}, | ||
"devDependencies": { | ||
"@antfu/eslint-config": "^2.6.4", | ||
"@types/node": "^20.11.17", | ||
"@vitest/ui": "^1.2.2", | ||
"@types/node": "^20.11.19", | ||
"@vitest/ui": "^1.3.1", | ||
"bumpp": "^9.3.0", | ||
"eslint": "^8.56.0", | ||
"esno": "^4.0.0", | ||
"lint-staged": "^15.2.2", | ||
"simple-git-hooks": "^2.9.0", | ||
"tsup": "^8.0.1", | ||
"tsup": "^8.0.2", | ||
"typescript": "^5.3.3", | ||
"vitepress": "1.0.0-rc.41", | ||
"vitest": "^1.2.2" | ||
"vitest": "^1.3.1" | ||
}, | ||
"simple-git-hooks": { | ||
"pre-commit": "pnpm lint-staged" | ||
|
Oops, something went wrong.