From 2c4320c05f03c98a32a1e1c228c443e596240efc Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Mon, 2 Sep 2019 22:36:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E8=83=BD=E8=AE=BE=E7=BD=AE=E8=BF=9B?= =?UTF-8?q?=E5=8E=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fis-conf.js | 5 ++++- src/store/form.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/fis-conf.js b/fis-conf.js index 5768b665e..ce814fcbe 100644 --- a/fis-conf.js +++ b/fis-conf.js @@ -210,7 +210,7 @@ if (fis.project.currentMedia() === 'publish') { to: fis.get('options.d') || fis.get('options.desc') || './lib' }) }); - publishEnv.match('/src/**.{jsx,tsx,js,ts}', { + publishEnv.match('/src/**.{jsx,tsx,js,ts,svg}', { isMod: false, standard: false }); @@ -247,6 +247,9 @@ if (fis.project.currentMedia() === 'publish') { .replace(/('|")(\.\.\/thirds.*?)\1/g, function (_, quote, value) { return '__uri(' + quote + value + quote + ')'; }); + } else if (subpath === '/src/components/icons.tsx') { + content = content + .replace(/\.svg/g, ".js") } else { content = content.replace(/@require\s+(?:\.\.\/)?node_modules\//g, '@require '); } diff --git a/src/store/form.ts b/src/store/form.ts index 52ed54002..3bc917d74 100644 --- a/src/store/form.ts +++ b/src/store/form.ts @@ -362,7 +362,7 @@ export const FormStore = ServiceStore item = self.items[self.items.length - 1] as IFormItemStore; // 默认值可能在原型上,把他挪到当前对象上。 - setValueByName(item.name, item.value, false, true); + setValueByName(item.name, item.value, false, false); options && item.config(options);