imatrix-ui 2.9.67-dw → 2.9.69-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.67-dw",
3
+ "version": "2.9.69-dw",
4
4
  "description": "前端组件库:表格、表单、组织结构树等",
5
5
  "main": "lib/super-ui.umd.min.js",
6
6
  "private": false,
@@ -44,7 +44,7 @@
44
44
  <template slot-scope="scope">
45
45
  <div v-if="scope.row.enName && scope.row.enName.trim() !== ''">
46
46
  <div :title="scope.row.name +'('+scope.row.enName+')' +'['+scope.row.loginName+']'">
47
- <span>{{ scope.row.name+'('+scope.row.enName+')' }}[{{ scope.row.loginName }}]</span>
47
+ <span style="white-space: pre;">{{ scope.row.name+'('+scope.row.enName+')' }}[{{ scope.row.loginName }}]</span>
48
48
  </div>
49
49
  <div style="color:#ccc" :title="getDeptName(scope.row)">
50
50
  {{ getDeptName(scope.row) }}
@@ -52,7 +52,7 @@
52
52
  </div>
53
53
  <div v-else>
54
54
  <div :title="scope.row.name +'['+scope.row.loginName+']'">
55
- <span>{{ scope.row.name }}[{{ scope.row.loginName }}]</span>
55
+ <span style="white-space: pre;">{{ scope.row.name }}[{{ scope.row.loginName }}]</span>
56
56
  </div>
57
57
  <div style="color:#ccc" :title="getDeptName(scope.row)">
58
58
  {{ getDeptName(scope.row) }}
@@ -160,7 +160,21 @@ export default {
160
160
  tinymce.activeEditor && tinymce.activeEditor.uploadImages()
161
161
  return url
162
162
  }
163
- return url
163
+ // 正则表达式,用于验证URL
164
+ const urlPattern = new RegExp(
165
+ '^(https?:\\/\\/)?' + // 协议 http:// 或者 https:// (可选)
166
+ '((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|' + // 域名
167
+ '((\\d{1,3}\\.){3}\\d{1,3}))' + // 或者 IP (v4) 地址
168
+ '(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*' + // 端口号(可选)
169
+ '(\\?[;&a-z\\d%_.~+=-]*)?' + // 查询字符串(可选)
170
+ '(\\#[-a-z\\d_]*)?$', 'i') // 片段(可选)
171
+
172
+ if (urlPattern.test(url)) {
173
+ return url
174
+ } else {
175
+ alert('url invalid')
176
+ return ''
177
+ }
164
178
  },
165
179
  images_upload_handler: (blobInfo, success, failure, progress) => {
166
180
  let file
@@ -173,8 +173,8 @@ const en = {
173
173
  kiken: 'Abstention',
174
174
  get_back_button: 'Retrieve',
175
175
  copy: 'Copy',
176
- draw: 'Draw',
177
- abandon_draw: 'Give Up Draw',
176
+ draw: 'Receive',
177
+ abandon_draw: 'Give Up Receive',
178
178
  add_sign: 'Additional Signature',
179
179
  remove_sign: 'Reduction Of Signature',
180
180
  signoff: 'Sign For',