@netang/quasar 0.1.80 → 0.1.82
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,37 +1,38 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="full-width">
|
|
3
|
-
|
|
4
|
-
<q-chip
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
:
|
|
8
|
-
:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
</
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="full-width">
|
|
3
|
+
|
|
4
|
+
<q-chip
|
|
5
|
+
class="q-ma-none"
|
|
6
|
+
square
|
|
7
|
+
:label="label"
|
|
8
|
+
:clickable="false"
|
|
9
|
+
:ripple="false"
|
|
10
|
+
>
|
|
11
|
+
<!-- 提示信息 -->
|
|
12
|
+
<q-tooltip anchor="center right" self="center left" v-if="tooltip">{{tooltip}}</q-tooltip>
|
|
13
|
+
</q-chip>
|
|
14
|
+
|
|
15
|
+
<!-- 插槽 -->
|
|
16
|
+
<slot />
|
|
17
|
+
</div>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script>
|
|
21
|
+
export default {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* 标识
|
|
25
|
+
*/
|
|
26
|
+
name: 'NColumnTitle',
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* 声明属性
|
|
30
|
+
*/
|
|
31
|
+
props: {
|
|
32
|
+
// 标签
|
|
33
|
+
label: [ String, Number ],
|
|
34
|
+
// 提示信息
|
|
35
|
+
tooltip: [ String, Number ],
|
|
36
|
+
},
|
|
37
|
+
}
|
|
38
|
+
</script>
|
|
@@ -322,6 +322,8 @@ export default {
|
|
|
322
322
|
},
|
|
323
323
|
// 自定义请求方法
|
|
324
324
|
request: Function,
|
|
325
|
+
// 每次对话框显示都请求
|
|
326
|
+
requestEveryDialogShow: Boolean,
|
|
325
327
|
},
|
|
326
328
|
|
|
327
329
|
/**
|
|
@@ -625,6 +627,24 @@ export default {
|
|
|
625
627
|
await $table.tableReload()
|
|
626
628
|
})
|
|
627
629
|
|
|
630
|
+
/**
|
|
631
|
+
* 监听其他值
|
|
632
|
+
*/
|
|
633
|
+
// watch([
|
|
634
|
+
// ()=>props.path,
|
|
635
|
+
// ()=>props.url,
|
|
636
|
+
// ()=>props.query,
|
|
637
|
+
// ()=>props.data,
|
|
638
|
+
// ()=>props.showKeys,
|
|
639
|
+
// ()=>props.hideSearchKeys,
|
|
640
|
+
// ], function () {
|
|
641
|
+
// _dialogShowed = false
|
|
642
|
+
// _popupShowed = false
|
|
643
|
+
//
|
|
644
|
+
// }, {
|
|
645
|
+
// deep: true
|
|
646
|
+
// })
|
|
647
|
+
|
|
628
648
|
// ==========【方法】=============================================================================================
|
|
629
649
|
|
|
630
650
|
/**
|
|
@@ -1006,6 +1026,7 @@ export default {
|
|
|
1006
1026
|
/**
|
|
1007
1027
|
* 弹出层显示回调
|
|
1008
1028
|
*/
|
|
1029
|
+
let _popupShowed = false
|
|
1009
1030
|
function onPopupShow() {
|
|
1010
1031
|
|
|
1011
1032
|
// 显示弹出层
|
|
@@ -1014,8 +1035,21 @@ export default {
|
|
|
1014
1035
|
// 设置输入框焦点
|
|
1015
1036
|
setInputFocus()
|
|
1016
1037
|
|
|
1017
|
-
//
|
|
1018
|
-
|
|
1038
|
+
// 如果每次对话框显示都请求
|
|
1039
|
+
if (props.requestEveryDialogShow) {
|
|
1040
|
+
// 表格重新加载
|
|
1041
|
+
$table.tableReload()
|
|
1042
|
+
.finally()
|
|
1043
|
+
return
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
if (_popupShowed) {
|
|
1047
|
+
return
|
|
1048
|
+
}
|
|
1049
|
+
_popupShowed = true
|
|
1050
|
+
|
|
1051
|
+
// 表格重新加载
|
|
1052
|
+
$table.tableReload()
|
|
1019
1053
|
.finally()
|
|
1020
1054
|
}
|
|
1021
1055
|
|
|
@@ -1044,22 +1078,22 @@ export default {
|
|
|
1044
1078
|
*/
|
|
1045
1079
|
let _dialogShowed = false
|
|
1046
1080
|
function onDialogShow() {
|
|
1047
|
-
if ($n_isFunction(props.request)) {
|
|
1048
|
-
|
|
1049
|
-
if (_dialogShowed) {
|
|
1050
|
-
return
|
|
1051
|
-
}
|
|
1052
|
-
_dialogShowed = true
|
|
1053
1081
|
|
|
1082
|
+
// 如果每次对话框显示都请求
|
|
1083
|
+
if (props.requestEveryDialogShow) {
|
|
1054
1084
|
// 表格重新加载
|
|
1055
1085
|
$table.tableReload()
|
|
1056
1086
|
.finally()
|
|
1087
|
+
return
|
|
1088
|
+
}
|
|
1057
1089
|
|
|
1090
|
+
if (_dialogShowed) {
|
|
1058
1091
|
return
|
|
1059
1092
|
}
|
|
1093
|
+
_dialogShowed = true
|
|
1060
1094
|
|
|
1061
|
-
//
|
|
1062
|
-
$table.
|
|
1095
|
+
// 表格重新加载
|
|
1096
|
+
$table.tableReload()
|
|
1063
1097
|
.finally()
|
|
1064
1098
|
}
|
|
1065
1099
|
|
package/components/img/index.vue
CHANGED
|
@@ -206,6 +206,34 @@ export default {
|
|
|
206
206
|
&--round {
|
|
207
207
|
border-radius: 50%;
|
|
208
208
|
}
|
|
209
|
+
|
|
210
|
+
// 设置
|
|
211
|
+
&__settings {
|
|
212
|
+
position: absolute;
|
|
213
|
+
top: 0;
|
|
214
|
+
left: 0;
|
|
215
|
+
bottom: 0;
|
|
216
|
+
right: 0;
|
|
217
|
+
padding: 0 !important;
|
|
218
|
+
margin: 0 !important;
|
|
219
|
+
background-color: transparent !important;
|
|
220
|
+
visibility: hidden;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
&:hover {
|
|
224
|
+
.n-img__settings {
|
|
225
|
+
visibility: visible;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* 手机版
|
|
232
|
+
*/
|
|
233
|
+
body.mobile {
|
|
234
|
+
.n-img__settings {
|
|
235
|
+
visibility: visible;
|
|
236
|
+
}
|
|
209
237
|
}
|
|
210
238
|
</style>
|
|
211
239
|
|