我的电脑 – Telegram
我的电脑
439 subscribers
1.76K photos
35 videos
12 files
1.16K links
你已在电脑登录,可传文件到电脑
Download Telegram
v0.1.1-alpha.7及以后可以直接通过这种方式绑定class了,使用cssmodule的话会方便很多
我的电脑
v0.1.1-alpha.7及以后可以直接通过这种方式绑定class了,使用cssmodule的话会方便很多
import style from './style.css'

import template from './template.eft'


const component = template.render()

component.$data.class = style

// const component = template.render({$data:{class: style}}) 也可以


export default component
我的电脑
import style from './style.css' import template from './template.eft' const component = template.render() component.$data.class = style // const component = template.render({$data:{class: style}}) 也可以 export default component
import style from './style.css'

import template from './template.eft'


const getComponent = (data) => {

  const component = template.render({$data:{class: style}})

  if (data) component.$data = data

  return component

} 


export default getComponent
v0.1.1-alpha.8 新用法
我的电脑
v0.1.1-alpha.8 新用法
绑定的事件处理函数时可以传值了
冒号后面的全部认为是传递的值,类型固定为字符串
Forwarded from Yukino Song
Forwarded from Yukino Song
不用签到啦
过于先进的技术与魔法无异
Forwarded from Yukino Song
cc最后一集看着太蛋疼。。。
Forwarded from Yukino Song
看完心里堵得慌。。。。顺便肚子疼
Forwarded from Yukino Song
ef的性能又提升了。。。。
Forwarded from Yukino Song
渲染10000个测试组件耗时比原先减少1/3