vue3-components-plus 3.0.19 → 3.0.21
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/LICENSE +21 -21
- package/README.md +22 -176
- package/dist/ComponentDemo/DialogDemo.vue +2 -2
- package/dist/ComponentDemo/FormDemo.vue +133 -6
- package/dist/ComponentDemo/NsTableDemo/index.vue +29 -31
- package/dist/api/types.d.ts +116 -116
- package/dist/vue3-components-plus.css +1 -1
- package/dist/vue3-components-plus.d.ts +0 -2
- package/dist/vue3-components-plus.js +457 -2231
- package/dist/vue3-components-plus.umd.cjs +1 -1
- package/package.json +1 -1
- package/vue3-components-plus.d.ts +0 -2
- package/dist/ComponentDemo/DynamicFormCascadeAsyncDemo.vue +0 -337
- package/dist/ComponentDemo/DynamicFormCascadeDemo.vue +0 -263
- package/dist/ComponentDemo/DynamicFormPlusDemo.vue +0 -176
- package/dist/ComponentDemo/FormDemo copy.vue +0 -714
- package/dist/ComponentDemo/TestFormConfig.js +0 -129
- package/dist/ComponentDemo/VideoDemo.vue +0 -303
- package/dist/cdn/ezuikit/ezuikit.js +0 -27
- package/dist/cdn/ezuikit/ezuikit_static/PlayCtrlWasm/playCtrl1/HasSIMD/Decoder.js +0 -168
- package/dist/cdn/ezuikit/ezuikit_static/PlayCtrlWasm/playCtrl1/NoSIMD/Decoder.js +0 -168
- package/dist/cdn/ezuikit/ezuikit_static/PlayCtrlWasm/playCtrl3/hasWorker/HasSIMD/Decoder.js +0 -21
- package/dist/cdn/ezuikit/ezuikit_static/PlayCtrlWasm/playCtrl3/hasWorker/HasSIMD/Decoder.wasm +0 -0
- package/dist/cdn/ezuikit/ezuikit_static/PlayCtrlWasm/playCtrl3/hasWorker/HasSIMD/Decoder.worker.js +0 -1
- package/dist/cdn/ezuikit/ezuikit_static/PlayCtrlWasm/playCtrl3/hasWorker/NoSIMD/Decoder.js +0 -21
- package/dist/cdn/ezuikit/ezuikit_static/PlayCtrlWasm/playCtrl3/hasWorker/NoSIMD/Decoder.wasm +0 -0
- package/dist/cdn/ezuikit/ezuikit_static/PlayCtrlWasm/playCtrl3/hasWorker/NoSIMD/Decoder.worker.js +0 -1
- package/dist/cdn/ezuikit/ezuikit_static/PlayCtrlWasm/playCtrl3/noWorker/Decoder.js +0 -21
- package/dist/cdn/ezuikit/ezuikit_static/PlayCtrlWasm/playCtrl3/noWorker/Decoder.wasm +0 -0
- package/dist/cdn/ezuikit/ezuikit_static/css/component.css +0 -1257
- package/dist/cdn/ezuikit/ezuikit_static/css/inspectTheme.css +0 -354
- package/dist/cdn/ezuikit/ezuikit_static/css/theme copy.css +0 -126
- package/dist/cdn/ezuikit/ezuikit_static/css/theme.css +0 -140
- package/dist/cdn/ezuikit/ezuikit_static/imgs/bg.png +0 -0
- package/dist/cdn/ezuikit/ezuikit_static/imgs/bg.svg +0 -33
- package/dist/cdn/ezuikit/ezuikit_static/imgs/empty.png +0 -0
- package/dist/cdn/ezuikit/ezuikit_static/imgs/end.png +0 -0
- package/dist/cdn/ezuikit/ezuikit_static/imgs/fallback.svg +0 -52
- package/dist/cdn/ezuikit/ezuikit_static/imgs/start.png +0 -0
- package/dist/cdn/ezuikit/ezuikit_static/rec/datepicker.js +0 -1522
- package/dist/cdn/ezuikit/ezuikit_static/rec/datepicker.min.css +0 -36
- package/dist/cdn/ezuikit/ezuikit_static/rec/datepicker.zh-CN.js +0 -19
- package/dist/cdn/ezuikit/ezuikit_static/rec/jquery.min.js +0 -2
- package/dist/cdn/ezuikit/ezuikit_static/speed/speed.css +0 -145
- package/dist/cdn/ezuikit/ezuikit_static/talk/adapeter.js +0 -5497
- package/dist/cdn/ezuikit/ezuikit_static/talk/janus.js +0 -3507
- package/dist/cdn/ezuikit/ezuikit_static/talk/tts-v4.js +0 -343
- package/dist/cdn/ezuikit.js +0 -27
- package/dist/cdn/h5player/h5player.min.js +0 -313
- package/dist/cdn/h5player/playctrl1/DecodeWorker.js +0 -642
- package/dist/cdn/h5player/playctrl1/Decoder.js +0 -1
- package/dist/cdn/h5player/playctrl1simd/DecodeWorker.js +0 -642
- package/dist/cdn/h5player/playctrl1simd/Decoder.js +0 -1
- package/dist/cdn/h5player/playctrl2/Decoder.js +0 -21
- package/dist/cdn/h5player/playctrl2/Decoder.wasm +0 -0
- package/dist/cdn/h5player/playctrl2/Decoder.worker.js +0 -1
- package/dist/cdn/h5player/playctrl3/Decoder.js +0 -21
- package/dist/cdn/h5player/playctrl3/Decoder.wasm +0 -0
- package/dist/cdn/h5player/playctrl3/Decoder.worker.js +0 -1
- package/dist/cdn/h5player/talk/AudioInterCom.js +0 -21
- package/dist/cdn/h5player/talk/AudioInterCom.wasm +0 -0
- package/dist/cdn/h5player/talkW/AudioInterCom.js +0 -21
- package/dist/cdn/h5player/talkW/AudioInterCom.wasm +0 -0
- package/dist/cdn/h5player/talkW/AudioInterCom.worker.js +0 -1
- package/dist/cdn/h5player/transform/libSystemTransform.js +0 -6525
- package/dist/cdn/h5player/transform/libSystemTransform.wasm +0 -0
- package/dist/cdn/h5player/transform/systemTransform-worker.js +0 -120
- package/dist/cdn/md5.js +0 -254
- package/dist/js/EasyPlayer-decode.js +0 -1
- package/dist/js/EasyPlayer-lib.js +0 -1
- package/dist/js/EasyPlayer-pro.js +0 -1
- package/dist/js/EasyPlayer-pro.wasm +0 -0
- package/dist/js/EasyPlayer-snap.wasm +0 -0
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="dynamic-form-plus-demo">
|
|
3
|
-
<h1>DynamicFormPlus 组件演示</h1>
|
|
4
|
-
|
|
5
|
-
<el-card class="demo-card">
|
|
6
|
-
<template #header>
|
|
7
|
-
<div class="card-header">
|
|
8
|
-
<span>基础表单示例</span>
|
|
9
|
-
<div>
|
|
10
|
-
<el-radio-group v-model="currentMode" size="small">
|
|
11
|
-
<el-radio-button label="create">新增</el-radio-button>
|
|
12
|
-
<el-radio-button label="edit">编辑</el-radio-button>
|
|
13
|
-
<el-radio-button label="view">查看</el-radio-button>
|
|
14
|
-
</el-radio-group>
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
17
|
-
</template>
|
|
18
|
-
|
|
19
|
-
<DynamicFormPlus
|
|
20
|
-
ref="formRef"
|
|
21
|
-
v-model="formData"
|
|
22
|
-
:config="formConfig"
|
|
23
|
-
:mode="currentMode"
|
|
24
|
-
:layout="layoutMode"
|
|
25
|
-
:col-span="12"
|
|
26
|
-
:gutter="16"
|
|
27
|
-
label-width="120px"
|
|
28
|
-
@submit="handleSubmit"
|
|
29
|
-
@reset="handleReset"
|
|
30
|
-
@change="handleChange"
|
|
31
|
-
/>
|
|
32
|
-
</el-card>
|
|
33
|
-
|
|
34
|
-
<el-card class="demo-card" style="margin-top: 20px;">
|
|
35
|
-
<template #header>
|
|
36
|
-
<span>表单数据</span>
|
|
37
|
-
</template>
|
|
38
|
-
<pre>{{ JSON.stringify(formData, null, 2) }}</pre>
|
|
39
|
-
</el-card>
|
|
40
|
-
</div>
|
|
41
|
-
</template>
|
|
42
|
-
|
|
43
|
-
<script setup lang="ts">
|
|
44
|
-
import { ref } from 'vue'
|
|
45
|
-
import { ElMessage } from 'element-plus'
|
|
46
|
-
import { DynamicFormPlus } from '../../packages/components/DynamicFormPlus'
|
|
47
|
-
import type { FormConfig, FormMode, LayoutMode } from '../../packages/components/DynamicFormPlus'
|
|
48
|
-
|
|
49
|
-
// 表单模式
|
|
50
|
-
const currentMode = ref<FormMode>('create')
|
|
51
|
-
const layoutMode = ref<LayoutMode>('grid')
|
|
52
|
-
|
|
53
|
-
// 表单数据
|
|
54
|
-
const formData = ref({
|
|
55
|
-
name: '',
|
|
56
|
-
email: '',
|
|
57
|
-
age: null,
|
|
58
|
-
gender: '',
|
|
59
|
-
description: '',
|
|
60
|
-
})
|
|
61
|
-
|
|
62
|
-
// 表单配置
|
|
63
|
-
const formConfig: FormConfig = {
|
|
64
|
-
items: [
|
|
65
|
-
{
|
|
66
|
-
prop: 'name',
|
|
67
|
-
label: '姓名',
|
|
68
|
-
component: 'el-input',
|
|
69
|
-
componentProps: {
|
|
70
|
-
placeholder: '请输入姓名',
|
|
71
|
-
clearable: true,
|
|
72
|
-
},
|
|
73
|
-
rules: [
|
|
74
|
-
{ required: true, message: '请输入姓名', trigger: 'blur' },
|
|
75
|
-
{ min: 2, max: 20, message: '长度在 2 到 20 个字符', trigger: 'blur' },
|
|
76
|
-
],
|
|
77
|
-
span: 12,
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
prop: 'email',
|
|
81
|
-
label: '邮箱',
|
|
82
|
-
component: 'el-input',
|
|
83
|
-
componentProps: {
|
|
84
|
-
placeholder: '请输入邮箱',
|
|
85
|
-
clearable: true,
|
|
86
|
-
},
|
|
87
|
-
rules: [
|
|
88
|
-
{ required: true, message: '请输入邮箱', trigger: 'blur' },
|
|
89
|
-
{ type: 'email', message: '请输入正确的邮箱格式', trigger: 'blur' },
|
|
90
|
-
],
|
|
91
|
-
span: 12,
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
prop: 'age',
|
|
95
|
-
label: '年龄',
|
|
96
|
-
component: 'el-input-number',
|
|
97
|
-
componentProps: {
|
|
98
|
-
min: 1,
|
|
99
|
-
max: 120,
|
|
100
|
-
controlsPosition: 'right',
|
|
101
|
-
},
|
|
102
|
-
span: 12,
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
prop: 'gender',
|
|
106
|
-
label: '性别',
|
|
107
|
-
component: 'el-select',
|
|
108
|
-
componentProps: {
|
|
109
|
-
placeholder: '请选择性别',
|
|
110
|
-
clearable: true,
|
|
111
|
-
},
|
|
112
|
-
span: 12,
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
prop: 'description',
|
|
116
|
-
label: '描述',
|
|
117
|
-
component: 'el-input',
|
|
118
|
-
componentProps: {
|
|
119
|
-
type: 'textarea',
|
|
120
|
-
rows: 4,
|
|
121
|
-
placeholder: '请输入描述',
|
|
122
|
-
maxlength: 200,
|
|
123
|
-
showWordLimit: true,
|
|
124
|
-
},
|
|
125
|
-
span: 24,
|
|
126
|
-
},
|
|
127
|
-
],
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
// 表单引用
|
|
131
|
-
const formRef = ref()
|
|
132
|
-
|
|
133
|
-
// 处理提交
|
|
134
|
-
function handleSubmit(data: Record<string, any>) {
|
|
135
|
-
console.log('表单提交:', data)
|
|
136
|
-
ElMessage.success('表单提交成功!')
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
// 处理重置
|
|
140
|
-
function handleReset() {
|
|
141
|
-
console.log('表单重置')
|
|
142
|
-
ElMessage.info('表单已重置')
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
// 处理字段变更
|
|
146
|
-
function handleChange(prop: string, value: any) {
|
|
147
|
-
console.log('字段变更:', prop, value)
|
|
148
|
-
}
|
|
149
|
-
</script>
|
|
150
|
-
|
|
151
|
-
<style scoped lang="scss">
|
|
152
|
-
.dynamic-form-plus-demo {
|
|
153
|
-
padding: 20px;
|
|
154
|
-
|
|
155
|
-
h1 {
|
|
156
|
-
margin-bottom: 20px;
|
|
157
|
-
font-size: 24px;
|
|
158
|
-
font-weight: bold;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.demo-card {
|
|
162
|
-
.card-header {
|
|
163
|
-
display: flex;
|
|
164
|
-
justify-content: space-between;
|
|
165
|
-
align-items: center;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
pre {
|
|
170
|
-
background-color: #f5f5f5;
|
|
171
|
-
padding: 12px;
|
|
172
|
-
border-radius: 4px;
|
|
173
|
-
overflow-x: auto;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
</style>
|