Skip to content

Commit aa9bc3e

Browse files
authored
Merge pull request #12 from InhiblabCore/use-request-plugin-dev
Use request plugin dev
2 parents 9cb5661 + 2baab2d commit aa9bc3e

File tree

53 files changed

+663
-576
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+663
-576
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ module.exports = {
8080

8181
overrides: [
8282
{
83-
files: ['**/*.md', '**/*.md/*.*', 'demo.vue', 'scripts/*.ts', '*.test.ts', '*.spec.ts'],
83+
files: ['**/*.md', '**/*.md/*.*', '**/demo/*.vue', 'scripts/*.ts', '*.test.ts', '*.spec.ts'],
8484
rules: {
8585
'no-alert': 'off',
8686
'no-console': 'off',
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<template>
2+
<button class="vhp-button">
3+
<slot></slot>
4+
</button>
5+
</template>
6+
7+
<script lang="ts" setup></script>
8+
9+
<style lang="less">
10+
.vhp-button {
11+
// border: 1px solid rgba(0, 0, 0, 0.5);
12+
background-color: rgba(82, 129, 255, 0.15);
13+
padding: 4px;
14+
border-radius: 5px;
15+
margin-top: 8px;
16+
}
17+
18+
.vhp-button:hover {
19+
background-color: rgba(0, 0, 0, 0.3);
20+
color: #fff;
21+
}
22+
</style>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { withInstall } from '../../utils/vue/install'
2+
3+
import Button from './button.vue'
4+
5+
export const VhpButton = withInstall(Button)
6+
export default VhpButton
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './button'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default defineConfig({
1515
},
1616
],
1717
],
18-
title: 'vue-hooks-plus',
18+
title: 'VueHook Plus',
1919
description: '_description',
2020
// // 扫描srcIncludes里面的 *.md文件
2121
// srcIncludes: ['src'],
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1+
import { App } from 'vue'
12
import DefaultTheme from 'vitepress/theme'
23
import DemoBlock from '@vue-hooks-plus/vitepress-demo-block'
4+
import VhpButton from '../components/button'
35
import '@vue-hooks-plus/vitepress-demo-block/dist/style.css'
46
import './var.less'
57

68
export default {
79
...DefaultTheme,
8-
9-
enhanceApp({ app, router, siteData }) {
10+
enhanceApp({ app }: { app: App<Element> }) {
1011
app.component('demo', DemoBlock)
12+
app.component('vhp-button', VhpButton)
1113
},
1214
}

0 commit comments

Comments
 (0)