agilebuilder-ui 1.1.33 → 1.1.35-sit1

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-7193e896.js → 401-02854e97.js} +1 -1
  2. package/lib/{404-2852bd20.js → 404-7fc14953.js} +1 -1
  3. package/lib/{iframe-page-bcc25b1c.js → iframe-page-f229d784.js} +1 -1
  4. package/lib/index-73d07db3.js +73221 -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-48b3b846.js → tab-content-iframe-index-f6bcacf3.js} +1 -1
  9. package/lib/{tab-content-index-d25e4873.js → tab-content-index-4a0d7f2d.js} +1 -1
  10. package/lib/{tache-subprocess-history-a72dd967.js → tache-subprocess-history-dcb3009a.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 +113 -42
  15. package/packages/organization-input/src/organization-input.vue +11 -0
  16. package/packages/super-grid/src/apis.js +13 -13
  17. package/packages/super-grid/src/dynamic-input.vue +11 -1
  18. package/packages/super-grid/src/formatter.js +55 -56
  19. package/packages/super-grid/src/normal-column-content.vue +149 -56
  20. package/packages/super-grid/src/row-operation.vue +35 -18
  21. package/packages/super-grid/src/super-grid.vue +135 -97
  22. package/packages/super-icon/src/index.vue +35 -18
  23. package/src/styles/display-layout.scss +1 -1
  24. package/src/styles/index.scss +7 -1
  25. package/src/utils/auth-api.js +4 -0
  26. package/src/utils/common-util.js +3 -0
  27. package/src/utils/dingtalk-util.ts +23 -17
  28. package/src/utils/util.js +721 -715
  29. package/src/views/dsc-component/Sidebar/Item.vue +76 -60
  30. package/src/views/layout/components/Menubar/Item.vue +94 -74
  31. package/lib/index-d502d8fe.js +0 -72779
@@ -1,68 +1,84 @@
1
1
  <script lang="jsx">
2
- import {defineComponent, h} from 'vue'
3
- import SvgIcon from '../../svg-icon/src/svg-icon'
2
+ import { defineComponent, h } from 'vue'
3
+ import SuperIcon from '../../../../packages/super-icon/src/index.vue'
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('i', { class: 'amb-iconfont amb-icon-meun_post' })]
31
+ // let iconsData = [h('i', { class: 'amb-color-iconfont amb-color-icon-goal-jichuweihu super-icon' })]
32
32
  if (icon) {
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
- }
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
+ }
63
76
  })
64
77
  </script>
65
78
 
66
79
  <style lang="scss" scoped>
67
-
80
+ .super-icon {
81
+ width: 16px;
82
+ height: 16px;
83
+ }
68
84
  </style>
@@ -1,79 +1,99 @@
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
- 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
- }
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
+ }
78
98
  })
79
99
  </script>