matrix_components 2.0.401 → 2.0.403
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.
|
@@ -72,10 +72,11 @@
|
|
|
72
72
|
</template>
|
|
73
73
|
|
|
74
74
|
<script setup lang="ts">
|
|
75
|
-
|
|
75
|
+
|
|
76
76
|
import { h, onMounted, reactive, ref } from 'vue'
|
|
77
77
|
import { cloneDeep } from 'lodash-es'
|
|
78
78
|
import { nextTick } from 'vue'
|
|
79
|
+
import { ElMessage } from 'element-plus'
|
|
79
80
|
|
|
80
81
|
const props = defineProps({
|
|
81
82
|
readOnly: {
|
|
@@ -104,7 +105,7 @@ const row4Ref = ref()
|
|
|
104
105
|
key: "isEnable",
|
|
105
106
|
label: "是否启用",
|
|
106
107
|
value: false,
|
|
107
|
-
component: ElSwitch,
|
|
108
|
+
component: 'ElSwitch',
|
|
108
109
|
events: {
|
|
109
110
|
change: changeHandler
|
|
110
111
|
},
|
|
@@ -129,7 +130,7 @@ const row4Ref = ref()
|
|
|
129
130
|
key: 'timeInterval',
|
|
130
131
|
label: '时间间隔(秒)',
|
|
131
132
|
value: '',
|
|
132
|
-
component: ElInput,
|
|
133
|
+
component: 'ElInput',
|
|
133
134
|
params: {
|
|
134
135
|
'v-length.range': {
|
|
135
136
|
min: 0,
|
|
@@ -148,7 +149,7 @@ const row4Ref = ref()
|
|
|
148
149
|
key: 'stuck_threshold',
|
|
149
150
|
label: '视频帧卡顿(秒)',
|
|
150
151
|
value: '',
|
|
151
|
-
component: ElInput,
|
|
152
|
+
component: 'ElInput',
|
|
152
153
|
params: {
|
|
153
154
|
'v-length.range': {
|
|
154
155
|
min: 0,
|
|
@@ -169,7 +170,7 @@ const row4Ref = ref()
|
|
|
169
170
|
key: 'max_retries',
|
|
170
171
|
label: '最大重连次数',
|
|
171
172
|
value: '',
|
|
172
|
-
component: ElInput,
|
|
173
|
+
component: 'ElInput',
|
|
173
174
|
params: {
|
|
174
175
|
'v-length.range': {
|
|
175
176
|
min: 0,
|
|
@@ -195,7 +196,7 @@ const row4Ref = ref()
|
|
|
195
196
|
key: 'save_video',
|
|
196
197
|
label: '是否保存视频',
|
|
197
198
|
value: false,
|
|
198
|
-
component: ElRadioGroup,
|
|
199
|
+
component: 'ElRadioGroup',
|
|
199
200
|
params: {
|
|
200
201
|
rules: [
|
|
201
202
|
{
|
|
@@ -220,7 +221,7 @@ const row4Ref = ref()
|
|
|
220
221
|
key: 'pre_buffer_second',
|
|
221
222
|
label: '帧前缓存(秒)',
|
|
222
223
|
value: '',
|
|
223
|
-
component: ElInput,
|
|
224
|
+
component: 'ElInput',
|
|
224
225
|
params: {
|
|
225
226
|
'v-length.range': {
|
|
226
227
|
min: 0,
|
|
@@ -241,7 +242,7 @@ const row4Ref = ref()
|
|
|
241
242
|
key: 'det_area_mode',
|
|
242
243
|
label: '检测区域工作模式',
|
|
243
244
|
value: 'normal',
|
|
244
|
-
component: ElRadioGroup,
|
|
245
|
+
component: 'ElRadioGroup',
|
|
245
246
|
events: {
|
|
246
247
|
change: detAreaModeChange,
|
|
247
248
|
},
|
|
@@ -273,7 +274,7 @@ const row4Ref = ref()
|
|
|
273
274
|
key: 'region',
|
|
274
275
|
label: '地区选择',
|
|
275
276
|
value: ['beijing', 'chaoyang'],
|
|
276
|
-
component: ElCascader,
|
|
277
|
+
component: 'ElCascader',
|
|
277
278
|
params: {
|
|
278
279
|
rules: [
|
|
279
280
|
{
|
|
@@ -325,7 +326,7 @@ const row4Ref = ref()
|
|
|
325
326
|
key: 'department',
|
|
326
327
|
label: '部门选择',
|
|
327
328
|
value: ['company'],
|
|
328
|
-
component: ElCascader,
|
|
329
|
+
component: 'ElCascader',
|
|
329
330
|
params: {
|
|
330
331
|
props: {
|
|
331
332
|
value: 'code',
|
|
@@ -370,7 +371,7 @@ const row4Ref = ref()
|
|
|
370
371
|
key: 'single_level_cascader',
|
|
371
372
|
label: '单层级联',
|
|
372
373
|
value: 'beijing',
|
|
373
|
-
component: ElCascader,
|
|
374
|
+
component: 'ElCascader',
|
|
374
375
|
params: {
|
|
375
376
|
options: [
|
|
376
377
|
{
|
|
@@ -396,7 +397,7 @@ const row4Ref = ref()
|
|
|
396
397
|
})
|
|
397
398
|
|
|
398
399
|
function changeHandler(v){
|
|
399
|
-
|
|
400
|
+
ElMessage.info(v)
|
|
400
401
|
}
|
|
401
402
|
|
|
402
403
|
function detAreaModeChange(value: any) {
|