jobsys-explore 4.6.21 → 4.7.0
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/.eslintignore +3 -3
- package/CHANGELOG.md +542 -542
- package/README.md +41 -41
- package/TODOs.md +8 -8
- package/business-components/survey/ExSurvey.jsx +193 -193
- package/business-components/survey/index.js +5 -5
- package/business-components/survey/index.less +36 -36
- package/components/button/ExButton.jsx +120 -120
- package/components/button/index.js +4 -4
- package/components/button/index.less +7 -7
- package/components/decorator/ExDecorator.jsx +31 -31
- package/components/decorator/index.js +5 -5
- package/components/decorator/index.less +76 -76
- package/components/form/ExAddress.jsx +195 -195
- package/components/form/ExCascader.jsx +171 -171
- package/components/form/ExCheckbox.jsx +59 -59
- package/components/form/ExDate.jsx +143 -143
- package/components/form/ExDatetime.jsx +166 -166
- package/components/form/ExField.jsx +138 -138
- package/components/form/ExFieldUploader.jsx +50 -50
- package/components/form/ExForm.jsx +544 -544
- package/components/form/ExMatrixCheckbox.jsx +99 -99
- package/components/form/ExMatrixRadio.jsx +86 -86
- package/components/form/ExMatrixScale.jsx +97 -97
- package/components/form/ExNumber.jsx +51 -51
- package/components/form/ExRadio.jsx +58 -58
- package/components/form/ExRate.jsx +51 -51
- package/components/form/ExSelect.jsx +251 -251
- package/components/form/ExSlider.jsx +55 -55
- package/components/form/ExSwitch.jsx +51 -51
- package/components/form/ExTime.jsx +99 -99
- package/components/form/FormItem.jsx +307 -307
- package/components/form/PickerWrapper.jsx +120 -120
- package/components/form/index.js +46 -46
- package/components/form/index.less +178 -178
- package/components/form/utils.js +62 -62
- package/components/grid/ExGrid.jsx +53 -53
- package/components/grid/index.js +4 -4
- package/components/grid/index.less +2 -2
- package/components/index.js +12 -12
- package/components/pagination/ExPagination.jsx +457 -440
- package/components/pagination/index.js +5 -5
- package/components/pagination/index.less +3 -3
- package/components/provider/ExProvider.jsx +173 -173
- package/components/qrcode/ExQrcode.jsx +86 -86
- package/components/qrcode/index.js +5 -5
- package/components/qrcode/index.less +8 -8
- package/components/result/ExResult.jsx +122 -122
- package/components/result/index.js +5 -5
- package/components/result/index.less +59 -59
- package/components/search/ExSearch.jsx +370 -326
- package/components/search/components/Expand.jsx +77 -77
- package/components/search/components/Field.jsx +27 -27
- package/components/search/components/Quick.jsx +57 -57
- package/components/search/components/index.js +5 -5
- package/components/search/index.js +5 -5
- package/components/search/index.less +118 -118
- package/components/search/utils.js +30 -30
- package/components/sector/ExSector.jsx +52 -52
- package/components/sector/README.md +26 -26
- package/components/sector/index.js +5 -5
- package/components/sector/index.less +122 -122
- package/components/theme/ExTheme.jsx +10 -10
- package/components/theme/index.js +4 -4
- package/components/theme/index.less +98 -98
- package/components/uploader/ExUploader.jsx +293 -293
- package/components/uploader/index.js +5 -5
- package/components/utils.js +187 -187
- package/directives/auth.js +113 -113
- package/directives/index.js +4 -4
- package/dist/cipher-98df1050.cjs.map +1 -1
- package/dist/cipher-f2ed5ee6.js.map +1 -1
- package/dist/directives.cjs.map +1 -1
- package/dist/directives.js.map +1 -1
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.js.map +1 -1
- package/dist/jobsys-explore.cjs +6 -6
- package/dist/jobsys-explore.cjs.map +1 -1
- package/dist/jobsys-explore.js +464 -407
- package/dist/jobsys-explore.js.map +1 -1
- package/docgen.config.js +15 -15
- package/docs/.vuepress/.cache/deps/_metadata.json +52 -52
- package/docs/.vuepress/.cache/deps/lodash-es.js +8442 -8442
- package/docs/.vuepress/.cache/deps/lodash-es.js.map +7 -7
- package/docs/.vuepress/.temp/internal/clientConfigs.js +17 -17
- package/docs/.vuepress/.temp/internal/pagesComponents.js +24 -24
- package/docs/.vuepress/.temp/internal/pagesData.js +22 -22
- package/docs/.vuepress/.temp/internal/pagesRoutes.js +12 -12
- package/docs/.vuepress/.temp/internal/themeData.js +1 -1
- package/docs/.vuepress/.temp/pages/components/decorator/ExDecorator.html.js +1 -1
- package/docs/.vuepress/.temp/pages/components/decorator/ExDecorator.html.vue +37 -37
- package/docs/.vuepress/.temp/pages/components/sector/ExSector.html.js +1 -1
- package/docs/.vuepress/.temp/pages/components/sector/ExSector.html.vue +71 -71
- package/docs/.vuepress/.temp/styles/index.scss +1 -1
- package/docs/.vuepress/config.js +61 -61
- package/docs/.vuepress/dist/404.html +33 -33
- package/docs/.vuepress/dist/assets/404.html-a0ce2184.js +1 -1
- package/docs/.vuepress/dist/assets/ExButton.html-ad283101.js +1 -1
- package/docs/.vuepress/dist/assets/ExDecorator.html-42d09114.js +1 -1
- package/docs/.vuepress/dist/assets/ExDecorator.html-c82c5fe8.js +1 -1
- package/docs/.vuepress/dist/assets/ExForm.html-9e3f8000.js +1 -1
- package/docs/.vuepress/dist/assets/ExProvider.html-78fdc6cd.js +1 -1
- package/docs/.vuepress/dist/assets/ExSearch.html-103f6f34.js +1 -1
- package/docs/.vuepress/dist/assets/ExSector.html-a1e24c3a.js +7 -7
- package/docs/.vuepress/dist/assets/ExSector.html-cff3fefd.js +1 -1
- package/docs/.vuepress/dist/assets/ExUploader.html-8310e424.js +1 -1
- package/docs/.vuepress/dist/assets/app-29fe8d1e.js +10 -10
- package/docs/.vuepress/dist/assets/hooks.html-90ccbc1a.js +1 -1
- package/docs/.vuepress/dist/assets/index.html-85b79c97.js +43 -43
- package/docs/.vuepress/dist/assets/style-46d7e227.css +1 -1
- package/docs/.vuepress/dist/components/button/ExButton.html +33 -33
- package/docs/.vuepress/dist/components/decorator/ExDecorator.html +33 -33
- package/docs/.vuepress/dist/components/form/ExForm.html +33 -33
- package/docs/.vuepress/dist/components/provider/ExProvider.html +33 -33
- package/docs/.vuepress/dist/components/search/ExSearch.html +33 -33
- package/docs/.vuepress/dist/components/sector/ExSector.html +39 -39
- package/docs/.vuepress/dist/components/uploader/ExUploader.html +33 -33
- package/docs/.vuepress/dist/hooks.html +33 -33
- package/docs/.vuepress/dist/index.html +75 -75
- package/docs/.vuepress/styles/index.scss +7 -7
- package/docs/components/decorator/ExDecorator.md +14 -14
- package/docs/components/sector/ExSector.md +43 -43
- package/docs/index.md +82 -82
- package/hooks/cipher.js +44 -44
- package/hooks/datetime.js +69 -69
- package/hooks/form.js +188 -188
- package/hooks/utils.js +282 -282
- package/index.html +17 -17
- package/package.json +1 -1
- package/playground/App.vue +191 -191
- package/playground/TestButton.vue +61 -61
- package/playground/TestCascader.vue +2442 -2442
- package/playground/TestDecorator.vue +14 -14
- package/playground/TestForm.vue +429 -429
- package/playground/TestFormItem.vue +110 -110
- package/playground/TestGrid.vue +22 -22
- package/playground/TestPagination.vue +1250 -1248
- package/playground/TestQrcode.vue +7 -7
- package/playground/TestResult.vue +12 -12
- package/playground/TestSearch.vue +115 -115
- package/playground/TestSector.vue +15 -15
- package/playground/TestSurvey.vue +27 -27
- package/playground/TestUploader.vue +14 -14
- package/playground/main.js +22 -22
- package/utils/style.js +13 -13
- package/vite.config.js +54 -54
- package/.changeset/blue-spiders-roll.md +0 -5
- package/.changeset/cyan-monkeys-draw.md +0 -5
- package/.changeset/dry-feet-float.md +0 -5
- package/.changeset/empty-mice-share.md +0 -5
- package/.changeset/famous-yaks-doubt.md +0 -5
- package/.changeset/five-fans-type.md +0 -5
- package/.changeset/funny-hats-drop.md +0 -5
- package/.changeset/khaki-cobras-bathe.md +0 -5
- package/.changeset/khaki-forks-shave.md +0 -5
- package/.changeset/lazy-yaks-crash.md +0 -5
- package/.changeset/light-cycles-flow.md +0 -5
- package/.changeset/loud-mirrors-explain.md +0 -5
- package/.changeset/lovely-balloons-protect.md +0 -5
- package/.changeset/mean-pens-travel.md +0 -5
- package/.changeset/moody-doors-grow.md +0 -5
- package/.changeset/moody-laws-change.md +0 -5
- package/.changeset/nasty-goats-joke.md +0 -5
- package/.changeset/odd-forks-drop.md +0 -5
- package/.changeset/olive-windows-suffer.md +0 -5
- package/.changeset/popular-carpets-jog.md +0 -5
- package/.changeset/popular-planets-play.md +0 -5
- package/.changeset/rare-gorillas-boil.md +0 -5
- package/.changeset/rare-moose-teach.md +0 -5
- package/.changeset/sharp-tools-hope.md +0 -5
- package/.changeset/slimy-sloths-refuse.md +0 -5
- package/.changeset/slow-boats-search.md +0 -5
- package/.changeset/small-experts-bake.md +0 -5
- package/.changeset/smooth-horses-tie.md +0 -5
- package/.changeset/tame-feet-reply.md +0 -5
- package/.changeset/tidy-items-reflect.md +0 -5
- package/.changeset/weak-chicken-admire.md +0 -5
- package/.changeset/weak-rockets-compare.md +0 -5
- package/.changeset/wild-glasses-bathe.md +0 -5
- package/.changeset/wise-ears-turn.md +0 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ExQrcode text="Hello world!" center :margin="10" :size="200"></ExQrcode>
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script setup>
|
|
6
|
-
import ExQrcode from "../components/qrcode/ExQrcode.jsx"
|
|
7
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<ExQrcode text="Hello world!" center :margin="10" :size="200"></ExQrcode>
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
import ExQrcode from "../components/qrcode/ExQrcode.jsx"
|
|
7
|
+
</script>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ExResult type="success" title="恭喜你" description="支付成功了">
|
|
3
|
-
<template #extra>
|
|
4
|
-
<Button type="primary" icon="arrow-left">返回</Button>
|
|
5
|
-
</template>
|
|
6
|
-
</ExResult>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<script setup>
|
|
10
|
-
import ExResult from "../components/result/ExResult.jsx"
|
|
11
|
-
import { Button } from "vant"
|
|
12
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<ExResult type="success" title="恭喜你" description="支付成功了">
|
|
3
|
+
<template #extra>
|
|
4
|
+
<Button type="primary" icon="arrow-left">返回</Button>
|
|
5
|
+
</template>
|
|
6
|
+
</ExResult>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script setup>
|
|
10
|
+
import ExResult from "../components/result/ExResult.jsx"
|
|
11
|
+
import { Button } from "vant"
|
|
12
|
+
</script>
|
|
@@ -1,115 +1,115 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<Button type="primary" @click="clearSearch">清除</Button>
|
|
3
|
-
<ExSearch ref="search" v-model="state.searchData" :columns="columns" @search="onSearch"></ExSearch>
|
|
4
|
-
</template>
|
|
5
|
-
|
|
6
|
-
<script setup>
|
|
7
|
-
import { ref, reactive } from "vue"
|
|
8
|
-
import { Button } from "vant"
|
|
9
|
-
import ExSearch from "../components/search/ExSearch.jsx"
|
|
10
|
-
import { computed } from "vue"
|
|
11
|
-
|
|
12
|
-
const search = ref(null)
|
|
13
|
-
const clearSearch = () => {
|
|
14
|
-
search.value.reset()
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const state = reactive({
|
|
18
|
-
options: [],
|
|
19
|
-
searchData: "fdsfds",
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
const onSearch = (res) => {
|
|
23
|
-
console.log(res)
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const columns = computed(() => [
|
|
27
|
-
{
|
|
28
|
-
key: "college",
|
|
29
|
-
type: "select",
|
|
30
|
-
title: "学院",
|
|
31
|
-
quick: true,
|
|
32
|
-
options: state.options,
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
key: "college1",
|
|
36
|
-
type: "select",
|
|
37
|
-
title: "学院",
|
|
38
|
-
expandable: "multiple",
|
|
39
|
-
options: [
|
|
40
|
-
{ text: "信息学院", value: "12" },
|
|
41
|
-
{ text: "会计学院", value: "13" },
|
|
42
|
-
],
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
key: "age",
|
|
46
|
-
title: "年龄",
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
key: "date",
|
|
50
|
-
type: "date",
|
|
51
|
-
title: "日期",
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
key: "gender",
|
|
55
|
-
type: "select",
|
|
56
|
-
title: "性别",
|
|
57
|
-
expandable: true,
|
|
58
|
-
options: [
|
|
59
|
-
{ text: "男", value: "man" },
|
|
60
|
-
{ text: "女", value: "female" },
|
|
61
|
-
],
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
key: "cascade",
|
|
65
|
-
title: "级联选择器",
|
|
66
|
-
type: "cascade",
|
|
67
|
-
quick: true,
|
|
68
|
-
beforeSubmit({ value, queryForm }) {
|
|
69
|
-
console.log(value, queryForm)
|
|
70
|
-
return value[0]
|
|
71
|
-
},
|
|
72
|
-
options: [
|
|
73
|
-
{
|
|
74
|
-
value: "zhejiang",
|
|
75
|
-
label: "Zhejiang",
|
|
76
|
-
children: [
|
|
77
|
-
{
|
|
78
|
-
value: "hangzhou",
|
|
79
|
-
label: "Hangzhou",
|
|
80
|
-
children: [
|
|
81
|
-
{
|
|
82
|
-
value: "xihu",
|
|
83
|
-
label: "West Lake",
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
},
|
|
87
|
-
],
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
value: "jiangsu",
|
|
91
|
-
label: "Jiangsu",
|
|
92
|
-
children: [
|
|
93
|
-
{
|
|
94
|
-
value: "nanjing",
|
|
95
|
-
label: "Nanjing",
|
|
96
|
-
children: [
|
|
97
|
-
{
|
|
98
|
-
value: "zhonghuamen",
|
|
99
|
-
label: "Zhong Hua Men",
|
|
100
|
-
},
|
|
101
|
-
],
|
|
102
|
-
},
|
|
103
|
-
],
|
|
104
|
-
},
|
|
105
|
-
],
|
|
106
|
-
},
|
|
107
|
-
])
|
|
108
|
-
|
|
109
|
-
setTimeout(() => {
|
|
110
|
-
state.options = [
|
|
111
|
-
{ text: "信息学院", value: "12" },
|
|
112
|
-
{ text: "会计学院", value: "13" },
|
|
113
|
-
]
|
|
114
|
-
}, 1000)
|
|
115
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<Button type="primary" @click="clearSearch">清除</Button>
|
|
3
|
+
<ExSearch ref="search" v-model="state.searchData" :columns="columns" @search="onSearch"></ExSearch>
|
|
4
|
+
</template>
|
|
5
|
+
|
|
6
|
+
<script setup>
|
|
7
|
+
import { ref, reactive } from "vue"
|
|
8
|
+
import { Button } from "vant"
|
|
9
|
+
import ExSearch from "../components/search/ExSearch.jsx"
|
|
10
|
+
import { computed } from "vue"
|
|
11
|
+
|
|
12
|
+
const search = ref(null)
|
|
13
|
+
const clearSearch = () => {
|
|
14
|
+
search.value.reset()
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const state = reactive({
|
|
18
|
+
options: [],
|
|
19
|
+
searchData: "fdsfds",
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
const onSearch = (res) => {
|
|
23
|
+
console.log(res)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const columns = computed(() => [
|
|
27
|
+
{
|
|
28
|
+
key: "college",
|
|
29
|
+
type: "select",
|
|
30
|
+
title: "学院",
|
|
31
|
+
quick: true,
|
|
32
|
+
options: state.options,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
key: "college1",
|
|
36
|
+
type: "select",
|
|
37
|
+
title: "学院",
|
|
38
|
+
expandable: "multiple",
|
|
39
|
+
options: [
|
|
40
|
+
{ text: "信息学院", value: "12" },
|
|
41
|
+
{ text: "会计学院", value: "13" },
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
key: "age",
|
|
46
|
+
title: "年龄",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
key: "date",
|
|
50
|
+
type: "date",
|
|
51
|
+
title: "日期",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
key: "gender",
|
|
55
|
+
type: "select",
|
|
56
|
+
title: "性别",
|
|
57
|
+
expandable: true,
|
|
58
|
+
options: [
|
|
59
|
+
{ text: "男", value: "man" },
|
|
60
|
+
{ text: "女", value: "female" },
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
key: "cascade",
|
|
65
|
+
title: "级联选择器",
|
|
66
|
+
type: "cascade",
|
|
67
|
+
quick: true,
|
|
68
|
+
beforeSubmit({ value, queryForm }) {
|
|
69
|
+
console.log(value, queryForm)
|
|
70
|
+
return value[0]
|
|
71
|
+
},
|
|
72
|
+
options: [
|
|
73
|
+
{
|
|
74
|
+
value: "zhejiang",
|
|
75
|
+
label: "Zhejiang",
|
|
76
|
+
children: [
|
|
77
|
+
{
|
|
78
|
+
value: "hangzhou",
|
|
79
|
+
label: "Hangzhou",
|
|
80
|
+
children: [
|
|
81
|
+
{
|
|
82
|
+
value: "xihu",
|
|
83
|
+
label: "West Lake",
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
value: "jiangsu",
|
|
91
|
+
label: "Jiangsu",
|
|
92
|
+
children: [
|
|
93
|
+
{
|
|
94
|
+
value: "nanjing",
|
|
95
|
+
label: "Nanjing",
|
|
96
|
+
children: [
|
|
97
|
+
{
|
|
98
|
+
value: "zhonghuamen",
|
|
99
|
+
label: "Zhong Hua Men",
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
},
|
|
107
|
+
])
|
|
108
|
+
|
|
109
|
+
setTimeout(() => {
|
|
110
|
+
state.options = [
|
|
111
|
+
{ text: "信息学院", value: "12" },
|
|
112
|
+
{ text: "会计学院", value: "13" },
|
|
113
|
+
]
|
|
114
|
+
}, 1000)
|
|
115
|
+
</script>
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ExGrid :columns="3" :gutter="[10, 10]" style="padding: 10px">
|
|
3
|
-
<ExSector title="剑道式" subtitle="实力派激励" />
|
|
4
|
-
<ExSector title="落叶式" color="blue"
|
|
5
|
-
><template #subtitle><view style="color: red">aaaa</view>游久奔腾着</template></ExSector
|
|
6
|
-
>
|
|
7
|
-
<ExSector title="琪参式" color="orange" />
|
|
8
|
-
<ExSector title="琪参式" subtitle="山中绎膛派" color="red" />
|
|
9
|
-
</ExGrid>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<script setup>
|
|
13
|
-
import ExGrid from "../components/grid/ExGrid.jsx"
|
|
14
|
-
import ExSector from "../components/sector/ExSector.jsx"
|
|
15
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<ExGrid :columns="3" :gutter="[10, 10]" style="padding: 10px">
|
|
3
|
+
<ExSector title="剑道式" subtitle="实力派激励" />
|
|
4
|
+
<ExSector title="落叶式" color="blue"
|
|
5
|
+
><template #subtitle><view style="color: red">aaaa</view>游久奔腾着</template></ExSector
|
|
6
|
+
>
|
|
7
|
+
<ExSector title="琪参式" color="orange" />
|
|
8
|
+
<ExSector title="琪参式" subtitle="山中绎膛派" color="red" />
|
|
9
|
+
</ExGrid>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script setup>
|
|
13
|
+
import ExGrid from "../components/grid/ExGrid.jsx"
|
|
14
|
+
import ExSector from "../components/sector/ExSector.jsx"
|
|
15
|
+
</script>
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ExSurvey
|
|
3
|
-
:title="state.survey.title"
|
|
4
|
-
:slug="state.survey.slug"
|
|
5
|
-
:intro="state.survey.intro"
|
|
6
|
-
:outro="state.survey.outro"
|
|
7
|
-
:start-chapter="state.survey.last_finish_chapter"
|
|
8
|
-
:form-items="state.survey.form?.items || []"
|
|
9
|
-
submit-url="http://uni-affair.test/api/v1/student/survey/answer"
|
|
10
|
-
></ExSurvey>
|
|
11
|
-
</template>
|
|
12
|
-
<script setup>
|
|
13
|
-
import ExSurvey from "../business-components/survey/ExSurvey.jsx"
|
|
14
|
-
import { useFetch } from "../hooks"
|
|
15
|
-
import { reactive } from "vue"
|
|
16
|
-
|
|
17
|
-
const state = reactive({
|
|
18
|
-
survey: {},
|
|
19
|
-
})
|
|
20
|
-
|
|
21
|
-
const fetchSurvey = async () => {
|
|
22
|
-
const res = await useFetch().get("http://uni-affair.test/api/v1/student/survey/1")
|
|
23
|
-
state.survey = res.result
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
fetchSurvey()
|
|
27
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<ExSurvey
|
|
3
|
+
:title="state.survey.title"
|
|
4
|
+
:slug="state.survey.slug"
|
|
5
|
+
:intro="state.survey.intro"
|
|
6
|
+
:outro="state.survey.outro"
|
|
7
|
+
:start-chapter="state.survey.last_finish_chapter"
|
|
8
|
+
:form-items="state.survey.form?.items || []"
|
|
9
|
+
submit-url="http://uni-affair.test/api/v1/student/survey/answer"
|
|
10
|
+
></ExSurvey>
|
|
11
|
+
</template>
|
|
12
|
+
<script setup>
|
|
13
|
+
import ExSurvey from "../business-components/survey/ExSurvey.jsx"
|
|
14
|
+
import { useFetch } from "../hooks"
|
|
15
|
+
import { reactive } from "vue"
|
|
16
|
+
|
|
17
|
+
const state = reactive({
|
|
18
|
+
survey: {},
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
const fetchSurvey = async () => {
|
|
22
|
+
const res = await useFetch().get("http://uni-affair.test/api/v1/student/survey/1")
|
|
23
|
+
state.survey = res.result
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
fetchSurvey()
|
|
27
|
+
</script>
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ExUploader action="index.php/stu/Resume/save_pic" :extra-data="{ id: 'TWUXSTH' }" v-model="img" :max-num="3" upload-text="上传相片"></ExUploader>
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script setup>
|
|
6
|
-
import { ref } from "vue"
|
|
7
|
-
import ExUploader from "../components/uploader/ExUploader.jsx"
|
|
8
|
-
|
|
9
|
-
const img = ref({
|
|
10
|
-
short_url: "sdfdsf",
|
|
11
|
-
full_url: "https://www.gdfs.edu.cn/_mediafile/zhuwangzhan/2021/11/29/3d96zy6lu7.jpg",
|
|
12
|
-
})
|
|
13
|
-
//const img = ref(null)
|
|
14
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<ExUploader action="index.php/stu/Resume/save_pic" :extra-data="{ id: 'TWUXSTH' }" v-model="img" :max-num="3" upload-text="上传相片"></ExUploader>
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
import { ref } from "vue"
|
|
7
|
+
import ExUploader from "../components/uploader/ExUploader.jsx"
|
|
8
|
+
|
|
9
|
+
const img = ref({
|
|
10
|
+
short_url: "sdfdsf",
|
|
11
|
+
full_url: "https://www.gdfs.edu.cn/_mediafile/zhuwangzhan/2021/11/29/3d96zy6lu7.jpg",
|
|
12
|
+
})
|
|
13
|
+
//const img = ref(null)
|
|
14
|
+
</script>
|
package/playground/main.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { createApp } from "vue"
|
|
2
|
-
import "vant/lib/index.css"
|
|
3
|
-
import App from "./App.vue"
|
|
4
|
-
import http from "./http.js"
|
|
5
|
-
import { ExTheme } from "../components/theme"
|
|
6
|
-
import Explore from "../index.js"
|
|
7
|
-
|
|
8
|
-
const app = createApp(App)
|
|
9
|
-
|
|
10
|
-
/*const status = {
|
|
11
|
-
STATE_CODE_SUCCESS: 1000, // 成功
|
|
12
|
-
STATE_CODE_FAIL: 1001, // 失败
|
|
13
|
-
}*/
|
|
14
|
-
|
|
15
|
-
Explore.config({
|
|
16
|
-
httpStatus: status,
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
app.use(ExTheme)
|
|
20
|
-
app.use(http)
|
|
21
|
-
|
|
22
|
-
app.mount("#app")
|
|
1
|
+
import { createApp } from "vue"
|
|
2
|
+
import "vant/lib/index.css"
|
|
3
|
+
import App from "./App.vue"
|
|
4
|
+
import http from "./http.js"
|
|
5
|
+
import { ExTheme } from "../components/theme"
|
|
6
|
+
import Explore from "../index.js"
|
|
7
|
+
|
|
8
|
+
const app = createApp(App)
|
|
9
|
+
|
|
10
|
+
/*const status = {
|
|
11
|
+
STATE_CODE_SUCCESS: 1000, // 成功
|
|
12
|
+
STATE_CODE_FAIL: 1001, // 失败
|
|
13
|
+
}*/
|
|
14
|
+
|
|
15
|
+
Explore.config({
|
|
16
|
+
httpStatus: status,
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
app.use(ExTheme)
|
|
20
|
+
app.use(http)
|
|
21
|
+
|
|
22
|
+
app.mount("#app")
|
package/utils/style.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { isNull, isUndefined } from "lodash-es"
|
|
2
|
-
|
|
3
|
-
const genPixel = (num) => {
|
|
4
|
-
if (isNull(num) || isUndefined(num)) {
|
|
5
|
-
return "auto"
|
|
6
|
-
} else if (!isNaN(num)) {
|
|
7
|
-
return `${num}px`
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
return num
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export { genPixel }
|
|
1
|
+
import { isNull, isUndefined } from "lodash-es"
|
|
2
|
+
|
|
3
|
+
const genPixel = (num) => {
|
|
4
|
+
if (isNull(num) || isUndefined(num)) {
|
|
5
|
+
return "auto"
|
|
6
|
+
} else if (!isNaN(num)) {
|
|
7
|
+
return `${num}px`
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
return num
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { genPixel }
|
package/vite.config.js
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { defineConfig } from "vite"
|
|
2
|
-
import vue from "@vitejs/plugin-vue"
|
|
3
|
-
import vueJsx from "@vitejs/plugin-vue-jsx"
|
|
4
|
-
import eslintPlugin from "vite-plugin-eslint"
|
|
5
|
-
|
|
6
|
-
// https://vitejs.dev/config/
|
|
7
|
-
export default defineConfig({
|
|
8
|
-
plugins: [
|
|
9
|
-
vue(),
|
|
10
|
-
vueJsx(),
|
|
11
|
-
eslintPlugin({
|
|
12
|
-
include: ["components/**/*.{js,vue,jsx}", "business-components/**/*.{js,vue,jsx}"],
|
|
13
|
-
}),
|
|
14
|
-
],
|
|
15
|
-
build: {
|
|
16
|
-
lib: {
|
|
17
|
-
entry: ["./index.js", "./hooks/index.js", "./directives/index.js"],
|
|
18
|
-
fileName: (format, entryName) => {
|
|
19
|
-
const extension = format === "es" ? "js" : "cjs"
|
|
20
|
-
return `${entryName}.${extension}`
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
sourcemap: true,
|
|
24
|
-
rollupOptions: {
|
|
25
|
-
input: {
|
|
26
|
-
"jobsys-explore": "./index.js",
|
|
27
|
-
hooks: "./hooks/index.js",
|
|
28
|
-
directives: "./directives/index.js",
|
|
29
|
-
},
|
|
30
|
-
// make sure to externalize deps that shouldn't be bundledinto your library
|
|
31
|
-
external: ["vue", "vant", "axios", "lodash-es", "dayjs"],
|
|
32
|
-
output: {
|
|
33
|
-
exports: "named",
|
|
34
|
-
globals: {
|
|
35
|
-
vue: "Vue",
|
|
36
|
-
axios: "axios",
|
|
37
|
-
dayjs: "dayjs",
|
|
38
|
-
vant: "vant",
|
|
39
|
-
"lodash-es": "lodash",
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
server: {
|
|
45
|
-
host: true,
|
|
46
|
-
port: 3000,
|
|
47
|
-
proxy: {
|
|
48
|
-
"/api": {
|
|
49
|
-
target: "http://transit.test",
|
|
50
|
-
changeOrigin: true,
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
})
|
|
1
|
+
import { defineConfig } from "vite"
|
|
2
|
+
import vue from "@vitejs/plugin-vue"
|
|
3
|
+
import vueJsx from "@vitejs/plugin-vue-jsx"
|
|
4
|
+
import eslintPlugin from "vite-plugin-eslint"
|
|
5
|
+
|
|
6
|
+
// https://vitejs.dev/config/
|
|
7
|
+
export default defineConfig({
|
|
8
|
+
plugins: [
|
|
9
|
+
vue(),
|
|
10
|
+
vueJsx(),
|
|
11
|
+
eslintPlugin({
|
|
12
|
+
include: ["components/**/*.{js,vue,jsx}", "business-components/**/*.{js,vue,jsx}"],
|
|
13
|
+
}),
|
|
14
|
+
],
|
|
15
|
+
build: {
|
|
16
|
+
lib: {
|
|
17
|
+
entry: ["./index.js", "./hooks/index.js", "./directives/index.js"],
|
|
18
|
+
fileName: (format, entryName) => {
|
|
19
|
+
const extension = format === "es" ? "js" : "cjs"
|
|
20
|
+
return `${entryName}.${extension}`
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
sourcemap: true,
|
|
24
|
+
rollupOptions: {
|
|
25
|
+
input: {
|
|
26
|
+
"jobsys-explore": "./index.js",
|
|
27
|
+
hooks: "./hooks/index.js",
|
|
28
|
+
directives: "./directives/index.js",
|
|
29
|
+
},
|
|
30
|
+
// make sure to externalize deps that shouldn't be bundledinto your library
|
|
31
|
+
external: ["vue", "vant", "axios", "lodash-es", "dayjs"],
|
|
32
|
+
output: {
|
|
33
|
+
exports: "named",
|
|
34
|
+
globals: {
|
|
35
|
+
vue: "Vue",
|
|
36
|
+
axios: "axios",
|
|
37
|
+
dayjs: "dayjs",
|
|
38
|
+
vant: "vant",
|
|
39
|
+
"lodash-es": "lodash",
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
server: {
|
|
45
|
+
host: true,
|
|
46
|
+
port: 3000,
|
|
47
|
+
proxy: {
|
|
48
|
+
"/api": {
|
|
49
|
+
target: "http://transit.test",
|
|
50
|
+
changeOrigin: true,
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
})
|