imatrix-ui 2.7.57 → 2.7.59

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.7.57",
3
+ "version": "2.7.59",
4
4
  "description": "前端组件库:表格、表单、组织结构树等",
5
5
  "main": "lib/super-ui.umd.min.js",
6
6
  "private": false,
@@ -13,6 +13,7 @@
13
13
  "test:unit": "vue-cli-service test:unit"
14
14
  },
15
15
  "dependencies": {
16
+ "@zxing/library": "^0.19.1",
16
17
  "js-cookie": "^2.2.0",
17
18
  "sortablejs": "1.10.2"
18
19
  },
@@ -221,6 +221,11 @@ const cn = {
221
221
  uploadSucceeded: '上传成功',
222
222
  theNumberOfUploadsExceedsTheLimitTheLimitIs: '上传数量超过限制,限制数量为'
223
223
  },
224
+ messageVideo: {
225
+ attemptingToIdentify: '正在尝试识别....',
226
+ callingRearCamera: '正在调用后置摄像头...',
227
+ identificationFailed: '识别失败'
228
+ },
224
229
  ...zhLocale
225
230
  }
226
231
  export default cn
@@ -217,6 +217,11 @@ const en = {
217
217
  uploadSucceeded: 'Upload succeeded',
218
218
  theNumberOfUploadsExceedsTheLimitTheLimitIs: 'The number of uploads exceeds the limit. The limit is'
219
219
  },
220
+ messageVideo: {
221
+ attemptingToIdentify: 'Attempting to identify',
222
+ callingRearCamera: 'Calling rear camera',
223
+ identificationFailed: 'Identification failed'
224
+ },
220
225
  ...enLocale
221
226
  }
222
227
  export default en
@@ -175,3 +175,17 @@ export function isPlateSys(systemCode) {
175
175
  return false
176
176
  }
177
177
  }
178
+
179
+ export function getServerConfigUtil(http) {
180
+ return new Promise((resolve, reject) => {
181
+ http.get('./server-config.json').then(result => {
182
+ const config = result
183
+ for (const key in config) {
184
+ Vue.prototype[key] = config[key]
185
+ }
186
+ Vue.prototype.baseURL = getRelativeBaseUrl(Vue.prototype.baseURL)
187
+ Vue.prototype.baseAPI = getRelativeBaseUrl(Vue.prototype.baseAPI)
188
+ resolve()
189
+ })
190
+ })
191
+ }