import * as css from '@material/layout-grid/mdc-layout-grid.scss' export default css // import { tag, WeElement, h, extractClass, classNames } from 'omi' // import * as css from './index.scss' // import { domReady } from '../util/dom-ready' // //@ts-ignore // import '../theme.ts' // interface Props { // } // interface Data { // } // const parser = new DOMParser() // @tag('m-layout-grid') // class LayoutGrid extends WeElement{ // static css = css // // // } // static propTypes = { // alignLeft: Boolean, // alignRight: Boolean // } // installed() { // if (!this.props.children) { // domReady(() => { // this.update() // }) // } // } // renderChild(child) { // if (child.childNodes) { // let arr = Array.prototype.slice.call(child.childNodes, 0) // arr = arr.filter((item) => { // return item.nodeName === 'cell' // }) // if (arr.length > 0) { // return
//
// {arr.map(item => { // return this.renderChild(item) // })} //
//
// } else { // const cell =
// for (let i = 0, len = child.childNodes.length; i < len; i++) { // if (child.childNodes[i].nodeType === 3) { // cell.children.push(child.childNodes[i].nodeValue) // } else { // cell.children.push(processNode(child.childNodes[i])) // } // } // return cell // } // } else { // if (child.children[0] && child.children[0].nodeName === 'cell') { // return
//
// {child.children.map(item => { // return this.renderChild(item) // })} //
//
// } else { // return
{child.children}
// } // } // } // render(props) { // let arr = props.children // if (!this.innerHTML.trim()) return // if (!arr) { // const doc = parser.parseFromString(`
${this.innerHTML}
`, "text/xml"); // arr = Array.prototype.slice.call(doc.childNodes[0].childNodes, 0) // arr = arr.filter((item) => { // return item.nodeName === 'cell' // }) // } // //dom -> vdom // return ( //
//
// {arr.map(item => { // return this.renderChild(item) // })} //
//
// ) // } // } // function processNode(node) { // if (node.nodeType === 1) { // var i, child, attributes = {}, children = []; // for (i = 0; (child = node.attributes[i]); ++i) { // attributes[child.nodeName] = child.nodeValue; // } // for (i = 0; (child = node.childNodes[i]); ++i) { // children.push(processNode(child)); // } // return { // nodeName: node.tagName, // attributes, // children // } // } // if (node.nodeType === 3) { // return node.nodeValue; // } // } // export { css }