Flat:Type基于TypeScript的轻量级MVVM框架

上传者: 42131618 | 上传时间: 2022-07-22 16:42:22 | 文件大小: 448KB | 文件类型: ZIP
Flat A lightweight MVVM framework base on TypeScript. Flat Flat is a lightweight MVVM framework base on TypeScript, and flat can provide more possibilities in your project. Render 在执行 render 的时候,会将所有的数组抽成扁平,flat 会认为,children 就只有 Text 节点和 _Elememt 节点,相对来说,抽成扁平,在性能上也会得到提升。 为了能精确定位到更新的元素,在 Component 的原型上附加了类型为 symbol 的 _key,用来唯一标识一个组件 不必关心节点的 key, flat 在初次解析的时候,附加了 component 的 key,key 用了 Symbol 类型,为了

文件下载

资源详情

[{"title":"( 51 个子文件 448KB ) Flat:Type基于TypeScript的轻量级MVVM框架","children":[{"title":"Flat-refactor","children":[{"title":"yarn.lock <span style='color:#111;'> 232.95KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"utils","children":[{"title":"index.ts <span style='color:#111;'> 55B </span>","children":null,"spread":false},{"title":"type-checker.ts <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false},{"title":"dom.ts <span style='color:#111;'> 161B </span>","children":null,"spread":false}],"spread":true},{"title":"index.ts <span style='color:#111;'> 859B </span>","children":null,"spread":false},{"title":"core","children":[{"title":"index.ts <span style='color:#111;'> 135B </span>","children":null,"spread":false},{"title":"render-vdom.ts <span style='color:#111;'> 2.28KB </span>","children":null,"spread":false},{"title":"decorators","children":[{"title":"children.ts <span style='color:#111;'> 205B </span>","children":null,"spread":false},{"title":"index.ts <span style='color:#111;'> 134B </span>","children":null,"spread":false},{"title":"prop.ts <span style='color:#111;'> 229B </span>","children":null,"spread":false},{"title":"component.ts <span style='color:#111;'> 594B </span>","children":null,"spread":false},{"title":"computed.ts <span style='color:#111;'> 247B </span>","children":null,"spread":false},{"title":"state.ts <span style='color:#111;'> 289B </span>","children":null,"spread":false}],"spread":true},{"title":"h.ts <span style='color:#111;'> 921B </span>","children":null,"spread":false},{"title":"directive.ts <span style='color:#111;'> 932B </span>","children":null,"spread":false},{"title":"element.ts <span style='color:#111;'> 482B </span>","children":null,"spread":false},{"title":"global-data.ts <span style='color:#111;'> 309B </span>","children":null,"spread":false},{"title":"compiler","children":[{"title":"vm.ts <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"index.ts <span style='color:#111;'> 55B </span>","children":null,"spread":false},{"title":"directive-compiler.ts <span style='color:#111;'> 3.54KB </span>","children":null,"spread":false},{"title":"compiler.ts <span style='color:#111;'> 4.37KB </span>","children":null,"spread":false},{"title":"runtime.ts <span style='color:#111;'> 605B </span>","children":null,"spread":false},{"title":"compile-info-stack.ts <span style='color:#111;'> 657B </span>","children":null,"spread":false}],"spread":true},{"title":"render.ts <span style='color:#111;'> 7.52KB </span>","children":null,"spread":false}],"spread":true},{"title":"directives","children":[{"title":"index.ts <span style='color:#111;'> 39B </span>","children":null,"spread":false},{"title":"property-directives","children":[{"title":"styles-directive.ts <span style='color:#111;'> 441B </span>","children":null,"spread":false},{"title":"index.ts <span style='color:#111;'> 36B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"typings","children":[{"title":"events.d.ts <span style='color:#111;'> 69B </span>","children":null,"spread":false},{"title":"utils.d.ts <span style='color:#111;'> 56B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".vscode","children":[{"title":"launch.json <span style='color:#111;'> 279B </span>","children":null,"spread":false},{"title":"extensions.json <span style='color:#111;'> 286B </span>","children":null,"spread":false},{"title":"settings.json <span style='color:#111;'> 345B </span>","children":null,"spread":false},{"title":"tasks.json <span style='color:#111;'> 295B </span>","children":null,"spread":false}],"spread":true},{"title":"doc","children":[{"title":"mini-logo.png <span style='color:#111;'> 3.36KB </span>","children":null,"spread":false},{"title":"flat-bind.gif <span style='color:#111;'> 1.49MB </span>","children":null,"spread":false},{"title":"logo.png <span style='color:#111;'> 14.90KB </span>","children":null,"spread":false}],"spread":true},{"title":"example","children":[{"title":"index.html <span style='color:#111;'> 343B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"views","children":[{"title":"app.tsx <span style='color:#111;'> 227B </span>","children":null,"spread":false}],"spread":true},{"title":"bar.tsx <span style='color:#111;'> 160B </span>","children":null,"spread":false},{"title":"todos","children":[{"title":"todo-tab.tsx <span style='color:#111;'> 222B </span>","children":null,"spread":false},{"title":"todo-item.tsx <span style='color:#111;'> 677B </span>","children":null,"spread":false},{"title":"control-bar.tsx <span style='color:#111;'> 962B </span>","children":null,"spread":false},{"title":"todo-list.tsx <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false}],"spread":true},{"title":"main.tsx <span style='color:#111;'> 920B </span>","children":null,"spread":false}],"spread":true},{"title":"tsconfig.json <span style='color:#111;'> 352B </span>","children":null,"spread":false}],"spread":true},{"title":"tsconfig.json <span style='color:#111;'> 398B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 5.86KB </span>","children":null,"spread":false},{"title":"prettier.config.js <span style='color:#111;'> 54B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 40B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 555B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明