Skip to content

Commit d1ec1b1

Browse files
author
Taois
committed
fix:组件属性缺失
1 parent 913776f commit d1ec1b1

File tree

8 files changed

+433
-90
lines changed

8 files changed

+433
-90
lines changed

dashboard/src/components/actions/ActionDialog.vue

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,22 @@ export default {
110110
customClass: {
111111
type: String,
112112
default: ''
113+
},
114+
// T4接口相关属性
115+
module: {
116+
type: String,
117+
default: ''
118+
},
119+
extend: {
120+
type: Object,
121+
default: () => ({})
122+
},
123+
apiUrl: {
124+
type: String,
125+
default: ''
113126
}
114127
},
115-
emits: ['update:visible', 'close', 'open', 'opened', 'closed'],
128+
emits: ['update:visible', 'close', 'open', 'opened', 'closed', 'toast', 'reset'],
116129
setup(props, { emit }) {
117130
const isClosing = ref(false)
118131
const isMobile = ref(false)

dashboard/src/components/actions/HelpAction.vue

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55
:width="config.width || 700"
66
:height="config.height"
77
:canceled-on-touch-outside="!config.keep"
8+
:module="module"
9+
:extend="extend"
10+
:api-url="apiUrl"
811
@close="handleClose"
12+
@toast="(message, type) => emit('toast', message, type)"
13+
@reset="() => emit('reset')"
914
>
1015
<div class="help-action-modern">
1116
<!-- 帮助内容 -->
@@ -378,9 +383,22 @@ export default {
378383
visible: {
379384
type: Boolean,
380385
default: true
386+
},
387+
// T4接口调用相关属性
388+
module: {
389+
type: String,
390+
default: ''
391+
},
392+
extend: {
393+
type: Object,
394+
default: () => ({})
395+
},
396+
apiUrl: {
397+
type: String,
398+
default: ''
381399
}
382400
},
383-
emits: ['close', 'link-click'],
401+
emits: ['close', 'link-click', 'toast', 'reset'],
384402
setup(props, { emit }) {
385403
const imageError = ref(false)
386404
const qrError = ref(false)

dashboard/src/components/actions/InputAction.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55
:width="config.width || 420"
66
:height="config.height"
77
:canceled-on-touch-outside="!config.keep"
8+
:module="module"
9+
:extend="extend"
10+
:api-url="apiUrl"
811
@close="handleCancel"
12+
@toast="(message, type) => emit('toast', message, type)"
13+
@reset="() => emit('reset')"
914
>
1015
<div class="input-action-modern">
1116
<!-- 消息文本 -->
@@ -903,7 +908,6 @@ export default {
903908
valueObject[actionId] = value
904909

905910
const actionData = {
906-
ac: 'list',
907911
action,
908912
value: JSON.stringify(valueObject)
909913
}

0 commit comments

Comments
 (0)