easybill-ui 1.0.18 → 1.0.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.
@@ -5,7 +5,7 @@
5
5
  </el-steps>
6
6
  <div v-loading="confirmLoading">
7
7
  <template v-for="(item, i) in stepSchemaList" :key="i">
8
- <curd-form v-show="step == i" ref="curdFormRef" v-model="form" :fields="fields" :form-schema="item.formSchema" :extend-context="extendContext" style="margin: 0 40px 0 20px" />
8
+ <curd-form v-show="step == i" ref="curdFormRef" v-model="form" :fields="fields" :form-schema="item.formSchema" :extend-context="extendContexts" style="margin: 0 40px 0 20px" />
9
9
  </template>
10
10
  </div>
11
11
  <template #footer>
@@ -63,6 +63,10 @@ export default defineComponent({
63
63
  type: Object as PropType<Fields>,
64
64
  default: () => ({}),
65
65
  },
66
+ extendContext: {
67
+ type: Object,
68
+ default: () => ({}),
69
+ },
66
70
  },
67
71
  setup(props) {
68
72
  const curdFormRef = ref()
@@ -128,8 +132,9 @@ export default defineComponent({
128
132
  }
129
133
  }
130
134
  }
131
- const extendContext = {
135
+ const extendContexts = {
132
136
  loadOptions,
137
+ ...props.extendContext,
133
138
  }
134
139
  if (props.setForm) {
135
140
  props.setForm(form)
@@ -145,7 +150,7 @@ export default defineComponent({
145
150
  form,
146
151
  prev,
147
152
  next,
148
- extendContext,
153
+ extendContexts,
149
154
  }
150
155
  },
151
156
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easybill-ui",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "A component library for easybill",
5
5
  "author": "tuchongyang <779311998@qq.com>",
6
6
  "private": false,
@@ -14,5 +14,5 @@
14
14
  "publishConfig": {
15
15
  "access": "public"
16
16
  },
17
- "gitHead": "08f0e3b747fe5ee074bf9ab321b3b0c04404353d"
17
+ "gitHead": "6d90f8f7355a30d39a7216dcac5a8ab90ad7512d"
18
18
  }