@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.
- package/assets/css/resource.less +1 -0
- package/package.json +1 -1
- package/src/BoxResource.vue +12 -4
package/assets/css/resource.less
CHANGED
package/package.json
CHANGED
package/src/BoxResource.vue
CHANGED
|
@@ -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="
|
|
11
|
-
<template slot="prepend"
|
|
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
|
},
|