gi-component 0.0.35 → 0.0.36

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gi-component",
3
3
  "type": "module",
4
- "version": "0.0.35",
4
+ "version": "0.0.36",
5
5
  "description": "Vue3中基于Element Plus二次封装基础组件库",
6
6
  "author": "lin",
7
7
  "license": "MIT",
@@ -71,6 +71,7 @@ const getHeaderClass = computed(() => {
71
71
  @use '../../../styles/var.scss' as a;
72
72
 
73
73
  .#{a.$prefix}-card {
74
+ width: 100%;
74
75
  background-color: var(--el-bg-color);
75
76
  display: flex;
76
77
  flex-direction: column;
@@ -59,7 +59,7 @@
59
59
  </template>
60
60
  </template>
61
61
 
62
- <GridItem v-if="props.search" :suffix="props.search" :span="props?.gridItemProps?.span">
62
+ <GridItem v-if="props.search" :suffix="props.suffix && props.search" :span="props?.gridItemProps?.span">
63
63
  <ElSpace :class="b('form__search-btns')">
64
64
  <ElButton type="primary" @click="emit('search')">
65
65
  {{ searchText }}
@@ -104,6 +104,7 @@ const props = withDefaults(defineProps<FormProps>(), {
104
104
  searchText: '查询',
105
105
  hideFoldBtn: false,
106
106
  defaultCollapsed: undefined,
107
+ suffix: true,
107
108
  fc: () => ({})
108
109
  })
109
110
 
@@ -81,4 +81,5 @@ export interface FormProps extends Partial<ElFormProps> {
81
81
  searchText?: string
82
82
  hideFoldBtn?: boolean
83
83
  defaultCollapsed?: boolean | undefined
84
+ suffix?: boolean
84
85
  }