imatrix-ui 2.8.5 → 2.8.6

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.8.5",
3
+ "version": "2.8.6",
4
4
  "description": "前端组件库:表格、表单、组织结构树等",
5
5
  "main": "lib/super-ui.umd.min.js",
6
6
  "private": false,
@@ -13,9 +13,11 @@
13
13
  "test:unit": "vue-cli-service test:unit"
14
14
  },
15
15
  "dependencies": {
16
+ "@tinymce/tinymce-vue": "^3.2.4",
16
17
  "@zxing/library": "^0.19.1",
17
18
  "js-cookie": "^2.2.0",
18
- "sortablejs": "1.10.2"
19
+ "sortablejs": "1.10.2",
20
+ "tinymce": "^5.6.1"
19
21
  },
20
22
  "devDependencies": {
21
23
  "@vue/cli-plugin-babel": "3.8.0",
@@ -40,7 +40,8 @@ const cn = {
40
40
  switchToAdvancedQuery: '切换为高级查询',
41
41
  isNull: '等于Null',
42
42
  isNotNull: '不等于Null',
43
- previewImage: '预览图片'
43
+ previewImage: '预览图片',
44
+ fullScreen: '全屏'
44
45
  },
45
46
  imatrixUIMessage: {
46
47
  whetherToConfirmDeletion: '是否确认删除',
@@ -40,7 +40,8 @@ const en = {
40
40
  switchToAdvancedQuery: 'Switch To Advanced Query',
41
41
  isNull: 'Is Null',
42
42
  isNotNull: 'Is Not Null',
43
- previewImage: 'Preview image'
43
+ previewImage: 'Preview image',
44
+ fullScreen: 'Full Screen'
44
45
  },
45
46
  imatrixUIMessage: {
46
47
  whetherToConfirmDeletion: 'Whether To Confirm Deletion',
@@ -45,7 +45,7 @@ class NumberCalculator extends CalculatorFactory {
45
45
  this.result = true
46
46
  } else if (this.isEQEmptyValue(leftVale, operator, rightValue)) {
47
47
  this.result = true
48
- } else if (leftVale === null) {
48
+ } else if (leftVale === undefined || leftVale === null) {
49
49
  this.result = false
50
50
  } else {
51
51
  const preOperand = Number(leftVale + '')
@@ -81,7 +81,7 @@ class TextCalculator extends CalculatorFactory {
81
81
  this.result = true
82
82
  } else if (this.isNotNullValue(leftVale, operator)) {
83
83
  this.result = true
84
- } else if (leftVale === null) {
84
+ } else if (leftVale === undefined || leftVale === null) {
85
85
  this.result = false
86
86
  } else {
87
87
  if (operator === 'NET') {
package/src/utils/util.js CHANGED
@@ -218,7 +218,7 @@ function parseCondition(entity, conditionList, isSql, tableName, additionalParam
218
218
  }
219
219
  }
220
220
  conditions += conditionResult + ' '
221
- if (leftBracket && leftBracket !== null && leftBracket !== '') {
221
+ if (rightBracket && rightBracket !== null && rightBracket !== '') {
222
222
  conditions = conditions + rightBracket
223
223
  conditions = conditions + (' ')
224
224
  // conditions.append(rightBracket).append(' ')
@@ -237,8 +237,12 @@ function parseCondition(entity, conditionList, isSql, tableName, additionalParam
237
237
  }
238
238
  }
239
239
  console.log('parseCondition----conditions=', conditions)
240
- // eslint-disable-next-line no-eval
241
- return eval('(' + conditions + ')')
240
+ if (conditions) {
241
+ // eslint-disable-next-line no-eval
242
+ return eval('(' + conditions + ')')
243
+ } else {
244
+ return true
245
+ }
242
246
  }
243
247
  const REPLACE_DOT = '__'
244
248