agilebuilder-ui 1.0.89 → 1.0.90-temp1
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/super-ui.css +1 -1
- package/lib/super-ui.js +34 -83
- package/lib/super-ui.umd.cjs +3 -3
- package/package.json +1 -1
- package/packages/super-grid/src/normal-column-content.vue +16 -15
- package/packages/super-grid/src/normal-column.vue +8 -16
- package/packages/super-grid/src/utils.js +4 -10
- package/packages/super-nine-grid/src/super-nine-grid.vue +1032 -1143
- package/src/api/sso-service.js +1 -1
- package/src/directives/permission/permission.js +4 -3
- package/src/utils/i18n-util.js +4 -0
package/package.json
CHANGED
|
@@ -69,21 +69,22 @@
|
|
|
69
69
|
</el-dropdown-menu>
|
|
70
70
|
</template>
|
|
71
71
|
</el-dropdown>
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
72
|
+
<component
|
|
73
|
+
:is="operation.props.customControl"
|
|
74
|
+
v-else-if="operation.props.customControl"
|
|
75
|
+
v-permission="operation.props.permission"
|
|
76
|
+
:key="column.prop+'_'+rowIndex+'_'+currentPage"
|
|
77
|
+
:disabled="true"
|
|
78
|
+
:row="pageGridData[rowIndex]"
|
|
79
|
+
:entity="pageGridData[rowIndex]"
|
|
80
|
+
:prop="column.prop"
|
|
81
|
+
:parent="parentFormData"
|
|
82
|
+
:row-index="rowIndex"
|
|
83
|
+
:grid-data="gridData"
|
|
84
|
+
:page-grid-data="pageGridData"
|
|
85
|
+
:current-page="currentPage"
|
|
86
|
+
@refresh-list="refreshList"
|
|
87
|
+
/>
|
|
87
88
|
<row-operation
|
|
88
89
|
v-else
|
|
89
90
|
:column="column"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
:width="getColumnWidth()"
|
|
12
12
|
>
|
|
13
13
|
<template v-slot:header>
|
|
14
|
-
<span v-if="!column.customHeader" :class="{is_req: isFieldRequired()}">
|
|
14
|
+
<span v-if="!column.customHeader" :class="{ is_req: isFieldRequired() }">
|
|
15
15
|
<span :title="$escapeHtml(label)" class="cell--span required__label" v-html="$escapeHtml(label)" />
|
|
16
16
|
</span>
|
|
17
17
|
<component
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
</el-icon>
|
|
28
28
|
</template>
|
|
29
29
|
<template v-slot="scope">
|
|
30
|
-
|
|
30
|
+
<!-- :pagination="pagination" -->
|
|
31
31
|
<NormalColumnContent
|
|
32
32
|
:ref="column.prop"
|
|
33
33
|
:is-sql="isSql"
|
|
@@ -63,13 +63,7 @@
|
|
|
63
63
|
<script>
|
|
64
64
|
import { CirclePlus, ZoomIn as ElIconZoomIn } from '@element-plus/icons-vue'
|
|
65
65
|
import { $emit, $off, $on } from '../../utils/gogocodeTransfer'
|
|
66
|
-
import {
|
|
67
|
-
getColumnValues,
|
|
68
|
-
isRequiredEdit,
|
|
69
|
-
getContentAlign,
|
|
70
|
-
getHeaderAlign,
|
|
71
|
-
getHeaderLable
|
|
72
|
-
} from './utils'
|
|
66
|
+
import { getColumnValues, isRequiredEdit, getContentAlign, getHeaderAlign, getHeaderLable } from './utils'
|
|
73
67
|
import DynamicInput from './dynamic-input.vue'
|
|
74
68
|
import store from './store'
|
|
75
69
|
import customFormatter from './custom-formatter'
|
|
@@ -284,7 +278,7 @@ export default {
|
|
|
284
278
|
}
|
|
285
279
|
const align = getContentAlign(this.column, gridParams)
|
|
286
280
|
if (align) {
|
|
287
|
-
this.align =
|
|
281
|
+
this.align = align
|
|
288
282
|
}
|
|
289
283
|
const headerAlign = getHeaderAlign(this.column, gridParams)
|
|
290
284
|
if (headerAlign) {
|
|
@@ -302,10 +296,8 @@ export default {
|
|
|
302
296
|
gridParams.options &&
|
|
303
297
|
gridParams.options.showOperationButton
|
|
304
298
|
},
|
|
305
|
-
mounted() {
|
|
306
|
-
},
|
|
307
|
-
unmounted() {
|
|
308
|
-
},
|
|
299
|
+
mounted() {},
|
|
300
|
+
unmounted() {},
|
|
309
301
|
methods: {
|
|
310
302
|
...customFormatter,
|
|
311
303
|
...apis,
|
|
@@ -323,7 +315,7 @@ export default {
|
|
|
323
315
|
$emit(this, 'refresPortData', port, value, index)
|
|
324
316
|
},
|
|
325
317
|
refresPortsData(map, index) {
|
|
326
|
-
|
|
318
|
+
$emit(this, 'refresPortsData', map, index)
|
|
327
319
|
},
|
|
328
320
|
refresMainTableFields(map) {
|
|
329
321
|
$emit(this, 'refresMainTableFields', map)
|
|
@@ -358,7 +350,7 @@ export default {
|
|
|
358
350
|
this.$emit('open-page', openPageParams)
|
|
359
351
|
}
|
|
360
352
|
},
|
|
361
|
-
emits: ['refresData', 'refresPortData', 'refresPortsData', 'refresMainTableFields', 'prohibitToEdit'
|
|
353
|
+
emits: ['refresData', 'refresPortData', 'refresPortsData', 'refresMainTableFields', 'prohibitToEdit']
|
|
362
354
|
}
|
|
363
355
|
</script>
|
|
364
356
|
|
|
@@ -792,17 +792,12 @@ export function getControlConfig(column) {
|
|
|
792
792
|
return controlConfig
|
|
793
793
|
}
|
|
794
794
|
|
|
795
|
-
export function getContentAlign(column, gridParams){
|
|
796
|
-
|
|
797
|
-
if (typeof gridParams.options.align !== 'undefined') {
|
|
798
|
-
align = gridParams.options.align
|
|
799
|
-
} else if (column.contAlign && column.contAlign !== '') {
|
|
800
|
-
align = column.contAlign
|
|
801
|
-
}
|
|
795
|
+
export function getContentAlign(column, gridParams) {
|
|
796
|
+
const align = gridParams.options.align ?? (column.contAlign || '')
|
|
802
797
|
return align
|
|
803
798
|
}
|
|
804
799
|
|
|
805
|
-
export function getHeaderAlign(column, gridParams){
|
|
800
|
+
export function getHeaderAlign(column, gridParams) {
|
|
806
801
|
let headerAlign
|
|
807
802
|
if (typeof gridParams.options.headerAlign !== 'undefined') {
|
|
808
803
|
headerAlign = gridParams.options.headerAlign
|
|
@@ -815,7 +810,6 @@ export function getHeaderAlign(column, gridParams){
|
|
|
815
810
|
return headerAlign
|
|
816
811
|
}
|
|
817
812
|
|
|
818
|
-
|
|
819
813
|
export function getHeaderLable(column) {
|
|
820
814
|
let label = column.label
|
|
821
815
|
if (!column.titleValueSet) {
|
|
@@ -831,4 +825,4 @@ export function getHeaderLable(column) {
|
|
|
831
825
|
|
|
832
826
|
function formatHeader(column) {
|
|
833
827
|
return doFormatWithValueSet(column.titleValueSetValue, column.label)
|
|
834
|
-
}
|
|
828
|
+
}
|