jobdone-shared-files 1.1.9 → 1.1.11

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.
@@ -72,7 +72,7 @@
72
72
  <span class="material-icons icon-18 me-1">people</span>
73
73
  <span>我的聯絡人</span>
74
74
  </a>
75
- <slot name="bottom-link"></slot>
75
+ <slot name="bottom-link" :moduleInfo="moduleInfoData"></slot>
76
76
  </div>
77
77
  <div class="d-flex">
78
78
  <a :href="finalRootDomain + '/Profile'"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jobdone-shared-files",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
4
4
  "description": "Shared JS and SCSS for Jobdone Enterprise.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/tagEditor.vue CHANGED
@@ -14,7 +14,7 @@
14
14
  </div>
15
15
  </template>
16
16
  <input v-if="!disabled" class="new-tag-input" list="datalistOptions" type="text" :placeholder="placeholder"
17
- v-model.trim="newTag" @keydown.enter="addTag" @keyup="keyupFunction">
17
+ v-model.trim="newTag" @keydown.enter="addTag($event)" @keyup="keyupFunction">
18
18
  <datalist id="datalistOptions" v-if="autoCompleteShow">
19
19
  <option :value="opt" v-for="(opt, idx) in autoCompleteOption" :key="idx">{{ opt }}</option>
20
20
  </datalist>
@@ -91,7 +91,11 @@ export default {
91
91
  })
92
92
 
93
93
  // 增加Tag
94
- function addTag() {
94
+ function addTag(event) {
95
+ // 檢查是否為中文輸入法組合狀態
96
+ if (event.isComposing || event.keyCode === 229) {
97
+ return
98
+ }
95
99
  if (newTag.value && !isDuplicate.value) {
96
100
  tagAry.push(newTag.value)
97
101
  }