agilebuilder-ui 1.1.27 → 1.1.29

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 (50) hide show
  1. package/lib/{401-c1ecc1a9.js → 401-b6438df4.js} +1 -1
  2. package/lib/{404-a507cf9c.js → 404-a63f6f05.js} +1 -1
  3. package/lib/{iframe-page-32671903.js → iframe-page-37f43db7.js} +1 -1
  4. package/lib/{index-ce3ae297.js → index-d3663821.js} +19913 -19927
  5. package/lib/super-ui.css +1 -1
  6. package/lib/super-ui.js +1 -1
  7. package/lib/super-ui.umd.cjs +98 -95
  8. package/lib/{tab-content-iframe-index-55b69efd.js → tab-content-iframe-index-86707264.js} +1 -1
  9. package/lib/{tab-content-index-f8882314.js → tab-content-index-c7251161.js} +25 -24
  10. package/lib/{tache-subprocess-history-a2d815d2.js → tache-subprocess-history-6de071c9.js} +1 -1
  11. package/package.json +1 -1
  12. package/packages/dynamic-source-select/src/dynamic-source-select.vue +5 -1
  13. package/packages/fs-preview/src/fs-preview.vue +75 -53
  14. package/packages/organization-input/src/organization-input.vue +1 -1
  15. package/packages/row-form/operation.vue +1 -0
  16. package/packages/super-grid/src/components/mobile-table-card.jsx +12 -2
  17. package/packages/super-grid/src/custom-formatter.js +10 -7
  18. package/packages/super-grid/src/dynamic-input.vue +8 -7
  19. package/packages/super-grid/src/index-column.vue +24 -15
  20. package/packages/super-grid/src/normal-column-content.vue +19 -2
  21. package/packages/super-grid/src/normal-column.vue +14 -13
  22. package/packages/super-grid/src/row-operation.vue +49 -27
  23. package/packages/super-grid/src/selection-column.vue +2 -12
  24. package/packages/super-grid/src/super-grid.vue +27 -7
  25. package/packages/workflow-history-list/src/workflow-history-list.vue +101 -160
  26. package/src/components/Affix/index.vue +19 -12
  27. package/src/i18n/langs/cn.js +292 -294
  28. package/src/i18n/langs/en.js +291 -304
  29. package/src/permission.js +1 -1
  30. package/src/store/modules/table.js +1 -0
  31. package/src/styles/_layout-custom-properties.scss +2 -2
  32. package/src/styles/display-layout.scss +4 -4
  33. package/src/styles/index.scss +2 -9
  34. package/src/styles/theme/dark-blue/button.scss +6 -6
  35. package/src/styles/theme/dark-blue/card.scss +11 -15
  36. package/src/styles/theme/dark-blue/index.scss +0 -4
  37. package/src/styles/theme/dark-blue/sidebar.scss +0 -5
  38. package/src/styles/theme/default.scss +1 -1
  39. package/src/styles/theme/green/button.scss +2 -2
  40. package/src/styles/theme/green/index.scss +0 -4
  41. package/src/styles/theme/green/sidebar.scss +0 -5
  42. package/src/styles/theme/ocean-blue/button.scss +2 -2
  43. package/src/styles/theme/ocean-blue/index.scss +0 -4
  44. package/src/styles/theme/ocean-blue/sidebar.scss +0 -5
  45. package/src/styles/theme/tiffany-blue-mobile/button.scss +2 -2
  46. package/src/styles/theme/tiffany-blue-mobile/index.scss +1 -5
  47. package/src/styles/theme/tiffany-blue-mobile/sidebar.scss +0 -5
  48. package/src/utils/iframe-communicator.js +222 -222
  49. package/src/utils/jump-page-utils.js +1 -1
  50. package/vite.config.js +2 -1
@@ -1,15 +1,15 @@
1
1
  <template>
2
- <div ref="affixMainRef" class="yx-affix">
3
- <div v-if="isFixed" :style="placeholderStyle" class="yx-affix-placeholder" />
2
+ <div ref="affixMainRef" class="yx-affix" :style="{ height: isFixed ? placeholderStyle.height : undefined }">
4
3
  <div
5
4
  ref="affixRef"
5
+ v-resize="onResize"
6
6
  :style="affixStyle"
7
7
  :class="{
8
- 'yx-affix-content': true,
9
8
  'is-fixed': isFixed,
10
9
  'is-top': props.position === 'top',
11
10
  'is-bottom': props.position === 'bottom'
12
11
  }"
12
+ class="yx-affix-content"
13
13
  >
14
14
  <slot />
15
15
  </div>
@@ -75,6 +75,12 @@
75
75
  const scrollContainer = ref<HTMLElement | Window>(window);
76
76
  const adjustedOffset = ref<number>(0);
77
77
  const intervalId = ref<number | null>(null);
78
+
79
+ const onResize = (entry: { contentRect: { height: string | undefined; }; }) => {
80
+ if (entry.contentRect.height) {
81
+ placeholderStyle.value.height = entry.contentRect.height
82
+ }
83
+ }
78
84
 
79
85
  // 用于获取 距离顶部 底部 距离
80
86
  const getAffixOffset = (containerRect: DOMRect) => {
@@ -157,6 +163,7 @@
157
163
 
158
164
  // 更新固定状态
159
165
  const updateFixedState = (shouldFix: boolean, rect: DOMRect) => {
166
+ if (!rect.height) return
160
167
  if (shouldFix !== isFixed.value || placeholderStyle.value?.height !== `${rect.height}px`) {
161
168
  isFixed.value = shouldFix;
162
169
  emits('change', shouldFix);
@@ -228,7 +235,7 @@
228
235
 
229
236
  // 计算样式
230
237
  const affixStyle = computed(() => {
231
- if (isFixed.value) {
238
+ if (isFixed.value && affixRef.value?.offsetWidth) {
232
239
  return {
233
240
  position: 'fixed',
234
241
  width: `${affixRef.value?.offsetWidth}px`,
@@ -244,20 +251,20 @@
244
251
 
245
252
  <style lang="scss" scoped>
246
253
  .yx-affix {
247
- &:has(.yx-affix-content:empty) {
248
- display: none;
254
+ &:empty {
255
+ display: none;
249
256
  }
257
+
250
258
  .yx-affix-content {
259
+ &:empty {
260
+ display: none;
261
+ }
251
262
  &.is-fixed {
252
263
  &.is-top {
253
- & > .yx-fixed-box-container {
254
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
255
- }
264
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
256
265
  }
257
266
  &.is-bottom {
258
- & > .yx-fixed-box-container {
259
- box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
260
- }
267
+ box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
261
268
  }
262
269
  }
263
270
  }