@netang/quasar 0.2.8 → 0.2.10
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/input-number/index.vue +8 -12
- package/package.json +1 -1
- package/utils/$table.js +3 -3
|
@@ -454,21 +454,17 @@ export default {
|
|
|
454
454
|
// 格式化当前值
|
|
455
455
|
let val = formatToCurrentValue(currentValue.value, false)
|
|
456
456
|
|
|
457
|
-
//
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
// 更新当前值
|
|
461
|
-
currentValue.value = val
|
|
457
|
+
// 更新当前值
|
|
458
|
+
currentValue.value = val
|
|
462
459
|
|
|
463
|
-
|
|
464
|
-
|
|
460
|
+
// 将当前值转为声明值
|
|
461
|
+
val = formatToModelValue(val)
|
|
465
462
|
|
|
466
|
-
|
|
467
|
-
|
|
463
|
+
// 触发更新值
|
|
464
|
+
emitModelValue(val)
|
|
468
465
|
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
}
|
|
466
|
+
// 失去焦点触发
|
|
467
|
+
emit('blur', val)
|
|
472
468
|
}
|
|
473
469
|
|
|
474
470
|
/**
|
package/package.json
CHANGED
package/utils/$table.js
CHANGED
|
@@ -123,7 +123,7 @@ function create(options) {
|
|
|
123
123
|
// 从参数中获取搜索值
|
|
124
124
|
searchFromQuery: true,
|
|
125
125
|
// 是否显示宫格
|
|
126
|
-
showGrid:
|
|
126
|
+
showGrid: false,
|
|
127
127
|
// 是否显示可见列
|
|
128
128
|
showVisibleColumns: true,
|
|
129
129
|
// 是否开启缓存
|
|
@@ -365,7 +365,7 @@ function create(options) {
|
|
|
365
365
|
const _tablePagination = $route.fullPath ? o.pagination : {}
|
|
366
366
|
|
|
367
367
|
// 表格宫格
|
|
368
|
-
const _tableGrid =
|
|
368
|
+
const _tableGrid = isCache && $n_storage.get('table:grid:' + cacheName) === true ? true : o.showGrid
|
|
369
369
|
|
|
370
370
|
// 获取原始数据
|
|
371
371
|
const r = getRawData(_tableColumns, Object.assign({}, $route.query), o.searchFromQuery)
|
|
@@ -556,7 +556,7 @@ function create(options) {
|
|
|
556
556
|
* 监听表格宫格模式
|
|
557
557
|
*/
|
|
558
558
|
watch(tableGrid, function(val) {
|
|
559
|
-
if (
|
|
559
|
+
if (isCache) {
|
|
560
560
|
// 设置宫格模式缓存(永久缓存)
|
|
561
561
|
$n_storage.set('table:grid:' + cacheName, val, 0)
|
|
562
562
|
}
|