浏览代码

Merge branch 'next' of https://github.com/guoxiao158/nutui into next

guoxiaoxiao8 4 年之前
父节点
当前提交
74fd50df66
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 1 0
      src/packages/__VUE/checkboxgroup/index.vue
  2. 2 2
      src/packages/__VUE/col/index.scss

+ 1 - 0
src/packages/__VUE/checkboxgroup/index.vue

@@ -37,6 +37,7 @@ export default create({
 
     const updateValue = (value: any[]) => {
       emit('update:modelValue', value);
+      emit('change', value);
     };
 
     const toggleAll = (checked: boolean) => {

+ 2 - 2
src/packages/__VUE/col/index.scss

@@ -17,10 +17,10 @@
 
 @for $i from 1 through 24 {
   .nut-col-offset-#{$i} {
-    margin-left: 100/ 24 * $i * 1%;
+    margin-left: math.div(100, 24) * $i * 1%;
   }
 
   .nut-col-#{$i} {
-    width: 100/ 24 * $i * 1%;
+    width: math.div(100, 24) * $i * 1%;
   }
 }