@netang/quasar 0.2.9 → 0.2.11
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/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
|
}
|