@xilonglab/vue-main 0.8.6 → 0.8.8

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.8.6",
3
+ "version": "0.8.8",
4
4
  "description": "xilong vue main",
5
5
  "main": "packages/index.js",
6
6
  "scripts": {
@@ -37,7 +37,7 @@ const onConfirm = async () => {
37
37
  if (validation) {
38
38
  emits('confirm');
39
39
  const code = await props.callback()
40
- if (code) {
40
+ if (!code) {
41
41
  hide();
42
42
  emits('finish');
43
43
  }
@@ -88,7 +88,7 @@ const props = defineProps({
88
88
  labelWidth: {
89
89
  default: 90
90
90
  },
91
- save: {
91
+ callback: {
92
92
  type: Function,
93
93
  default: () => { },
94
94
  },
@@ -176,7 +176,7 @@ const { refs, api, params, obj, chartOptions, total } = inject('injections')
176
176
  :label-width="labelWidth"
177
177
  :obj="obj"
178
178
  :columns="columns"
179
- :save="save"
179
+ :callback="callback"
180
180
  >
181
181
  <el-row>
182
182
  <template v-for="col in columns" :key="col.prop">
@@ -18,7 +18,7 @@ const props = defineProps({
18
18
  labelWidth: {
19
19
  default: 70
20
20
  },
21
- save: {
21
+ callback: {
22
22
  type: Function,
23
23
  default: () => { },
24
24
  }
@@ -63,7 +63,7 @@ defineExpose({
63
63
 
64
64
  <template>
65
65
  <xl-dialog class="xl-edit-dialog" :ref="refs.dialog" :title="chinese" :width="width" :validate="validate"
66
- :callback="save" @finish="emits('finish')">
66
+ :callback="callback" @finish="emits('finish')">
67
67
  <el-form :ref="refs.form" :model="obj" :rules="rules" :label-width="`${labelWidth}px`">
68
68
  <slot />
69
69
  </el-form>