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.
- package/lib/{401-c1ecc1a9.js → 401-b6438df4.js} +1 -1
- package/lib/{404-a507cf9c.js → 404-a63f6f05.js} +1 -1
- package/lib/{iframe-page-32671903.js → iframe-page-37f43db7.js} +1 -1
- package/lib/{index-ce3ae297.js → index-d3663821.js} +19913 -19927
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +98 -95
- package/lib/{tab-content-iframe-index-55b69efd.js → tab-content-iframe-index-86707264.js} +1 -1
- package/lib/{tab-content-index-f8882314.js → tab-content-index-c7251161.js} +25 -24
- package/lib/{tache-subprocess-history-a2d815d2.js → tache-subprocess-history-6de071c9.js} +1 -1
- package/package.json +1 -1
- package/packages/dynamic-source-select/src/dynamic-source-select.vue +5 -1
- package/packages/fs-preview/src/fs-preview.vue +75 -53
- package/packages/organization-input/src/organization-input.vue +1 -1
- package/packages/row-form/operation.vue +1 -0
- package/packages/super-grid/src/components/mobile-table-card.jsx +12 -2
- package/packages/super-grid/src/custom-formatter.js +10 -7
- package/packages/super-grid/src/dynamic-input.vue +8 -7
- package/packages/super-grid/src/index-column.vue +24 -15
- package/packages/super-grid/src/normal-column-content.vue +19 -2
- package/packages/super-grid/src/normal-column.vue +14 -13
- package/packages/super-grid/src/row-operation.vue +49 -27
- package/packages/super-grid/src/selection-column.vue +2 -12
- package/packages/super-grid/src/super-grid.vue +27 -7
- package/packages/workflow-history-list/src/workflow-history-list.vue +101 -160
- package/src/components/Affix/index.vue +19 -12
- package/src/i18n/langs/cn.js +292 -294
- package/src/i18n/langs/en.js +291 -304
- package/src/permission.js +1 -1
- package/src/store/modules/table.js +1 -0
- package/src/styles/_layout-custom-properties.scss +2 -2
- package/src/styles/display-layout.scss +4 -4
- package/src/styles/index.scss +2 -9
- package/src/styles/theme/dark-blue/button.scss +6 -6
- package/src/styles/theme/dark-blue/card.scss +11 -15
- package/src/styles/theme/dark-blue/index.scss +0 -4
- package/src/styles/theme/dark-blue/sidebar.scss +0 -5
- package/src/styles/theme/default.scss +1 -1
- package/src/styles/theme/green/button.scss +2 -2
- package/src/styles/theme/green/index.scss +0 -4
- package/src/styles/theme/green/sidebar.scss +0 -5
- package/src/styles/theme/ocean-blue/button.scss +2 -2
- package/src/styles/theme/ocean-blue/index.scss +0 -4
- package/src/styles/theme/ocean-blue/sidebar.scss +0 -5
- package/src/styles/theme/tiffany-blue-mobile/button.scss +2 -2
- package/src/styles/theme/tiffany-blue-mobile/index.scss +1 -5
- package/src/styles/theme/tiffany-blue-mobile/sidebar.scss +0 -5
- package/src/utils/iframe-communicator.js +222 -222
- package/src/utils/jump-page-utils.js +1 -1
- 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
|
-
&:
|
|
248
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
}
|