agilebuilder-ui 1.1.34 → 1.1.35-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.
- package/lib/{401-7193e896.js → 401-10787110.js} +1 -1
- package/lib/{404-2852bd20.js → 404-81306f89.js} +1 -1
- package/lib/{iframe-page-bcc25b1c.js → iframe-page-bd0c7ac7.js} +1 -1
- package/lib/index-5d1deed4.js +73264 -0
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +89 -89
- package/lib/{tab-content-iframe-index-48b3b846.js → tab-content-iframe-index-84fee73c.js} +1 -1
- package/lib/{tab-content-index-d25e4873.js → tab-content-index-ddd15021.js} +1 -1
- package/lib/{tache-subprocess-history-a72dd967.js → tache-subprocess-history-00e89e0a.js} +1 -1
- package/package.json +1 -1
- package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +5 -1
- package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +343 -368
- package/packages/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue +113 -42
- package/packages/organization-input/src/organization-input.vue +11 -0
- package/packages/super-grid/src/apis.js +13 -13
- package/packages/super-grid/src/dynamic-input.vue +11 -1
- package/packages/super-grid/src/formatter.js +58 -57
- package/packages/super-grid/src/normal-column-content.vue +149 -56
- package/packages/super-grid/src/row-operation.vue +35 -18
- package/packages/super-grid/src/search-form-open.vue +0 -1
- package/packages/super-grid/src/super-grid-service.js +1 -1
- package/packages/super-grid/src/super-grid.vue +135 -97
- package/packages/super-icon/src/index.vue +35 -18
- package/packages/utils/value-set.js +147 -1
- package/src/styles/display-layout.scss +1 -1
- package/src/styles/index.scss +7 -1
- package/src/utils/auth-api.js +4 -0
- package/src/utils/common-util.js +3 -0
- package/src/utils/dingtalk-util.ts +23 -17
- package/src/utils/util.js +721 -715
- package/src/views/dsc-component/Sidebar/Item.vue +76 -60
- package/src/views/layout/components/Menubar/Item.vue +94 -74
- package/lib/index-d502d8fe.js +0 -72779
|
@@ -1,68 +1,84 @@
|
|
|
1
1
|
<script lang="jsx">
|
|
2
|
-
import {defineComponent, h} from 'vue'
|
|
3
|
-
import
|
|
2
|
+
import { defineComponent, h } from 'vue'
|
|
3
|
+
import SuperIcon from '../../../../packages/super-icon/src/index.vue'
|
|
4
4
|
|
|
5
|
-
export default defineComponent
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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>
|