@baic/yolk-cli 2.1.0-alpha.49 → 2.1.0-alpha.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baic/yolk-cli",
3
- "version": "2.1.0-alpha.49",
3
+ "version": "2.1.0-alpha.51",
4
4
  "author": "Baic <303394539@qq.com>",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -40,5 +40,5 @@
40
40
  "publishConfig": {
41
41
  "access": "public"
42
42
  },
43
- "gitHead": "65dc2621a11749c8906b811c6123bb7f5bd177e8"
43
+ "gitHead": "543fc75c8bc0f2bd693adb508919086d9e5f8b71"
44
44
  }
@@ -1,33 +1 @@
1
- declare module '*.png';
2
- declare module '*.gif';
3
- declare module '*.jpg';
4
- declare module '*.jpeg';
5
- declare module '*.svg' {
6
- export function ReactComponent(
7
- props: React.SVGProps<SVGSVGElement>,
8
- ): React.ReactElement;
9
- const url: string;
10
- export default url;
11
- }
12
- declare module '*.css';
13
- declare module '*.less';
14
- declare module '*.scss';
15
- declare module '*.sass';
16
- declare module '*.styl';
17
-
18
- // @ts-ignore
19
- declare const process: NodeJS.Process & {
20
- env: {
21
- TARO_ENV:
22
- | 'weapp'
23
- | 'swan'
24
- | 'alipay'
25
- | 'h5'
26
- | 'rn'
27
- | 'tt'
28
- | 'quickapp'
29
- | 'qq'
30
- | 'jd';
31
- [key: string]: any;
32
- };
33
- };
1
+ import "@baic/yolk-taro/typings";
@@ -1,3 +1,12 @@
1
+ import { Form, FormItem, Input, useForm } from '@baic/yolk-miniprogram';
1
2
  import * as React from 'react';
2
- import { Input } from '@baic/yolk-miniprogram';
3
- export default () => <Input />;
3
+ export default () => {
4
+ const [form] = useForm();
5
+ return (
6
+ <Form form={form}>
7
+ <FormItem name="input" rules="required">
8
+ <Input />
9
+ </FormItem>
10
+ </Form>
11
+ );
12
+ };
@@ -1,5 +1,5 @@
1
1
  import { View } from '@tarojs/components';
2
2
 
3
- import style from './index.module.scss';
3
+ import style from './index.scss';
4
4
 
5
5
  export default () => <View className={style.page}>Hello world</View>;
@@ -1,5 +0,0 @@
1
- declare const styles: {
2
- readonly "page": string;
3
- };
4
- export = styles;
5
-
@@ -1,5 +0,0 @@
1
- declare const styles: {
2
- readonly "page": string;
3
- };
4
- export = styles;
5
-