@netang/quasar 0.1.80 → 0.1.81
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
|
/**
|
|
@@ -1014,6 +1016,14 @@ export default {
|
|
|
1014
1016
|
// 设置输入框焦点
|
|
1015
1017
|
setInputFocus()
|
|
1016
1018
|
|
|
1019
|
+
// 如果每次对话框显示都请求
|
|
1020
|
+
if (props.requestEveryDialogShow) {
|
|
1021
|
+
// 表格重新加载
|
|
1022
|
+
$table.tableReload()
|
|
1023
|
+
.finally()
|
|
1024
|
+
return
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1017
1027
|
// 表格加载(只加载一次)
|
|
1018
1028
|
$table.tableLoad()
|
|
1019
1029
|
.finally()
|
|
@@ -1044,6 +1054,15 @@ export default {
|
|
|
1044
1054
|
*/
|
|
1045
1055
|
let _dialogShowed = false
|
|
1046
1056
|
function onDialogShow() {
|
|
1057
|
+
|
|
1058
|
+
// 如果每次对话框显示都请求
|
|
1059
|
+
if (props.requestEveryDialogShow) {
|
|
1060
|
+
// 表格重新加载
|
|
1061
|
+
$table.tableReload()
|
|
1062
|
+
.finally()
|
|
1063
|
+
return
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1047
1066
|
if ($n_isFunction(props.request)) {
|
|
1048
1067
|
|
|
1049
1068
|
if (_dialogShowed) {
|
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
|
|