bri-components 1.2.11 → 1.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bri-components",
3
- "version": "1.2.11",
3
+ "version": "1.2.12",
4
4
  "author": "dengshanghui",
5
5
  "description": "a component lib for vue project",
6
6
  "main": "src/index.js",
@@ -77,10 +77,10 @@
77
77
  created () {},
78
78
  methods: {
79
79
  clickDeleteItem (...params) {
80
- this.$emit("clickDeleteItem", ...params);
80
+ this.$emit("deleteItem", ...params);
81
81
  },
82
82
  clickClear () {
83
- this.$emit("clickClear");
83
+ this.$emit("clear");
84
84
  }
85
85
  }
86
86
  };
@@ -347,11 +347,10 @@
347
347
  // 默认方式的 -值改变
348
348
  changeVal (val, ...params) {
349
349
  if (this.isVisible || !val.length) {
350
- this.curValList = val;
350
+ this.value[this.controlKey] = val;
351
+ // 注:...params 参数不可去单独使用地区组件时调用
352
+ this.$emit("change", this.value[this.controlKey], ...params);
351
353
  }
352
-
353
- // 注:...params 参数不可去单独使用地区组件时调用
354
- this.$emit("change", this.value[this.controlKey], ...params);
355
354
  }
356
355
  },
357
356
  watch: {
@@ -106,6 +106,7 @@
106
106
  closable: true,
107
107
  transfer: true,
108
108
  footer: true,
109
+ maskClosable: false,
109
110
  ...this.propsObj
110
111
  };
111
112
  }
@@ -1,64 +1,9 @@
1
1
  .BriFlatTable {
2
- &-main {
2
+ .BriFlatTable-main {
3
3
  height: auto;
4
-
5
- .table {
6
- width: 100%;
7
- border-spacing: 0;
8
- border-collapse: collapse;
9
- border-color: #E5E5E5;
10
- background-color: #fff;
11
-
12
- &-head {
13
- background-color: #f0f0f0;
14
- color: #666;
15
-
16
- &-description {
17
- color: #828499;
18
- }
19
- }
20
-
21
- &-row {
22
- height: 50px;
23
-
24
- &:hover {
25
- .table-row-td-add {
26
- display: inline-block;
27
- }
28
- }
29
-
30
- &-td {
31
- position: relative;
32
-
33
- .td-inner {
34
- &-compare {
35
- width: 100%;
36
- }
37
- }
38
-
39
- &-tip {
40
- padding: 2px 5px 0px 10px;
41
- font-size: 12px;
42
- line-height: 1;
43
- color: #ed4014;
44
- position: absolute;
45
- top: calc(100% - 18px);
46
- left: 20px;
47
- }
48
-
49
- &-add {
50
- line-height: 20px;
51
- position: absolute;
52
- bottom: 0px;
53
- right: 0px;
54
- display: none;
55
- }
56
- }
57
- }
58
- }
59
4
  }
60
-
5
+
61
6
  &-create {
62
7
  margin-top: 8px;
63
8
  }
64
- }
9
+ }