tdesign-mobile-vue
Version:
tdesign-mobile-vue
1 lines • 918 B
Source Map (JSON)
{"version":3,"file":"injectStyle.mjs","sources":["../../../../src/_common/js/utils/injectStyle.ts"],"sourcesContent":["const injectStyle = (style: string) => {\n const styleElement = document.createElement('style');\n let styleSheet = null;\n document.head.appendChild(styleElement);\n styleSheet = styleElement.sheet;\n styleSheet.insertRule(style, styleSheet.cssRules.length);\n};\n\nexport default injectStyle;\n"],"names":["injectStyle","style","styleElement","document","createElement","styleSheet","head","appendChild","sheet","insertRule","cssRules","length"],"mappings":";;;;;;AAAA,IAAMA,WAAA,GAAc,SAAdA,WAAAA,CAAeC,KAAkB,EAAA;AAC/B,EAAA,IAAAC,YAAA,GAAeC,QAAS,CAAAC,aAAA,CAAc,OAAO,CAAA,CAAA;EACnD,IAAIC,UAAa,GAAA,IAAA,CAAA;AACRF,EAAAA,QAAA,CAAAG,IAAA,CAAKC,YAAYL,YAAY,CAAA,CAAA;EACtCG,UAAA,GAAaH,YAAa,CAAAM,KAAA,CAAA;EAC1BH,UAAA,CAAWI,UAAW,CAAAR,KAAA,EAAOI,UAAW,CAAAK,QAAA,CAASC,MAAM,CAAA,CAAA;AACzD;;;;"}