easybill-ui 1.2.12 → 1.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,15 @@
1
1
  <template>
2
2
  <el-form ref="schemaFormRef" :model="formModel" :rules="rules" v-bind="{ ...$attrs, ...getFormProps }" class="curd-form" :style="getFormStyle()" @submit.prevent>
3
3
  <template v-for="formItem in schemaItems" :key="formItem.prop">
4
- <el-form-item v-if="!$slots[formItem.prop + 'Item']" :required="rules && rules[formItem.prop]?.find((a) => a.hasOwnProperty('required'))?.required" :label="formItem.label" :prop="formItem.prop" :label-width="formItem.labelWidth" :class="getFormItemStyle(formItem)" v-bind="getFormItemProps(formItem)">
4
+ <el-form-item
5
+ v-if="!$slots[formItem.prop + 'Item']"
6
+ :required="rules && rules[formItem.prop]?.find((a) => a.hasOwnProperty('required'))?.required"
7
+ :label="formItem.label"
8
+ :prop="formItem.prop"
9
+ :label-width="formItem.labelWidth"
10
+ :class="getFormItemStyle(formItem)"
11
+ v-bind="getFormItemProps(formItem)"
12
+ >
5
13
  <slot :name="formItem.prop" :form-item="formItem" :form-model="formModel"></slot>
6
14
  <FormItem v-if="!(formItem.prop && $slots[formItem.prop])" :form-item="formItem" :form-model="formModel" @change="onChange">
7
15
  <template #prefix>
@@ -24,7 +32,6 @@
24
32
  </template>
25
33
 
26
34
  <script lang="ts" setup>
27
- import { ElForm, ElFormItem } from "element-plus"
28
35
  import { computed, getCurrentInstance, onMounted, provide, reactive, ref, triggerRef, watch, type PropType } from "vue"
29
36
  import FormItem from "./FormItem.vue"
30
37
  import type { CurdFormOptionItem, Fields, FormContext, FormItem as FormItemType, FormSchema } from "./types"
@@ -10,7 +10,7 @@
10
10
  </template>
11
11
  <script lang="ts" setup>
12
12
  import { Warning } from "@element-plus/icons-vue"
13
- import { ElButton, ElIcon, ElTooltip, type ElTooltipProps } from "element-plus"
13
+ import { type ElTooltipProps } from "element-plus"
14
14
  import { type PropType, computed } from "vue"
15
15
  import type { Fields, FormItem } from "./types"
16
16
  const props = defineProps({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easybill-ui",
3
- "version": "1.2.12",
3
+ "version": "1.2.13",
4
4
  "description": "A component library for easybill",
5
5
  "author": "tuchongyang <779311998@qq.com>",
6
6
  "private": false,
@@ -14,5 +14,5 @@
14
14
  "publishConfig": {
15
15
  "access": "public"
16
16
  },
17
- "gitHead": "213ce650949a0eba8852575d4c39fde40b83cbfe"
17
+ "gitHead": "a31099789b92ed5e6b45ecfbd4a81aa311466950"
18
18
  }