jobsys-explore 4.0.21 → 4.0.23
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/.changeset/flat-kiwis-switch.md +5 -0
- package/.changeset/red-geckos-change.md +5 -0
- package/CHANGELOG.md +51 -0
- package/components/form/ExDate.jsx +11 -12
- package/components/form/ExField.jsx +19 -11
- package/components/form/utils.js +2 -1
- package/components/utils.js +1 -1
- package/dist/jobsys-explore.cjs +6 -6
- package/dist/jobsys-explore.cjs.map +1 -1
- package/dist/jobsys-explore.js +407 -407
- package/dist/jobsys-explore.js.map +1 -1
- package/package.json +1 -1
- package/playground/TestForm.vue +8 -1
package/package.json
CHANGED
package/playground/TestForm.vue
CHANGED
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
import ExForm from "../components/form/ExForm.jsx"
|
|
27
27
|
import { Checkbox, Icon, showFailToast, Button } from "vant"
|
|
28
28
|
import { h, ref } from "vue"
|
|
29
|
+
import { useDayjs } from "../hooks/datetime.js"
|
|
29
30
|
|
|
30
31
|
const checked = ref(false)
|
|
31
32
|
|
|
@@ -138,7 +139,9 @@ const getForm = () => [
|
|
|
138
139
|
hidden(submitForm) {
|
|
139
140
|
return submitForm.text === "3"
|
|
140
141
|
},
|
|
141
|
-
help
|
|
142
|
+
help() {
|
|
143
|
+
return h("div", { innerHTML: "请填写您的<br />地址请填写您的地址请填写您的地址请填写您的地址请填写您的地址" })
|
|
144
|
+
},
|
|
142
145
|
beforeSubmit({ submitForm }) {
|
|
143
146
|
return submitForm.address
|
|
144
147
|
},
|
|
@@ -287,6 +290,10 @@ const getForm = () => [
|
|
|
287
290
|
key: "date",
|
|
288
291
|
title: "日期 Date",
|
|
289
292
|
type: "date",
|
|
293
|
+
init() {
|
|
294
|
+
console.log(useDayjs(new Date()))
|
|
295
|
+
return useDayjs(new Date())
|
|
296
|
+
},
|
|
290
297
|
},
|
|
291
298
|
{
|
|
292
299
|
key: "datetime",
|