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>
|
||||
<ma-form-item
|
||||
@@ -45,13 +40,13 @@
|
||||
:value-key="props.component.valueKey"
|
||||
:fallback="props.component.fallback"
|
||||
:expand-child="props.component.expandChild"
|
||||
@change="maEvent.handleChangeEvent(props.component, $event)"
|
||||
@input-value-change="maEvent.handleInputEvent(props.component, $event)"
|
||||
@popup-visible-change="maEvent.customeEvent(props.component, $event, 'onPopupVisibleChange')"
|
||||
@clear="maEvent.handleCommonEvent(props.component, 'onClear')"
|
||||
@focus="maEvent.handleCommonEvent(props.component, 'onFocus')"
|
||||
@blur="maEvent.handleCommonEvent(props.component, 'onBlur')"
|
||||
@search="maEvent.customeEvent(props.component, $event, 'onSearch')"
|
||||
@change="rv('onChange', $event)"
|
||||
@search="rv('onSearch', $event)"
|
||||
@input-value-change="rv('onInputValueChange', $event)"
|
||||
@popup-visible-change="rv('onPopupVisibleChange', $event)"
|
||||
@clear="rv('onClear')"
|
||||
@focus="rv('onFocus')"
|
||||
@blur="rv('onBlur')"
|
||||
>
|
||||
</a-cascader>
|
||||
</slot>
|
||||
@@ -60,9 +55,9 @@
|
||||
|
||||
<script setup>
|
||||
import { ref, inject, onMounted, watch } from "vue"
|
||||
import { get, set } from "lodash"
|
||||
import { get, set } from "lodash-es"
|
||||
import MaFormItem from "./form-item.vue"
|
||||
import { maEvent } from "../js/formItemMixin.js"
|
||||
import { runEvent } from "../js/event.js"
|
||||
|
||||
const props = defineProps({
|
||||
component: Object,
|
||||
@@ -71,6 +66,10 @@ const props = defineProps({
|
||||
|
||||
const formModel = inject("formModel")
|
||||
const dictList = inject("dictList")
|
||||
const getColumnService = inject("getColumnService")
|
||||
const columns = inject("columns")
|
||||
const rv = async (ev, value = undefined) =>
|
||||
await runEvent(props.component, ev, { formModel, getColumnService, columns }, value)
|
||||
const index = props.customField ?? props.component.dataIndex
|
||||
const dictIndex = index.match(/^(\w+\.)\d+\./)
|
||||
? index.match(/^(\w+\.)\d+\./)[1] + props.component.dataIndex
|
||||
@@ -99,8 +98,6 @@ if (
|
||||
value.value = value.value + ""
|
||||
}
|
||||
|
||||
maEvent.handleCommonEvent(props.component, "onCreated")
|
||||
onMounted(() => {
|
||||
maEvent.handleCommonEvent(props.component, "onMounted")
|
||||
})
|
||||
rv("onCreated")
|
||||
onMounted(() => rv("onMounted"))
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user