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 +6 -0
- package/business-components/index.js +1 -0
- package/business-components/survey/ExSurvey.jsx +34 -0
- package/business-components/survey/index.js +5 -0
- package/business-components/survey/index.less +0 -0
- package/components/form/ExForm.jsx +1 -1
- package/dist/jobsys-explore.cjs +6 -6
- package/dist/jobsys-explore.cjs.map +1 -1
- package/dist/jobsys-explore.js +505 -487
- package/dist/jobsys-explore.js.map +1 -1
- package/index.js +7 -2
- package/package.json +1 -1
- package/playground/App.vue +3 -1
- package/playground/TestSurvey.vue +6 -0
- package/vite.config.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -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
|
+
})
|
|
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:
|
|
315
|
+
submitForm: form, //改成将 form 传出去,这样可以在 form 中添加参数
|
|
316
316
|
})
|
|
317
317
|
}
|
|
318
318
|
|