taro-form-react 0.2.15 → 0.2.16

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/README.md CHANGED
@@ -21,6 +21,8 @@ import From from "taro-form-react";
21
21
  // 样式只需要在入口文件引入一次
22
22
  // 包含 Label 和一些简单布局样式
23
23
  import "taro-form-react/dist/styles/index.scss";
24
+ // 或者使用 css
25
+ import "taro-form-react/dist/styles/index.css";
24
26
 
25
27
  import { Input, Button } from "@tarojs/components";
26
28
 
@@ -0,0 +1,87 @@
1
+ .tfr-form-item-container {
2
+ display: flex;
3
+ flex-direction: column;
4
+ justify-content: start;
5
+ width: 100%;
6
+ box-sizing: border-box;
7
+ }
8
+
9
+ .tfr-form-item-container-horizontal {
10
+ align-items: flex-end;
11
+ }
12
+
13
+ .tfr-form-item-inner {
14
+ position: relative;
15
+ display: flex;
16
+ width: 100%;
17
+ gap: 16rpx;
18
+ box-sizing: border-box;
19
+ }
20
+
21
+ .tfr-form-item-inner-horizontal {
22
+ flex-direction: row;
23
+ align-items: start;
24
+ justify-content: start;
25
+ }
26
+
27
+ .tfr-form-item-inner-vertical {
28
+ flex-direction: column;
29
+ align-items: start;
30
+ justify-content: start;
31
+ }
32
+
33
+ .tfr-form-item-error-text {
34
+ color: #FF4D4F;
35
+ font-size: 28rpx;
36
+ margin-top: 8rpx;
37
+ box-sizing: border-box;
38
+ }
39
+
40
+ .tfr-form-label {
41
+ display: flex;
42
+ flex-direction: row;
43
+ align-items: center;
44
+ position: relative;
45
+ }
46
+
47
+ .tfr-form-label-no-asterisk-space {
48
+ left: -10rpx;
49
+ }
50
+
51
+ .tfr-form-label-label {
52
+ font-size: 28rpx;
53
+ display: inline-block;
54
+ position: relative;
55
+ white-space: nowrap;
56
+ box-sizing: border-box;
57
+ }
58
+
59
+ .tfr-form-label-label::before {
60
+ content: '*';
61
+ color: #FF4D4F;
62
+ margin-right: 4rpx;
63
+ font-size: 28rpx;
64
+ font-family: 'SimSun', 'sans-serif';
65
+ }
66
+
67
+ .tfr-form-label-label.tfr-small.tfr-show-asterisk::before {
68
+ display: inline-block;
69
+ }
70
+
71
+ .tfr-form-label-label.tfr-small.tfr-hide-asterisk::before {
72
+ display: none;
73
+ }
74
+
75
+ .tfr-form-label-label.tfr-normal.tfr-show-asterisk::before {
76
+ opacity: 1;
77
+ }
78
+
79
+ .tfr-form-label-label.tfr-normal.tfr-hide-asterisk::before {
80
+ opacity: 0;
81
+ }
82
+
83
+ .tfr-form-label-colon {
84
+ font-size: 28rpx;
85
+ position: relative;
86
+ white-space: nowrap;
87
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "taro-form-react",
3
3
  "description": "A form component for Taro 3.x based on React",
4
- "version": "0.2.15",
4
+ "version": "0.2.16",
5
5
  "browser": "dist/index.umd.js",
6
6
  "module": "dist/index.esm.js",
7
7
  "main": "dist/index.js",