index.coffee 682 B

123456789101112131415161718192021
  1. # app/components/UI/AppLoader/index.coffee
  2. # Добавление стилей компонента
  3. if globalThis.stylFns and globalThis.stylFns['app/components/UI/AppLoader/index.styl']
  4. styleElement = document.createElement('style')
  5. styleElement.type = 'text/css'
  6. styleElement.textContent = globalThis.stylFns['app/components/UI/AppLoader/index.styl']
  7. document.head.appendChild(styleElement)
  8. else
  9. log '⚠️ Стили лоадера не найдены'
  10. module.exports =
  11. name: 'app-loader'
  12. props:
  13. loading:
  14. type: Boolean
  15. default: false
  16. render: (new Function '_ctx', '_cache', globalThis.renderFns['app/components/UI/AppLoader/index.pug'])()