引用的库:- "@grapecity-software/spread-sheets": "17.0.8",
- "@grapecity-software/spread-sheets-react": "17.0.8",
- "@grapecity-software/spread-sheets-resources-zh": "^17.0.8",
复制代码
具体报错信息:- TypeError: Cannot set properties of undefined (setting 'wijspread')
- at ./dist/plugins/data/data.ko.js (409.9a96b255.async.js:197:36895)
- at ni (409.9a96b255.async.js:4:154193)
- at ./dist/plugins/data/data.entry.js (409.9a96b255.async.js:197:35048)
- at ni (409.9a96b255.async.js:4:154193)
- at ./all.entry.js (409.9a96b255.async.js:4:154816)
- at ni (409.9a96b255.async.js:4:154193)
- at 409.9a96b255.async.js:244:481806
- at 27122 (409.9a96b255.async.js:244:481861)
- at G (umi.c267f36c.js:29:9775)
- at 95818 (409.9a96b255.async.js:244:482040)
复制代码
- oe && ((re = oe.bindingHandlers)["gc-spread-sheets"] = re["gcspread-sheets"] = re.wijspread = {
- init: function(B, w, a, s) {
- var w, _, T, g, C, m, p, h, D, W, V, d;
- if (!vt(B).data("workbook") && (_ = (w = w()) && w.sheets,
- T = new Le.Workbook(vt("#" + B.id)[0],w),
- _)) {
- for (C = g = void 0,
- m = _.length,
- p = T.getSheetCount(); p < m; )
- g = T.S2(T.T2(p)),
- T.A2(p, 0, g),
- p = T.getSheetCount();
- for (h = 0; h < m; h++)
- g = T.getSheet(h),
- D = (C = _[h]).name,
- W = C.autoGenerateColumns,
- V = C.data,
- d = C.columns,
- typeof D == ze && 0 < D.length && g.ub(D),
- typeof W == "boolean" && (g.autoGenerateColumns = W),
- V && g.setDataSource(V),
- d && 0 < d.length && (g.autoGenerateColumns = !1,
- g.bindColumns(d))
- }
- },
- update: function(B, c, a, s) {}
- })
- },
复制代码 |