@xilonglab/vue-main 0.7.8 → 0.8.1

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": "0.7.8",
3
+ "version": "0.8.1",
4
4
  "description": "xilong vue main",
5
5
  "main": "packages/index.js",
6
6
  "scripts": {
package/packages/index.js CHANGED
@@ -42,7 +42,7 @@ import XlReviewDialog from './dialog/XlReviewDialog.vue'
42
42
 
43
43
  // Main Components
44
44
  import XlDataView from './main/XlDataView.vue'
45
- import XlFormDialog2 from './main/XlFormDialog2.vue'
45
+ import XlTableFormDialog from './main/XlTableFormDialog.vue'
46
46
  import XlNavBar from './main/XlNavBar.vue'
47
47
  import XlTabView from './main/XlTabView.vue'
48
48
  import XlToolBar from './main/XlToolBar.vue'
@@ -93,7 +93,7 @@ const components = [
93
93
  XlReviewDialog,
94
94
  // Main Components
95
95
  XlDataView,
96
- XlFormDialog2,
96
+ XlTableFormDialog,
97
97
  XlNavBar,
98
98
  XlTabView,
99
99
  XlToolBar,
@@ -88,7 +88,7 @@ const props = defineProps({
88
88
  labelWidth: {
89
89
  default: 90
90
90
  },
91
- callback: {
91
+ save: {
92
92
  type: Function,
93
93
  default: () => { },
94
94
  },
@@ -169,14 +169,14 @@ const { refs, api, params, obj, chartOptions, total } = inject('injections')
169
169
  <slot name="columns" />
170
170
  </xl-query-page-table>
171
171
  <xl-chart v-show="params.view == 'chart'" :options="chartOptions" />
172
- <xl-form-dialog-2
172
+ <xl-table-form-dialog
173
173
  :ref="refs.editDialog"
174
- :title="chinese"
174
+ :chinese="chinese"
175
175
  :width="width"
176
176
  :label-width="labelWidth"
177
- :data="obj"
177
+ :obj="obj"
178
178
  :columns="columns"
179
- :callback="callback"
179
+ :save="save"
180
180
  >
181
181
  <el-row>
182
182
  <template v-for="col in columns" :key="col.prop">
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- defineOptions({ name: "XlFormDialog2" })
2
+ defineOptions({ name: "XlTableFormDialog" })
3
3
 
4
4
  import { ref, computed } from 'vue'
5
5
 
@@ -7,9 +7,9 @@ import { ref, computed } from 'vue'
7
7
  const emits = defineEmits(['confirm', 'finish'])
8
8
 
9
9
  const props = defineProps({
10
- title: {},
10
+ chinese: {},
11
11
  width: {},
12
- data: {},
12
+ obj: {},
13
13
  columns: {
14
14
  default() {
15
15
  return []
@@ -18,7 +18,7 @@ const props = defineProps({
18
18
  labelWidth: {
19
19
  default: 70
20
20
  },
21
- callback: {
21
+ save: {
22
22
  type: Function,
23
23
  default: () => { },
24
24
  }
@@ -62,9 +62,9 @@ defineExpose({
62
62
 
63
63
 
64
64
  <template>
65
- <xl-dialog class="xl-edit-dialog" :ref="refs.dialog" :title="title" :width="width" :validate="validate"
65
+ <xl-dialog class="xl-edit-dialog" :ref="refs.dialog" :title="chinese" :width="width" :validate="validate"
66
66
  :callback="callback" @finish="emits('finish')">
67
- <el-form :ref="refs.form" :model="data" :rules="rules" :label-width="`${labelWidth}px`">
67
+ <el-form :ref="refs.form" :model="obj" :rules="rules" :label-width="`${labelWidth}px`">
68
68
  <slot />
69
69
  </el-form>
70
70
  </xl-dialog>