Skip to content

Commit

Permalink
Merge pull request #142 from bhabgs/master
Browse files Browse the repository at this point in the history
新增签名
  • Loading branch information
bhabgs authored Nov 4, 2021
2 parents 4429102 + 65f3534 commit 0321115
Show file tree
Hide file tree
Showing 48 changed files with 33,002 additions and 1,555 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
working-directory: 'package/vitevui'
run: yarn build

- name: 添加vitepress vue自定义指令ssr支持
run: npm i

- name: 打包文档
run: yarn docs:build

Expand Down
10 changes: 9 additions & 1 deletion docs/.vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,17 @@ module.exports = {
author: 'bhabgs',
nav: [
{ text: '首页', link: '/' },
// { text: '归档', link: '/docs' },
{ text: '分类', link: '/tags' },
],
},
vite: {
build: {
chunkSizeWarningLimit: 1024 * 50,
target: 'chrome58',
},
ssr: {
external: ['@antv/x6'],
},
},
dest: 'public',
};
8 changes: 0 additions & 8 deletions docs/.vitepress/theme/component/contentmenu.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
<!--
* @abstract: JianJie
* @version: 0.0.1
* @Author: bhabgs
* @Date: 2021-03-22 17:06:34
* @LastEditors: bhabgs
* @LastEditTime: 2021-03-22 17:25:04
-->
<template>
<div
class="contextmenu_box"
Expand Down
11 changes: 8 additions & 3 deletions docs/.vitepress/theme/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,20 @@
import DefaultTheme from 'vitepress/dist/client/theme-default';
import asa from './component/contentmenu.vue';
import ant from 'ant-design-vue';
import vitevui from '../../../package/vitevui';
// import vitevui from '../../../package/vitevui';
import '../../../package/vitevui/src/style/index.less';
import './style.less';

export default {
...DefaultTheme,
enhanceApp({ app }) {
app.use(vitevui);
enhanceApp(opt) {
const { app } = opt;
// app.use(vitevui);
app.use(ant);
app.component('rightMenu', asa);
// setTimeout(async () => {
// const vitevui = await import('../../../package/vitevui');

// }, 500);
},
};
10 changes: 1 addition & 9 deletions docs/components/contextmenu/index.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
<!--
* @abstract: JianJie
* @version: 0.0.1
* @Author: bhabgs
* @Date: 2021-03-22 15:59:08
* @LastEditors: bhabgs
* @LastEditTime: 2021-03-22 17:41:40
-->

# contextmenu(右键)

> 用户自定义右键 弹窗
Expand All @@ -16,6 +7,7 @@
height: 500px;
}
</style>

<rightMenu />

```vue
Expand Down
30 changes: 17 additions & 13 deletions docs/components/layout/index.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
<!--
* @abstract: JianJie
* @version: 0.0.1
* @Author: bhabgs
* @Date: 2021-03-01 10:05:45
* @LastEditors: bhabgs
* @LastEditTime: 2021-03-22 16:14:48
-->

# layout 容器布局

> 用于布局的容器组件,方便快速搭建页面的基本结构:
Expand All @@ -27,22 +18,34 @@
margin-bottom: 2rem;
background:white;
}
.vite-layout-header{
background: #7dbcea;
}
.vite-layout-sider {
background: #3ba0e9;
}
.vite-layout-main{
background: #108ee9;
}
.vite-layout-footer{
background: #7dbcea;
}
</style>

## 基本用法

<vi-layout class='default_vi'>
<vi-layout-header>header</vi-layout-header>
<vi-layout>
<vi-layout-sider>sider</vi-layout-sider>
<vi-layout-main>main</vi-layout-main>
</vi-layout>
<vi-layout-footer>footer</vi-layout-footer>
</vi-layout>

<vi-layout class='default_vi'>
<vi-layout-header>header</vi-layout-header>
<vi-layout>
<vi-layout-sider>sider</vi-layout-sider>
<vi-layout-main>main</vi-layout-main>
</vi-layout>
<vi-layout-footer>footer</vi-layout-footer>
</vi-layout>

Expand Down Expand Up @@ -81,7 +84,8 @@ export default {
> 侧边组件
<vi-layout class='default_vi'>
<vi-layout-sider>sider</vi-layout-sider>
<!-- <vi-layout-sider>sider</vi-layout-sider> -->
<vi-layout-main>main</vi-layout-main>
</vi-layout>

| 参数 | 说明 | 类型 | 可选值 | 默认值 |
Expand Down
3 changes: 2 additions & 1 deletion docs/components/menu/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ export default defineComponent({
collapsed: false,
});
return (
<menuBox
<viMenuBox
menuTitle={'润滑管理'}
width={'14.29rem'}
menus={[
{
title: '111111',
id: '1',
icon: 'vite_vehivles',
shortname: ‘’, // 折叠后简称
},
{
title: '22222222',
Expand Down
2 changes: 1 addition & 1 deletion docs/components/tabsPage/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default defineComponent({
setup() {
const { proxy } = getCurrentInstance()!;
const mitt = proxy!.$mitt;
return () => <viteTabsPage />;
return () => <viTabsPage />;
},
});
```
Expand Down
2 changes: 2 additions & 0 deletions docs/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@
-->

# docs

正在
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width, initial-scale=0.2" />
<script src="//at.alicdn.com/t/font_2457247_k963ozzpabr.js"></script>
<title>Vite App</title>
</head>
Expand Down
Loading

0 comments on commit 0321115

Please sign in to comment.