vue更新3.5,以及mime打更新
This commit is contained in:
@@ -1,11 +1,6 @@
|
||||
<!--
|
||||
- MineAdmin is committed to providing solutions for quickly building web applications
|
||||
- Please view the LICENSE file that was distributed with this source code,
|
||||
- For the full copyright and license information.
|
||||
- Thank you very much for using MineAdmin.
|
||||
-
|
||||
- @Author X.Mo<root@imoi.cn>
|
||||
- @Link https://gitee.com/xmo/mineadmin-vue
|
||||
- @Author XXX
|
||||
- @Link XXX
|
||||
-->
|
||||
<template>
|
||||
<slot :name="`form-${props.component.dataIndex}`" v-bind="props.component">
|
||||
@@ -15,7 +10,7 @@
|
||||
:disabled="props.component.disabled"
|
||||
:loading="props.component.loading"
|
||||
:href="props.component.href"
|
||||
@click="maEvent.handleCommonEvent(props.component, 'onClick')"
|
||||
@click="rv('onClick')"
|
||||
>
|
||||
<template #icon v-if="props.component.icon">
|
||||
<component :is="props.component.icon" />
|
||||
@@ -26,14 +21,18 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { onMounted } from "vue"
|
||||
import { maEvent } from "../js/formItemMixin.js"
|
||||
import { onMounted, inject } from "vue"
|
||||
import { runEvent } from "../js/event.js"
|
||||
const props = defineProps({
|
||||
component: Object
|
||||
})
|
||||
|
||||
maEvent.handleCommonEvent(props.component, "onCreated")
|
||||
onMounted(() => {
|
||||
maEvent.handleCommonEvent(props.component, "onMounted")
|
||||
})
|
||||
const formModel = inject("formModel")
|
||||
const getColumnService = inject("getColumnService")
|
||||
const columns = inject("columns")
|
||||
const rv = async (ev, value = undefined) =>
|
||||
await runEvent(props.component, ev, { formModel, getColumnService, columns }, value)
|
||||
|
||||
rv("onCreated")
|
||||
onMounted(() => rv("onMounted"))
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user