no message
Former-commit-id: 071f5f99465e967623d9ac03d5e494e82b750415
This commit is contained in:
+3
-3
@@ -1,10 +1,10 @@
|
||||
# travis
|
||||
# travis 自动构建预览
|
||||
|
||||
# 页面 title 前缀
|
||||
VUE_APP_TITLE=D2Admin Preview
|
||||
|
||||
# 页面 指定使用的模式
|
||||
# 指定构建模式
|
||||
NODE_ENV=production
|
||||
|
||||
# 标记当前编译版本
|
||||
# 标记当前是 CI
|
||||
VUE_APP_TRAVIS=TRUE
|
||||
|
||||
Generated
+641
-982
File diff suppressed because it is too large
Load Diff
+1
-3
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"name": "d2-admin",
|
||||
"version": "1.4.8",
|
||||
"private": true,
|
||||
"version": "1.5.0",
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve --open",
|
||||
"start": "vue-cli-service serve --open",
|
||||
@@ -12,7 +11,6 @@
|
||||
"test:unit": "vue-cli-service test:unit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@d2-projects/d2-crud": "^1.2.0",
|
||||
"axios": "^0.17.1",
|
||||
"babel-polyfill": "^6.26.0",
|
||||
"better-scroll": "^1.12.1",
|
||||
|
||||
@@ -87,12 +87,12 @@ export default {
|
||||
// 更新元素数据
|
||||
this.contentWidth = contentWidth
|
||||
this.scrollWidth = scrollWidth
|
||||
// 判断何时滚动消失: 当page > content + btns(40)
|
||||
if (contentWidth > scrollWidth + 40) {
|
||||
// 判断何时滚动消失: 当scroll > content
|
||||
if (contentWidth > scrollWidth) {
|
||||
this.isScroll = false
|
||||
}
|
||||
}
|
||||
// 判断何时滚动出现: 当page < content
|
||||
// 判断何时滚动出现: 当scroll < content
|
||||
if (!this.isScroll && contentWidth < scrollWidth) {
|
||||
this.isScroll = true
|
||||
// 注意,当isScroll变为true,对应的元素盒子大小会发生变化
|
||||
|
||||
Reference in New Issue
Block a user