lw-cdp-ui 1.3.68 → 1.3.69

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;