Browse Source

fix(bug): bug

bug
master
wpxp123456 5 years ago
parent
commit
c578c0e34b
  1. 13
      src/controllers/matrixOperation.js
  2. 2
      src/locale/en.js

13
src/controllers/matrixOperation.js

@ -1,14 +1,20 @@
import selection from './selection'; import selection from './selection';
import { import {
numFormat,luckysheetContainerFocus, getObjType,
chatatABC,
numFormat,
luckysheetContainerFocus,
} from '../utils/util'; } from '../utils/util';
import { hasPartMC, isEditMode } from '../global/validate'; import { hasPartMC, isEditMode } from '../global/validate';
import { getdatabyselection, getcellvalue } from '../global/getdata'; import { getdatabyselection, getcellvalue } from '../global/getdata';
import tooltip from '../global/tooltip'; import tooltip from '../global/tooltip';
import editor from '../global/editor'; import editor from '../global/editor';
import locale from '../locale/locale';
import Store from '../store'; import Store from '../store';
export function initialMatrixOperation(){ export function initialMatrixOperation(){
const locale_drag = locale().drag;
//右键功能键 //右键功能键
//复制为json格式字符串,首行为标题 //复制为json格式字符串,首行为标题
$("#luckysheet-copy-json-head").click(function (event) { $("#luckysheet-copy-json-head").click(function (event) {
@ -641,11 +647,12 @@ export function initialMatrixOperation(){
for (let c = 0; c < getdata[0].length; c++) { for (let c = 0; c < getdata[0].length; c++) {
let bool = false; let bool = false;
let v;
if(getObjType(getdata[r][c]) == "object"){ if(getObjType(getdata[r][c]) == "object"){
let v = getdata[r][c].v; v = getdata[r][c].v;
} }
else{ else{
let v = getdata[r][c]; v = getdata[r][c];
} }
if (v == null || v == "") { if (v == null || v == "") {

2
src/locale/en.js

@ -523,7 +523,7 @@ export default {
antiDiagonal: 'Anti-diagonal', antiDiagonal: 'Anti-diagonal',
diagonalOffset: 'Diagonal offset', diagonalOffset: 'Diagonal offset',
offset: 'Offset', offset: 'Offset',
Boolean: '布尔值', boolean: 'Boolean',
flip: 'Flip', flip: 'Flip',
upAndDown: 'Up and down', upAndDown: 'Up and down',
leftAndRight: 'Left and right', leftAndRight: 'Left and right',

Loading…
Cancel
Save