@jx3box/jx3box-ui 2.4.19 → 2.4.21

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-ui",
3
- "version": "2.4.19",
3
+ "version": "2.4.21",
4
4
  "description": "JX3BOX Vue3 UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -34,9 +34,9 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@element-plus/icons-vue": "^2.3.2",
37
- "@jx3box/jx3box-common": "^9.5.11",
37
+ "@jx3box/jx3box-common": "^9.5.12",
38
38
  "@jx3box/jx3box-data": "^3.9.9",
39
- "@jx3box/jx3box-editor": "^3.2.13",
39
+ "@jx3box/jx3box-editor": "^3.2.14",
40
40
  "@jx3box/jx3box-emotion": "^1.3.2",
41
41
  "@jx3box/jx3box-macro": "^1.0.4",
42
42
  "@jx3box/jx3box-talent": "^1.3.14",
@@ -9,20 +9,19 @@
9
9
  <div class="u-tip">
10
10
  <slot></slot>
11
11
  </div>
12
- <div class="u-input">
12
+ <form class="u-input" @submit.prevent="onSearch">
13
13
  <el-input
14
- v-model.trim.lazy="search"
14
+ v-model.trim="search"
15
15
  :placeholder="$jx3boxT('jx3boxUi.userPop.placeholder', '请输入用户 UID 或者昵称进行搜索')"
16
- @keydown.enter="onSearch"
17
16
  >
18
17
  <template #prepend>
19
18
  <el-icon><Search /></el-icon>
20
19
  </template>
21
20
  </el-input>
22
- <el-button class="u-search-btn" type="primary" @click="onSearch" :disabled="!search">{{
21
+ <el-button class="u-search-btn" type="primary" native-type="submit" :disabled="!search">{{
23
22
  $jx3boxT("jx3boxUi.userPop.search", "搜索")
24
23
  }}</el-button>
25
- </div>
24
+ </form>
26
25
  <div class="u-preview" v-loading="loading">
27
26
  <template v-if="searched && status">
28
27
  <a class="u-author" :href="'/author/' + userdata.ID" target="_blank">
@@ -288,6 +288,7 @@ export default {
288
288
  font-size: 14px;
289
289
  img {
290
290
  vertical-align: -3px;
291
+ display: inline-block;
291
292
  }
292
293
  }
293
294
  }