imatrix-ui 2.9.39-dw → 2.9.41-dw

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": "imatrix-ui",
3
- "version": "2.9.39-dw",
3
+ "version": "2.9.41-dw",
4
4
  "description": "前端组件库:表格、表单、组织结构树等",
5
5
  "main": "lib/super-ui.umd.min.js",
6
6
  "private": false,
@@ -34,9 +34,9 @@
34
34
  "element-ui": "2.15.3",
35
35
  "eslint": "5.16.0",
36
36
  "eslint-plugin-vue": "5.2.2",
37
+ "node-sass": "4.12.0",
37
38
  "nprogress": "^0.2.0",
38
- "sass": "^1.49.8",
39
- "sass-loader": "^10.0.2",
39
+ "sass-loader": "^7.1.0",
40
40
  "sessionstorage": "^0.1.0",
41
41
  "vue": "^2.6.10",
42
42
  "vue-cli-plugin-element": "^1.0.1",
@@ -12,6 +12,7 @@
12
12
  </div>
13
13
  </template>
14
14
  <script>
15
+ import eventBus from './eventBus'
15
16
  export default {
16
17
  props: {
17
18
  r: {
@@ -29,6 +30,16 @@ export default {
29
30
  number2: null
30
31
  }
31
32
  },
33
+ mounted() {
34
+ // 查询条件重置时,数值区间组件的值需要清空
35
+ eventBus.$on('reset', () => {
36
+ this.number1 = null
37
+ this.number2 = null
38
+ })
39
+ },
40
+ destroyed() {
41
+ eventBus.$off('reset')
42
+ },
32
43
  methods: {
33
44
  setValue() {
34
45
  this.$emit('setValue', [this.number1, this.number2], this.r, this.n)
@@ -87,6 +87,7 @@ import { addDynamicProp, addDynamicPropDateSection } from './utils'
87
87
  import Vue from 'vue'
88
88
  import SearchConditionInput from './search-condition-input'
89
89
  import SearchConditionList from './search-condition-list'
90
+ import eventBus from './eventBus'
90
91
  export default {
91
92
  name: 'SearchForm',
92
93
  components: {
@@ -443,6 +444,8 @@ export default {
443
444
  this.$refs.searchFormAdvancedQuery.resetForm()
444
445
  this.$emit('reset')
445
446
  }
447
+ // 数值区间组件重置时无法清空值问题
448
+ eventBus.$emit('reset')
446
449
  // 子组件重置完成后调用reset方法 同步执行
447
450
  // this.$emit('reset')
448
451
  },
@@ -3,5 +3,5 @@
3
3
  .dark-blue {
4
4
  /* 改变 icon 字体路径变量,必需 */
5
5
  $--font-path: '~element-ui/lib/theme-chalk/fonts';
6
- // @import "~element-ui/packages/theme-chalk/src/index";
6
+ @import "~element-ui/packages/theme-chalk/src/index";
7
7
  }