easy3wui 1.5.83 → 1.5.85-beta.1

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.
@@ -1,120 +1,120 @@
1
- @import '~antd/lib/style/themes/default.less';
2
-
3
- .tagSelect {
4
- user-select: none;
5
- margin-left: -8px;
6
- position: relative;
7
- overflow: hidden;
8
- max-height: 32px;
9
- // line-height: 32px;
10
- transition: all 0.3s;
11
- :global {
12
- .ant-tag {
13
- padding: 0 8px;
14
- margin-right: 24px;
15
- font-size: @font-size-base;
16
- }
17
- }
18
- &.expanded {
19
- transition: all 0.3s;
20
- max-height: 800px;
21
- }
22
- .trigger {
23
- position: absolute;
24
- top: 0;
25
- right: 0;
26
- i {
27
- font-size: 12px;
28
- }
29
- }
30
- &.hasExpandTag {
31
- padding-right: 50px;
32
- }
33
- }
34
-
35
- .standardFormRow {
36
- border-bottom: 1px dashed @border-color-split;
37
- // padding-bottom: 8px;
38
- // margin-bottom: 8px;
39
- display: flex;
40
- :global {
41
- .ant-form-item {
42
- margin-right: 24px;
43
- }
44
- .ant-form-item-label label {
45
- color: @text-color;
46
- margin-right: 0;
47
- }
48
- .ant-form-item-label,
49
- .ant-form-item-control {
50
- padding: 0;
51
- line-height: 32px;
52
- }
53
- }
54
- .label {
55
- // color: @heading-color;
56
- // color: rgb(173,124,89);
57
- font-size: @font-size-base;
58
- padding-right: 12px;
59
- margin-right: 12px;
60
- // margin-right: 24px;
61
- background:#F8F8FF;
62
- // background: rgb(84, 104, 178);
63
- // opacity: 0.5;
64
- flex: 0 0 auto;
65
- text-align: right;
66
- & > span {
67
- display: inline-block;
68
- height: 32px;
69
- line-height: 32px;
70
- &:after {
71
- content: '|';
72
- }
73
- }
74
- // border-radius: 2px;
75
- & > a {
76
- color: @heading-color;
77
- // color: rgb(255, 255, 255);
78
- display: inline-block;
79
- height: 32px;
80
- line-height: 32px;
81
- // width: 100%;
82
- cursor: pointer;
83
- }
84
- }
85
- .content {
86
- flex: 1 1 0;
87
- :global {
88
- .ant-form-item:last-child {
89
- margin-right: 0;
90
- }
91
- }
92
- }
93
- }
94
-
95
- .standardFormRowLast {
96
- border: none;
97
- padding-bottom: 0;
98
- margin-bottom: 0;
99
- }
100
-
101
- .standardFormRowBlock {
102
- :global {
103
- .ant-form-item,
104
- div.ant-form-item-control-wrapper {
105
- display: block;
106
- }
107
- }
108
- }
109
-
110
- .standardFormRowGrid {
111
- :global {
112
- .ant-form-item,
113
- div.ant-form-item-control-wrapper {
114
- display: block;
115
- }
116
- .ant-form-item-label {
117
- float: left;
118
- }
119
- }
120
- }
1
+ @import '~antd/lib/style/themes/default.less';
2
+
3
+ .tagSelect {
4
+ user-select: none;
5
+ margin-left: -8px;
6
+ position: relative;
7
+ overflow: hidden;
8
+ max-height: 32px;
9
+ // line-height: 32px;
10
+ transition: all 0.3s;
11
+ :global {
12
+ .ant-tag {
13
+ padding: 0 8px;
14
+ margin-right: 24px;
15
+ font-size: @font-size-base;
16
+ }
17
+ }
18
+ &.expanded {
19
+ transition: all 0.3s;
20
+ max-height: 800px;
21
+ }
22
+ .trigger {
23
+ position: absolute;
24
+ top: 0;
25
+ right: 0;
26
+ i {
27
+ font-size: 12px;
28
+ }
29
+ }
30
+ &.hasExpandTag {
31
+ padding-right: 50px;
32
+ }
33
+ }
34
+
35
+ .standardFormRow {
36
+ border-bottom: 1px dashed @border-color-split;
37
+ // padding-bottom: 8px;
38
+ // margin-bottom: 8px;
39
+ display: flex;
40
+ :global {
41
+ .ant-form-item {
42
+ margin-right: 24px;
43
+ }
44
+ .ant-form-item-label label {
45
+ color: @text-color;
46
+ margin-right: 0;
47
+ }
48
+ .ant-form-item-label,
49
+ .ant-form-item-control {
50
+ padding: 0;
51
+ line-height: 32px;
52
+ }
53
+ }
54
+ .label {
55
+ // color: @heading-color;
56
+ // color: rgb(173,124,89);
57
+ font-size: @font-size-base;
58
+ padding-right: 12px;
59
+ margin-right: 12px;
60
+ // margin-right: 24px;
61
+ background:#F8F8FF;
62
+ // background: rgb(84, 104, 178);
63
+ // opacity: 0.5;
64
+ flex: 0 0 auto;
65
+ text-align: right;
66
+ & > span {
67
+ display: inline-block;
68
+ height: 32px;
69
+ line-height: 32px;
70
+ &:after {
71
+ content: '|';
72
+ }
73
+ }
74
+ // border-radius: 2px;
75
+ & > a {
76
+ color: @heading-color;
77
+ // color: rgb(255, 255, 255);
78
+ display: inline-block;
79
+ height: 32px;
80
+ line-height: 32px;
81
+ // width: 100%;
82
+ cursor: pointer;
83
+ }
84
+ }
85
+ .content {
86
+ flex: 1 1 0;
87
+ :global {
88
+ .ant-form-item:last-child {
89
+ margin-right: 0;
90
+ }
91
+ }
92
+ }
93
+ }
94
+
95
+ .standardFormRowLast {
96
+ border: none;
97
+ padding-bottom: 0;
98
+ margin-bottom: 0;
99
+ }
100
+
101
+ .standardFormRowBlock {
102
+ :global {
103
+ .ant-form-item,
104
+ div.ant-form-item-control-wrapper {
105
+ display: block;
106
+ }
107
+ }
108
+ }
109
+
110
+ .standardFormRowGrid {
111
+ :global {
112
+ .ant-form-item,
113
+ div.ant-form-item-control-wrapper {
114
+ display: block;
115
+ }
116
+ .ant-form-item-label {
117
+ float: left;
118
+ }
119
+ }
120
+ }
@@ -43,21 +43,21 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd
43
43
  var Search = _input2['default'].Search;
44
44
  var TreeNode = _tree2['default'].TreeNode;
45
45
 
46
- /**
47
- * props参数
48
- * arrData: 树数据源 必须 Array
49
- * objTreeProps: 树配置参数 非必须 Object
50
- * 另加属性:touchRenderNode, titleField = 'title', countField = 'count', keyField = 'key'
51
- * touchRenderNode: 自定义渲染节点 非必须 Function 返回值:{ title, count, key, isLeaf, expanded, selected, loading }
52
- * titleField: 节点标题字段 非必须 String 默认值:'title'
53
- * countField: 节点计数字段 非必须 String 默认值:'count'
54
- * keyField: 节点key字段 非必须 String 默认值:'key'
55
- * objSearchProps: 搜索配置参数 非必须 Object
56
- * 另加属性:searchFlag = true, onSearchCallback
57
- * searchFlag: 是否开启搜索功能 非必须 Boolean 默认值:true
58
- * onSearchCallback: 搜索回调函数 非必须 Function 返回值:(arrDataVisible, searchValue, expandedKeys)
59
- * bidPureComponent: 绑定组件方法 非必须 Function
60
- * intUpdateCount: 数据更新次数 必须 Number
46
+ /**
47
+ * props参数
48
+ * arrData: 树数据源 必须 Array
49
+ * objTreeProps: 树配置参数 非必须 Object
50
+ * 另加属性:touchRenderNode, titleField = 'title', countField = 'count', keyField = 'key'
51
+ * touchRenderNode: 自定义渲染节点 非必须 Function 返回值:{ title, count, key, isLeaf, expanded, selected, loading }
52
+ * titleField: 节点标题字段 非必须 String 默认值:'title'
53
+ * countField: 节点计数字段 非必须 String 默认值:'count'
54
+ * keyField: 节点key字段 非必须 String 默认值:'key'
55
+ * objSearchProps: 搜索配置参数 非必须 Object
56
+ * 另加属性:searchFlag = true, onSearchCallback
57
+ * searchFlag: 是否开启搜索功能 非必须 Boolean 默认值:true
58
+ * onSearchCallback: 搜索回调函数 非必须 Function 返回值:(arrDataVisible, searchValue, expandedKeys)
59
+ * bidPureComponent: 绑定组件方法 非必须 Function
60
+ * intUpdateCount: 数据更新次数 必须 Number
61
61
  */
62
62
 
63
63
  var Easy3wTree = function (_Component) {
package/package.json CHANGED
@@ -1,119 +1,122 @@
1
- {
2
- "name": "easy3wui",
3
- "version": "1.5.83",
4
- "description": "easy3wui components for react",
5
- "keywords": [
6
- "react",
7
- "easy3wui"
8
- ],
9
- "homepage": "https://github.com/alsmill/easy3wUI",
10
- "maintainers": [
11
- "chenc@easy3w.com",
12
- "zhanggl@easy3w.com"
13
- ],
14
- "repository": {
15
- "type": "git",
16
- "url": "git@github.com:alsmill/easy3wUI.git"
17
- },
18
- "bugs": {
19
- "url": "https://github.com/alsmill/easy3wUI/issues"
20
- },
21
- "files": [
22
- "lib",
23
- "assets/*.css"
24
- ],
25
- "main": "lib/index",
26
- "license": "上海同在互联网科技有限公司 版权所有",
27
- "config": {
28
- "port": 8006,
29
- "entry": {
30
- "easy3wui": [
31
- "./assets/index.less",
32
- "./src/index.js"
33
- ]
34
- }
35
- },
36
- "scripts": {
37
- "build": "rc-tools run build",
38
- "compile": "rc-tools run compile --babel-runtime",
39
- "gh-pages": "rc-tools run gh-pages",
40
- "start": "rc-tools --max_old_space_size=4096 run server",
41
- "pub": "rc-tools run pub",
42
- "lint": "rc-tools run lint",
43
- "karma": "rc-test run karma",
44
- "saucelabs": "rc-test run saucelabs",
45
- "test": "rc-test run test",
46
- "chrome-test": "rc-test run chrome-test",
47
- "coverage": "rc-test run coverage"
48
- },
49
- "devDependencies": {
50
- "axios": "^0.17.1",
51
- "babel-eslint": "^8.0.1",
52
- "babel-jest": "^21.0.0",
53
- "babel-plugin-dva-hmr": "^0.3.2",
54
- "babel-plugin-import": "^1.2.1",
55
- "babel-plugin-transform-class-properties": "^6.24.1",
56
- "babel-plugin-transform-decorators-legacy": "^1.3.4",
57
- "babel-plugin-transform-runtime": "^6.9.0",
58
- "babel-preset-env": "^1.6.1",
59
- "babel-preset-react": "^6.24.1",
60
- "babel-runtime": "^6.26.0",
61
- "cross-env": "^5.1.1",
62
- "cross-port-killer": "^1.0.1",
63
- "dva": "^2.1.0",
64
- "enzyme": "^3.1.0",
65
- "enzyme-adapter-react-16": "^1.0.2",
66
- "eslint": "^4.8.0",
67
- "eslint-config-airbnb": "^16.0.0",
68
- "eslint-plugin-babel": "^4.0.0",
69
- "eslint-plugin-compat": "^2.1.0",
70
- "eslint-plugin-import": "^2.2.0",
71
- "eslint-plugin-jsx-a11y": "^6.0.0",
72
- "eslint-plugin-markdown": "^1.0.0-beta.6",
73
- "eslint-plugin-react": "^7.0.1",
74
- "gh-pages": "^1.0.0",
75
- "husky": "^0.14.3",
76
- "jest": "^21.0.1",
77
- "lint-staged": "^4.3.0",
78
- "mockjs": "^1.0.1-beta3",
79
- "numeral": "^2.0.6",
80
- "crypto-js": "4.0.0",
81
- "pre-commit": "1.x",
82
- "prettier": "^1.9.0",
83
- "pro-download": "^1.0.0",
84
- "prop-types": "^15.5.8",
85
- "rc-test": "^6.0.8",
86
- "rc-tools": "^7.0.2",
87
- "rc-trigger": "^2.2.2",
88
- "react": "16.8.6",
89
- "react-container-query": "^0.11.0",
90
- "react-document-title": "^2.0.3",
91
- "react-dom": "16.8.6",
92
- "react-test-renderer": "^16.0.0",
93
- "redbox-react": "^1.3.2",
94
- "roadhog": "^2.5.0-beta.4",
95
- "roadhog-api-doc": "^1.0.3",
96
- "rollbar": "^2.3.1",
97
- "stylelint": "^8.1.0",
98
- "stylelint-config-standard": "^17.0.0"
99
- },
100
- "pre-commit": [
101
- "lint"
102
- ],
103
- "dependencies": {
104
- "@hanyk/rc-viewer": "^0.0.3",
105
- "antd": "3.24.2",
106
- "braft-editor": "^2.3.8",
107
- "braft-extensions": "^0.1.1",
108
- "lodash": "4.17.11",
109
- "react-images": "^1.0.0",
110
- "react-number-format": "^4.3.1",
111
- "react-number-input": "^15.5.1",
112
- "react-pdf": "^4.0.5",
113
- "react-zmage": "^0.8.5",
114
- "spark-md5": "^3.0.0",
115
- "superagent": "^3.8.3",
116
- "react-data-grid": "6.0.1",
117
- "react-data-grid-addons": "6.0.1"
118
- }
119
- }
1
+ {
2
+ "name": "easy3wui",
3
+ "version": "1.5.85-beta.1",
4
+ "description": "easy3wui components for react",
5
+ "keywords": [
6
+ "react",
7
+ "easy3wui"
8
+ ],
9
+ "homepage": "https://github.com/alsmill/easy3wUI",
10
+ "maintainers": [
11
+ "chenc@easy3w.com",
12
+ "zhanggl@easy3w.com"
13
+ ],
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git@github.com:alsmill/easy3wUI.git"
17
+ },
18
+ "bugs": {
19
+ "url": "https://github.com/alsmill/easy3wUI/issues"
20
+ },
21
+ "files": [
22
+ "lib",
23
+ "assets/*.css"
24
+ ],
25
+ "overrides": {
26
+ "graceful-fs": "^4.2.11"
27
+ },
28
+ "main": "lib/index",
29
+ "license": "上海同在互联网科技有限公司 版权所有",
30
+ "config": {
31
+ "port": 8006,
32
+ "entry": {
33
+ "easy3wui": [
34
+ "./assets/index.less",
35
+ "./src/index.js"
36
+ ]
37
+ }
38
+ },
39
+ "scripts": {
40
+ "build": "rc-tools run build",
41
+ "compile": "rc-tools run compile --babel-runtime",
42
+ "gh-pages": "rc-tools run gh-pages",
43
+ "start": "rc-tools --max_old_space_size=4096 run server",
44
+ "pub": "rc-tools run pub",
45
+ "lint": "rc-tools run lint",
46
+ "karma": "rc-test run karma",
47
+ "saucelabs": "rc-test run saucelabs",
48
+ "test": "rc-test run test",
49
+ "chrome-test": "rc-test run chrome-test",
50
+ "coverage": "rc-test run coverage"
51
+ },
52
+ "devDependencies": {
53
+ "axios": "^0.17.1",
54
+ "babel-eslint": "^8.0.1",
55
+ "babel-jest": "^21.0.0",
56
+ "babel-plugin-dva-hmr": "^0.3.2",
57
+ "babel-plugin-import": "^1.2.1",
58
+ "babel-plugin-transform-class-properties": "^6.24.1",
59
+ "babel-plugin-transform-decorators-legacy": "^1.3.4",
60
+ "babel-plugin-transform-runtime": "^6.9.0",
61
+ "babel-preset-env": "^1.6.1",
62
+ "babel-preset-react": "^6.24.1",
63
+ "babel-runtime": "^6.26.0",
64
+ "cross-env": "^5.1.1",
65
+ "cross-port-killer": "^1.0.1",
66
+ "dva": "^2.1.0",
67
+ "enzyme": "^3.1.0",
68
+ "enzyme-adapter-react-16": "^1.0.2",
69
+ "eslint": "^4.8.0",
70
+ "eslint-config-airbnb": "^16.0.0",
71
+ "eslint-plugin-babel": "^4.0.0",
72
+ "eslint-plugin-compat": "^2.1.0",
73
+ "eslint-plugin-import": "^2.2.0",
74
+ "eslint-plugin-jsx-a11y": "^6.0.0",
75
+ "eslint-plugin-markdown": "^1.0.0-beta.6",
76
+ "eslint-plugin-react": "^7.0.1",
77
+ "gh-pages": "^1.0.0",
78
+ "husky": "^0.14.3",
79
+ "jest": "^21.0.1",
80
+ "lint-staged": "^4.3.0",
81
+ "mockjs": "^1.0.1-beta3",
82
+ "numeral": "^2.0.6",
83
+ "crypto-js": "4.0.0",
84
+ "pre-commit": "1.x",
85
+ "prettier": "^1.9.0",
86
+ "pro-download": "^1.0.0",
87
+ "prop-types": "^15.5.8",
88
+ "rc-test": "^6.0.8",
89
+ "rc-tools": "^7.0.2",
90
+ "rc-trigger": "^2.2.2",
91
+ "react": "16.8.6",
92
+ "react-container-query": "^0.11.0",
93
+ "react-document-title": "^2.0.3",
94
+ "react-dom": "16.8.6",
95
+ "react-test-renderer": "^16.0.0",
96
+ "redbox-react": "^1.3.2",
97
+ "roadhog": "^2.5.0-beta.4",
98
+ "roadhog-api-doc": "^1.0.3",
99
+ "rollbar": "^2.3.1",
100
+ "stylelint": "^8.1.0",
101
+ "stylelint-config-standard": "^17.0.0"
102
+ },
103
+ "pre-commit": [
104
+ "lint"
105
+ ],
106
+ "dependencies": {
107
+ "@hanyk/rc-viewer": "^0.0.3",
108
+ "antd": "3.24.2",
109
+ "braft-editor": "^2.3.8",
110
+ "braft-extensions": "^0.1.1",
111
+ "lodash": "4.17.11",
112
+ "react-images": "^1.0.0",
113
+ "react-number-format": "^4.3.1",
114
+ "react-number-input": "^15.5.1",
115
+ "react-pdf": "^4.0.5",
116
+ "react-zmage": "^0.8.5",
117
+ "spark-md5": "^3.0.0",
118
+ "superagent": "^3.8.3",
119
+ "react-data-grid": "6.0.1",
120
+ "react-data-grid-addons": "6.0.1"
121
+ }
122
+ }