lw-cdp-ui 1.3.68 → 1.3.70

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,6 +1,6 @@
1
1
  <template>
2
2
  <el-container>
3
- <el-main>
3
+ <el-main class="init-body">
4
4
  <div class="notice-block"
5
5
  :class="{ 'table-block': startInit }"
6
6
  v-if="startInit">
@@ -23,8 +23,11 @@
23
23
  <el-footer v-if="!startInit"
24
24
  class="footer-body">
25
25
  <el-button @click="startInit = true">取消</el-button>
26
- <el-button type="primary"
27
- @click="save">保 存</el-button>
26
+ <slot name="btn">
27
+ <el-button type="primary"
28
+ @click="save">保 存</el-button>
29
+ </slot>
30
+
28
31
  </el-footer>
29
32
  </el-container>
30
33
 
@@ -42,7 +45,7 @@ export default {
42
45
  },
43
46
  props: {},
44
47
  emits: ['save'],
45
- setup(props, { emit }) {
48
+ setup(props, {emit}) {
46
49
  const startInit = ref(true)
47
50
  const save = () => {
48
51
  emit('save')
@@ -58,8 +61,8 @@ export default {
58
61
  </script>
59
62
 
60
63
  <style lang="scss" scoped>
61
- :deep(.el-main) {
62
- background-color: var(--color-white-1);
64
+ .init-body {
65
+ background-color: #fafafa;
63
66
  }
64
67
  .footer-body {
65
68
  text-align: right;
@@ -49,7 +49,10 @@
49
49
  :keyContainer="window"
50
50
  :hitRate="50"
51
51
  @select="onSelect" />
52
- <el-col :span="6"
52
+ <el-col :sm="12"
53
+ :md="8"
54
+ :lg="6"
55
+ :xl="3"
53
56
  v-for="item in tableData">
54
57
  <div class="table-card-item"
55
58
  :data-item="JSON.stringify(item)">
@@ -151,8 +154,7 @@
151
154
  </el-popover>
152
155
 
153
156
  <!-- 全屏按钮 -->
154
- <el-tooltip
155
- :content="isFullscreen ? $t('lwTable.tools.cancel') : $t('lwTable.tools.fullScreen')">
157
+ <el-tooltip :content="isFullscreen ? $t('lwTable.tools.cancel') : $t('lwTable.tools.fullScreen')">
156
158
  <el-icon v-if="!isFullscreen"
157
159
  class="icon-fullscreen"
158
160
  @click="tableToggleFullScreen">
@@ -182,5 +184,5 @@
182
184
  </template>
183
185
  <script src="./index.js"></script>
184
186
  <style lang="scss" scoped>
185
- @import "./index.scss";
187
+ @import './index.scss';
186
188
  </style>