docs: ✏️ 去掉一些意见处理了的 TODO

This commit is contained in:
牧毅 2020-08-21 11:02:42 +08:00
parent 206a04eae8
commit 730387de95
2 changed files with 0 additions and 3 deletions

View File

@ -33,7 +33,6 @@ const pluginFactory: BuilderComponentPluginFactory<PluginConfig> = (config?) =>
if (ir.state) {
const state = ir.state;
const fields = Object.keys(state).map<string>((stateName) => {
// TODO: 这里用什么 handlers?
const [isString, value] = generateCompositeType(state[stateName], {});
return `${stateName}: ${isString ? `'${value}'` : value},`;
});

View File

@ -43,14 +43,12 @@ const pluginFactory: BuilderComponentPluginFactory<PluginConfig> = (config?) =>
linkAfter: [CLASS_DEFINE_CHUNK_NAME.Start],
});
// TODO: Page methods...
next.chunks.push({
type: ChunkType.STRING,
fileType: cfg.fileType,
name: CLASS_DEFINE_CHUNK_NAME.InsPrivateMethod,
// 绑定下上下文,这样在所有的 utils 里面都能通过 this.xxx 来访问上下文了
// TODO: 要不要优化为通过 Proxy 的方式懒绑定?
content: `
_defineUtils() {
const utils = {