@xuekl/cli-components 1.2.1 → 1.2.2

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.
Files changed (2) hide show
  1. package/PaddingBox.vue +27 -8
  2. package/package.json +1 -1
package/PaddingBox.vue CHANGED
@@ -1,19 +1,38 @@
1
1
  <template>
2
- <div class="padding-box">
3
- <slot></slot>
2
+ <div class="padding-box" :class="['pb-' + (padding || 22)]">
3
+ <div class="content">
4
+ <slot></slot>
5
+ </div>
6
+ <div class="end">
7
+ <slot name="end"></slot>
8
+ </div>
9
+
4
10
  </div>
5
11
  </template>
6
12
  <script lang="ts">
7
- import { Vue, Options } from "vue-class-component";
8
-
9
- @Options({
13
+ export default {
10
14
  name: 'PaddingBox'
11
- })
12
- export default class PaddingBox extends Vue { }
15
+ }
16
+ </script>
17
+ <script setup lang="ts">
18
+ const props = defineProps(['padding'])
19
+ const { padding } = props
13
20
  </script>
14
21
 
15
22
  <style lang="scss" scoped>
16
23
  .padding-box {
17
- padding-bottom: 22px;
24
+ display: flex;
25
+ justify-content: space-between;
26
+
27
+ .content {
28
+ flex: 1;
29
+ display: flex;
30
+ align-items: center;
31
+ }
32
+
33
+ .end {
34
+ display: flex;
35
+ align-items: center;
36
+ }
18
37
  }
19
38
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuekl/cli-components",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {