gi-component 0.0.17 → 0.0.18

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.17",
4
+ "version": "0.0.18",
5
5
  "description": "Vue3中基于Element Plus二次封装基础组件库",
6
6
  "author": "lin",
7
7
  "license": "MIT",
@@ -4,8 +4,8 @@
4
4
  <template v-for="(item, index) in props.columns">
5
5
  <GridItem v-if="item.type === 'title'" :key="`title${index}`" :span="100">
6
6
  <ElFormItem label-width="0">
7
- <GiCard :title="typeof item.label === 'string' ? item.label : ''" :header-style="{ padding: 0 }"
8
- :body-style="{ display: 'none' }"></GiCard>
7
+ <el-alert :class="b('form-item__title')" :title="typeof item.label === 'string' ? item.label : ''"
8
+ type="info" :closable="false" />
9
9
  </ElFormItem>
10
10
  </GridItem>
11
11
 
@@ -413,4 +413,13 @@ defineExpose({ formRef })
413
413
  width: 100%;
414
414
  }
415
415
  }
416
+
417
+ :deep(.#{a.$prefix}-form-item__title) {
418
+ border-radius: 0;
419
+
420
+ .el-alert__title {
421
+ color: var(--el-text-color-primary);
422
+ font-weight: 600;
423
+ }
424
+ }
416
425
  </style>