@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.
@@ -454,21 +454,17 @@ export default {
454
454
  // 格式化当前值
455
455
  let val = formatToCurrentValue(currentValue.value, false)
456
456
 
457
- // 如果当前值有变动
458
- if (val !== currentValue.value) {
459
-
460
- // 更新当前值
461
- currentValue.value = val
457
+ // 更新当前值
458
+ currentValue.value = val
462
459
 
463
- // 将当前值转为声明值
464
- val = formatToModelValue(val)
460
+ // 将当前值转为声明值
461
+ val = formatToModelValue(val)
465
462
 
466
- // 触发更新值
467
- emitModelValue(val)
463
+ // 触发更新值
464
+ emitModelValue(val)
468
465
 
469
- // 失去焦点触发
470
- emit('blur', val)
471
- }
466
+ // 失去焦点触发
467
+ emit('blur', val)
472
468
  }
473
469
 
474
470
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netang/quasar",
3
- "version": "0.2.8",
3
+ "version": "0.2.10",
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
  }