@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.
@@ -897,7 +897,7 @@ export default {
897
897
  &__item {
898
898
  // 单个文件
899
899
  &--file {
900
- width: 100%;
900
+ width: 250px;
901
901
  }
902
902
  }
903
903
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netang/quasar",
3
- "version": "0.2.9",
3
+ "version": "0.2.11",
4
4
 
5
5
  "description": "netang-quasar",
6
6
  "scripts": {
package/utils/$table.js CHANGED
@@ -123,7 +123,7 @@ function create(options) {
123
123
  // 从参数中获取搜索值
124
124
  searchFromQuery: true,
125
125
  // 是否显示宫格
126
- showGrid: true,
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 = o.showGrid && isCache ? $n_storage.get('table:grid:' + cacheName) === true : false
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 (o.showGrid && isCache) {
559
+ if (isCache) {
560
560
  // 设置宫格模式缓存(永久缓存)
561
561
  $n_storage.set('table:grid:' + cacheName, val, 0)
562
562
  }