@@ -32,7 +32,7 @@
diff --git a/vue/full/src/globalMethod/Verify/style.scss b/vue/full/src/globalMethod/Verify/style.scss
index 746bd6c..39316d8 100644
--- a/vue/full/src/globalMethod/Verify/style.scss
+++ b/vue/full/src/globalMethod/Verify/style.scss
@@ -57,8 +57,6 @@
padding-top: 10%;
&__icon {
- /*background-size: 764.70588%;
- background-position: 0 70.70218%;*/
background-image: url(./image/loading.png);
margin: 11% auto 10px;
width: 34px;
@@ -197,20 +195,20 @@
}
}
}
-}
-
-.puzzle-shake {
- animation: shake 0.2s linear 3 both;
-}
-@keyframes shake {
- 25% {
- transform: translate3d(-6px, 0, 0)
- }
- 75% {
- transform: translate3d(6px, 0, 0)
+ &.is-error {
+ animation: shake 0.2s linear 3 both;
}
- 100% {
- transform: translate3d(0, 0, 0)
+
+ @keyframes shake {
+ 25% {
+ transform: translate3d(-6px, 0, 0)
+ }
+ 75% {
+ transform: translate3d(6px, 0, 0)
+ }
+ 100% {
+ transform: translate3d(0, 0, 0)
+ }
}
}
diff --git a/vue/full/src/util/element-ui/elTree.js b/vue/full/src/util/element-ui/elTree.js
index d43f7dc..882e291 100644
--- a/vue/full/src/util/element-ui/elTree.js
+++ b/vue/full/src/util/element-ui/elTree.js
@@ -4,13 +4,11 @@
* @param ref el-tree实例
* @param action 'expand' | 'collapse'
* @param level 展开的节点最大深度,为0时匹配全部节点
- * @param func 自定义展开的函数,传入一个node,返回boolean,优先使用
+ * @param func 自定义展开的函数,传入(node, index),返回boolean,优先使用
*/
export function expandControl(ref, action = 'expand', level = 1, func) {
const handler = function () {
- if (typeof func === 'function') {
- return node => func(node)
- }
+ if (typeof func === 'function') return func
const expand = action === 'expand'
const forAll = level === 0
diff --git a/vue/full/src/util/observable.js b/vue/full/src/util/observable.js
index 1f133bb..7176ad6 100644
--- a/vue/full/src/util/observable.js
+++ b/vue/full/src/util/observable.js
@@ -18,7 +18,7 @@ export function createGetters(store) {
return getters
}
-//设置mutation
+//为Vue.observer返回的对象设置mutation
export function createMutations(store, all = false) {
const keys = Object.keys(store)
const obj = {}
diff --git a/vue/full/src/view/admin/userCenter/component/Avatar.vue b/vue/full/src/view/admin/userCenter/component/Avatar.vue
index a461b56..0faf0d3 100644
--- a/vue/full/src/view/admin/userCenter/component/Avatar.vue
+++ b/vue/full/src/view/admin/userCenter/component/Avatar.vue
@@ -1,37 +1,27 @@
-
-
-
+
+
+
+
+
- 选择图片
+ 选择图片
取 消
- 确 定
+ 确 定
@@ -122,15 +153,32 @@ export default {
.avatar-cropper {
height: 500px;
width: 100%;
- border: 1px solid #ebebeb;
- .cropper-crop-box {
- border-radius: 50%;
- overflow: hidden;
+ &-bg {
+ height: 100%;
+ width: 100%;
+ cursor: pointer;
+ }
+
+ > img {
+ display: none;
+ height: 100%;
+ width: 100%;
}
> input[type=file] {
display: none;
}
+
+ .cropper-view-box {
+ border-radius: 50%;
+ box-sizing: border-box;
+ border: 1px solid rgba(51, 153, 255, .75);
+ outline: unset;
+ }
+
+ .cropper-face {
+ border-radius: 50%;
+ }
}