agilebuilder-ui 1.1.36-sit4 → 1.1.36-tmp1

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 (66) hide show
  1. package/lib/{401-d4decb58.js → 401-c55bdcf2.js} +1 -1
  2. package/lib/{404-74cc4843.js → 404-c1dbd5e1.js} +1 -1
  3. package/lib/{iframe-page-c7973b9d.js → iframe-page-917912ae.js} +1 -1
  4. package/lib/{index-c739d5d5.js → index-6ec53ef7.js} +8463 -8490
  5. package/lib/super-ui.css +1 -1
  6. package/lib/super-ui.js +1 -1
  7. package/lib/super-ui.umd.cjs +99 -99
  8. package/lib/{tab-content-iframe-index-18ef0e35.js → tab-content-iframe-index-46a76242.js} +1 -1
  9. package/lib/{tab-content-index-72db2984.js → tab-content-index-132379e6.js} +1 -1
  10. package/lib/{tache-subprocess-history-4d3623ca.js → tache-subprocess-history-384455d6.js} +1 -1
  11. package/package.json +1 -1
  12. package/packages/department-tree/src/department-tree.vue +123 -130
  13. package/packages/department-tree-inline/src/department-multi-tree-inline.vue +466 -435
  14. package/packages/department-tree-inline/src/department-single-tree-inline.vue +342 -335
  15. package/packages/department-tree-inline/src/department-tree-inline.vue +11 -18
  16. package/packages/department-tree-inline/src/department-tree-service.js +11 -10
  17. package/packages/department-tree-mobile/src/department-tree-app.vue +75 -103
  18. package/packages/department-tree-mobile/src/department-tree-inline-app.vue +225 -256
  19. package/packages/department-tree-mobile/src/department-tree-service.ts +75 -98
  20. package/packages/department-user-tree/src/department-user-multiple-tree.vue +115 -112
  21. package/packages/department-user-tree/src/department-user-single-tree.vue +88 -85
  22. package/packages/department-user-tree/src/department-user-tree.vue +119 -127
  23. package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +1 -6
  24. package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +0 -5
  25. package/packages/department-user-tree-inline/src/department-user-tree-inline.vue +11 -18
  26. package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +51 -26
  27. package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +45 -25
  28. package/packages/department-user-tree-inline/src/group-user/group-list.vue +90 -97
  29. package/packages/department-user-tree-inline/src/group-user/group-user.vue +32 -28
  30. package/packages/department-user-tree-mobile/src/department-user-tree-app.vue +75 -103
  31. package/packages/department-user-tree-mobile/src/department-user-tree-inline-app.vue +224 -282
  32. package/packages/department-user-tree-mobile/src/department-user-tree-service.ts +51 -58
  33. package/packages/fs-preview/src/fs-preview.vue +2 -20
  34. package/packages/fs-upload-list/src/fs-upload-list.vue +7 -30
  35. package/packages/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue +1 -1
  36. package/packages/fs-upload-new/src/fs-preview-new.vue +15 -27
  37. package/packages/index.js +4 -4
  38. package/packages/organization-input/src/organization-input.vue +12 -34
  39. package/packages/super-grid/src/apis.js +4 -21
  40. package/packages/super-grid/src/dynamic-input.vue +12 -1
  41. package/packages/super-grid/src/normal-column-content.vue +1 -2
  42. package/packages/super-grid/src/row-operation.vue +13 -23
  43. package/packages/super-grid/src/super-grid.vue +42 -51
  44. package/packages/super-grid/src/utils.js +8 -13
  45. package/packages/super-icon/src/index.vue +1 -4
  46. package/packages/workgroup-tree/src/workgroup-tree.vue +110 -117
  47. package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +1 -6
  48. package/packages/workgroup-tree-mobile/src/workgroup-tree-app.vue +75 -103
  49. package/packages/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue +208 -229
  50. package/src/api/sso-service.js +5 -6
  51. package/src/directives/permission/index.js +4 -4
  52. package/src/index.js +3 -38
  53. package/src/store/modules/table.js +1 -0
  54. package/src/styles/theme/dark-blue/sidebar.scss +0 -9
  55. package/src/styles/theme/gray/sidebar.scss +8 -9
  56. package/src/styles/theme/green/sidebar.scss +0 -10
  57. package/src/styles/theme/ocean-blue/sidebar.scss +0 -9
  58. package/src/styles/theme/tiffany-blue-mobile/sidebar.scss +0 -9
  59. package/src/utils/insert_css.js +1 -1
  60. package/src/views/dsc-component/Sidebar/SidebarItem.vue +2 -2
  61. package/src/views/dsc-component/Sidebar/index.vue +18 -36
  62. package/src/views/layout/components/Menubar/Item.vue +9 -0
  63. package/src/views/layout/components/Menubar/SidebarItem.vue +2 -2
  64. package/src/views/layout/components/Sidebar/Item.vue +1 -4
  65. package/src/views/layout/components/Sidebar/SidebarItem.vue +2 -2
  66. package/vite.config.js +1 -1
@@ -68,6 +68,7 @@ const app = {
68
68
  * @param {Object} context - 上下文对象
69
69
  */
70
70
  clearAllEditing({ commit }) {
71
+ debugger
71
72
  commit('clearAllEditing');
72
73
  }
73
74
  },
@@ -220,15 +220,6 @@
220
220
  }
221
221
  }
222
222
 
223
- // 注释的原因:会导致孙子菜单显示的位置不正确
224
- // .sidebar-container-popper .el-menu{
225
- // // height: 100vh;
226
- // height: auto;
227
- // max-height: 100vh;
228
- // overflow-y: auto;
229
- // overflow-x: hidden;
230
- // scroll-behavior: smooth;
231
- // }
232
223
  .sidebar-container-popper .el-submenu__title:not(.is-disabled):hover {
233
224
  background: #F7F7F8;
234
225
  color: rgba(0, 13, 31, 0.85);
@@ -189,15 +189,14 @@
189
189
  }
190
190
  }
191
191
 
192
- // 注释的原因:会导致孙子菜单显示的位置不正确
193
- // .sidebar-container-popper .el-menu{
194
- // // height: 100vh;
195
- // height: auto;
196
- // max-height: 100vh;
197
- // overflow-y: auto;
198
- // overflow-x: hidden;
199
- // scroll-behavior: smooth;
200
- // }
192
+ .sidebar-container-popper .el-menu{
193
+ // height: 100vh;
194
+ height: auto;
195
+ max-height: 100vh;
196
+ overflow-y: auto;
197
+ overflow-x: hidden;
198
+ scroll-behavior: smooth;
199
+ }
201
200
 
202
201
  .sidebar-container-popper .el-submenu__title:not(.is-disabled):hover {
203
202
  background: #F7F7F8;
@@ -223,16 +223,6 @@
223
223
  }
224
224
  }
225
225
 
226
- // 注释的原因:会导致孙子菜单显示的位置不正确
227
- // .sidebar-container-popper .el-menu{
228
- // // height: 100vh;
229
- // height: auto;
230
- // max-height: 100vh;
231
- // overflow-y: auto;
232
- // overflow-x: hidden;
233
- // scroll-behavior: smooth;
234
- // }
235
-
236
226
  .sidebar-container-popper .el-submenu__title:not(.is-disabled):hover {
237
227
  background: #F7F7F8;
238
228
  color: rgba(0, 13, 31, 0.85);
@@ -217,15 +217,6 @@
217
217
  }
218
218
  }
219
219
 
220
- // 注释的原因:会导致孙子菜单显示的位置不正确
221
- // .sidebar-container-popper .el-menu{
222
- // // height: 100vh;
223
- // height: auto;
224
- // max-height: 100vh;
225
- // overflow-y: auto;
226
- // overflow-x: hidden;
227
- // scroll-behavior: smooth;
228
- // }
229
220
  .sidebar-container-popper .el-submenu__title:not(.is-disabled):hover {
230
221
  background: #F7F7F8;
231
222
  color: rgba(0, 13, 31, 0.85);
@@ -219,15 +219,6 @@
219
219
  }
220
220
  }
221
221
 
222
- // 注释的原因:会导致孙子菜单显示的位置不正确
223
- // .sidebar-container-popper .el-menu{
224
- // // height: 100vh;
225
- // height: auto;
226
- // max-height: 100vh;
227
- // overflow-y: auto;
228
- // overflow-x: hidden;
229
- // scroll-behavior: smooth;
230
- // }
231
222
  .sidebar-container-popper .el-submenu__title:not(.is-disabled):hover {
232
223
  background: #F7F7F8;
233
224
  color: rgba(0, 13, 31, 0.85);
@@ -18,7 +18,7 @@ if (!window.insertCssFile) {
18
18
  const timestamp = new Date().getTime();
19
19
  const link = document.createElement('link');
20
20
  link.rel = 'stylesheet';
21
- link.href = cssUrl;
21
+ link.href = cssUrl + `?_v=${timestamp}`;
22
22
  link.onload = function () {
23
23
  window.insertedCssFiles.add(cssUrl);
24
24
  };
@@ -192,8 +192,8 @@ export default {
192
192
  <style lang="scss" scoped>
193
193
  .smb-sidebar-menu-item {
194
194
  position: relative;
195
- --el-menu-item-height: 45px;
196
- --el-menu-sub-item-height: 45px;
195
+ --el-menu-item-height: 36px;
196
+ --el-menu-sub-item-height: 36px;
197
197
  &.el-menu-item, &.el-sub-menu {
198
198
  padding: 0 !important;
199
199
  &:not(:has(> .el-tooltip__trigger)) {
@@ -46,10 +46,8 @@ export default {
46
46
  },
47
47
  data() {
48
48
  const menus = getMenus()
49
- const isSelectFirst = window.$vueApp.config.globalProperties.showFirstMenu === undefined || window.$vueApp.config.globalProperties.showFirstMenu === null? true : window.$vueApp.config.globalProperties.showFirstMenu
50
49
  return {
51
50
  menus: Object.freeze(menus),
52
- isSelectFirst
53
51
  }
54
52
  },
55
53
  computed: {
@@ -140,54 +138,38 @@ export default {
140
138
  const b = new Date().getTime()
141
139
  console.log('菜单组件==>getMyFirstMenu==>b-a', b - a)
142
140
  // 默认不展示第一个有权限的菜单了,可以去掉下面的代码
143
- if (!shouldSelectMenu) {
144
- shouldSelectMenu = this.getSelectMenuWithFirstMenu(menus[0])
145
- }
141
+ // if (!shouldSelectMenu) {
142
+ // shouldSelectMenu = this.getSelectMenuWithFirstMenu(menus[0])
143
+ // }
146
144
  return shouldSelectMenu
147
145
  }
148
146
  },
149
147
  getFirstMenu(menus) {
150
- const currentMenuCode = this.$route.query
151
- ? this.$route.query._menuCode
152
- : null
153
- let shouldSelectMenu
154
- if(currentMenuCode){
155
- // 表示需要选中指定的菜单
156
- this.isSelectFirst = true
157
- } else {
158
- shouldSelectMenu = this.getFirstMenuWithCookie(menus)
159
- }
160
- console.log('getFirstMenu=====shouldSelectMenu111=', shouldSelectMenu)
161
- if (this.isSelectFirst && !shouldSelectMenu && menus && menus.length > 0) {
148
+ if (menus && menus.length > 0) {
149
+ let shouldSelectMenu
162
150
  for (let i = 0; i < menus.length; i++) {
163
151
  const menu = menus[i]
164
- shouldSelectMenu = this.getShouldSelectMenu(menu, currentMenuCode)
152
+ shouldSelectMenu = this.getShouldSelectMenu(menu)
165
153
  if (shouldSelectMenu) {
166
154
  // 表示获得到了应该选中的菜单
167
155
  break
168
156
  }
169
157
  }
158
+ return shouldSelectMenu
170
159
  }
171
- console.log('getFirstMenu=====shouldSelectMenu222=', shouldSelectMenu)
172
- return shouldSelectMenu
173
160
  },
174
- getShouldSelectMenu(menu, currentMenuCode) {
175
- if (menu) {
161
+ getShouldSelectMenu(menu) {
162
+ // console.log('dsc--getShouldSelectMenu--this.$route=', this.$route)
163
+ const currentMenuCode = this.$route.query
164
+ ? this.$route.query._menuCode
165
+ : null
166
+ if (menu && currentMenuCode) {
176
167
  let shouldSelectMenu
177
- if(currentMenuCode){
178
- const children = menu.children
179
- if (children && children.length > 0) {
180
- shouldSelectMenu = this.getFirstMenu(children)
181
- } else if (menu.code && menu.code === currentMenuCode) {
182
- shouldSelectMenu = menu
183
- }
184
- } else {
185
- const children = menu.children
186
- if (children && children.length > 0) {
187
- shouldSelectMenu = this.getFirstMenu(children)
188
- } else {
189
- shouldSelectMenu = menu
190
- }
168
+ const children = menu.children
169
+ if (children && children.length > 0) {
170
+ shouldSelectMenu = this.getFirstMenu(children)
171
+ } else if (menu.code && menu.code === currentMenuCode) {
172
+ shouldSelectMenu = menu
191
173
  }
192
174
  return shouldSelectMenu
193
175
  }
@@ -40,6 +40,15 @@ export default defineComponent({
40
40
  let iconsData = [h('i', { class: 'amb-iconfont amb-icon-meun_post' })]
41
41
  if (icon) {
42
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
+ // }
43
52
  }
44
53
  vnodes.push(h('div', { class: ['smb-sidebar-menu-item-icon'] }, iconsData))
45
54
  if (title) {
@@ -254,8 +254,8 @@ export default {
254
254
  <style lang="scss" scoped>
255
255
  .smb-sidebar-menu-item {
256
256
  position: relative;
257
- --el-menu-item-height: 45px;
258
- --el-menu-sub-item-height: 45px;
257
+ --el-menu-item-height: 36px;
258
+ --el-menu-sub-item-height: 36px;
259
259
  &.el-menu-item, &.el-sub-menu {
260
260
  padding: 0 !important;
261
261
  &:not(:has(> .el-tooltip__trigger)) {
@@ -9,10 +9,7 @@ export default function render(_props, _context) {
9
9
  }
10
10
  const { icon, title, hasChildren } = context.props
11
11
  const vnodes = []
12
- let iconsData = [h('i', { class: 'amb-iconfont amb-icon-meun_post' })]
13
- if (icon) {
14
- iconsData = [h(SuperIcon, { iconValue: icon })]
15
- }
12
+ let iconsData = <svg-icon icon-class={ icon || 'meun_post'} />
16
13
 
17
14
  vnodes.push(<div class="smb-sidebar-menu-item-icon">{ iconsData }</div>)
18
15
 
@@ -140,8 +140,8 @@ export default {
140
140
  <style lang="scss" scoped>
141
141
  .smb-sidebar-menu-item {
142
142
  position: relative;
143
- --el-menu-item-height: 45px;
144
- --el-menu-sub-item-height: 45px;
143
+ --el-menu-item-height: 36px;
144
+ --el-menu-sub-item-height: 36px;
145
145
  &.el-menu-item, &.el-sub-menu {
146
146
  padding: 0 !important;
147
147
  &:not(:has(> .el-tooltip__trigger)) {
package/vite.config.js CHANGED
@@ -30,7 +30,7 @@ export default defineConfig(({ mode }) => ({
30
30
  }, //库编译模式配置
31
31
  rollupOptions: {
32
32
  // 确保外部化处理那些你不想打包进库的依赖
33
- external: ["vue", "jsx"],
33
+ external: ["vue"],
34
34
  output: {
35
35
  // 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
36
36
  globals: {