From 83e2c84d3dcc5a51519b29ba1be7715863bf6b02 Mon Sep 17 00:00:00 2001 From: ringosix Date: Tue, 24 Aug 2021 11:37:26 +0800 Subject: [PATCH] feat(admin): input --- .../components/components/input-component.tsx | 112 ++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100644 packages/admin/src/components/components/input-component.tsx diff --git a/packages/admin/src/components/components/input-component.tsx b/packages/admin/src/components/components/input-component.tsx new file mode 100644 index 000000000..85836530e --- /dev/null +++ b/packages/admin/src/components/components/input-component.tsx @@ -0,0 +1,112 @@ +import { WeElement, h, tag } from 'omi' +import { tw, sheet } from 'omi-twind' + +import '@omiu/input' +import '@omiu/icon/ac-unit-outlined' + +import '../docs/admin-docs' +import './code-demo' +import './code-demo/container' + +interface Props { } + +const tagName = 'input-component' +declare global { + namespace JSX { + interface IntrinsicElements { + [tagName]: Omi.Props & Props + } + } +} + +@tag(tagName) +export default class extends WeElement { + + static css = [sheet.target, `o-input{margin-top:10px;}`] + + install() { } + + render() { + return ( + + + + +\`\`\` + `} + > +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+ + + + + + + + + +\`\`\` + `} + > +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+ +
+ ) + } +}