Skip to content

Instantly share code, notes, and snippets.

View SuneBear's full-sized avatar

Shule Hsiung SuneBear

View GitHub Profile
class Sketch {
constructor() {
this.$canvas = document.createElement('CANVAS')
this.context = this.$canvas.getContext('2d')
this.$container = null
// Clock and progress
this.lastTime = 0
this.elapsedDelta = 0
@SuneBear
SuneBear / Field.jsx
Created February 21, 2019 05:41
Form Generator Component
import React from 'react'
import cx from 'classnames'
import { Form, Select, Input, Switch, DatePicker, InputNumber, Radio } from 'antd'
import { transformValue, getValidateRules, getValueFromEvent, getTrigger, getValuePropName } from './utils'
import { Upload } from 'mainComponents/Upload'
import { TopicSearchBox } from 'mainComponents/SearchBox'
import styles from './form.styl'
const Option = Select.Option
body {
font-family: var(--SanFrancisco);
}
.zu-top {
background: white;
border-top: 3px solid #b92b27;
/*#086ed5*/
box-shadow: 0 5px 2px -2px rgba(200,200,200,0.2);
border-bottom: none;