@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 +2 -2
- package/templates/miniprogram/global.d.ts +1 -33
- package/templates/miniprogram/src/pages/demo/examples/Input.tsx +11 -2
- package/templates/miniprogram/src/pages/demo/{index.module.scss → index.scss} +0 -0
- package/templates/miniprogram/src/pages/index/{index.module.scss → index.scss} +0 -0
- package/templates/miniprogram/src/pages/index/index.tsx +1 -1
- package/templates/miniprogram/src/pages/demo/index.module.scss.d.ts +0 -5
- package/templates/miniprogram/src/pages/index/index.module.scss.d.ts +0 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baic/yolk-cli",
|
|
3
|
-
"version": "2.1.0-alpha.
|
|
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": "
|
|
43
|
+
"gitHead": "543fc75c8bc0f2bd693adb508919086d9e5f8b71"
|
|
44
44
|
}
|
|
@@ -1,33 +1 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
3
|
-
|
|
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
|
+
};
|
|
File without changes
|
|
File without changes
|