form-driver 0.1.10 → 0.1.11

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/dist/m3.css CHANGED
@@ -134,7 +134,6 @@ table.M3_table tr:last-child td {
134
134
  .ant-rate .ant-rate-star {
135
135
  flex: 1;
136
136
  }
137
-
138
137
  .m3-nps-wrapper .m3-nps-tip {
139
138
  overflow: hidden;
140
139
  text-align: center;
package/es/m3.css CHANGED
@@ -134,7 +134,6 @@ table.M3_table tr:last-child td {
134
134
  .ant-rate .ant-rate-star {
135
135
  flex: 1;
136
136
  }
137
-
138
137
  .m3-nps-wrapper .m3-nps-tip {
139
138
  overflow: hidden;
140
139
  text-align: center;
package/lib/m3.css CHANGED
@@ -134,7 +134,6 @@ table.M3_table tr:last-child td {
134
134
  .ant-rate .ant-rate-star {
135
135
  flex: 1;
136
136
  }
137
-
138
137
  .m3-nps-wrapper .m3-nps-tip {
139
138
  overflow: hidden;
140
139
  text-align: center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "form-driver",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "An efficient framework for creating forms.",
5
5
  "license": "MIT",
6
6
  "authors": [
@@ -5,4 +5,31 @@
5
5
  .ant-rate-star {
6
6
  flex: 1
7
7
  }
8
+ }
9
+
10
+ .m3-nps-wrapper {
11
+ .m3-nps-tip {
12
+ overflow: hidden;
13
+ text-align: center;
14
+ padding-left: 15px;
15
+ padding-right: 15px;
16
+ span:first-child {
17
+ float: left;
18
+ }
19
+
20
+ span:last-child {
21
+ float: right;
22
+ }
23
+ }
24
+
25
+ .ant-rate {
26
+ display: flex !important;
27
+ width : 100%;
28
+
29
+ .ant-rate-star {
30
+ & > div {
31
+ text-align: center;
32
+ }
33
+ }
34
+ }
8
35
  }
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import _ from "lodash";
3
3
  import { BaseViewer } from "../../BaseViewer";
4
4
  import { Rate } from 'antd';
5
- import "./NPS.less";
5
+ import './ARate.less';
6
6
  import { MProp } from "../../../framework/Schema";
7
7
 
8
8
  /**
@@ -1,5 +1,5 @@
1
1
  import { BaseViewer } from "../../BaseViewer";
2
- import "./NPS.less";
2
+ import './ARate.less';
3
3
  import { MProp } from "../../../framework/Schema";
4
4
  /**
5
5
  * NPS 打分组件,基于 antd 的评分组件 https://ant.design/components/rate-cn/
@@ -1,26 +0,0 @@
1
- .m3-nps-wrapper {
2
- .m3-nps-tip {
3
- overflow: hidden;
4
- text-align: center;
5
- padding-left: 15px;
6
- padding-right: 15px;
7
- span:first-child {
8
- float: left;
9
- }
10
-
11
- span:last-child {
12
- float: right;
13
- }
14
- }
15
-
16
- .ant-rate {
17
- display: flex !important;
18
- width : 100%;
19
-
20
- .ant-rate-star {
21
- & > div {
22
- text-align: center;
23
- }
24
- }
25
- }
26
- }