@netang/quasar 0.0.22 → 0.0.24
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/components/dialog/index.vue +1 -3
- package/components/field-date/index.vue +2 -21
- package/components/field-table/index.vue +623 -214
- package/components/field-tree/index.vue +2 -30
- package/components/search/index.vue +95 -93
- package/components/table/index.vue +33 -26
- package/components/table-pagination/index.vue +35 -5
- package/package.json +1 -1
- package/sass/quasar/field.scss +9 -8
- package/utils/$power.js +18 -8
- package/utils/$table.js +304 -172
- package/utils/$tree.js +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
class="n-dialog-proxy"
|
|
4
4
|
ref="dialogRef"
|
|
5
5
|
v-model="currentModelValue"
|
|
6
|
-
v-bind="
|
|
6
|
+
v-bind="$attrs"
|
|
7
7
|
@hide="onDialogHide"
|
|
8
8
|
>
|
|
9
9
|
<q-card class="flex column" :style="customStyle">
|
|
@@ -73,8 +73,6 @@ export default {
|
|
|
73
73
|
type: Boolean,
|
|
74
74
|
default: true,
|
|
75
75
|
},
|
|
76
|
-
// 对话框传参
|
|
77
|
-
dialogProps: Object,
|
|
78
76
|
// 组件标识
|
|
79
77
|
name: String,
|
|
80
78
|
// 路由组件路径
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<q-field
|
|
3
|
-
:class="fieldFocused ? 'q-field--float q-field--focused q-field--highlighted' : ''"
|
|
4
3
|
:model-value="modelValue"
|
|
5
4
|
:readonly="readonly"
|
|
6
5
|
@clear="onClear"
|
|
@@ -30,8 +29,9 @@
|
|
|
30
29
|
|
|
31
30
|
<q-popup-proxy
|
|
32
31
|
ref="popupRef"
|
|
32
|
+
no-refocus
|
|
33
|
+
no-focus
|
|
33
34
|
@before-show="onPopupBeforeShow"
|
|
34
|
-
@before-hide="onPopupBeforeHide"
|
|
35
35
|
@hide="onPopupHide"
|
|
36
36
|
v-if="! readonly"
|
|
37
37
|
>
|
|
@@ -273,9 +273,6 @@ export default {
|
|
|
273
273
|
|
|
274
274
|
// ==========【数据】============================================================================================
|
|
275
275
|
|
|
276
|
-
// 字段组件获取焦点
|
|
277
|
-
const fieldFocused = ref(false)
|
|
278
|
-
|
|
279
276
|
// 弹出层节点
|
|
280
277
|
const popupRef = ref(null)
|
|
281
278
|
|
|
@@ -705,9 +702,6 @@ export default {
|
|
|
705
702
|
*/
|
|
706
703
|
function onPopupBeforeShow() {
|
|
707
704
|
|
|
708
|
-
// 字段组件获取焦点
|
|
709
|
-
fieldFocused.value = true
|
|
710
|
-
|
|
711
705
|
// 如果为选择
|
|
712
706
|
if (isSelect.value) {
|
|
713
707
|
// 下次 DOM 更新
|
|
@@ -728,15 +722,6 @@ export default {
|
|
|
728
722
|
}
|
|
729
723
|
}
|
|
730
724
|
|
|
731
|
-
/**
|
|
732
|
-
* 弹出层隐藏前回调
|
|
733
|
-
*/
|
|
734
|
-
function onPopupBeforeHide() {
|
|
735
|
-
|
|
736
|
-
// 字段组件失去焦点
|
|
737
|
-
fieldFocused.value = false
|
|
738
|
-
}
|
|
739
|
-
|
|
740
725
|
/**
|
|
741
726
|
* 弹出层隐藏后回调
|
|
742
727
|
*/
|
|
@@ -772,8 +757,6 @@ export default {
|
|
|
772
757
|
// 选择数据列表
|
|
773
758
|
selectLists,
|
|
774
759
|
|
|
775
|
-
// 字段组件获取焦点
|
|
776
|
-
fieldFocused,
|
|
777
760
|
// 弹出层节点
|
|
778
761
|
popupRef,
|
|
779
762
|
// 滚动层节点
|
|
@@ -803,8 +786,6 @@ export default {
|
|
|
803
786
|
|
|
804
787
|
// 弹出层显示前回调
|
|
805
788
|
onPopupBeforeShow,
|
|
806
|
-
// 弹出层隐藏前回调
|
|
807
|
-
onPopupBeforeHide,
|
|
808
789
|
// 弹出层隐藏后回调
|
|
809
790
|
onPopupHide,
|
|
810
791
|
// 清空
|