agilebuilder-ui 1.1.32 → 1.1.33-sit2

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.
Files changed (31) hide show
  1. package/lib/{401-572d1150.js → 401-7b6f6bb7.js} +1 -1
  2. package/lib/{404-442a62d4.js → 404-427a0b5a.js} +1 -1
  3. package/lib/{iframe-page-1b622fa5.js → iframe-page-89815912.js} +1 -1
  4. package/lib/index-e2f27581.js +73223 -0
  5. package/lib/super-ui.css +1 -1
  6. package/lib/super-ui.js +1 -1
  7. package/lib/super-ui.umd.cjs +94 -94
  8. package/lib/{tab-content-iframe-index-285c8311.js → tab-content-iframe-index-2619cf03.js} +1 -1
  9. package/lib/{tab-content-index-ddb9e911.js → tab-content-index-391b0efb.js} +1 -1
  10. package/lib/{tache-subprocess-history-81e8e4f4.js → tache-subprocess-history-2097ae7f.js} +1 -1
  11. package/package.json +1 -1
  12. package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +5 -1
  13. package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +343 -368
  14. package/packages/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue +193 -101
  15. package/packages/fs-upload-new/src/file-upload-mobile/file-upload-input.vue +74 -62
  16. package/packages/fs-upload-new/src/file-upload-mobile/file-upload.vue +1 -1
  17. package/packages/organization-input/src/organization-input.vue +11 -0
  18. package/packages/super-grid/src/dynamic-input.vue +11 -1
  19. package/packages/super-grid/src/formatter.js +55 -56
  20. package/packages/super-grid/src/normal-column-content.vue +125 -55
  21. package/packages/super-grid/src/row-operation.vue +35 -18
  22. package/packages/super-grid/src/super-grid.vue +135 -97
  23. package/packages/super-icon/src/index.vue +1 -0
  24. package/src/i18n/langs/cn.js +2 -1
  25. package/src/i18n/langs/en.js +2 -1
  26. package/src/styles/display-layout.scss +1 -1
  27. package/src/styles/index.scss +7 -1
  28. package/src/utils/auth-api.js +4 -0
  29. package/src/utils/common-util.js +3 -0
  30. package/src/utils/dingtalk-util.ts +37 -0
  31. package/lib/index-0ffdab4a.js +0 -72771
@@ -43,12 +43,17 @@ body {
43
43
  box-sizing: border-box
44
44
  }
45
45
 
46
+ .wrap-text {
47
+ white-space: pre-line;
48
+ word-break: break-all;
49
+ }
50
+
46
51
  // 省略号
47
52
  .ellipsis {
48
53
  // display: inline-block;
49
54
  overflow: hidden;
50
55
  text-overflow: ellipsis;
51
- white-space: nowrap;
56
+ white-space: pre;
52
57
  word-break: keep-all;
53
58
  width: 100%;
54
59
 
@@ -73,6 +78,7 @@ body {
73
78
  }
74
79
  }
75
80
 
81
+
76
82
  [break-word] {
77
83
  word-wrap: break-word;
78
84
  }
@@ -214,6 +214,10 @@ function getLanguage() {
214
214
  }
215
215
 
216
216
  function setLanguage(lang) {
217
+ if(!lang){
218
+ // 默认是中文
219
+ lang = 'zh_CN'
220
+ }
217
221
  setCookieCache(langKey, lang)
218
222
  setSessionCache(langKey, lang)
219
223
  }
@@ -246,6 +246,9 @@ export function getServerConfigUtil(http) {
246
246
  if (config.fontIconAddress && window.insertCssFile) {
247
247
  window.insertCssFile(`${config.fontIconAddress}/iconfont.css`)
248
248
  }
249
+ if (config.fontIconAddress && window.insertCssFile) {
250
+ window.insertCssFile(`${config.fontIconAddress}-color/iconfont.css`)
251
+ }
249
252
  resolve()
250
253
  })
251
254
  })
@@ -0,0 +1,37 @@
1
+ export function checkDingtalkEnvironment() {
2
+ const authSource = window.localStorage.getItem('auth_source')
3
+ let isDingTalk = false
4
+ if (authSource && authSource === 'dingtalk') {
5
+ isDingTalk = true
6
+ }
7
+
8
+ if (isDingTalk) {
9
+ let dd: any = null
10
+ import('dingtalk-jsapi').then((module) => {
11
+ dd = module.default
12
+ window.$dd = dd
13
+ const nonceStr = '1234567890' // 必填,自定义固定字符串。
14
+ const timeStamp = new Date().getTime() // 必填,生成签名的时间戳
15
+ window.$http
16
+ .post(window.$vueApp.config.globalProperties.baseAPI + '/component/dingtalk/jsticket-sign', {
17
+ nonceStr: nonceStr, // 必填,自定义固定字符串。
18
+ timeStamp: timeStamp, // 必填,生成签名的时间戳
19
+ url: window.location.href // 必填,当前页面的url
20
+ })
21
+ .then((response: any) => {
22
+ dd.config({
23
+ agentId: response.agentId, // 必填,授权应用的agentid
24
+ corpId: response.corpId, //必填,企业ID
25
+ timeStamp: timeStamp, // 必填,生成签名的时间戳
26
+ nonceStr: nonceStr, // 必填,自定义固定字符串。
27
+ signature: response.signature, // 必填,签名
28
+ type: 0, //选填。0表示微应用的jsapi,1表示服务窗的jsapi;不填默认为0。该参数从dingtalk.js的0.8.3版本开始支持
29
+ jsApiList: ['biz.util.chooseImage'] // 必填,需要使用的jsapi列表,注意:不要带dd。
30
+ })
31
+ dd.error(function (err) {
32
+ console.error('dd error: ' + JSON.stringify(err))
33
+ })
34
+ })
35
+ })
36
+ }
37
+ }