snabbdom-selector:Snabbdom虚拟节点CSS选择器

时间:2021-05-17 08:36:15
【文件属性】:
文件名称:snabbdom-selector:Snabbdom虚拟节点CSS选择器
文件大小:24KB
文件格式:ZIP
更新时间:2021-05-17 08:36:15
TypeScript 绝食选择器 snabbdom-selector是一种使用TypeScript编写的实用工具,用于查找与给定CSS选择器匹配的snabbdom VNode对象。 这是给我的! npm install snabbdom-selector 基本用法 import { select } from 'snabbdom-selector' import * as h from 'snabbdom/h' const vNode = h ( 'div' , { } , [ h ( 'div.test' , { } , [ h ( 'p' , { key : 1 } , 'Foo' ) ] ) ] ) const matches = select ( '.test p' , vNode ) console . log ( matches ) // => [{sel: 'p', text
【文件预览】:
snabbdom-selector-master
----.gitignore(75B)
----package.json(1KB)
----tslint.json(2KB)
----package-lock.json(43KB)
----src()
--------curry2.ts(388B)
--------query.ts(2KB)
--------selectorParser.ts(782B)
--------classNameFromVNode.ts(533B)
--------findMatches.ts(1KB)
--------index.ts(319B)
--------parent-symbol.ts(482B)
--------types.ts(285B)
----LICENSE.md(1KB)
----.travis.yml(39B)
----CHANGELOG.md(232B)
----tsconfig.json(369B)
----README.md(3KB)
----.vscode()
--------settings.json(56B)
----.npmignore(0B)
----test()
--------tsconfig.json(418B)
--------index.ts(6KB)
----.editorconfig(131B)

网友评论