This commit is contained in:
xiaojunnuo
2025-03-21 12:23:59 +08:00
parent 1e6ddd250e
commit 656cb89fe8
7 changed files with 92 additions and 21 deletions
@@ -1,6 +1,6 @@
<template>
<div class="pem-selector">
<file-input v-bind="fileInput" class="mb-5" type="primary" text="选择文件" @change="onChange" />
<div class="pem-input">
<FileInput v-bind="fileInput" class="mb-5" type="primary" text="选择文件" @change="onChange" />
<a-textarea v-bind="textarea" v-model:value="textRef"></a-textarea>
</div>
</template>
@@ -8,6 +8,7 @@
<script setup lang="ts">
import { notification } from "ant-design-vue";
import { ref, watch, defineEmits } from "vue";
import FileInput from "/@/components/file-input.vue";
const props = defineProps<{
modelValue?: string;
@@ -51,7 +52,7 @@ watch(
</script>
<style lang="less">
.pem-selector {
.pem-input {
display: flex;
flex-direction: column;
gap: 5px;
@@ -9,6 +9,7 @@
import { doRequest } from "/@/components/plugins/lib";
import { ref, useAttrs } from "vue";
import { useFormWrapper } from "@fast-crud/fast-crud";
import { notification } from "ant-design-vue";
defineOptions({
name: "TaskShortcut",
@@ -37,6 +38,9 @@ async function openDialog() {
title: props.title,
saveRemind: false,
},
afterSubmit() {
notification.success({ message: "操作成功" });
},
async doSubmit({ form }: any) {
return await doPluginFormSubmit(form);
},