vuepress-theme-uniapp-official 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -107,12 +107,15 @@
|
|
|
107
107
|
.page-bar
|
|
108
108
|
display flex
|
|
109
109
|
justify-content center
|
|
110
|
-
margin 10px
|
|
111
110
|
|
|
112
|
-
ul
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
111
|
+
ul
|
|
112
|
+
margin 0px
|
|
113
|
+
line-height normal
|
|
114
|
+
padding 0px
|
|
115
|
+
li
|
|
116
|
+
margin 0px
|
|
117
|
+
padding 0px
|
|
118
|
+
user-select none
|
|
116
119
|
|
|
117
120
|
li
|
|
118
121
|
display inline-block
|
|
@@ -128,11 +131,10 @@
|
|
|
128
131
|
position relative
|
|
129
132
|
float left
|
|
130
133
|
padding 2px 10px
|
|
131
|
-
|
|
132
|
-
line-height 1.42857143
|
|
134
|
+
line-height 1.5
|
|
133
135
|
color #5d6062
|
|
134
136
|
cursor pointer
|
|
135
|
-
margin-right
|
|
137
|
+
margin-right 15px
|
|
136
138
|
background-color #fff
|
|
137
139
|
|
|
138
140
|
.page-bar a:hover
|
|
@@ -36,7 +36,7 @@ $svg-hover-color = #9b9b9b
|
|
|
36
36
|
.search-result
|
|
37
37
|
width 95%
|
|
38
38
|
// max-width 960px
|
|
39
|
-
margin 0 auto
|
|
39
|
+
margin 0 auto 10px
|
|
40
40
|
padding: 10px;
|
|
41
41
|
box-sizing border-box
|
|
42
42
|
overflow-x: hidden;
|
|
@@ -51,7 +51,7 @@ $svg-hover-color = #9b9b9b
|
|
|
51
51
|
.algolia-logo
|
|
52
52
|
display flex
|
|
53
53
|
justify-content center
|
|
54
|
-
padding 10px 0
|
|
54
|
+
padding 10px 0
|
|
55
55
|
|
|
56
56
|
.search-more
|
|
57
57
|
display block
|
|
@@ -118,7 +118,6 @@ $svg-hover-color = #9b9b9b
|
|
|
118
118
|
|
|
119
119
|
.search-input
|
|
120
120
|
width 100%
|
|
121
|
-
height 56px
|
|
122
121
|
font-size 16px
|
|
123
122
|
border none
|
|
124
123
|
box-sizing border-box
|
|
@@ -126,8 +125,8 @@ $svg-hover-color = #9b9b9b
|
|
|
126
125
|
padding 1px 18px
|
|
127
126
|
border-radius 4px
|
|
128
127
|
|
|
129
|
-
.search-input-btn
|
|
130
|
-
height
|
|
128
|
+
.search-input, .search-input-btn
|
|
129
|
+
height 46px
|
|
131
130
|
|
|
132
131
|
.search-back__btn
|
|
133
132
|
display block !important
|
|
@@ -165,7 +164,11 @@ $svg-hover-color = #9b9b9b
|
|
|
165
164
|
@media (max-width 900px)
|
|
166
165
|
&
|
|
167
166
|
padding 0 1%
|
|
168
|
-
|
|
167
|
+
.search-footer
|
|
168
|
+
// 一个好看的上方阴影
|
|
169
|
+
background-color $navbar-background-color
|
|
170
|
+
.search-pagination
|
|
171
|
+
padding-top 10px
|
|
169
172
|
|
|
170
173
|
@media (max-width $MQMobile)
|
|
171
174
|
#search-container
|
|
@@ -78,7 +78,17 @@
|
|
|
78
78
|
<div class="markdown-section search-result-list" v-if="serverHtml" v-html="serverHtml"></div>
|
|
79
79
|
</template>
|
|
80
80
|
</div>
|
|
81
|
+
</div>
|
|
81
82
|
|
|
83
|
+
<div class="search-footer">
|
|
84
|
+
<div class="search-pagination">
|
|
85
|
+
<pagination v-show="showPagination" @research="research" :totalPage="totalPage" :curPage="curPage"
|
|
86
|
+
:pageSize="pageSize" />
|
|
87
|
+
<a v-if="showMoreAsk" class="search-more" @click="moreAskResult">
|
|
88
|
+
<span v-if="showServerLoading" class="uni-loading"></span>
|
|
89
|
+
<span v-else>{{ hasNoMoreServerResult ? '没有更多了' : '更多...' }}</span>
|
|
90
|
+
</a>
|
|
91
|
+
</div>
|
|
82
92
|
<div v-if="isAlgolia" class="algolia-logo">
|
|
83
93
|
<div class="DocSearch-Logo">
|
|
84
94
|
<a href="https://www.algolia.com/ref/docsearch/?utm_source=uniapp.dcloud.io&utm_medium=referral&utm_content=powered_by&utm_campaign=docsearch"
|
|
@@ -93,15 +103,6 @@
|
|
|
93
103
|
</div>
|
|
94
104
|
</div>
|
|
95
105
|
</div>
|
|
96
|
-
|
|
97
|
-
<div class="search-pagination">
|
|
98
|
-
<pagination v-show="showPagination" @research="research" :totalPage="totalPage" :curPage="curPage"
|
|
99
|
-
:pageSize="pageSize" />
|
|
100
|
-
<a v-if="showMoreAsk" class="search-more" @click="moreAskResult">
|
|
101
|
-
<span v-if="showServerLoading" class="uni-loading"></span>
|
|
102
|
-
<span v-else>{{ hasNoMoreServerResult ? '没有更多了' : '更多...' }}</span>
|
|
103
|
-
</a>
|
|
104
|
-
</div>
|
|
105
106
|
</div>
|
|
106
107
|
</div>
|
|
107
108
|
</template>
|
|
@@ -257,16 +258,18 @@ export default {
|
|
|
257
258
|
|
|
258
259
|
methods: {
|
|
259
260
|
initResultWrapHeight() {
|
|
260
|
-
if (!this.$el) return;
|
|
261
|
+
if (!this.$el || !this.$refs.pageContainer) return;
|
|
261
262
|
|
|
262
263
|
const pageHeight = this.$el.clientHeight;
|
|
263
264
|
const container = this.$refs.pageContainer.querySelector('.search-page-content');
|
|
264
265
|
const subNavbar = container.querySelector('.sub-navbar');
|
|
265
266
|
const resultNumber = container.querySelector('.result-number');
|
|
266
267
|
const searchResult = container.querySelector('.search-result');
|
|
268
|
+
const alogliaLogo = document.querySelector('.algolia-logo');
|
|
267
269
|
|
|
268
270
|
const searchNavbarHeight = subNavbar ? subNavbar.clientHeight : 83;
|
|
269
271
|
const resultNumberHeight = (resultNumber || { clientHeight: 47 }).clientHeight;
|
|
272
|
+
const algoliaLogoHeight = (alogliaLogo || { clientHeight: 49 }).clientHeight;
|
|
270
273
|
const searchPagination = 36 + 20; // pagination height + margin
|
|
271
274
|
|
|
272
275
|
if (searchResult) {
|
|
@@ -275,6 +278,7 @@ export default {
|
|
|
275
278
|
searchNavbarHeight -
|
|
276
279
|
resultNumberHeight -
|
|
277
280
|
searchPagination -
|
|
281
|
+
algoliaLogoHeight -
|
|
278
282
|
// 多余空间 mobile
|
|
279
283
|
20 -
|
|
280
284
|
60 + 'px';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vuepress-theme-uniapp-official",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"description": "uni-app official website theme for vuepress",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"vuepress-plugin-mermaidjs": "1.9.1",
|
|
44
44
|
"vuepress-plugin-named-chunks": "^1.1.4",
|
|
45
45
|
"vuepress-plugin-zooming": "^1.1.8",
|
|
46
|
+
"vuepress-plugin-noscript-code": "^1.0.2",
|
|
46
47
|
"vuepress-plugin-expandable-row": "^1.0.10",
|
|
47
|
-
"vuepress-plugin-check-md2": "^1.0.5"
|
|
48
|
-
"vuepress-plugin-noscript-code": "^1.0.2"
|
|
48
|
+
"vuepress-plugin-check-md2": "^1.0.5"
|
|
49
49
|
},
|
|
50
50
|
"resolutions": {
|
|
51
51
|
"terser-webpack-plugin": "1.4.6",
|