Skip to content

Commit 49405fe

Browse files
committed
补全vue3与移动端文档
1 parent 0f29f9f commit 49405fe

File tree

8 files changed

+6079
-362
lines changed

8 files changed

+6079
-362
lines changed

Vol.Vue/src/views/document/docApi/doc_header.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@
88
import VolHeader from "@/components/basic/VolHeader.vue";
99
</code>
1010
</pre>
11-
<VolHeader style="margin: 30px 0;" :icon="icon" :text="text">
11+
<VolHeader style="margin: 30px 0;" icon="ios-apps" :text="text">
1212
<div slot="content">VolHeader这里可以定义显示内容</div>
1313
<div style="text-align: right;padding-top: 4px;">
1414
<Button type="text" icon="ios-search" size="small" @click="()=>{this.$Message.error('1')}">buttons1</Button>
1515
<Button type="text" icon="ios-search" size="small" @click="()=>{this.$Message.error('2')}">buttons2</Button>
1616
</div>
1717
</VolHeader>
1818
<div>
19-
<docParamTable name="header"></docParamTable>
19+
<docParamTable name="header" :v3="true"></docParamTable>
20+
2021
</div>
2122
</div>
2223
</template>

Vol.Vue/src/views/document/docApi/doc_table.vue

Lines changed: 39 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,16 @@
170170
"
171171
>查看代码</Button
172172
>
173+
<Button
174+
type="info"
175+
@click="
176+
() => {
177+
this.viewCode = true;
178+
this.code = this.sourceCode.btnedittable3;
179+
}
180+
"
181+
>查看vue3代码</Button
182+
>
173183
</div>
174184
</div>
175185
<br />
@@ -178,8 +188,28 @@
178188
<table3></table3>
179189
</div>
180190
<div>
181-
<docParamTable name="voltable"></docParamTable>
182-
</div>
191+
<Button
192+
type="info"
193+
@click="
194+
() => {
195+
this.viewCode = true;
196+
this.code = this.sourceCode.searchTable;
197+
}
198+
"
199+
>查看代码</Button
200+
>
201+
<Button
202+
type="info"
203+
@click="
204+
() => {
205+
this.viewCode = true;
206+
this.code = this.sourceCode.searchTable3;
207+
}
208+
"
209+
>查看vue3代码</Button
210+
>
211+
</div>
212+
<!-- <docParamTable name="voltable"></docParamTable> -->
183213
<br />
184214
<br />
185215
<VolBox
@@ -474,7 +504,7 @@ let doc_options = {
474504
this.$Message.error("点击标签触发的事件");
475505
},
476506
},
477-
width: 250,
507+
width: 80,
478508
},
479509
{
480510
field: "test2",
@@ -501,13 +531,13 @@ let doc_options = {
501531
},
502532
{
503533
title: "render动态生成组件",
504-
width: 165,
534+
width: 220,
505535
render: (h, { row, column, index }) => {
506536
return h("div", { style: {} }, [
507537
h(
508-
"Button",
538+
"a",
509539
{
510-
props: { type: "success", size: "small" },
540+
props: { },
511541
style: {},
512542
on: {
513543
click: (e) => {
@@ -523,9 +553,9 @@ let doc_options = {
523553
"render按钮"
524554
),
525555
h(
526-
"Button",
556+
"a",
527557
{
528-
props: { type: "info", size: "small" },
558+
props: { },
529559
style: { "margin-left": "10px" },
530560
on: {
531561
click: (e) => {
@@ -576,7 +606,7 @@ let doc_options = {
576606
{
577607
field: "test5",
578608
title: "测试5",
579-
width: 150,
609+
width: 300,
580610
},
581611
],
582612
},

Vol.Vue/src/views/document/docApi/doc_volform.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<Button type="info" @click="validate">验证表单 </Button>
2424
</div>
2525
<div>
26-
<docParamTable name="form"></docParamTable>
26+
<docParamTable name="form" :v3="true"></docParamTable>
2727
</div>
2828
</div>
2929
</template>

Vol.Vue/src/views/document/docApi/sourceCode.js

Lines changed: 4026 additions & 100 deletions
Large diffs are not rendered by default.

Vol.Vue/src/views/document/document.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ export default {
137137
},
138138
{
139139
text: '移动端(uni-app)',
140+
path: '/app/home',
140141
actived: false
141142
},
142143
{

Vol.Vue/src/views/document/guide.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1735,7 +1735,7 @@
17351735
border: 1px solid #d4d1d1;
17361736
"
17371737
>
1738-
<span style="color: #666666; font-size: 14px">消息推送</span>
1738+
<span style="color: #666666; font-size: 14px">消息推送(signalR)</span>
17391739
</td>
17401740
<td
17411741
style="
@@ -1763,7 +1763,7 @@
17631763
border: 1px solid #d4d1d1;
17641764
"
17651765
>
1766-
<span style="color: #666666; font-size: 14px">x</span>
1766+
<span style="color: #666666; font-size: 14px"></span>
17671767
<span style="display: none"></span>
17681768
</td>
17691769
</tr>

Vol.Vue/src/views/h5/home.vue

Lines changed: 0 additions & 193 deletions
Original file line numberDiff line numberDiff line change
@@ -1,193 +0,0 @@
1-
<template>
2-
<div class="home">
3-
<div class="head">
4-
<div class="location">
5-
<Dropdown>
6-
<a href="javascript:void(0)">
7-
北京市
8-
<Icon type="ios-arrow-down"></Icon>
9-
</a>
10-
<DropdownMenu slot="list">
11-
<DropdownItem>上海市</DropdownItem>
12-
<DropdownItem>天津市</DropdownItem>
13-
<DropdownItem>广州市</DropdownItem>
14-
</DropdownMenu>
15-
</Dropdown>
16-
</div>
17-
<div class="text">首页</div>
18-
<div class="search">
19-
<Icon type="ios-search" />
20-
</div>
21-
<!-- <Input search placeholder="搜索..." /> -->
22-
</div>
23-
<div class="home-content">
24-
<!-- autoplay -->
25-
<div class="title" style="border-left: 2px solid #00BCD4;">优选功能</div>
26-
<Carousel class="carouse" style="display:none;" :height="180" v-model="value2" loop>
27-
<CarouselItem v-for="(item,i) in carouse" :key="i">
28-
<img :src="item.src" />
29-
</CarouselItem>
30-
</Carousel>
31-
<div >
32-
<!-- <div class="title">快捷功能</div> -->
33-
<div class="icon-item">
34-
<a class="item" v-for="(item,index) in icons" :key="index">
35-
<!-- <Icon :type="item.icon" /> -->
36-
<Avatar :style="{'background':item.color}" :icon="item.icon" size="large" />
37-
<br />
38-
<span>{{item.name}}</span>
39-
</a>
40-
</div>
41-
<div style="margin-top: 1rem;">
42-
<list></list>
43-
</div>
44-
</div>
45-
</div>
46-
</div>
47-
<!-- -->
48-
</template>
49-
<script>
50-
import list from "@/../src/components/Community/list.vue";
51-
export default {
52-
components: { list: list },
53-
data() {
54-
return {
55-
icons: [
56-
{
57-
name: "热 点",
58-
path: "/app/home",
59-
icon: "ios-aperture",
60-
color: "#FF9800"
61-
},
62-
{
63-
name: "商 圈",
64-
path: "/app/home",
65-
icon: "ios-cart",
66-
color: "#7dbcee"
67-
},
68-
{
69-
name: "社 圈",
70-
path: "/app/home",
71-
icon: "ios-globe-outline",
72-
color: "#fa805a"
73-
},
74-
{
75-
name: "话 题",
76-
path: "/app/home",
77-
icon: "ios-contacts",
78-
color: "rgb(224, 140, 238)"
79-
},
80-
{
81-
name: "服 务",
82-
path: "/app/home",
83-
icon: "ios-appstore",
84-
color: "rgb(0, 201, 8)"
85-
},
86-
{ name: "交 友", path: "/app/home", icon: "md-cafe", color: "#fa805a" },
87-
{
88-
name: "二 手",
89-
path: "/app/home",
90-
icon: "ios-hand",
91-
color: "rgb(255, 121, 167)"
92-
},
93-
{
94-
name: "其 他",
95-
path: "/app/home",
96-
icon: "ios-ionic",
97-
color: "#7dbcee"
98-
}
99-
],
100-
carouse: [
101-
{
102-
src: "https://imgs-1256993465.cos.ap-chengdu.myqcloud.com/h5/h51.jpg"
103-
},
104-
{
105-
src: "https://imgs-1256993465.cos.ap-chengdu.myqcloud.com/h5/h52.jpg"
106-
},
107-
{
108-
src: "https://imgs-1256993465.cos.ap-chengdu.myqcloud.com/h5/h53.jpg"
109-
},
110-
{
111-
src: "https://imgs-1256993465.cos.ap-chengdu.myqcloud.com/h5/h54.jpg"
112-
}
113-
],
114-
value2: 0
115-
};
116-
}
117-
};
118-
</script>
119-
<style lang="less" scoped>
120-
.home {
121-
background: #f9f8f8;
122-
height: 100%;
123-
}
124-
.home-content{
125-
margin-top: 42px;
126-
overflow-y: auto;
127-
}
128-
.carouse {
129-
height: 180px;
130-
img {
131-
height: 100%;
132-
width: 100%;
133-
}
134-
}
135-
.head {
136-
width: 100%;
137-
padding: 0.6rem;
138-
background: white;
139-
display: inline-block;
140-
border-bottom: 1px solid #eee;
141-
top: 0;
142-
position: fixed;
143-
z-index: 100;
144-
> div {
145-
float: left;
146-
width: 33.3333%;
147-
}
148-
.location .ivu-dropdown {
149-
top: 5px;
150-
position: relative;
151-
}
152-
.text {
153-
text-align: center;
154-
font-size: 1rem;
155-
color: forestgreen;
156-
}
157-
.search {
158-
text-align: right;
159-
font-size: 1.1rem;
160-
color: forestgreen;
161-
}
162-
}
163-
.title {
164-
padding: 0.6rem;
165-
}
166-
.icon-item {
167-
width: 100%;
168-
display: inline-block;
169-
position: relative;
170-
background: white;
171-
/* height: 3.7rem; */
172-
/* background: red; */
173-
border: 1px solid #eee;
174-
// padding: 1rem 0;
175-
// margin-top: 1rem;
176-
> a {
177-
float: left;
178-
width: 25%;
179-
padding: 0.6rem 0.3rem;
180-
text-align: center;
181-
color: #7c7979;
182-
border: 1px solid #f1eded;
183-
> i {
184-
font-size: 1.8rem;
185-
}
186-
}
187-
}
188-
</style>
189-
<style scoped>
190-
.head >>> input {
191-
border-radius: 20px;
192-
}
193-
</style>

0 commit comments

Comments
 (0)