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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mooho-base-admin-plus",
3
3
  "description": "MOOHO basic framework for admin by Vue3",
4
- "version": "0.4.14",
4
+ "version": "0.4.17",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "dotnetVersion": "1.4.0",
7
7
  "license": "MIT",
@@ -28,7 +28,7 @@
28
28
  :parent-data="data"
29
29
  @on-change="onDataChange(column)"
30
30
  >
31
- <template #column="{ row, index, column, code }">
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"
@@ -688,8 +688,8 @@
688
688
  },
689
689
  // 鼠标移动
690
690
  mousemove(e) {
691
- this.current.x = e.layerX;
692
- this.current.y = e.layerY;
691
+ this.current.x = e.offsetX;
692
+ this.current.y = e.offsetY;
693
693
  //this.$forceUpdate();
694
694
 
695
695
  if (this.isMoving) {
@@ -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: 6px;
229
- padding: 10px 12px 10px 0;
233
+ line-height: 24px;
234
+ padding: 0px 12px 0px 0;
230
235
  }
231
236
 
232
237
  .filter .ivu-form-item {