xiaoyi
2 天以前 35cc98f11150d068032df597e542c62480249e04
src/packages/@core/ui-kit/form-ui/src/components/form-actions.vue
@@ -1,9 +1,9 @@
<script setup lang="ts">
import { computed, toRaw, unref, watch } from 'vue';
import { useSimpleLocale } from '..\..\..\..\composables\src';
import { VbenExpandableArrow } from '..\..\..\shadcn-ui\src';
import { cn, isFunction, triggerWindowResize } from '..\..\..\..\base\shared\src\utils';
import { useSimpleLocale } from '../../../../composables/src';
import { VbenExpandableArrow } from '../../../shadcn-ui/src';
import { cn, isFunction, triggerWindowResize } from '../../../../base/shared/src/utils';
import { COMPONENT_MAP } from '../config';
import { injectFormProps } from '../use-form-context';
@@ -79,7 +79,8 @@
  const cls = [
    'flex',
    'items-center',
    'gap-3',
    'gap-2',
    'pt-2',
    props.compact ? 'pb-2' : 'pb-4',
    props.layout === 'vertical' ? 'self-end' : 'self-center',
    props.layout === 'inline' ? '' : 'w-full',
@@ -131,6 +132,7 @@
      <component
        :is="COMPONENT_MAP.PrimaryButton"
        v-if="submitButtonOptions.show"
        class="min-w-20"
        type="button"
        @click="handleSubmit"
        v-bind="submitButtonOptions"
@@ -145,6 +147,7 @@
    <component
      :is="COMPONENT_MAP.DefaultButton"
      v-if="resetButtonOptions.show"
      class="min-w-20"
      type="button"
      @click="handleReset"
      v-bind="resetButtonOptions"
@@ -159,6 +162,7 @@
      <component
        :is="COMPONENT_MAP.PrimaryButton"
        v-if="submitButtonOptions.show"
        class="min-w-20"
        type="button"
        @click="handleSubmit"
        v-bind="submitButtonOptions"