@netang/quasar 0.0.98 → 0.0.99
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/table/index.vue +5 -1
- package/package.json +1 -1
- package/utils/getTime.js +8 -1
|
@@ -89,7 +89,11 @@
|
|
|
89
89
|
@row-dblclick="currentTableRowDblclick"
|
|
90
90
|
@request="tableRequest"
|
|
91
91
|
flat
|
|
92
|
-
virtual-scroll
|
|
92
|
+
:virtual-scroll="{
|
|
93
|
+
virtualScrollSliceRatioBefore: 20,
|
|
94
|
+
virtualScrollSliceSize: 50,
|
|
95
|
+
virtualScrollSliceRatioAfter: 20,
|
|
96
|
+
}"
|
|
93
97
|
:dense="dense"
|
|
94
98
|
v-bind="$attrs"
|
|
95
99
|
>
|
package/package.json
CHANGED
package/utils/getTime.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import $n_isValidString from '@netang/utils/isValidString'
|
|
2
2
|
import $n_toDate from '@netang/utils/toDate'
|
|
3
|
+
import $n_indexOf from '@netang/utils/indexOf'
|
|
3
4
|
|
|
4
5
|
import $n_timestamp from './timestamp'
|
|
5
6
|
|
|
@@ -91,7 +92,13 @@ export default function getTime(time, options, defaultValue = '') {
|
|
|
91
92
|
}
|
|
92
93
|
|
|
93
94
|
// 如果是今年是否显示
|
|
94
|
-
if (
|
|
95
|
+
if (
|
|
96
|
+
$n_indexOf(format, 'YYYY') === -1
|
|
97
|
+
&& (
|
|
98
|
+
! hideCurrentYear
|
|
99
|
+
|| quasarDate.formatDate(date, 'YYYY') !== quasarDate.formatDate(now, 'YYYY')
|
|
100
|
+
)
|
|
101
|
+
) {
|
|
95
102
|
format = 'YYYY-' + format
|
|
96
103
|
}
|
|
97
104
|
|