@jx3box/jx3box-editor 1.3.6 → 1.3.7

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.
@@ -1,4 +1,5 @@
1
1
  .c-resource {
2
+ margin-right:5px;
2
3
  .u-switch {
3
4
  .u-icon {
4
5
  .size(14px);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-editor",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "description": "JX3BOX Article & Editor",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="c-resource">
2
+ <div class="c-resource c-resource__jx3box">
3
3
  <!-- 上传触发按钮 -->
4
4
  <el-button class="u-switch" type="primary" @click="openDialog" :disabled="!enable"> <img class="u-icon" svg-inline :src="boxIcon" />魔盒资源 </el-button>
5
5
 
@@ -7,8 +7,8 @@
7
7
  <el-dialog class="c-large-dialog" title="魔盒资源库" :visible.sync="dialogVisible">
8
8
  <div class="c-resource-content" v-loading="loading">
9
9
  <div class="m-database-search">
10
- <el-input class="u-input" placeholder="请输入 ID 或 名称" v-model="query" @change="search" @keyup.enter.native="search">
11
- <template slot="prepend">ID /名称</template>
10
+ <el-input class="u-input" :placeholder="placeholderText" v-model="query" @change="search" @keyup.enter.native="search">
11
+ <template slot="prepend">关键词</template>
12
12
  </el-input>
13
13
  </div>
14
14
 
@@ -130,10 +130,18 @@ export default {
130
130
  per: 10,
131
131
  page: 1,
132
132
  total: 1,
133
- pages: 1
133
+ pages: 1,
134
+
135
+ placeholderTexts : {
136
+ 'authors' : '请输入 ID 或 名称'
137
+ }
138
+
134
139
  };
135
140
  },
136
141
  computed: {
142
+ placeholderText : function (){
143
+ return this.placeholderTexts[this.type]
144
+ },
137
145
  buttonTXT: function() {
138
146
  return this.selectedCount ? "插 入" : "确 定";
139
147
  },