jobsys-explore 4.3.0 → 4.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # jobsys-explore
2
2
 
3
+ ## 4.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - modify submit form in beforeSubit
8
+
3
9
  ## 4.2.20
4
10
 
5
11
  ### Patch Changes
@@ -0,0 +1 @@
1
+ export * from "./survey"
@@ -0,0 +1,34 @@
1
+ import { defineComponent } from "vue"
2
+ import "./index.less"
3
+
4
+ /**
5
+ * 调查问卷
6
+ * @version 4.4.0
7
+ */
8
+ export default defineComponent({
9
+ name: "ExSurvey",
10
+ props: {
11
+ /**
12
+ * 开场语
13
+ */
14
+ opening: { type: String, default: "" },
15
+
16
+ /**
17
+ * 结束语
18
+ */
19
+ ending: { type: String, default: "" },
20
+ },
21
+ emits: [
22
+ /**
23
+ * @event click
24
+ * @param {Event} event 点击事件
25
+ */
26
+ "click",
27
+ ],
28
+
29
+ setup(props) {
30
+ const openingElem = () => (props.opening ? <div class={`ex-survey__opening`}>{props.opening}</div> : null)
31
+
32
+ return () => <div class={`ex-survey`}>{openingElem()}</div>
33
+ },
34
+ })
@@ -0,0 +1,5 @@
1
+ import _ExSurvey from "./ExSurvey.jsx"
2
+ import withInstall from "../../utils/withInstall"
3
+
4
+ export const ExSurvey = withInstall(_ExSurvey)
5
+ export default ExSurvey
File without changes
@@ -312,7 +312,7 @@ export default defineComponent({
312
312
  for (const item of itemsWithBeforeSubmit) {
313
313
  form[item.key] = await item.beforeSubmit({
314
314
  value: form[item.key],
315
- submitForm: state.submitForm,
315
+ submitForm: form, //改成将 form 传出去,这样可以在 form 中添加参数
316
316
  })
317
317
  }
318
318