mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
chore:
This commit is contained in:
@@ -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;
|
||||
|
||||
+4
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user