ai-chat-bot-interface 1.2.2 → 1.2.3

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": "ai-chat-bot-interface",
3
3
  "private": false,
4
- "version": "1.2.2",
4
+ "version": "1.2.3",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
7
  "description": "A AI chat bot interface. (private)",
package/src/ChatUi.vue CHANGED
@@ -77,6 +77,7 @@
77
77
  <dishes-list
78
78
  v-if="comp.showType === 'card'"
79
79
  :sku-list="comp.skuList"
80
+ :is-mini="!showHeader"
80
81
  @select="(data) => handleCardTap(data, comp)"
81
82
  />
82
83
  <plan-card
@@ -20,7 +20,12 @@
20
20
  </div>
21
21
  </div>
22
22
  </template>
23
- <div class="btn_group">
23
+ <div v-if="isMini" class="btn_group">
24
+ <div class="btn btn_2" @click.stop="handleBtn('ship_order')">
25
+ <span class="name">立即下单</span>
26
+ </div>
27
+ </div>
28
+ <div v-else class="btn_group">
24
29
  <div class="btn btn_1" @click.stop="handleBtn('ship_order')">
25
30
  <span class="name">配送下單</span>
26
31
  <span class="sub">(直送到府)</span>
@@ -42,6 +47,10 @@ const props = defineProps({
42
47
  required: true,
43
48
  default: () => [],
44
49
  },
50
+ isMini: {
51
+ type: Boolean,
52
+ default: false,
53
+ },
45
54
  });
46
55
  const Emits = defineEmits(['select']);
47
56
 
@@ -103,9 +112,8 @@ const handleBtn = (type) => {
103
112
  background-color: @primary-color;
104
113
  }
105
114
  &_group {
106
- display: grid;
107
- grid-template-columns: 1fr 1fr;
108
- grid-column-gap: 10px;
115
+ .flexrbc();
116
+ gap: 10px;
109
117
  margin-top: 20px;
110
118
  }
111
119
  }