Created
October 21, 2018 09:58
-
-
Save gmp26/b01daec3df146dd5aff67d3b615d4cc6 to your computer and use it in GitHub Desktop.
reduced version of cljsjs.antd for use with shadow-cljs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns cljsjs.antd | |
(:require [goog.object :as gobj] | |
["antd/es/affix" :default ant-affix] | |
["antd/es/button" :default ant-button] | |
["antd/es/col" :default ant-col] | |
["antd/es/icon" :default ant-icon] | |
["antd/es/layout" :default ant-layout] | |
["antd/es/locale-provider/en_GB" :default ant-locale-provider] | |
["antd/es/row" :default ant-row] | |
["moment" :as moment] | |
)) | |
; Recreate antd with only those widgets we use | |
#_(def antd #js {:Button (gobj/get ant-button "default") | |
:LocaleProvider (gobj/get ant-locale-provider "default")}) | |
(def antd #js {:Affix ant-affix | |
:Button ant-button | |
:Col ant-col | |
:Icon ant-icon | |
:Layout ant-layout | |
:LocaleProvider ant-locale-provider | |
:Row ant-row | |
}) | |
(js/goog.exportSymbol "antd" antd) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment