fix(email): complete mail settings and templates
This commit is contained in:
@@ -273,6 +273,17 @@
|
||||
v-html="schema.content || modelValue || ''"
|
||||
/>
|
||||
|
||||
<!-- Action button -->
|
||||
<n-button
|
||||
v-else-if="schema.type === 'button'"
|
||||
:type="schema.buttonType || 'default'"
|
||||
:loading="schema.loading"
|
||||
:disabled="schema.disabled"
|
||||
@click="emit('action', schema.key)"
|
||||
>
|
||||
{{ schema.buttonText || schema.label || '执行' }}
|
||||
</n-button>
|
||||
|
||||
<!-- Date picker -->
|
||||
<n-date-picker
|
||||
v-else-if="schema.type === 'date'"
|
||||
@@ -645,7 +656,7 @@ const props = defineProps({
|
||||
errorMessage: { type: String, default: '' },
|
||||
})
|
||||
|
||||
const emit = defineEmits(['update:modelValue'])
|
||||
const emit = defineEmits(['update:modelValue', 'action'])
|
||||
|
||||
const secretMarkedForClear = computed(() => props.schema.secret && props.modelValue === '__AKSRT_CLEAR_SECRET__')
|
||||
const secretDisplayValue = computed(() => secretMarkedForClear.value ? '' : props.modelValue)
|
||||
|
||||
@@ -66,6 +66,7 @@
|
||||
:model-value="getFieldValue(field.key)"
|
||||
:error-message="errors?.[field.key]"
|
||||
@update:model-value="setFieldValue(field.key, $event)"
|
||||
@action="emit('field-action', $event)"
|
||||
/>
|
||||
</slot>
|
||||
<AksField
|
||||
@@ -74,6 +75,7 @@
|
||||
:model-value="getFieldValue(field.key)"
|
||||
:error-message="errors?.[field.key]"
|
||||
@update:model-value="setFieldValue(field.key, $event)"
|
||||
@action="emit('field-action', $event)"
|
||||
/>
|
||||
</template>
|
||||
</template>
|
||||
@@ -161,7 +163,7 @@ const props = defineProps({
|
||||
errors: { type: Object, default: () => ({}) },
|
||||
})
|
||||
|
||||
const emit = defineEmits(['update:formData', 'save', 'reload'])
|
||||
const emit = defineEmits(['update:formData', 'save', 'reload', 'field-action'])
|
||||
const slots = useSlots()
|
||||
|
||||
const searchQuery = ref('')
|
||||
|
||||
Reference in New Issue
Block a user