Skip to content

Commit f65b901

Browse files
committed
feat: Merge branch 'dev'
2 parents 9aa4656 + 7bc522b commit f65b901

File tree

15 files changed

+399
-192
lines changed

15 files changed

+399
-192
lines changed

README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ $ npm install --save vue-hooks-plus
3636
$ yarn add vue-hooks-plus
3737
```
3838

39-
## 🔨 Usage
39+
## 🔨 Usage
4040

4141
```typescript
4242
import { useRequest } from 'vue-hooks-plus'
@@ -54,5 +54,3 @@ hooks Dir
5454
npm run initial
5555
npm run docs:dev
5656
```
57-
58-
Note: You need to initialize before starting the document project. Due to the plug-ins, `useAsyncOrder`, `useBoolean` and `useCookieState` initialization will be open, so you need to manually go to the md file in the current folder to save it. The plug-in will listen for the save operation and will be repaired later.

README.zh-CN.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
-webkit-background-clip: text;-webkit-text-fill-color: transparent;">VueHooks Plus</h1>
1313

1414
[English](https://github.com/InhiblabCore/vue-hooks-plus/tree/master/README.md) | 简体中文
15+
1516
</div>
1617

1718
## 📚 文档
1819

19-
[在线文档📒](http://43.138.187.142:9000/vue-hooks-plus/docs/)
20+
[在线文档 📒](http://43.138.187.142:9000/vue-hooks-plus/docs/)
2021

2122
## ✨ 特性
2223

@@ -35,7 +36,7 @@ $ npm install --save vue-hooks-plus
3536
$ yarn add vue-hooks-plus
3637
```
3738

38-
## 🔨 使用
39+
## 🔨 使用
3940

4041
```typescript
4142
import { useRequest } from 'vue-hooks-plus'
@@ -53,5 +54,3 @@ hooks 目录下
5354
npm run initial
5455
npm run docs:dev
5556
```
56-
57-
注意: 需要先初始化再启动文档项目,由于插件原因 `useAsyncOrder``useBoolean``useCookieState` 初始化会出现空缺状态,需要手动去到当前文件夹内的md文件中进行保存,插件会监听保存操作,后续会进行修复。

packages/hooks/README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ $ npm install --save vue-hooks-plus
3636
$ yarn add vue-hooks-plus
3737
```
3838

39-
## 🔨 Usage
39+
## 🔨 Usage
4040

4141
```typescript
4242
import { useRequest } from 'vue-hooks-plus'
@@ -54,5 +54,3 @@ hooks Dir
5454
npm run initial
5555
npm run docs:dev
5656
```
57-
58-
Note: You need to initialize before starting the document project. Due to the plug-ins, `useAsyncOrder`, `useBoolean` and `useCookieState` initialization will be open, so you need to manually go to the md file in the current folder to save it. The plug-in will listen for the save operation and will be repaired later.

packages/hooks/docs/.vitepress/config.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { defineConfig } from 'vitepress'
22
import { applyPlugins } from '@vue-hooks-plus/md-demo-plugins'
3-
import { genTemp } from '@vue-hooks-plus/vite-plugin-gen-temp'
3+
import { genTemp } from '@ruabick/vite-plugin-gen-temp'
44
import { resolve } from 'path'
55

66
const base = process.env.NODE_ENV === 'production' ? '/vue-hooks-plus/docs' : ''
@@ -17,9 +17,6 @@ export default defineConfig({
1717
],
1818
title: 'VueHook Plus',
1919
description: '_description',
20-
// // 扫描srcIncludes里面的 *.md文件
21-
// srcIncludes: ['src'],
22-
// srcDir: 'src',
2320

2421
base,
2522
themeConfig: {

packages/hooks/docs/.vitepress/theme/var.less

-24
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,6 @@ input {
3636
background-color: var(--vp-code-block-bg);
3737
}
3838

39-
// vhp-button {
40-
// // border: 1px solid rgba(0, 0, 0, 0.5);
41-
// background-color: rgba(82, 129, 255, 0.15);
42-
// padding: 4px;
43-
// border-radius: 5px;
44-
// }
45-
46-
// vhp-button:hover {
47-
// background-color: rgba(0, 0, 0, 0.3);
48-
// color: #fff;
49-
// }
50-
5139
.vitepress-demo {
5240
border-radius: 15px;
5341
overflow: hidden;
@@ -66,18 +54,6 @@ input {
6654
);
6755
}
6856

69-
// .VPNav {
70-
// background-color: var(--vp-c-bg);
71-
// }
72-
73-
// .VPNavBar {
74-
// background-color: #f9fafc;
75-
// }
76-
77-
// .dark .VPNavBar {
78-
// background-color: #0b1121;
79-
// }
80-
8157
.vp-doc [class*='language-']:before {
8258
color: var(--vp-c-text-2);
8359
}

packages/hooks/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"build:types": "vue-tsc --noEmit && vite build --mode fullTypes",
3131
"type": "tsc -d",
3232
"test": "vitest",
33-
"test:ui": "vitest --ui",
33+
"test:ui": "vitest --ui",
3434
"preview": "vite preview"
3535
},
3636
"peerDependencies": {
@@ -45,6 +45,7 @@
4545
"query-string": "^7.1.1"
4646
},
4747
"devDependencies": {
48+
"@ruabick/vite-plugin-gen-temp": "^0.2.8",
4849
"@types/fs-extra": "^9.0.13",
4950
"@types/jest": "^29.0.0",
5051
"@types/js-cookie": "^3.0.1",
@@ -54,10 +55,10 @@
5455
"@types/qs": "^6.9.7",
5556
"@vitejs/plugin-vue": "^2.0.0",
5657
"@vue-hooks-plus/md-demo-plugins": "^1.0.0",
57-
"@vue-hooks-plus/vite-plugin-gen-temp": "1.4.0",
5858
"@vue-hooks-plus/vitepress": "1.0.1",
5959
"@vue-hooks-plus/vitepress-demo-block": "^1.0.0",
6060
"cross-env": "^7.0.3",
61+
"fast-glob": "^3.2.12",
6162
"fs-extra": "^10.1.0",
6263
"gh-pages": "^4.0.0",
6364
"less": "^4.1.3",

0 commit comments

Comments
 (0)