不能设置进去

This commit is contained in:
liaoxuezhi 2019-09-02 22:36:50 +08:00
parent 1d48bbc8b7
commit 2c4320c05f
2 changed files with 5 additions and 2 deletions

View File

@ -210,7 +210,7 @@ if (fis.project.currentMedia() === 'publish') {
to: fis.get('options.d') || fis.get('options.desc') || './lib' 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, isMod: false,
standard: false standard: false
}); });
@ -247,6 +247,9 @@ if (fis.project.currentMedia() === 'publish') {
.replace(/('|")(\.\.\/thirds.*?)\1/g, function (_, quote, value) { .replace(/('|")(\.\.\/thirds.*?)\1/g, function (_, quote, value) {
return '__uri(' + quote + value + quote + ')'; return '__uri(' + quote + value + quote + ')';
}); });
} else if (subpath === '/src/components/icons.tsx') {
content = content
.replace(/\.svg/g, ".js")
} else { } else {
content = content.replace(/@require\s+(?:\.\.\/)?node_modules\//g, '@require '); content = content.replace(/@require\s+(?:\.\.\/)?node_modules\//g, '@require ');
} }

View File

@ -362,7 +362,7 @@ export const FormStore = ServiceStore
item = self.items[self.items.length - 1] as IFormItemStore; 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); options && item.config(options);