x-postpress:用于呈现文章的Web组件

时间:2021-02-06 03:33:04
【文件属性】:
文件名称:x-postpress:用于呈现文章的Web组件
文件大小:19KB
文件格式:ZIP
更新时间:2021-02-06 03:33:04
wordpress typescript rest-api web-components custom-elements 用于呈现文章的Web组件。 内容可以通过网络插入或获取。 关于 使用使用, 和构建。 进口 将Web组件添加到项目中(unpkg和npm示例) 使用script标签加载自定义元素: < script src =" https://unpkg.com/x-postpress@3 " type =" module " > </ script > 或者,使用npm添加: npm i x-postpress@3 然后从另一个文件导入模块: import 'x-postpress' 利用 将标签添加到文档和样式中。 内容可以按照 上建模的json以及预先准备HTML在网络上投放或获取
【文件预览】:
x-postpress-master
----.eslintrc.json(687B)
----prettier.config.cjs(76B)
----index.html(3KB)
----rollup.config.js(896B)
----favicon.ico(34KB)
----.prettierignore(209B)
----src()
--------utils()
--------components()
--------x-postpress.ts(141B)
----tsconfig.test.json(445B)
----web-test-runner.config.mjs(1KB)
----types()
--------index.d.ts(119B)
----tsconfig.json(494B)
----README.md(3KB)
----rollup.test.config.js(1KB)
----.editorconfig(300B)
----tests()
--------x-postpress.spec.ts(1KB)
----.gitignore(208B)
----package.json(4KB)

网友评论