@xilonglab/vue-main 1.6.17 → 1.6.19

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@xilonglab/vue-main",
3
- "version": "1.6.17",
3
+ "version": "1.6.19",
4
4
  "description": "xilong vue main",
5
5
  "main": "packages/index.js",
6
6
  "scripts": {
@@ -20,6 +20,10 @@ const props = defineProps({
20
20
  width: {
21
21
  default: 100,
22
22
  },
23
+ minRows: {
24
+ type: Number,
25
+ default: 2,
26
+ },
23
27
  });
24
28
 
25
29
  const value = computed({
@@ -36,7 +40,7 @@ const value = computed({
36
40
 
37
41
  <template>
38
42
  <el-input class="xl-textarea xl-form-item" v-model="value" :placeholder="placeholder" type="textarea" size="small"
39
- :disabled="disabled" :autosize="{ minRows: 2 }"></el-input>
43
+ :disabled="disabled" :autosize="{ minRows }"></el-input>
40
44
  </template>
41
45
 
42
46
 
@@ -3,6 +3,8 @@ defineOptions({ name: "XlDataView" })
3
3
 
4
4
  import { inject, computed } from 'vue'
5
5
 
6
+ const emits = defineEmits(['loaded'])
7
+
6
8
  const props = defineProps({
7
9
  selectable: {
8
10
  type: Boolean,
@@ -123,7 +125,8 @@ const { refs, api, params, obj, chartOptions, total } = inject('injections')
123
125
  </template>
124
126
  </xl-tool-bar>
125
127
  <xl-query-page-table v-show="params.view != 'chart'" :ref="refs.table" :api="api" :params="params"
126
- v-bind="$props" :summary-method="summaryMethod?summaryMethod:()=>({0:total})" :sort-change="(data) => api.sort(data)">
128
+ v-bind="$props" :summary-method="summaryMethod?summaryMethod:()=>({0:total})" :sort-change="(data) => api.sort(data)"
129
+ @loaded="(rsp) => emits('loaded', rsp)">
127
130
  <template v-for="col in columns" :key="col.prop">
128
131
  <template v-if="!col.hidden">
129
132
  <!-- 支持通过 slot 属性使用插槽 -->