1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
| <template>
| <div>
| <!-- <span v-if="data?.title" class="text-base font-bold flex-center mb-5">{{ data?.title }}</span> -->
|
| <AMISRenderer :schema="schema" />
|
| </div>
| </template>
|
| <script setup lang="ts">
| import AMISRenderer from '/@/components/amis/AMISRenderer.vue';
|
| const schema = {
| type: 'page',
| title: '表单页面',
| body: [
| {
| type: 'form',
| mode: 'horizontal',
| api: {
| url: '/system/get_sys_notify_list',
| dataType:'form'
| },
|
| body: [
| {
| label: 'Name',
| type: 'input-text',
| name: 'name',
| },
| {
| label: 'Email',
| type: 'input-email',
| placeholder: '请输入邮箱地址',
| name: 'email',
| },
| // {
| // type: 'editor',
| // name: 'js',
| // label: 'JS',
| // language: 'javascript',
| // },
| ],
| },
| ],
| };
| </script>
| <style scoped lang="scss"></style>
|
|