@aochuang/client-sdk 1.0.324 → 1.0.325

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.
@@ -16,9 +16,10 @@
16
16
  <div class="sdk-chat-layout__body">
17
17
  <bi-resizable
18
18
  direction="vertical"
19
- :initialSize="200"
19
+ :initialSize="initialSize"
20
20
  :minSize="200"
21
21
  :maxSize="480"
22
+ @change="handleSizeChange"
22
23
  >
23
24
  <template v-if="$slots.foot">
24
25
  <template slot="panel">
@@ -39,6 +40,19 @@ export default {
39
40
  name: 'SdkChatLayout',
40
41
  components: {
41
42
  BiResizable
43
+ },
44
+ props: {
45
+ initialSize: {
46
+ type: Number,
47
+ default: 200
48
+ }
49
+ },
50
+ methods: {
51
+ handleSizeChange (value) {
52
+ this.$emit('change', {
53
+ value
54
+ })
55
+ }
42
56
  }
43
57
  }
44
58
  </script>
@@ -6,9 +6,10 @@
6
6
  <div class="sdk-layout__wrap">
7
7
  <bi-resizable
8
8
  direction="horizontal"
9
- :initialSize="270"
9
+ :initialSize="initialSize"
10
10
  :minSize="270"
11
11
  :maxSize="480"
12
+ @change="handleSizeChange"
12
13
  >
13
14
  <template slot="content">
14
15
  <slot></slot>
@@ -32,6 +33,19 @@ export default {
32
33
  name: 'SdkLayout',
33
34
  components: {
34
35
  BiResizable
36
+ },
37
+ props: {
38
+ initialSize: {
39
+ type: Number,
40
+ default: 270
41
+ }
42
+ },
43
+ methods: {
44
+ handleSizeChange (evt) {
45
+ this.$emit('change', {
46
+ value: evt
47
+ })
48
+ }
35
49
  }
36
50
  }
37
51
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aochuang/client-sdk",
3
- "version": "1.0.324",
3
+ "version": "1.0.325",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"