Browse Source

KERNEL-14124 fix: 解决报错,调整打包

es6
Zhenfei.Li 2 years ago
parent
commit
9358010b47
  1. 2
      src/widget/dynamicdatetime/dynamicdatetime.timeselect.js
  2. 4
      webpack/attachments.js

2
src/widget/dynamicdatetime/dynamicdatetime.timeselect.js

@ -113,7 +113,7 @@ export class DynamicDateTimeSelect extends Widget {
{ {
eventName: SignEditor.EVENT_CHANGE, eventName: SignEditor.EVENT_CHANGE,
action: () => { action: () => {
const value = this._autoSwitch(this.getValue(), DynamicDateTimeSelect.MINUTE); const value = this._autoSwitch(this.minute.getValue(), DynamicDateTimeSelect.MINUTE);
this.minute.setValue(value); this.minute.setValue(value);
}, },
} }

4
webpack/attachments.js

@ -6,6 +6,7 @@ const fixCompact = "./dist/fix/fix.compact.js";
const workerCompact = './dist/fix/worker.compact.js'; const workerCompact = './dist/fix/worker.compact.js';
const lodashJs = "src/core/1.lodash.js"; const lodashJs = "src/core/1.lodash.js";
const jqueryJs = "src/core/platform/web/jquery/_jquery.js"; const jqueryJs = "src/core/platform/web/jquery/_jquery.js";
const popperJs = "src/core/controller/popper.js";
const runtimePolyfill = ["@babel/polyfill", "es6-promise/auto"]; const runtimePolyfill = ["@babel/polyfill", "es6-promise/auto"];
@ -19,6 +20,8 @@ const basicAttachmentMap = {
"src/less/theme/**/*.less", "src/less/theme/**/*.less",
lodashJs, lodashJs,
jqueryJs, jqueryJs,
popperJs,
"src/bundle.js",
// "src/core/**/*.js", // "src/core/**/*.js",
// "src/data/**/*.js", // "src/data/**/*.js",
]), ]),
@ -238,7 +241,6 @@ const demo = [].concat(
basicAttachmentMap.core, basicAttachmentMap.core,
basicAttachmentMap.fix, basicAttachmentMap.fix,
basicAttachmentMap.config, basicAttachmentMap.config,
sync(["src/bundle.js"]),
basicAttachmentMap.base, basicAttachmentMap.base,
basicAttachmentMap.case, basicAttachmentMap.case,
basicAttachmentMap.widget, basicAttachmentMap.widget,

Loading…
Cancel
Save