mooho-base-admin-plus 0.4.14 → 0.4.17
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/dist/mooho-base-admin-plus.min.esm.js +41 -30
- package/dist/mooho-base-admin-plus.min.js +28 -28
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/view/view-form.vue +5 -5
- package/src/components/view/view-table.vue +13 -0
- package/src/components/workflow/flow-chart.vue +2 -2
- package/src/styles/css/default.css +8 -3
package/package.json
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
:parent-data="data"
|
|
29
29
|
@on-change="onDataChange(column)"
|
|
30
30
|
>
|
|
31
|
-
<template #column="
|
|
31
|
+
<template #column="scope">
|
|
32
32
|
<!--
|
|
33
33
|
@slot 内嵌表格自定义列
|
|
34
34
|
@binding {object} table 表格对象
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
:tableData="data"
|
|
47
47
|
:tableColumn="column"
|
|
48
48
|
:tableCode="column.code"
|
|
49
|
-
:row="row"
|
|
50
|
-
:index="index"
|
|
51
|
-
:column="column"
|
|
52
|
-
:code="code"
|
|
49
|
+
:row="scope.row"
|
|
50
|
+
:index="scope.index"
|
|
51
|
+
:column="scope.column"
|
|
52
|
+
:code="scope.code"
|
|
53
53
|
></slot>
|
|
54
54
|
</template>
|
|
55
55
|
</view-table>
|
|
@@ -146,6 +146,19 @@
|
|
|
146
146
|
@on-blur="onBlur(rowData(row, index), column)"
|
|
147
147
|
/>
|
|
148
148
|
</template>
|
|
149
|
+
<template v-else-if="column.controlType === 'TextArea'">
|
|
150
|
+
<Input
|
|
151
|
+
type="textarea"
|
|
152
|
+
size="small"
|
|
153
|
+
:model-value="parseData(rowData(row, index), column.code)"
|
|
154
|
+
@update:model-value="$event => setData(rowData(row, index), column.code, $event)"
|
|
155
|
+
:readonly="isReadonly(rowData(row, index), column)"
|
|
156
|
+
:style="{ width: column.controlWidth == null ? null : column.controlWidth - 36 + 'px' }"
|
|
157
|
+
:rows="column.controlHeight / 20"
|
|
158
|
+
:maxlength="column.maxLength"
|
|
159
|
+
:placeholder="column.description"
|
|
160
|
+
/>
|
|
161
|
+
</template>
|
|
149
162
|
<template v-else-if="column.controlType === 'NumberInput'">
|
|
150
163
|
<Input
|
|
151
164
|
type="number"
|
|
@@ -220,13 +220,18 @@
|
|
|
220
220
|
|
|
221
221
|
/* 表格筛选 */
|
|
222
222
|
.filter {
|
|
223
|
-
margin-top: 4px;
|
|
223
|
+
/* margin-top: 4px; */
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.filter .ivu-col {
|
|
227
|
+
margin-top: 2px;
|
|
228
|
+
margin-bottom: 2px;
|
|
224
229
|
}
|
|
225
230
|
|
|
226
231
|
.filter .ivu-form-item-label {
|
|
227
232
|
float: left;
|
|
228
|
-
line-height:
|
|
229
|
-
padding:
|
|
233
|
+
line-height: 24px;
|
|
234
|
+
padding: 0px 12px 0px 0;
|
|
230
235
|
}
|
|
231
236
|
|
|
232
237
|
.filter .ivu-form-item {
|