diff --git a/src/components/selection/StandardSelection.vue b/src/components/selection/StandardSelection.vue index 07273f9a..de774ddf 100644 --- a/src/components/selection/StandardSelection.vue +++ b/src/components/selection/StandardSelection.vue @@ -18,7 +18,24 @@ import StandardSelectionModal from './StandardSelectionModal' export default { name: 'StandardSelection', components: { StandardSelectionModal }, - props: ['query', 'value', 'standard'], + props: { + type: { + type: Object, + default: () => { + return {} + } + }, + value: { + type: String, + default: '' + }, + standard: { + type: String, + default: () => { + return {} + } + } + }, computed: { isDisabled () { if (this.query.dbFieldName === 'replaced_standard') { diff --git a/src/components/selection/StandardSelectionModal.vue b/src/components/selection/StandardSelectionModal.vue index 3219e51a..5d183eb5 100644 --- a/src/components/selection/StandardSelectionModal.vue +++ b/src/components/selection/StandardSelectionModal.vue @@ -58,7 +58,20 @@ import JDictSelectTag from '../dict/JDictSelectTag' export default { name: 'StandardSelectionModal', components: { JDictSelectTag }, - props: ['query', 'standard'], + props: { + type: { + type: Object, + default: () => { + return {} + } + }, + standard: { + type: String, + default: () => { + return {} + } + } + }, data () { return { visible: false,