@xilonglab/vue-main 1.1.7 → 1.1.9

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.1.7",
3
+ "version": "1.1.9",
4
4
  "description": "xilong vue main",
5
5
  "main": "packages/index.js",
6
6
  "scripts": {
@@ -12,7 +12,7 @@ const props = defineProps({
12
12
  default: false
13
13
  },
14
14
  width: {},
15
- data: {},
15
+ state: {},
16
16
  ruleMap: {
17
17
  default() {
18
18
  return {}
@@ -21,7 +21,7 @@ const props = defineProps({
21
21
  labelWidth: {
22
22
  default: 70
23
23
  },
24
- callback: {
24
+ handler: {
25
25
  type: Function,
26
26
  default: () => { },
27
27
  }
@@ -62,8 +62,8 @@ defineExpose({
62
62
 
63
63
  <template>
64
64
  <xl-dialog class="xl-form-dialog xl-dialog" :ref="refs.dialog" :title="title" :draggable="draggable" :width="width" :validate="validate"
65
- :callback="callback" @finish="emits('finish')">
66
- <el-form :ref="refs.form" :model="data" :rules="rules" :label-width="`${labelWidth}px`">
65
+ :handler="handler" @finish="emits('finish')">
66
+ <el-form :ref="refs.form" :model="state" :rules="rules" :label-width="`${labelWidth}px`">
67
67
  <slot />
68
68
  </el-form>
69
69
  </xl-dialog>
@@ -1,21 +0,0 @@
1
- <script setup>
2
- defineOptions({ name: "XlStateDialog" })
3
-
4
- const props = defineProps({
5
- dialogRef: {},
6
- state: {},
7
- ruleMap: {},
8
- handler: {},
9
- title: {},
10
- labelWidth: {}
11
- })
12
- </script>
13
-
14
- <template>
15
- <xl-form-dialog :ref="dialogRef" :title="title" :label-width="labelWidth" :data="state"
16
- :ruleMap="ruleMap" :callback="handler">
17
- <slot/>
18
- </xl-form-dialog>
19
- </template>
20
-
21
- <style lang="less"></style>