dialog-polyfill:HTML对话框元素的Polyfill

时间:2021-02-03 16:55:37
【文件属性】:
文件名称:dialog-polyfill:HTML对话框元素的Polyfill
文件大小:65KB
文件格式:ZIP
更新时间:2021-02-03 16:55:37
polyfill html a11y dialog HTMLJavaScript dialog-polyfill.js是和<form method="dialog">的polyfill。 查看! 是网页中弹出框的元素,包括模式选项,该选项将使页面的其余部分在使用过程中保持惰性。 在阻止用户交互直到用户给您答复或确认操作之前,这可能很有用。 请参阅。 用法 安装 您可以选择通过NPM安装- $ npm install dialog-polyfill 有几种方法可以包含对话框polyfill: 在您HTML中直接包含dist/dialog-polyfill.js脚本,该脚本公开了一个dialogPolyfill函数。 import (es模块) require (commonjs / node) // direct import (script module, deno) import dialogPolyfill from './node_modules/dialog-polyfill/dist/dialog-polyfill.esm.js' ; // *OR* // modern es modules with rollu
【文件预览】:
dialog-polyfill-master
----.gitignore(23B)
----test.html(2KB)
----package.json(920B)
----package-lock.json(55KB)
----dialog-polyfill.css(636B)
----dist()
--------dialog-polyfill.css(636B)
--------dialog-polyfill.js(28KB)
--------dialog-polyfill.esm.js(27KB)
----LICENSE(2KB)
----index.js(27KB)
----README.md(4KB)
----tests()
--------dialog-recentering.html(2KB)
--------form.html(1KB)
--------respect-positioned-dialog.html(1KB)
--------backdrop.html(875B)
--------modal-dialog-stacking.html(2KB)
--------resources()
--------modal-dialog.html(2KB)
--------actionbar.html(4KB)
--------fancy-modal-dialog.html(6KB)
--------stacking.html(992B)
--------dialog-centering.html(1KB)
----index.html(8KB)
----suite.js(30KB)
----test-invalid.html(26B)
----.npmignore(37B)
----index.d.ts(483B)

网友评论