Skip to content

Commit

Permalink
fix: fix build bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ileostar committed Feb 21, 2024
1 parent 5af9aa1 commit 234076e
Show file tree
Hide file tree
Showing 9 changed files with 205 additions and 152 deletions.
1 change: 1 addition & 0 deletions docs/.vitepress/src/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ export const docsConfig: DocsConfig = {
lastUpdated: true,
appearance: 'dark',
outline: [2, 3],
ignoreDeadLinks: true
};
2 changes: 1 addition & 1 deletion docs/.vitepress/src/navs/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export default function getNavs() {
{ text: "Guide", link: "/en/guide/introduce" },
{
text: "All Directives",
link: '/en/guide/directives.html#所有指令'
link: '/en/guide/directives.html'
},
{
text: 'Open Source',
Expand Down
8 changes: 1 addition & 7 deletions docs/.vitepress/theme/index.ts
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
2 changes: 1 addition & 1 deletion docs/.vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
--vp-c-bg: #111827;
--vp-button-brand-text: #111827;
--vp-button-brand-hover-text: #262a30;
--vp-c-bg-soft: #161f32; */
--vp-c-bg-soft: #161f32;

--vp-custom-block-tip-border: transparent;
--vp-custom-block-tip-text: var(--vp-c-text-1);
Expand Down
34 changes: 34 additions & 0 deletions docs/en/guide/directives.md
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>
26 changes: 2 additions & 24 deletions docs/zh/guide/directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,8 @@

| 指令 | 说明 |
| ---------------------------------------------- |--------------------------- |
|[v-backtop](../directives/v-backtop.md) | 为元素添加返回顶部功能 |
|[v-clickOutside](../directives/v-clickOutside.md)| 点击元素外部触发时事件 |
|[v-backtop](../directives/v-backtop.md) | 为元素添加返回顶部功能 |
|[v-backtop](../directives/v-backtop.md) | 为元素添加返回顶部功能 |
|[v-clickOutside](../directives/v-clickOutside.md)| 点击元素外部触发时事件 |
|[v-backtop](../directives/v-backtop.md) | 为元素添加返回顶部功能 |
|[v-backtop](../directives/v-backtop.md) | 为元素添加返回顶部功能 |
|[v-clickOutside](../directives/v-clickOutside.md)| 点击元素外部触发时事件 |
|[v-backtop](../directives/v-backtop.md) | 为元素添加返回顶部功能 |
|[v-backtop](../directives/v-backtop.md) | 为元素添加返回顶部功能 |
|[v-clickOutside](../directives/v-clickOutside.md)| 点击元素外部触发时事件 |
|[v-backtop](../directives/v-backtop.md) | 为元素添加返回顶部功能 |
|[v-backtop](../directives/v-backtop.md) | 为元素添加返回顶部功能 |
|[v-clickOutside](../directives/v-clickOutside.md)| 点击元素外部触发时事件 |
|[v-backtop](../directives/v-backtop.md) | 为元素添加返回顶部功能 |
|[v-backtop](../directives/v-backtop.md) | 为元素添加返回顶部功能 |
|[v-clickOutside](../directives/v-clickOutside.md)| 点击元素外部触发时事件 |
|[v-backtop](../directives/v-backtop.md) | 为元素添加返回顶部功能 |
|[v-backtop](../directives/v-backtop.md) | 为元素添加返回顶部功能 |
|[v-clickOutside](../directives/v-clickOutside.md)| 点击元素外部触发时事件 |
|[v-backtop](../directives/v-backtop.md) | 为元素添加返回顶部功能 |
|[v-backtop](../directives/v-backtop.md) | 为元素添加返回顶部功能 |
|[v-clickOutside](../directives/v-clickOutside.md)| 点击元素外部触发时事件 |
|[v-backtop](../directives/v-backtop.md) | 为元素添加返回顶部功能 |
|[v-backtop] | 为元素添加返回顶部功能 |
|[v-clickOutside]| 点击元素外部触发时事件 |

:::tip
更多指令待开发🚧,请查看[参与开源](../directives.md)
Expand Down
1 change: 1 addition & 0 deletions eslint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default antfu(
vue: true,
markdown: true,
formatters: true,
ignores: ["node_modules"]
},
{
files: ['src/**/*.ts'],
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
Expand Down
Loading

0 comments on commit 234076e

Please sign in to comment.