AXA 模式库
这个包包括所有AXA B2C浏览器的多填充. 它包括两种捆绑:
- 用于 IE11 + 自定义元素的套装(短: 中 英(中文(简体) )
- 用于尚不支持自定义元素的现代浏览器套装.
使用量
安装软件包 :
npm install @axa-ch/patterns-library-polyfill
对于"纯HTML"一页中的IE11 + CE支持:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Your awesome title</title>
</head>
<body>
<script src="node_modules/@axa-ch/patterns-library-polyfill/dist/index.js"></script>
<!-- HERE you will load your other PLIB components -->
</body>
</html>
对于典型前端堆栈中的 IE11 + CE 支持:
import '@axa-ch/patterns-library-polyfill';
// rest of your code here
对于“纯 HTML”页面中的现代浏览器支持 :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Your awesome title</title>
</head>
<body>
<script src="node_modules/@axa-ch/patterns-library-polyfill/dist/index.webcomponents.js"></script>
<!-- HERE you will load your other PLIB components -->
</body>
</html>
对于典型前端堆栈中的现代浏览器支持:
import '@axa-ch/patterns-library-polyfill/index.webcomponents';
// rest of your code here