zhytech-ui-mobile 1.0.0 → 1.0.2

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.
Files changed (84) hide show
  1. package/.eslintignore +11 -0
  2. package/.eslintrc.cjs +253 -0
  3. package/.prettierignore +0 -0
  4. package/.prettierrc.json +9 -0
  5. package/.vscode/settings.json +131 -0
  6. package/index.html +39 -0
  7. package/package.json +4 -26
  8. package/shims-uni.d.ts +7 -0
  9. package/src/App.vue +24 -0
  10. package/src/components/dynamicForm/componentRenderer.vue +207 -0
  11. package/src/components/dynamicForm/components/advanced/index.ts +13 -0
  12. package/src/components/dynamicForm/components/advanced/upload.vue +108 -0
  13. package/src/components/dynamicForm/components/advanced/uploadImage.vue +107 -0
  14. package/src/components/dynamicForm/components/answerSheetPopup/answerSheetItem.vue +58 -0
  15. package/src/components/dynamicForm/components/answerSheetPopup/index.vue +111 -0
  16. package/src/components/dynamicForm/components/application/employee.vue +140 -0
  17. package/src/components/dynamicForm/components/application/grade.vue +183 -0
  18. package/src/components/dynamicForm/components/application/index.ts +14 -0
  19. package/src/components/dynamicForm/components/application/post.vue +136 -0
  20. package/src/components/dynamicForm/components/base/checkbox.vue +143 -0
  21. package/src/components/dynamicForm/components/base/index.ts +15 -0
  22. package/src/components/dynamicForm/components/base/input.vue +99 -0
  23. package/src/components/dynamicForm/components/base/label.vue +29 -0
  24. package/src/components/dynamicForm/components/base/radio.vue +155 -0
  25. package/src/components/dynamicForm/components/componentType.ts +16 -0
  26. package/src/components/dynamicForm/components/layout/groupLayout.vue +103 -0
  27. package/src/components/dynamicForm/components/layout/index.ts +12 -0
  28. package/src/components/dynamicForm/formRenderer.vue +567 -0
  29. package/src/components/dynamicForm/index.ts +21 -0
  30. package/src/components/dynamicForm/types/componentAttribute/advanced/uploadAttribute.ts +35 -0
  31. package/src/components/dynamicForm/types/componentAttribute/application/employeeAttribute.ts +42 -0
  32. package/src/components/dynamicForm/types/componentAttribute/application/gradeAttribute.ts +54 -0
  33. package/src/components/dynamicForm/types/componentAttribute/application/postAttribute.ts +42 -0
  34. package/src/components/dynamicForm/types/componentAttribute/base/checkboxAttribute.ts +38 -0
  35. package/src/components/dynamicForm/types/componentAttribute/base/inputAttribute.ts +31 -0
  36. package/src/components/dynamicForm/types/componentAttribute/base/radioAttribute.ts +30 -0
  37. package/src/components/dynamicForm/types/componentAttribute/baseAttribute.ts +110 -0
  38. package/src/components/dynamicForm/types/componentAttribute/editAttribute.ts +70 -0
  39. package/src/components/dynamicForm/types/componentAttribute/index.ts +37 -0
  40. package/src/components/dynamicForm/types/componentAttribute/layout/groupLayoutAttribute.ts +39 -0
  41. package/src/components/dynamicForm/types/documentView.ts +110 -0
  42. package/src/components/dynamicForm/types/enum.ts +109 -0
  43. package/src/components/dynamicForm/types/formAttribute.ts +93 -0
  44. package/src/components/dynamicForm/types/uploadOption.ts +31 -0
  45. package/src/env.d.ts +8 -0
  46. package/src/hooks/useMessage.ts +44 -0
  47. package/src/hooks/useToast.ts +29 -0
  48. package/src/hooks/useUtils.ts +201 -0
  49. package/src/index.ts +59 -0
  50. package/src/main.ts +19 -0
  51. package/src/manifest.json +72 -0
  52. package/src/pages/dynamicFormDemo.vue +1260 -0
  53. package/src/pages/dynamicFormExaminationDemo.vue +567 -0
  54. package/src/pages.json +58 -0
  55. package/src/shime-uni.d.ts +6 -0
  56. package/src/uni.scss +76 -0
  57. package/src/unocss/index.ts +20 -0
  58. package/src/unocss/rules.ts +139 -0
  59. package/src/unocss/shortcuts.ts +53 -0
  60. package/src/unocss/theme/index.ts +13 -0
  61. package/src/unocss/theme/themeOption/dark.ts +35 -0
  62. package/src/unocss/theme/themeOption/primary.ts +33 -0
  63. package/src/unocss/variants.ts +110 -0
  64. package/tsconfig.json +19 -0
  65. package/uno.config.ts +63 -0
  66. package/vite.config.ts +83 -0
  67. package/dist/build/h5/style.css +0 -1
  68. package/dist/build/h5/zhytech-ui-mobile.es.js +0 -19661
  69. package/dist/build/h5/zhytech-ui-mobile.umd.js +0 -1
  70. package/dist/dev/true/style.css +0 -455
  71. package/dist/dev/true/zhytech-ui-mobile.es.js +0 -3440
  72. package/dist/dev/true/zhytech-ui-mobile.umd.js +0 -3443
  73. /package/{dist/build/h5 → src}/static/iconfont/iconfont.css +0 -0
  74. /package/{dist/build/h5 → src}/static/iconfont/iconfont.ttf +0 -0
  75. /package/{dist/build/h5 → src}/static/iconfont/iconfont.woff +0 -0
  76. /package/{dist/build/h5 → src}/static/iconfont/iconfont.woff2 +0 -0
  77. /package/{dist/build/h5 → src}/static/scss/actionSheet.scss +0 -0
  78. /package/{dist/build/h5 → src}/static/scss/button.scss +0 -0
  79. /package/{dist/build/h5 → src}/static/scss/checkbox.scss +0 -0
  80. /package/{dist/build/h5 → src}/static/scss/form.scss +0 -0
  81. /package/{dist/build/h5 → src}/static/scss/index.scss +0 -0
  82. /package/{dist/build/h5 → src}/static/scss/input.scss +0 -0
  83. /package/{dist/build/h5 → src}/static/scss/picker.scss +0 -0
  84. /package/{dist/build/h5 → src}/static/scss/radio.scss +0 -0
@@ -0,0 +1,567 @@
1
+ <!--
2
+ * FilePath : \src\pages\dynamicFormexaminationDemo.vue
3
+ * Author : 苏军志
4
+ * Date : 2025-08-23 16:34
5
+ * LastEditors : 苏军志
6
+ * LastEditTime : 2025-09-05 17:45
7
+ * Description : 动态表单-试卷模式测试画面
8
+ * CodeIterationRecord:
9
+ -->
10
+ <template>
11
+ <wd-config-provider :theme-vars="themeVars" class="y-aline-start h-full">
12
+ <view class="text-right sons-class-wd-button:m-10px! bg-#FAEBD7">
13
+ <wd-button type="primary" size="small" @click="formRef?.showAnswerSheet()">答题卡</wd-button>
14
+ <wd-button type="primary" size="small" @click="console.log(formRef.getDatas())">交卷</wd-button>
15
+ </view>
16
+ <view class="flex-auto overflow-hidden">
17
+ <zhy-form-renderer
18
+ ref="formRef"
19
+ :formData="formData"
20
+ onePageItemFlag
21
+ showOnePageNavButton
22
+ realTimeDisplayAnswerMode
23
+ everyItemDisplayAnalysisSwitch
24
+ />
25
+ </view>
26
+ </wd-config-provider>
27
+ </template>
28
+ <script setup lang="ts">
29
+ const formRef = ref<any>();
30
+ const themeVars = ref(uni.getStorageSync("themeVars"));
31
+ onShow(() => {
32
+ themeVars.value = uni.getStorageSync("themeVars");
33
+ uni.setNavigationBarColor({
34
+ frontColor: "#ffffff",
35
+ backgroundColor: themeVars.value.colorTheme
36
+ });
37
+ });
38
+ const formData = ref({
39
+ props: {
40
+ formID: "7ee1b184b8994d888ea65f0d1d245f9b",
41
+ formName: "手术二部基础题库练习(2025-09-04 09:23)",
42
+ formType: "2",
43
+ layoutMode: "vertical",
44
+ size: "small",
45
+ column: 12,
46
+ labelWidth: 90,
47
+ labelPosition: "top"
48
+ },
49
+ components: [
50
+ {
51
+ type: "groupLayout",
52
+ id: "62",
53
+ itemID: "62",
54
+ itemSourceType: "SettingDictionary",
55
+ props: {
56
+ width: 12,
57
+ showLabel: true,
58
+ fontSize: 14,
59
+ isBold: true,
60
+ showFlag: true,
61
+ label: "一、多选题",
62
+ labelNewLine: true,
63
+ showBorder: true,
64
+ borderStyle: "solid",
65
+ borderColor: "#cccccc",
66
+ borderWidth: 1,
67
+ paddingLeft: 10
68
+ },
69
+ isLayout: true,
70
+ children: [
71
+ {
72
+ type: "checkbox",
73
+ id: "751",
74
+ itemID: "751",
75
+ itemSourceType: "ExaminationQuestion",
76
+ props: {
77
+ width: 12,
78
+ showLabel: true,
79
+ fontSize: 14,
80
+ isBold: false,
81
+ showFlag: true,
82
+ label: "1、有机磷中毒的抢救措施是",
83
+ labelNewLine: true,
84
+ description: "正确答案:迅速清除毒物、口服中毒者应洗胃、应用解磷定、阿托品、预防肺部感染",
85
+ newLine: true,
86
+ correctOptions: [
87
+ "32431d748bce48dba125e0d85ade5da8",
88
+ "176265897d944db08ebe60cfa09c8011",
89
+ "ae62443a01714f5e9745d25d33a82891",
90
+ "4703581a4def4485ae7f8bf0daefb17c"
91
+ ],
92
+ options: [
93
+ {
94
+ value: "32431d748bce48dba125e0d85ade5da8",
95
+ label: "A、迅速清除毒物",
96
+ itemSourceType: "ExaminationQuestionDetail",
97
+ inputEnable: false
98
+ },
99
+ {
100
+ value: "176265897d944db08ebe60cfa09c8011",
101
+ label: "B、口服中毒者应洗胃",
102
+ itemSourceType: "ExaminationQuestionDetail",
103
+ inputEnable: false
104
+ },
105
+ {
106
+ value: "ae62443a01714f5e9745d25d33a82891",
107
+ label: "C、应用解磷定、阿托品",
108
+ itemSourceType: "ExaminationQuestionDetail",
109
+ inputEnable: false
110
+ },
111
+ {
112
+ value: "4703581a4def4485ae7f8bf0daefb17c",
113
+ label: "D、预防肺部感染",
114
+ itemSourceType: "ExaminationQuestionDetail",
115
+ inputEnable: false
116
+ },
117
+ {
118
+ value: "0dcef8618e114b9a86984a6a764f58de",
119
+ label: "E、注射抗生素",
120
+ itemSourceType: "ExaminationQuestionDetail",
121
+ inputEnable: false
122
+ }
123
+ ],
124
+ examinationStatus: 1
125
+ },
126
+ isLayout: false,
127
+ children: null,
128
+ fixedItemID: null,
129
+ sort: 0
130
+ },
131
+ {
132
+ type: "checkbox",
133
+ id: "752",
134
+ itemID: "752",
135
+ itemSourceType: "ExaminationQuestion",
136
+ props: {
137
+ width: 12,
138
+ showLabel: true,
139
+ fontSize: 14,
140
+ isBold: false,
141
+ showFlag: true,
142
+ label: "2、手术体位不当所引起生理并发症有",
143
+ labelNewLine: true,
144
+ description: "正确答案:肺通气不足、血压下降、上呼吸道阻塞、肢体动脉搏动消失、头面部充血水肿",
145
+ newLine: true,
146
+ correctOptions: [
147
+ "37fd70771260424d8e8a5244487737d4",
148
+ "74aacb3f4f0b4061ae491a7964fd8e64",
149
+ "f61ba4641b2e4d59acd4fa2691574741",
150
+ "79cb7a05bcdc437b9a7582eebf47f069",
151
+ "671aabf644c940018035051f504ea368"
152
+ ],
153
+ options: [
154
+ {
155
+ value: "37fd70771260424d8e8a5244487737d4",
156
+ label: "A、肺通气不足",
157
+ itemSourceType: "ExaminationQuestionDetail",
158
+ inputEnable: false
159
+ },
160
+ {
161
+ value: "74aacb3f4f0b4061ae491a7964fd8e64",
162
+ label: "B、血压下降",
163
+ itemSourceType: "ExaminationQuestionDetail",
164
+ inputEnable: false
165
+ },
166
+ {
167
+ value: "f61ba4641b2e4d59acd4fa2691574741",
168
+ label: "C、上呼吸道阻塞",
169
+ itemSourceType: "ExaminationQuestionDetail",
170
+ inputEnable: false
171
+ },
172
+ {
173
+ value: "79cb7a05bcdc437b9a7582eebf47f069",
174
+ label: "D、肢体动脉搏动消失",
175
+ itemSourceType: "ExaminationQuestionDetail",
176
+ inputEnable: false
177
+ },
178
+ {
179
+ value: "671aabf644c940018035051f504ea368",
180
+ label: "E、头面部充血水肿",
181
+ itemSourceType: "ExaminationQuestionDetail",
182
+ inputEnable: false
183
+ }
184
+ ],
185
+ examinationStatus: 1
186
+ },
187
+ isLayout: false,
188
+ children: null,
189
+ fixedItemID: null,
190
+ sort: 0
191
+ }
192
+ ],
193
+ fixedItemID: null,
194
+ sort: 0
195
+ },
196
+ {
197
+ type: "groupLayout",
198
+ id: "63",
199
+ itemID: "63",
200
+ itemSourceType: "SettingDictionary",
201
+ props: {
202
+ width: 12,
203
+ showLabel: true,
204
+ fontSize: 14,
205
+ isBold: true,
206
+ showFlag: true,
207
+ label: "二、单选题",
208
+ labelNewLine: true,
209
+ showBorder: true,
210
+ borderStyle: "solid",
211
+ borderColor: "#cccccc",
212
+ borderWidth: 1,
213
+ paddingLeft: 10
214
+ },
215
+ isLayout: true,
216
+ children: [
217
+ {
218
+ type: "radio",
219
+ id: "744",
220
+ itemID: "744",
221
+ itemSourceType: "ExaminationQuestion",
222
+ props: {
223
+ width: 12,
224
+ showLabel: true,
225
+ fontSize: 14,
226
+ isBold: false,
227
+ showFlag: true,
228
+ label: "1、心肌梗塞的牵涉痛可发生在",
229
+ labelNewLine: true,
230
+ description: "正确答案:左肩区",
231
+ newLine: true,
232
+ correctOptions: ["6b0f4ca3083349189c9d0a821c03f5e6"],
233
+ options: [
234
+ {
235
+ value: "6b0f4ca3083349189c9d0a821c03f5e6",
236
+ label: "A、左肩区",
237
+ itemSourceType: "ExaminationQuestionDetail",
238
+ inputEnable: false
239
+ },
240
+ {
241
+ value: "8cf338debd6c41258b259ebba8835cbf",
242
+ label: "B、右肩区 ? ",
243
+ itemSourceType: "ExaminationQuestionDetail",
244
+ inputEnable: false
245
+ },
246
+ {
247
+ value: "8f6e6cc282ec49fa85c26f26585f8f86",
248
+ label: "C、上腹部 ?",
249
+ itemSourceType: "ExaminationQuestionDetail",
250
+ inputEnable: false
251
+ },
252
+ {
253
+ value: "f8a9b09ad2834c9faf22e0e23bd3cfcb",
254
+ label: "D、颈前部",
255
+ itemSourceType: "ExaminationQuestionDetail",
256
+ inputEnable: false
257
+ }
258
+ ],
259
+ examinationStatus: 1
260
+ },
261
+ isLayout: false,
262
+ children: null,
263
+ fixedItemID: null,
264
+ sort: 0
265
+ },
266
+ {
267
+ type: "radio",
268
+ id: "745",
269
+ itemID: "745",
270
+ itemSourceType: "ExaminationQuestion",
271
+ props: {
272
+ width: 12,
273
+ showLabel: true,
274
+ fontSize: 14,
275
+ isBold: false,
276
+ showFlag: true,
277
+ label: "2、病人取被迫卧位是为了",
278
+ labelNewLine: true,
279
+ description: "正确答案:减轻痛苦",
280
+ newLine: true,
281
+ correctOptions: ["7147d541828b42ee96d9b0abffdf2651"],
282
+ options: [
283
+ {
284
+ value: "acc23c4c670a4dfdb0eea2c9b667ee28",
285
+ label: "A、保证安全",
286
+ itemSourceType: "ExaminationQuestionDetail",
287
+ inputEnable: false
288
+ },
289
+ {
290
+ value: "7147d541828b42ee96d9b0abffdf2651",
291
+ label: "B、减轻痛苦",
292
+ itemSourceType: "ExaminationQuestionDetail",
293
+ inputEnable: false
294
+ },
295
+ {
296
+ value: "5d139fdc18b340d7b9700f25543bbdc1",
297
+ label: "C、配合治疗",
298
+ itemSourceType: "ExaminationQuestionDetail",
299
+ inputEnable: false
300
+ },
301
+ {
302
+ value: "a271b4128a334cc4b0b488f6935b8e35",
303
+ label: "D、预防并发症",
304
+ itemSourceType: "ExaminationQuestionDetail",
305
+ inputEnable: false
306
+ }
307
+ ],
308
+ examinationStatus: 1
309
+ },
310
+ isLayout: false,
311
+ children: null,
312
+ fixedItemID: null,
313
+ sort: 0
314
+ },
315
+ {
316
+ type: "radio",
317
+ id: "746",
318
+ itemID: "746",
319
+ itemSourceType: "ExaminationQuestion",
320
+ props: {
321
+ width: 12,
322
+ showLabel: true,
323
+ fontSize: 14,
324
+ isBold: false,
325
+ showFlag: true,
326
+ label: "3、在各种卧位中,下列错误的是",
327
+ labelNewLine: true,
328
+ description: "正确答案:中凹卧位时,应抬高病人头胸部约 30° 角,抬高下肢约 20° 角",
329
+ newLine: true,
330
+ correctOptions: ["74590761b0484a0fab72eef8ec2234a6"],
331
+ options: [
332
+ {
333
+ value: "74590761b0484a0fab72eef8ec2234a6",
334
+ label: "A、中凹卧位时,应抬高病人头胸部约 30° 角,抬高下肢约 20° 角",
335
+ itemSourceType: "ExaminationQuestionDetail",
336
+ inputEnable: false
337
+ },
338
+ {
339
+ value: "43cb155107b54bec869f9e2d217f4905",
340
+ label: "B、半卧位时,应抬高床头支架成 30 ~ 50° 角",
341
+ itemSourceType: "ExaminationQuestionDetail",
342
+ inputEnable: false
343
+ },
344
+ {
345
+ value: "acf8add81c4e41a291b441a0e7c96667",
346
+ label: "C、头低足高位,床尾应垫高 15 ~ 30cm",
347
+ itemSourceType: "ExaminationQuestionDetail",
348
+ inputEnable: false
349
+ },
350
+ {
351
+ value: "7e8e07bc310944c7af28832b4faac118",
352
+ label: "D、保留灌肠取侧卧位时,病人臀部应垫高 10cm",
353
+ itemSourceType: "ExaminationQuestionDetail",
354
+ inputEnable: false
355
+ }
356
+ ],
357
+ examinationStatus: 1
358
+ },
359
+ isLayout: false,
360
+ children: null,
361
+ fixedItemID: null,
362
+ sort: 0
363
+ },
364
+ {
365
+ type: "radio",
366
+ id: "747",
367
+ itemID: "747",
368
+ itemSourceType: "ExaminationQuestion",
369
+ props: {
370
+ width: 12,
371
+ showLabel: true,
372
+ fontSize: 14,
373
+ isBold: false,
374
+ showFlag: true,
375
+ label: "4、腰穿抽脑脊液后,去枕仰卧头偏一侧的主要目的是",
376
+ labelNewLine: true,
377
+ description: "正确答案:预防脑压降低",
378
+ newLine: true,
379
+ correctOptions: ["ecaa24ef7b3e47adb1810124f4afee33"],
380
+ options: [
381
+ {
382
+ value: "ecaa24ef7b3e47adb1810124f4afee33",
383
+ label: "A、预防脑压降低",
384
+ itemSourceType: "ExaminationQuestionDetail",
385
+ inputEnable: false
386
+ },
387
+ {
388
+ value: "0f77f962f3c34bbc87ffd4c1917a8822",
389
+ label: "B、减低减轻脑缺氧",
390
+ itemSourceType: "ExaminationQuestionDetail",
391
+ inputEnable: false
392
+ },
393
+ {
394
+ value: "0c0a88f12e9144ba8fb7cc94b53b3870",
395
+ label: "C、增加脑血液循环",
396
+ itemSourceType: "ExaminationQuestionDetail",
397
+ inputEnable: false
398
+ },
399
+ {
400
+ value: "6008b5b780fa49e095c912d409758af9",
401
+ label: "D、预防脑缺血",
402
+ itemSourceType: "ExaminationQuestionDetail",
403
+ inputEnable: false
404
+ }
405
+ ],
406
+ examinationStatus: 1
407
+ },
408
+ isLayout: false,
409
+ children: null,
410
+ fixedItemID: null,
411
+ sort: 0
412
+ },
413
+ {
414
+ type: "radio",
415
+ id: "748",
416
+ itemID: "748",
417
+ itemSourceType: "ExaminationQuestion",
418
+ props: {
419
+ width: 12,
420
+ showLabel: true,
421
+ fontSize: 14,
422
+ isBold: false,
423
+ showFlag: true,
424
+ label: "5、急性腹膜炎术后取半坐位的主要目的是",
425
+ labelNewLine: true,
426
+ description: "正确答案:利于腹腔引流,使感染局限化",
427
+ newLine: true,
428
+ correctOptions: ["3f6c129775104c2eb153c3e5a8332c0f"],
429
+ options: [
430
+ {
431
+ value: "047afadfa19d4d44a0d727655c0fdadc",
432
+ label: "A、利于呼吸运动",
433
+ itemSourceType: "ExaminationQuestionDetail",
434
+ inputEnable: false
435
+ },
436
+ {
437
+ value: "493953f530844c42829d4fb173632969",
438
+ label: "B、减轻腹部伤口缝合处的紧张力",
439
+ itemSourceType: "ExaminationQuestionDetail",
440
+ inputEnable: false
441
+ },
442
+ {
443
+ value: "08e12ec780054cb4a6b5037606ab5275",
444
+ label: "C、减轻疼痛",
445
+ itemSourceType: "ExaminationQuestionDetail",
446
+ inputEnable: false
447
+ },
448
+ {
449
+ value: "3f6c129775104c2eb153c3e5a8332c0f",
450
+ label: "D、利于腹腔引流,使感染局限化",
451
+ itemSourceType: "ExaminationQuestionDetail",
452
+ inputEnable: false
453
+ }
454
+ ],
455
+ examinationStatus: 1
456
+ },
457
+ isLayout: false,
458
+ children: null,
459
+ fixedItemID: null,
460
+ sort: 0
461
+ },
462
+ {
463
+ type: "radio",
464
+ id: "749",
465
+ itemID: "749",
466
+ itemSourceType: "ExaminationQuestion",
467
+ props: {
468
+ width: 12,
469
+ showLabel: true,
470
+ fontSize: 14,
471
+ isBold: false,
472
+ showFlag: true,
473
+ label: "6、中毒较深病人洗胃时应采取",
474
+ labelNewLine: true,
475
+ description: "正确答案:左侧卧位",
476
+ newLine: true,
477
+ correctOptions: ["6052c0ffa9784b3c968a6136c876da21"],
478
+ options: [
479
+ {
480
+ value: "6052c0ffa9784b3c968a6136c876da21",
481
+ label: "A、左侧卧位",
482
+ itemSourceType: "ExaminationQuestionDetail",
483
+ inputEnable: false
484
+ },
485
+ {
486
+ value: "c22c7be000f04cf88e3b216562e8f41b",
487
+ label: "B、右侧卧位",
488
+ itemSourceType: "ExaminationQuestionDetail",
489
+ inputEnable: false
490
+ },
491
+ {
492
+ value: "4ee1127b91d8405aa83587df6e53bda3",
493
+ label: "C、患侧卧位",
494
+ itemSourceType: "ExaminationQuestionDetail",
495
+ inputEnable: false
496
+ },
497
+ {
498
+ value: "215cf78d16a04d1caadc36963b4585ad",
499
+ label: "D、半卧位",
500
+ itemSourceType: "ExaminationQuestionDetail",
501
+ inputEnable: false
502
+ }
503
+ ],
504
+ examinationStatus: 1
505
+ },
506
+ isLayout: false,
507
+ children: null,
508
+ fixedItemID: null,
509
+ sort: 0
510
+ },
511
+ {
512
+ type: "radio",
513
+ id: "750",
514
+ itemID: "750",
515
+ itemSourceType: "ExaminationQuestion",
516
+ props: {
517
+ width: 12,
518
+ showLabel: true,
519
+ fontSize: 14,
520
+ isBold: false,
521
+ showFlag: true,
522
+ label: "7、肌肉的等长练习的主要作用",
523
+ labelNewLine: true,
524
+ description: "正确答案:不伴有明显的关节运动",
525
+ newLine: true,
526
+ correctOptions: ["0b4fce72e89247d18315b9a7fe31ad9a"],
527
+ options: [
528
+ {
529
+ value: "3c5a498c74174f30b64f04085a330edd",
530
+ label: "A、可改变肌肉长度",
531
+ itemSourceType: "ExaminationQuestionDetail",
532
+ inputEnable: false
533
+ },
534
+ {
535
+ value: "0b4fce72e89247d18315b9a7fe31ad9a",
536
+ label: "B、不伴有明显的关节运动",
537
+ itemSourceType: "ExaminationQuestionDetail",
538
+ inputEnable: false
539
+ },
540
+ {
541
+ value: "211ae62206664c32a6fc2fe3bb45c615",
542
+ label: "C、可锻炼肌肉收缩对抗一定的负荷",
543
+ itemSourceType: "ExaminationQuestionDetail",
544
+ inputEnable: false
545
+ },
546
+ {
547
+ value: "c1fb684a719e433d86f8b1291472c421",
548
+ label: "D、作关节的活动锻炼",
549
+ itemSourceType: "ExaminationQuestionDetail",
550
+ inputEnable: false
551
+ }
552
+ ],
553
+ examinationStatus: 1
554
+ },
555
+ isLayout: false,
556
+ children: null,
557
+ fixedItemID: null,
558
+ sort: 0
559
+ }
560
+ ],
561
+ fixedItemID: null,
562
+ sort: 0
563
+ }
564
+ ],
565
+ datas: {}
566
+ });
567
+ </script>
package/src/pages.json ADDED
@@ -0,0 +1,58 @@
1
+ {
2
+ "pages": [
3
+ {
4
+ "path": "pages/dynamicFormDemo",
5
+ "style": {
6
+ "navigationBarTitleText": "问卷示例"
7
+ }
8
+ },
9
+ {
10
+ "path": "pages/dynamicFormExaminationDemo",
11
+ "style": {
12
+ "navigationBarTitleText": "试卷示例"
13
+ }
14
+ }
15
+ ],
16
+ "globalStyle": {
17
+ // 横屏配置,全局屏幕旋转设置(仅 APP/微信/QQ小程序),支持
18
+ "pageOrientation": "portrait",
19
+ "navigationBarTextStyle": "white",
20
+ "navigationBarTitleText": "动态表单组件示例",
21
+ "navigationBarBackgroundColor": "#4d80f0"
22
+ },
23
+ "tabBar": {
24
+ "iconfontSrc": "static/iconfont/iconfont.ttf",
25
+ "color": "#000000",
26
+ "selectedColor": "#ffffff",
27
+ "backgroundColor": "#4d80f0",
28
+ "list": [
29
+ {
30
+ "pagePath": "pages/dynamicFormDemo",
31
+ "text": "问卷模式",
32
+ "iconfont": {
33
+ "text": "\ue635",
34
+ "selectedText": "\ue635",
35
+ "fontSize": "18px",
36
+ "color": "#000000",
37
+ "selectedColor": "#ffffff"
38
+ }
39
+ },
40
+ {
41
+ "pagePath": "pages/dynamicFormExaminationDemo",
42
+ "text": "试卷模式",
43
+ "iconfont": {
44
+ "text": "\ue643",
45
+ "selectedText": "\ue643",
46
+ "fontSize": "18px",
47
+ "color": "#000000",
48
+ "selectedColor": "#ffffff"
49
+ }
50
+ }
51
+ ]
52
+ },
53
+ "easycom": {
54
+ "custom": {
55
+ "^wd-(.*)": "wot-design-uni/components/wd-$1/wd-$1.vue"
56
+ }
57
+ }
58
+ }
@@ -0,0 +1,6 @@
1
+ export {}
2
+
3
+ declare module "vue" {
4
+ type Hooks = App.AppInstance & Page.PageInstance;
5
+ interface ComponentCustomOptions extends Hooks {}
6
+ }
package/src/uni.scss ADDED
@@ -0,0 +1,76 @@
1
+ /**
2
+ * 这里是uni-app内置的常用样式变量
3
+ *
4
+ * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
5
+ * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
6
+ *
7
+ */
8
+
9
+ /**
10
+ * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
11
+ *
12
+ * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
13
+ */
14
+
15
+ /* 颜色变量 */
16
+
17
+ /* 行为相关颜色 */
18
+ $uni-color-primary: #007aff;
19
+ $uni-color-success: #4cd964;
20
+ $uni-color-warning: #f0ad4e;
21
+ $uni-color-error: #dd524d;
22
+
23
+ /* 文字基本颜色 */
24
+ $uni-text-color: #333; // 基本色
25
+ $uni-text-color-inverse: #fff; // 反色
26
+ $uni-text-color-grey: #999; // 辅助灰色,如加载更多的提示信息
27
+ $uni-text-color-placeholder: #808080;
28
+ $uni-text-color-disable: #c0c0c0;
29
+
30
+ /* 背景颜色 */
31
+ $uni-bg-color: #fff;
32
+ $uni-bg-color-grey: #f8f8f8;
33
+ $uni-bg-color-hover: #f1f1f1; // 点击状态颜色
34
+ $uni-bg-color-mask: rgba(0, 0, 0, 0.4); // 遮罩颜色
35
+
36
+ /* 边框颜色 */
37
+ $uni-border-color: #c8c7cc;
38
+
39
+ /* 尺寸变量 */
40
+
41
+ /* 文字尺寸 */
42
+ $uni-font-size-sm: 12px;
43
+ $uni-font-size-base: 14px;
44
+ $uni-font-size-lg: 16;
45
+
46
+ /* 图片尺寸 */
47
+ $uni-img-size-sm: 20px;
48
+ $uni-img-size-base: 26px;
49
+ $uni-img-size-lg: 40px;
50
+
51
+ /* Border Radius */
52
+ $uni-border-radius-sm: 2px;
53
+ $uni-border-radius-base: 3px;
54
+ $uni-border-radius-lg: 6px;
55
+ $uni-border-radius-circle: 50%;
56
+
57
+ /* 水平间距 */
58
+ $uni-spacing-row-sm: 5px;
59
+ $uni-spacing-row-base: 10px;
60
+ $uni-spacing-row-lg: 15px;
61
+
62
+ /* 垂直间距 */
63
+ $uni-spacing-col-sm: 4px;
64
+ $uni-spacing-col-base: 8px;
65
+ $uni-spacing-col-lg: 12px;
66
+
67
+ /* 透明度 */
68
+ $uni-opacity-disabled: 0.3; // 组件禁用态的透明度
69
+
70
+ /* 文章场景相关 */
71
+ $uni-color-title: #2c405a; // 文章标题颜色
72
+ $uni-font-size-title: 20px;
73
+ $uni-color-subtitle: #555; // 二级标题颜色
74
+ $uni-font-size-subtitle: 18px;
75
+ $uni-color-paragraph: #3f536e; // 文章段落颜色
76
+ $uni-font-size-paragraph: 15px;