no message

Former-commit-id: 071f5f99465e967623d9ac03d5e494e82b750415
This commit is contained in:
liyang
2018-09-29 17:14:16 +08:00
parent ec3838fa53
commit e69054ded3
5 changed files with 9669 additions and 991 deletions
+3 -3
View File
@@ -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
+641 -982
View File
File diff suppressed because it is too large Load Diff
+1 -3
View File
@@ -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",
@@ -12,7 +11,6 @@
"test:unit": "vue-cli-service test:unit" "test:unit": "vue-cli-service test:unit"
}, },
"dependencies": { "dependencies": {
"@d2-projects/d2-crud": "^1.2.0",
"axios": "^0.17.1", "axios": "^0.17.1",
"babel-polyfill": "^6.26.0", "babel-polyfill": "^6.26.0",
"better-scroll": "^1.12.1", "better-scroll": "^1.12.1",
@@ -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,对应的元素盒子大小会发生变化
+9021
View File
File diff suppressed because it is too large Load Diff