1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <template>
- <div style="padding: 20px 20px 40px">
- <el-form
- :model="data"
- label-width="70px"
- style="max-width: 600px"
- label-position="left"
- >
- <el-form-item label="格式:">
- <el-radio-group v-model="data.format">
- <el-radio value="JPEG">JPEG</el-radio>
- <el-radio value="PDF">PDF</el-radio>
- </el-radio-group>
- </el-form-item>
- <el-form-item label="颜色:">
- <el-radio-group v-model="data.color">
- <el-radio value="grayscale">黑白</el-radio>
- <el-radio value="raw">彩色</el-radio>
- </el-radio-group>
- </el-form-item>
- </el-form>
- </div>
- </template>
- <script lang="ts" setup>
- import { ref } from "vue";
- import { ExposeFormatData } from ".";
- import { ElForm, ElFormItem, ElRadioGroup, ElRadio } from "element-plus";
- const props = defineProps<{ ef?: ExposeFormatData }>();
- const data = ref<ExposeFormatData>(
- props.ef
- ? { ...props.ef }
- : {
- color: "raw",
- format: "JPEG",
- }
- );
- defineExpose({
- submit: async (): Promise<ExposeFormatData> => {
- return data.value;
- },
- });
- </script>
- <style lang="scss" scoped>
- .vr-layout {
- padding: 0 !important;
- }
- .tagging-layout {
- margin-top: 24px;
- }
- .title {
- font-size: 14px;
- color: rgba(0, 0, 0, 0.85);
- margin: 0;
- }
- </style>
|