@jx3box/jx3box-common-ui 9.4.4 → 9.4.6
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/suspendCommon.less +10 -1
- package/package.json +1 -1
- package/src/SuspendCommon.vue +23 -9
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
.w(100%);
|
|
95
95
|
.h(auto) !important;
|
|
96
96
|
padding: 1.25rem 0.75rem 2.5rem 0.75rem;
|
|
97
|
-
background: @bgColor;
|
|
97
|
+
background: @bgColor !important;
|
|
98
98
|
|
|
99
99
|
// .el-drawer__body {}
|
|
100
100
|
|
|
@@ -331,6 +331,15 @@
|
|
|
331
331
|
span{
|
|
332
332
|
color:#fff;
|
|
333
333
|
}
|
|
334
|
+
.u-iframe{
|
|
335
|
+
border-radius: 1.25rem 1.25rem 0 0;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
.slide-up-enter-active, .slide-up-leave-active {
|
|
339
|
+
transition: transform 0.3s ease-in-out;
|
|
340
|
+
}
|
|
341
|
+
.slide-up-enter, .slide-up-leave-to /* .slide-up-leave-active in <2.1.8 */ {
|
|
342
|
+
transform: translateY(100%);
|
|
334
343
|
}
|
|
335
344
|
}
|
|
336
345
|
|
package/package.json
CHANGED
package/src/SuspendCommon.vue
CHANGED
|
@@ -80,8 +80,9 @@
|
|
|
80
80
|
</div>
|
|
81
81
|
<!-- 抽屉弹出层,支持默认样式和自定义插槽样式 -->
|
|
82
82
|
<el-drawer :title="drawerConfig.drawerTitle" :visible.sync="drawer" :direction="drawerConfig.direction"
|
|
83
|
-
:with-header="false" custom-class="u-drawer" :modal-append-to-body="false" append-to-body class="p-drawer-suspend">
|
|
84
|
-
|
|
83
|
+
:with-header="false" custom-class="u-drawer" :modal-append-to-body="false" append-to-body class="p-drawer-suspend" @close="areaKey='home'">
|
|
84
|
+
|
|
85
|
+
<div class="p-drawer-suspend_box p-bt-transition" v-show="areaKey === 'home'">
|
|
85
86
|
<div class="u-drawer-box">
|
|
86
87
|
<div class="u-item top" v-for="item in drawerFiltration(drawerType.one)" :key="item.type"
|
|
87
88
|
@click="clickDrawer(item)">
|
|
@@ -150,8 +151,10 @@
|
|
|
150
151
|
</div>
|
|
151
152
|
</div>
|
|
152
153
|
</div>
|
|
154
|
+
|
|
155
|
+
<transition name="slide-up">
|
|
153
156
|
<!-- 收藏区域 、订阅区域 -->
|
|
154
|
-
<div class="p-drawer-collect" v-show="areaKey === 'collect' || areaKey === 'rss'">
|
|
157
|
+
<div class="p-drawer-collect p-bt-transition" v-show="areaKey === 'collect' || areaKey === 'rss'">
|
|
155
158
|
<div class="u-collect-icon">
|
|
156
159
|
<img src="../assets/img/suspend/collect_touchbar_100.svg" svg-inline
|
|
157
160
|
v-if="areaKey === 'collect' && !isCollect" />
|
|
@@ -179,8 +182,10 @@
|
|
|
179
182
|
<div class="u-btn" @click="laterOn">添加到稍后再看</div>
|
|
180
183
|
</div>
|
|
181
184
|
</div>
|
|
185
|
+
</transition>
|
|
182
186
|
<!-- 固定配置相关页面 -->
|
|
183
|
-
<
|
|
187
|
+
<transition name="slide-up">
|
|
188
|
+
<div class="p-drawer-fix p-bt-transition" v-show="areaKey === 'pin' || areaKey === 'fix'">
|
|
184
189
|
<!-- 固定,取消固定,超量 -->
|
|
185
190
|
<div class="u-collect-icon" v-if="!fixIsEdit">
|
|
186
191
|
<img src="../assets/img/suspend/pin_touchbar_100.svg" svg-inline
|
|
@@ -232,15 +237,18 @@
|
|
|
232
237
|
将页面固定
|
|
233
238
|
</div>
|
|
234
239
|
</div>
|
|
235
|
-
|
|
236
|
-
|
|
240
|
+
</transition>
|
|
241
|
+
<!-- 固定页面查看数据、或打开其他远程界面-->
|
|
242
|
+
<transition name="slide-up">
|
|
243
|
+
<div class="p-drawer-fixData p-bt-transition" v-show="areaKey === 'fixData'">
|
|
237
244
|
<!-- 展开界面图标-->
|
|
238
245
|
<div class="u-icon" @click="openUrl">
|
|
239
246
|
<img src="../assets/img/suspend/pin_touchbar_24.svg" svg-inline/>
|
|
240
247
|
</div>
|
|
241
|
-
<iframe :src="iframeInfo.openurl" frameborder="0" width="100%" height="100%" v-if="iframeInfo?.url"/>
|
|
248
|
+
<iframe :src="iframeInfo.openurl" frameborder="0" width="100%" height="100%" v-if="iframeInfo?.url" class="u-iframe"/>
|
|
242
249
|
<span v-else>查找页面失败</span>
|
|
243
250
|
</div>
|
|
251
|
+
</transition>
|
|
244
252
|
</el-drawer>
|
|
245
253
|
</div>
|
|
246
254
|
</template>
|
|
@@ -439,6 +447,14 @@ export default {
|
|
|
439
447
|
}
|
|
440
448
|
//稍后在看处理
|
|
441
449
|
if (item.type === 'laterOn') this.laterOn()
|
|
450
|
+
//点击作者
|
|
451
|
+
console.log(item)
|
|
452
|
+
if (item.type === 'user') {
|
|
453
|
+
let url = '/author/' + this.drawerConfig.author.author_id;
|
|
454
|
+
this.iframeInfo={url:url,openurl:url};
|
|
455
|
+
this.areaKey='fixData'
|
|
456
|
+
|
|
457
|
+
}
|
|
442
458
|
this.$emit('clickBtn', { type: item.type, text: item.text });
|
|
443
459
|
},
|
|
444
460
|
/**
|
|
@@ -482,7 +498,6 @@ export default {
|
|
|
482
498
|
* @param {*} value
|
|
483
499
|
*/
|
|
484
500
|
fixDataClick(value) {
|
|
485
|
-
console.log(value)
|
|
486
501
|
if(value.url.indexOf('?') !=-1){
|
|
487
502
|
value.openurl= value.url+'&disabled=true'
|
|
488
503
|
}else{
|
|
@@ -491,7 +506,6 @@ export default {
|
|
|
491
506
|
this.iframeInfo=value;
|
|
492
507
|
this.areaKey='fixData'
|
|
493
508
|
this.$emit('fixDataSwitch')
|
|
494
|
-
|
|
495
509
|
},
|
|
496
510
|
//打开界面
|
|
497
511
|
openUrl(){
|