对比新文件 |
| | |
| | | <template> |
| | | <vciWebReferTree v-if="refertype=='tree'" :value="value" :options="options"></vciWebReferTree> |
| | | <vciWebReferTable v-else-if="refertype=='table'" :value="value" :options="options"></vciWebReferTable> |
| | | <vciWebReferDefalut v-else :value="value" :options="options"></vciWebReferDefalut> |
| | | </template> |
| | | |
| | | <script> |
| | | import vciWebReferTree from "./vciWebReferTree.vue"; |
| | | import vciWebReferTable from "./vciWebReferTable.vue"; |
| | | import vciWebReferDefalut from "./vciWebReferTable.vue"; |
| | | export default { |
| | | name: "vciWebRefer", |
| | | props:["options","value"], |
| | | components: { vciWebReferTree,vciWebReferTable,vciWebReferDefalut}, |
| | | data() { |
| | | return { |
| | | refertype:this.options.type |
| | | }; |
| | | }, |
| | | created() { |
| | | if(this.refertype=='tree'){ |
| | | console.log('referConfig:') |
| | | console.log(this.options) |
| | | } |
| | | |
| | | }, |
| | | mounted() { |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |