agilebuilder-ui 1.1.33-sit5 → 1.1.34

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 (30) hide show
  1. package/lib/{401-a19c26f9.js → 401-7193e896.js} +1 -1
  2. package/lib/{404-97a9542c.js → 404-2852bd20.js} +1 -1
  3. package/lib/{iframe-page-cb203067.js → iframe-page-bcc25b1c.js} +1 -1
  4. package/lib/index-d502d8fe.js +72779 -0
  5. package/lib/super-ui.css +1 -1
  6. package/lib/super-ui.js +1 -1
  7. package/lib/super-ui.umd.cjs +89 -89
  8. package/lib/{tab-content-iframe-index-aac9a8b4.js → tab-content-iframe-index-48b3b846.js} +1 -1
  9. package/lib/{tab-content-index-0a8ddc6b.js → tab-content-index-d25e4873.js} +1 -1
  10. package/lib/{tache-subprocess-history-be4af7b1.js → tache-subprocess-history-a72dd967.js} +1 -1
  11. package/package.json +1 -1
  12. package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +1 -5
  13. package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +368 -343
  14. package/packages/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue +42 -113
  15. package/packages/organization-input/src/organization-input.vue +0 -11
  16. package/packages/super-grid/src/apis.js +13 -13
  17. package/packages/super-grid/src/dynamic-input.vue +1 -11
  18. package/packages/super-grid/src/formatter.js +56 -55
  19. package/packages/super-grid/src/normal-column-content.vue +56 -126
  20. package/packages/super-grid/src/row-operation.vue +18 -35
  21. package/packages/super-grid/src/super-grid.vue +97 -135
  22. package/packages/super-icon/src/index.vue +18 -29
  23. package/src/styles/display-layout.scss +1 -1
  24. package/src/styles/index.scss +1 -7
  25. package/src/utils/auth-api.js +0 -4
  26. package/src/utils/common-util.js +0 -3
  27. package/src/utils/dingtalk-util.ts +17 -23
  28. package/src/views/dsc-component/Sidebar/Item.vue +62 -73
  29. package/src/views/layout/components/Menubar/Item.vue +74 -94
  30. package/lib/index-dd28e479.js +0 -73213
@@ -12,32 +12,26 @@ export function checkDingtalkEnvironment() {
12
12
  window.$dd = dd
13
13
  const nonceStr = '1234567890' // 必填,自定义固定字符串。
14
14
  const timeStamp = new Date().getTime() // 必填,生成签名的时间戳
15
- try {
16
- window.$http
17
- .post(window.$vueApp.config.globalProperties.baseAPI + '/component/dingtalk/jsticket-sign', {
18
- nonceStr: nonceStr, // 必填,自定义固定字符串。
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
19
25
  timeStamp: timeStamp, // 必填,生成签名的时间戳
20
- url: window.location.href // 必填,当前页面的url
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。
21
30
  })
22
- .then((response: any) => {
23
- dd.config({
24
- agentId: response.agentId, // 必填,授权应用的agentid
25
- corpId: response.corpId, //必填,企业ID
26
- timeStamp: timeStamp, // 必填,生成签名的时间戳
27
- nonceStr: nonceStr, // 必填,自定义固定字符串。
28
- signature: response.signature, // 必填,签名
29
- type: 0, //选填。0表示微应用的jsapi,1表示服务窗的jsapi;不填默认为0。该参数从dingtalk.js的0.8.3版本开始支持
30
- jsApiList: ['biz.util.chooseImage'] // 必填,需要使用的jsapi列表,注意:不要带dd。
31
- })
32
- dd.error(function (err) {
33
- window.$dd = null
34
- console.error('dd error: ' + JSON.stringify(err))
35
- })
31
+ dd.error(function (err) {
32
+ console.error('dd error: ' + JSON.stringify(err))
36
33
  })
37
- } catch (e) {
38
- window.$dd = null
39
- console.error('DingTalk SDK initialization failed: ', e)
40
- }
34
+ })
41
35
  })
42
36
  }
43
37
  }
@@ -1,79 +1,68 @@
1
1
  <script lang="jsx">
2
- import { defineComponent, h } from 'vue'
3
- import SuperIcon from '../../../../packages/super-icon/src/index.vue'
2
+ import {defineComponent, h} from 'vue'
3
+ import SvgIcon from '../../svg-icon/src/svg-icon'
4
4
 
5
- export default defineComponent({
6
- name: 'MenuItem',
7
- functional: true,
8
- props: {
9
- icon: {
10
- type: String,
11
- default: ''
12
- },
13
- title: {
14
- type: String,
15
- default: ''
16
- },
17
- hasChildren: {
18
- type: Boolean,
19
- default: false
20
- },
21
- isRoot: {
22
- type: Boolean,
23
- default: false
24
- }
25
- },
26
- render(props) {
27
- const { title, hasChildren, isRoot } = props
28
- const icon = props.icon
29
- const vnodes = []
30
- // let iconsData = [h(SvgIcon,{'icon-class': 'meun_post' })]
31
- let iconsData = [h('i', { class: 'amb-iconfont amb-icon-meun_post' })]
5
+ export default defineComponent ({
6
+ name: 'MenuItem',
7
+ functional: true,
8
+ props: {
9
+ icon: {
10
+ type: String,
11
+ default: ''
12
+ },
13
+ title: {
14
+ type: String,
15
+ default: ''
16
+ },
17
+ hasChildren: {
18
+ type: Boolean,
19
+ default: false
20
+ },
21
+ isRoot: {
22
+ type: Boolean,
23
+ default: false
24
+ }
25
+ },
26
+ render(props) {
27
+ const { title, hasChildren, isRoot } = props
28
+ const icon = props.icon
29
+ const vnodes = []
30
+ // let iconsData = [h(SvgIcon,{'icon-class': 'meun_post' })]
31
+ let iconsData = [h('i',{class: 'amb-iconfont amb-icon-meun_post' })]
32
32
  if (icon) {
33
- iconsData = [h(SuperIcon, { iconValue: icon })]
34
- // if (icon.indexOf('amb-icon') === 0) {
35
- // iconsData = [h('i', { class: 'amb-iconfont ' + icon })]
36
- // } else if (icon.indexOf('fa-') === 0) {
37
- // iconsData = [h('i', { class: 'fa ' + icon })]
38
- // } else if (icon.indexOf('svg-') === 0) {
39
- // iconsData = [h(SvgIcon, { 'icon-class': icon.substring(icon.indexOf('svg-') + 4) })]
40
- // } else {
41
- // iconsData = [h('i', { class: icon + ' svg-icon' })]
42
- // }
43
- }
44
- vnodes.push(h('div', { class: ['smb-sidebar-menu-item-icon'] }, iconsData))
45
- if (title) {
46
- if (isRoot) {
47
- // 是否是根目录,没有子菜单时
48
- vnodes.push(
49
- h('div', { class: ['smb-sidebar-menu-item-title'] }, [
50
- h(
51
- 'div',
52
- {
53
- title: title
54
- },
55
- title
56
- )
57
- ])
58
- )
59
- } else {
60
- // 有子菜单时
61
- vnodes.push(
62
- h('div', { class: ['smb-sidebar-menu-item-title'] }, [
63
- h(
64
- 'div',
65
- {
66
- title: title
67
- },
68
- title
69
- )
70
- ])
71
- )
72
- }
73
- }
74
- return vnodes
75
- }
33
+ if (icon.indexOf('amb-icon') === 0) {
34
+ iconsData = [h('i',{class: 'amb-iconfont ' + icon})]
35
+ } else if (icon.indexOf('fa-') === 0) {
36
+ iconsData = [h('i',{class: 'fa ' + icon})]
37
+ } else if (icon.indexOf('svg-') === 0) {
38
+ iconsData = [h(SvgIcon,{'icon-class': icon.substring(icon.indexOf('svg-') + 4)})]
39
+ } else {
40
+ iconsData = [h('i',{class: icon + ' svg-icon'})]
41
+ }
42
+ }
43
+ vnodes.push(h('div', {class: ["smb-sidebar-menu-item-icon"]},iconsData))
44
+ if (title) {
45
+ if (isRoot) {
46
+ // 是否是根目录,没有子菜单时
47
+ vnodes.push(h('div', {class: ["smb-sidebar-menu-item-title"] },
48
+ [h('div',{
49
+ title:title
50
+ }, title)])
51
+ )
52
+ } else {
53
+ // 有子菜单时
54
+ vnodes.push(h('div', {class: ["smb-sidebar-menu-item-title"] },
55
+ [h('div',{
56
+ title:title
57
+ }, title)])
58
+ )
59
+ }
60
+ }
61
+ return vnodes
62
+ }
76
63
  })
77
64
  </script>
78
65
 
79
- <style lang="scss" scoped></style>
66
+ <style lang="scss" scoped>
67
+
68
+ </style>
@@ -1,99 +1,79 @@
1
1
  <script lang="jsx">
2
2
  import { defineComponent, h } from 'vue'
3
3
  import SvgIcon from '../../../svg-icon/src/svg-icon.vue'
4
- import { ElBadge } from 'element-plus'
5
- import SuperIcon from '../../../../../packages/super-icon/index'
6
- export default defineComponent({
7
- name: 'MenuItem',
8
- functional: true,
9
- props: {
10
- icon: {
11
- type: String,
12
- default: ''
13
- },
14
- title: {
15
- type: String,
16
- default: ''
17
- },
18
- hasChildren: {
19
- type: Boolean,
20
- default: false
21
- },
22
- isRoot: {
23
- type: Boolean,
24
- default: false
25
- },
26
- code: {
27
- type: Boolean,
28
- default: false
29
- },
30
- backlogTotal: {
31
- type: Number,
32
- default: 0
33
- }
34
- },
35
- render(props) {
36
- const { title, hasChildren, isRoot, code, backlogTotal } = props
37
- const icon = props.icon
38
- const vnodes = []
39
- // let iconsData = [h(SvgIcon,{'icon-class': 'meun_post' })]
40
- let iconsData = [h('i', { class: 'amb-iconfont amb-icon-meun_post' })]
41
- if (icon) {
42
- iconsData = [h(SuperIcon, { iconValue: icon })]
43
- // if (icon.indexOf('amb-icon') === 0) {
44
- // iconsData = [h('i',{class: 'amb-iconfont ' + icon})]
45
- // } else if (icon.indexOf('fa-') === 0) {
46
- // iconsData = [h('i',{class: 'fa ' + icon})]
47
- // } else if (icon.indexOf('svg-') === 0) {
48
- // iconsData = [h(SvgIcon,{'icon-class': icon.substring(icon.indexOf('svg-') + 4)})]
49
- // } else {
50
- // iconsData = [h('i',{class: icon + ' svg-icon'})]
51
- // }
52
- }
53
- vnodes.push(h('div', { class: ['smb-sidebar-menu-item-icon'] }, iconsData))
54
- if (title) {
55
- if (isRoot) {
56
- // 是否是根目录,没有子菜单时
57
- vnodes.push(
58
- h('div', { class: ['smb-sidebar-menu-item-title'] }, [
59
- h(
60
- 'div',
61
- {
62
- title: title
63
- },
64
- title
65
- )
66
- ])
67
- )
68
- } else if (code === 'undoneTask') {
69
- // 有子菜单时
70
- vnodes.push(
71
- h('div', { class: ['smb-sidebar-menu-item-title'] }, [
72
- h(
73
- 'div',
74
- {
75
- title: title
76
- },
77
- [h(ElBadge, { value: backlogTotal, style: { display: 'inline' } }, title)]
78
- )
79
- ])
80
- )
81
- } else {
82
- // 有子菜单时
83
- vnodes.push(
84
- h('div', { class: ['smb-sidebar-menu-item-title'] }, [
85
- h(
86
- 'div',
87
- {
88
- title: title
89
- },
90
- title
91
- )
92
- ])
93
- )
94
- }
95
- }
96
- return vnodes
97
- }
4
+ import {ElBadge} from 'element-plus'
5
+ export default defineComponent ({
6
+ name: 'MenuItem',
7
+ functional: true,
8
+ props: {
9
+ icon: {
10
+ type: String,
11
+ default: ''
12
+ },
13
+ title: {
14
+ type: String,
15
+ default: ''
16
+ },
17
+ hasChildren: {
18
+ type: Boolean,
19
+ default: false
20
+ },
21
+ isRoot: {
22
+ type: Boolean,
23
+ default: false
24
+ },
25
+ code: {
26
+ type: Boolean,
27
+ default: false
28
+ },
29
+ backlogTotal: {
30
+ type: Number,
31
+ default: 0
32
+ }
33
+ },
34
+ render(props) {
35
+ const { title, hasChildren, isRoot,code, backlogTotal } = props
36
+ const icon = props.icon
37
+ const vnodes = []
38
+ // let iconsData = [h(SvgIcon,{'icon-class': 'meun_post' })]
39
+ let iconsData = [h('i',{class: 'amb-iconfont amb-icon-meun_post' })]
40
+ if (icon) {
41
+ if (icon.indexOf('amb-icon') === 0) {
42
+ iconsData = [h('i',{class: 'amb-iconfont ' + icon})]
43
+ } else if (icon.indexOf('fa-') === 0) {
44
+ iconsData = [h('i',{class: 'fa ' + icon})]
45
+ } else if (icon.indexOf('svg-') === 0) {
46
+ iconsData = [h(SvgIcon,{'icon-class': icon.substring(icon.indexOf('svg-') + 4)})]
47
+ } else {
48
+ iconsData = [h('i',{class: icon + ' svg-icon'})]
49
+ }
50
+ }
51
+ vnodes.push(h('div', {class: ["smb-sidebar-menu-item-icon"]},iconsData))
52
+ if (title) {
53
+ if (isRoot) {
54
+ // 是否是根目录,没有子菜单时
55
+ vnodes.push(h('div', {class: ["smb-sidebar-menu-item-title"]},
56
+ [h('div',{
57
+ title:title
58
+ }, title)])
59
+ )
60
+ }else if (code === 'undoneTask') {
61
+ // 有子菜单时
62
+ vnodes.push(h('div', {class: ["smb-sidebar-menu-item-title"]},
63
+ [h('div',{
64
+ title:title
65
+ }, [h(ElBadge,{value:backlogTotal,style:{display:'inline'}},title)])])
66
+ )
67
+ } else {
68
+ // 有子菜单时
69
+ vnodes.push(h('div', {class: ["smb-sidebar-menu-item-title"]},
70
+ [h('div',{
71
+ title:title
72
+ }, title)])
73
+ )
74
+ }
75
+ }
76
+ return vnodes
77
+ }
98
78
  })
99
79
  </script>