我的电脑 – Telegram
我的电脑
439 subscribers
1.76K photos
35 videos
12 files
1.16K links
你已在电脑登录,可传文件到电脑
Download Telegram
Forwarded from Yukino Song
震惊!桌子居然是立体画!
Forwarded from Yukino Song
ef把WeakMap去掉了
Forwarded from Yukino Song
于是乎WeakMap的polyfill也不需要了
Forwarded from Yukino Song
现在gzip后的体积重新回到了10kb以下
新版高亮,类型区别更明显了
Forwarded from Yukino Song
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
不用签到啦