agilebuilder-ui 1.1.37-sit2 → 1.1.38-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.
- package/lib/{401-c46a3b20.js → 401-00dc5c6a.js} +1 -1
- package/lib/{404-c35a937a.js → 404-da4b5e44.js} +1 -1
- package/lib/{iframe-page-10e94ddd.js → iframe-page-9211c46a.js} +1 -1
- package/lib/{index-f92e8ddb.js → index-398aaf91.js} +1911 -1837
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +71 -68
- package/lib/{tab-content-iframe-index-8113610a.js → tab-content-iframe-index-2a5e10d0.js} +1 -1
- package/lib/{tab-content-index-3b7f4fa8.js → tab-content-index-b4e908df.js} +22 -22
- package/lib/{tache-subprocess-history-75f40d2a.js → tache-subprocess-history-b4622487.js} +1 -1
- package/package.json +1 -1
- package/packages/fs-upload-new/src/fs-button-upload.vue +12 -0
- package/packages/fs-upload-new/src/fs-drag-upload.vue +12 -0
- package/packages/fs-upload-new/src/fs-preview-new.vue +25 -5
- package/packages/fs-upload-new/src/fs-upload-new.vue +20 -0
- package/packages/super-grid/src/dynamic-input.vue +11 -21
- package/packages/super-grid/src/normal-column-content.vue +8 -1
- package/packages/super-grid/src/search-form-item.vue +31 -15
- package/src/api/sso-service.js +2 -1
- package/src/permission.js +2 -1
- package/src/store/modules/user.js +4 -1
- package/src/utils/common-util.js +1 -1
- package/src/utils/permissionAuth.js +7 -5
- package/src/utils/util.js +16 -0
- package/src/views/dsc-component/Sidebar/Item.vue +15 -4
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +10 -2
- package/src/views/layout/components/Menubar/Item.vue +14 -3
- package/src/views/layout/components/Menubar/SidebarItem.vue +9 -1
- package/vite.config.js +1 -2
|
@@ -21,11 +21,16 @@ export default defineComponent({
|
|
|
21
21
|
isRoot: {
|
|
22
22
|
type: Boolean,
|
|
23
23
|
default: false
|
|
24
|
+
},
|
|
25
|
+
menuLayer: {
|
|
26
|
+
type: Number,
|
|
27
|
+
default: null
|
|
24
28
|
}
|
|
25
29
|
},
|
|
26
30
|
render(props) {
|
|
27
|
-
const { title, hasChildren, isRoot
|
|
31
|
+
const { title, hasChildren, isRoot} = props
|
|
28
32
|
const icon = props.icon
|
|
33
|
+
const menuLayer = props.menuLayer
|
|
29
34
|
const vnodes = []
|
|
30
35
|
let iconsData = [h('i', { class: 'amb-iconfont amb-icon-meun_post' })]
|
|
31
36
|
// let iconsData = [h('i', { class: 'amb-color-iconfont amb-color-icon-goal-jichuweihu super-icon' })]
|
|
@@ -41,12 +46,18 @@ export default defineComponent({
|
|
|
41
46
|
// iconsData = [h('i', { class: icon + ' svg-icon' })]
|
|
42
47
|
// }
|
|
43
48
|
}
|
|
44
|
-
|
|
49
|
+
let titleClass = ['smb-sidebar-menu-item-title']
|
|
50
|
+
if(!menuLayer || menuLayer <= 2) {
|
|
51
|
+
vnodes.push(h('div', { class: ['smb-sidebar-menu-item-icon'] }, iconsData))
|
|
52
|
+
} else {
|
|
53
|
+
vnodes.push(h('div', { class: ['smb-sidebar-menu-item-no-icon'] }))
|
|
54
|
+
titleClass.push('smb-sidebar-menu-item-no-icon-title')
|
|
55
|
+
}
|
|
45
56
|
if (title) {
|
|
46
57
|
if (isRoot) {
|
|
47
58
|
// 是否是根目录,没有子菜单时
|
|
48
59
|
vnodes.push(
|
|
49
|
-
h('div', { class:
|
|
60
|
+
h('div', { class: titleClass }, [
|
|
50
61
|
h(
|
|
51
62
|
'div',
|
|
52
63
|
{
|
|
@@ -59,7 +70,7 @@ export default defineComponent({
|
|
|
59
70
|
} else {
|
|
60
71
|
// 有子菜单时
|
|
61
72
|
vnodes.push(
|
|
62
|
-
h('div', { class:
|
|
73
|
+
h('div', { class: titleClass }, [
|
|
63
74
|
h(
|
|
64
75
|
'div',
|
|
65
76
|
{
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
class="smb-sidebar-menu-item"
|
|
8
8
|
:class="{ 'submenu-title-noDropdown': !isNest }"
|
|
9
9
|
>
|
|
10
|
-
<item :icon="item.iconName" :title="getI18nName(item)" :is-root="true" />
|
|
10
|
+
<item :menu-layer="item.layer" :icon="item.iconName" :title="getI18nName(item)" :is-root="true" />
|
|
11
11
|
</el-menu-item>
|
|
12
12
|
</app-link>
|
|
13
13
|
</template>
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
>
|
|
23
23
|
<template v-slot:title>
|
|
24
24
|
<item
|
|
25
|
+
:menu-layer="item.layer"
|
|
25
26
|
:icon="item.iconName"
|
|
26
27
|
:title="getI18nName(item)"
|
|
27
28
|
:has-children="item.children.length > 0 ? true : false"
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
/>
|
|
38
39
|
<app-link v-else :to="toPath(child)" @click="clickMenu(toPath(child))">
|
|
39
40
|
<el-menu-item :index="resolvePath(child.code, child.path, child.pageType, child.newPage)" class="smb-sidebar-menu-item">
|
|
40
|
-
<item :icon="child.iconName" :title="getI18nName(child)" />
|
|
41
|
+
<item :menu-layer="child.layer" :icon="child.iconName" :title="getI18nName(child)" />
|
|
41
42
|
</el-menu-item>
|
|
42
43
|
</app-link>
|
|
43
44
|
</template>
|
|
@@ -213,6 +214,10 @@ export default {
|
|
|
213
214
|
width: var(--admin-layout-left-menu-collapse, 54px);
|
|
214
215
|
font-size: 16px;
|
|
215
216
|
}
|
|
217
|
+
|
|
218
|
+
:deep(.smb-sidebar-menu-item-no-icon) {
|
|
219
|
+
width: 20px;
|
|
220
|
+
}
|
|
216
221
|
:deep(.smb-sidebar-menu-item-title) {
|
|
217
222
|
flex: 0 0 calc(100% - var(--admin-layout-left-menu-collapse, 54px) - 35px);
|
|
218
223
|
overflow: hidden;
|
|
@@ -226,6 +231,9 @@ export default {
|
|
|
226
231
|
text-overflow: ellipsis;
|
|
227
232
|
}
|
|
228
233
|
}
|
|
234
|
+
:deep(.smb-sidebar-menu-item-no-icon-title) {
|
|
235
|
+
flex: 0 0 calc(100% - 20px - 20px);
|
|
236
|
+
}
|
|
229
237
|
}
|
|
230
238
|
</style>
|
|
231
239
|
|
|
@@ -30,23 +30,34 @@ export default defineComponent({
|
|
|
30
30
|
backlogTotal: {
|
|
31
31
|
type: Number,
|
|
32
32
|
default: 0
|
|
33
|
+
},
|
|
34
|
+
menuLayer: {
|
|
35
|
+
type: Number,
|
|
36
|
+
default: null
|
|
33
37
|
}
|
|
34
38
|
},
|
|
35
39
|
render(props) {
|
|
36
40
|
const { title, hasChildren, isRoot, code, backlogTotal } = props
|
|
37
41
|
const icon = props.icon
|
|
42
|
+
const menuLayer = props.menuLayer
|
|
38
43
|
const vnodes = []
|
|
39
44
|
// let iconsData = [h(SvgIcon,{'icon-class': 'meun_post' })]
|
|
40
45
|
let iconsData = [h('i', { class: 'amb-iconfont amb-icon-meun_post' })]
|
|
41
46
|
if (icon) {
|
|
42
47
|
iconsData = [h(SuperIcon, { iconValue: icon })]
|
|
43
48
|
}
|
|
44
|
-
|
|
49
|
+
let titleClass = ['smb-sidebar-menu-item-title']
|
|
50
|
+
if(!menuLayer || menuLayer <= 2) {
|
|
51
|
+
vnodes.push(h('div', { class: ['smb-sidebar-menu-item-icon'] }, iconsData))
|
|
52
|
+
} else {
|
|
53
|
+
vnodes.push(h('div', { class: ['smb-sidebar-menu-item-no-icon'] }))
|
|
54
|
+
titleClass.push('smb-sidebar-menu-item-no-icon-title')
|
|
55
|
+
}
|
|
45
56
|
if (title) {
|
|
46
57
|
if (isRoot) {
|
|
47
58
|
// 是否是根目录,没有子菜单时
|
|
48
59
|
vnodes.push(
|
|
49
|
-
h('div', { class:
|
|
60
|
+
h('div', { class: titleClass }, [
|
|
50
61
|
h(
|
|
51
62
|
'div',
|
|
52
63
|
{
|
|
@@ -59,7 +70,7 @@ export default defineComponent({
|
|
|
59
70
|
} else if (code === 'undoneTask') {
|
|
60
71
|
// 有子菜单时
|
|
61
72
|
vnodes.push(
|
|
62
|
-
h('div', { class:
|
|
73
|
+
h('div', { class: titleClass }, [
|
|
63
74
|
h(
|
|
64
75
|
'div',
|
|
65
76
|
{
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
:class="{ 'submenu-title-noDropdown': !isNest }"
|
|
9
9
|
>
|
|
10
10
|
<item
|
|
11
|
+
:menu-layer="item.layer"
|
|
11
12
|
:icon="item.iconName"
|
|
12
13
|
:title="getI18nName(item)"
|
|
13
14
|
:is-root="true"
|
|
@@ -19,6 +20,7 @@
|
|
|
19
20
|
<el-sub-menu v-else :index="item.code + '~~' + item.i18nValue" class="smb-sidebar-menu-item">
|
|
20
21
|
<template v-slot:title>
|
|
21
22
|
<item
|
|
23
|
+
:menu-layer="item.layer"
|
|
22
24
|
:icon="item.iconName"
|
|
23
25
|
:title="getI18nName(item)"
|
|
24
26
|
:has-children="item.children.length > 0 ? true : false"
|
|
@@ -35,7 +37,7 @@
|
|
|
35
37
|
/>
|
|
36
38
|
<app-link :key="child.code" v-else :to="toPath(child)" @click="clickMenu(toPath(child))">
|
|
37
39
|
<el-menu-item :index="child.code + '~~' + child.i18nValue" class="smb-sidebar-menu-item">
|
|
38
|
-
<item :backlog-total="backlogTotal" :code="child.code" :icon="child.iconName" :title="getI18nName(child)" />
|
|
40
|
+
<item :menu-layer="child.layer" :backlog-total="backlogTotal" :code="child.code" :icon="child.iconName" :title="getI18nName(child)" />
|
|
39
41
|
</el-menu-item>
|
|
40
42
|
</app-link>
|
|
41
43
|
</template>
|
|
@@ -275,6 +277,9 @@ export default {
|
|
|
275
277
|
width: var(--admin-layout-left-menu-collapse, 54px);
|
|
276
278
|
font-size: 16px;
|
|
277
279
|
}
|
|
280
|
+
:deep(.smb-sidebar-menu-item-no-icon) {
|
|
281
|
+
width: 20px;
|
|
282
|
+
}
|
|
278
283
|
:deep(.smb-sidebar-menu-item-title) {
|
|
279
284
|
flex: 0 0 calc(100% - var(--admin-layout-left-menu-collapse, 54px) - 35px);
|
|
280
285
|
overflow: hidden;
|
|
@@ -288,5 +293,8 @@ export default {
|
|
|
288
293
|
text-overflow: ellipsis;
|
|
289
294
|
}
|
|
290
295
|
}
|
|
296
|
+
:deep(.smb-sidebar-menu-item-no-icon-title) {
|
|
297
|
+
flex: 0 0 calc(100% - 20px - 20px);
|
|
298
|
+
}
|
|
291
299
|
}
|
|
292
300
|
</style>
|
package/vite.config.js
CHANGED
|
@@ -12,8 +12,7 @@ export default defineConfig(({ mode }) => ({
|
|
|
12
12
|
terser({
|
|
13
13
|
compress: {
|
|
14
14
|
drop_debugger: ['production'].includes(mode),
|
|
15
|
-
//
|
|
16
|
-
pure_funcs: ['production'].includes(mode) ? ['console.log', 'console.info', 'console.warn', 'console.debug'] : [],
|
|
15
|
+
// pure_funcs: ['production'].includes(mode) ? ['console.log', 'console.info', 'console.warn', 'console.debug'] : [],
|
|
17
16
|
},
|
|
18
17
|
output: {
|
|
19
18
|
// 对于console.error,不做任何处理
|