Merge branch 'hotfix/1.5.0' into develop
Former-commit-id: 1753b71682548044866b5093db639dd7d12cbaba
This commit is contained in:
+3
-3
@@ -1,10 +1,10 @@
|
|||||||
# travis
|
# travis 自动构建预览
|
||||||
|
|
||||||
# 页面 title 前缀
|
# 页面 title 前缀
|
||||||
VUE_APP_TITLE=D2Admin Preview
|
VUE_APP_TITLE=D2Admin Preview
|
||||||
|
|
||||||
# 页面 指定使用的模式
|
# 指定构建模式
|
||||||
NODE_ENV=production
|
NODE_ENV=production
|
||||||
|
|
||||||
# 标记当前编译版本
|
# 标记当前是 CI
|
||||||
VUE_APP_TRAVIS=TRUE
|
VUE_APP_TRAVIS=TRUE
|
||||||
|
|||||||
Generated
+644
-959
File diff suppressed because it is too large
Load Diff
+1
-2
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "d2-admin",
|
"name": "d2-admin",
|
||||||
"version": "1.4.8",
|
"version": "1.5.0",
|
||||||
"private": true,
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "vue-cli-service serve --open",
|
"serve": "vue-cli-service serve --open",
|
||||||
"start": "vue-cli-service serve --open",
|
"start": "vue-cli-service serve --open",
|
||||||
|
|||||||
@@ -87,12 +87,12 @@ export default {
|
|||||||
// 更新元素数据
|
// 更新元素数据
|
||||||
this.contentWidth = contentWidth
|
this.contentWidth = contentWidth
|
||||||
this.scrollWidth = scrollWidth
|
this.scrollWidth = scrollWidth
|
||||||
// 判断何时滚动消失: 当page > content + btns(40)
|
// 判断何时滚动消失: 当scroll > content
|
||||||
if (contentWidth > scrollWidth + 40) {
|
if (contentWidth > scrollWidth) {
|
||||||
this.isScroll = false
|
this.isScroll = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 判断何时滚动出现: 当page < content
|
// 判断何时滚动出现: 当scroll < content
|
||||||
if (!this.isScroll && contentWidth < scrollWidth) {
|
if (!this.isScroll && contentWidth < scrollWidth) {
|
||||||
this.isScroll = true
|
this.isScroll = true
|
||||||
// 注意,当isScroll变为true,对应的元素盒子大小会发生变化
|
// 注意,当isScroll变为true,对应的元素盒子大小会发生变化
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ import { frameInRoutes } from '@/router/routes'
|
|||||||
Vue.use(d2Admin)
|
Vue.use(d2Admin)
|
||||||
|
|
||||||
// 可选插件组件
|
// 可选插件组件
|
||||||
|
// https://github.com/d2-projects/d2-crud
|
||||||
Vue.use(D2Crud)
|
Vue.use(D2Crud)
|
||||||
|
|
||||||
new Vue({
|
new Vue({
|
||||||
|
|||||||
Reference in New Issue
Block a user