@indfnd/common 0.0.87 → 0.0.89

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.
Files changed (67) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/css/view-design/fonts/ionicons.svg +870 -0
  3. package/css/view-design/fonts/ionicons.ttf +0 -0
  4. package/css/view-design/fonts/ionicons.woff +0 -0
  5. package/css/view-design/fonts/ionicons.woff2 +0 -0
  6. package/css/view-design/iview.css +17232 -0
  7. package/dist/ind-common.es.js +172 -94
  8. package/dist/ind-common.umd.cjs +32 -42
  9. package/dist/styles/imgs/error-page/error-401.svg +1 -0
  10. package/dist/styles/imgs/error-page/error-404.svg +1 -0
  11. package/dist/styles/imgs/error-page/error-500.svg +1 -0
  12. package/dist/styles/imgs/logo.png +0 -0
  13. package/dist/styles/index.css +1 -1
  14. package/package.json +12 -3
  15. package/src/styles/common.less +170 -0
  16. package/src/styles/components/404.less +46 -0
  17. package/src/styles/components/button.less +34 -0
  18. package/src/styles/components/date-picker.less +31 -0
  19. package/src/styles/components/drawer.less +20 -0
  20. package/src/styles/components/dropdown.less +14 -0
  21. package/src/styles/components/excel-flow.less +72 -0
  22. package/src/styles/components/form.less +291 -0
  23. package/src/styles/components/index.less +15 -0
  24. package/src/styles/components/layout/basic-layout.less +238 -0
  25. package/src/styles/components/layout/collect.less +10 -0
  26. package/src/styles/components/layout/detail-view.less +88 -0
  27. package/src/styles/components/layout/full-screen.less +7 -0
  28. package/src/styles/components/layout/index.less +8 -0
  29. package/src/styles/components/layout/other-menu.less +142 -0
  30. package/src/styles/components/layout/page-view.less +101 -0
  31. package/src/styles/components/layout/sider-trigger.less +41 -0
  32. package/src/styles/components/layout/tags-nav.less +113 -0
  33. package/src/styles/components/login.less +47 -0
  34. package/src/styles/components/modal.less +29 -0
  35. package/src/styles/components/panel.less +31 -0
  36. package/src/styles/components/sign.less +27 -0
  37. package/src/styles/components/table.less +266 -0
  38. package/src/styles/components/tree.less +169 -0
  39. package/src/styles/components/upload.less +131 -0
  40. package/src/styles/index.less +5 -0
  41. package/src/styles/reset.less +55 -0
  42. package/src/styles/third/ag.less +117 -0
  43. package/src/styles/third/icons/sort-desc.svg +1 -0
  44. package/src/styles/third/icons/sort-up.svg +1 -0
  45. package/src/styles/third/icons/sorting.svg +1 -0
  46. package/src/styles/third/index.less +11 -0
  47. package/src/styles/third/view-design.less +321 -0
  48. package/src/styles/variables/base.less +8 -13
  49. package/src/styles/variables/index.less +3 -2
  50. package/src/styles/variables/theme/default/button.less +7 -0
  51. package/src/styles/variables/theme/default/common.less +25 -0
  52. package/src/styles/variables/theme/default/index.less +7 -0
  53. package/src/styles/variables/theme/default/layout.less +35 -0
  54. package/src/styles/variables/theme/default/table.less +33 -0
  55. package/src/styles/variables/theme/default/tag.less +3 -0
  56. package/src/styles/variables/theme/default/upload.less +3 -0
  57. package/src/styles/variables/theme/index.less +13 -0
  58. package/src/styles/variables/theme/small/button.less +7 -0
  59. package/src/styles/variables/theme/small/index.less +4 -0
  60. package/src/styles/variables/theme/small/layout.less +16 -0
  61. package/src/styles/variables/theme/small/table.less +13 -0
  62. package/src/styles/variables/theme/small/tag.less +3 -0
  63. package/dist/styles/imgs/head.png +0 -0
  64. package/dist/styles/imgs/headicon2.png +0 -0
  65. package/dist/styles/imgs/headlogo.png +0 -0
  66. package/src/styles/variables/theme1.less +0 -121
  67. package/src/styles/variables/theme2.less +0 -126
@@ -0,0 +1,88 @@
1
+ @menu-name-padding: 15px 28px 15px 30px; // 标题行padding
2
+ @menu-title-font-size: 20px;
3
+ @menu-title-color: #17233d;
4
+ @page-content-padding: 12px;
5
+
6
+ .ind-detail-view {
7
+ height: 100%;
8
+ background-color: var(--ind-bg-color-dark);
9
+ overflow: auto;
10
+
11
+ // position: relative;
12
+ .header {
13
+ display: flex;
14
+ align-items: center;
15
+ padding: @menu-name-padding;
16
+ // padding: var(--ind-page-padding);
17
+ border-bottom: 1px solid var(--ind-border-color);
18
+ background: white;
19
+ z-index: 14;
20
+
21
+ .title {
22
+ font-size: @menu-title-font-size;
23
+ font-weight: 500;
24
+ color: @menu-title-color;
25
+ }
26
+
27
+ .back-btn + .title {
28
+ margin-left: 8px;
29
+ }
30
+
31
+ .header-buttons {
32
+ flex-grow: 1;
33
+ display: flex;
34
+ justify-content: flex-end;
35
+ align-items: center;
36
+
37
+ .ivu-btn + .ivu-btn {
38
+ margin-left: 10px;
39
+ }
40
+ }
41
+ }
42
+
43
+ .content {
44
+ padding: @page-content-padding;
45
+ // padding: var(--ind-page-padding);
46
+ // TODO card
47
+ .ivu-card {
48
+ padding: 0px 8px;
49
+ }
50
+ .ivu-form {
51
+ background: white;
52
+ }
53
+ }
54
+
55
+ .function-wrapper {
56
+ display: flex;
57
+ justify-content: center;
58
+ padding: 6px 0;
59
+ width: 100%;
60
+ text-align: center;
61
+ border-top: 1px solid var(--ind-border-color);
62
+ background: #fff;
63
+
64
+ .ivu-btn + .ivu-btn {
65
+ margin-left: 10px;
66
+ }
67
+ }
68
+
69
+ &.has-padding {
70
+ .content-row {
71
+ padding: 16px 16px;
72
+ background-color: #fff;
73
+ }
74
+ }
75
+ }
76
+
77
+ .ind-detail-view .content .ivu-card {
78
+ padding: 0 0 !important;
79
+ overflow: hidden !important;
80
+ width: 100%;
81
+ .ivu-card-head {
82
+ padding: 14px 16px;
83
+ font-size: 16px;
84
+ color: #17233d;
85
+ font-weight: 500;
86
+ // line-height: 20px;
87
+ }
88
+ }
@@ -0,0 +1,7 @@
1
+ .ind-full-screen-btn-con {
2
+ .ivu-tooltip-rel {
3
+ i {
4
+ cursor: pointer;
5
+ }
6
+ }
7
+ }
@@ -0,0 +1,8 @@
1
+ @import './basic-layout.less';
2
+ @import './collect.less';
3
+ @import './detail-view.less';
4
+ @import './full-screen.less';
5
+ @import './other-menu.less';
6
+ @import './page-view.less';
7
+ @import './sider-trigger.less';
8
+ @import './tags-nav.less';
@@ -0,0 +1,142 @@
1
+ .ind-other-menu {
2
+ display: flex;
3
+ width: 100%;
4
+ border-top: 1px solid var(--menu-black-active-bg);
5
+ background: var(--menu-black-active-bg);
6
+
7
+ .other-menu-item {
8
+ width: 100%;
9
+ height: 40px;
10
+ line-height: 40px;
11
+ color: var(--menu-white-group-title-color);
12
+ text-align: center;
13
+ border-radius: 3px;
14
+ cursor: pointer;
15
+
16
+ &:hover {
17
+ color: var(--ind-primary-color);
18
+ }
19
+ }
20
+
21
+ &.ind-other-menu-collapsed {
22
+ display: block;
23
+
24
+ .other-menu-item {
25
+ border-top: 1px solid var(--ind-border-color);
26
+
27
+ .ivu-tooltip {
28
+ width: 100%;
29
+
30
+ .ivu-tooltip-rel {
31
+ width: 100%;
32
+ }
33
+
34
+ .ivu-tooltip-popper .ivu-tooltip-content {
35
+ .ivu-tooltip-arrow {
36
+ border-right-color: #fff;
37
+ }
38
+
39
+ .ivu-tooltip-inner {
40
+ background: #fff;
41
+ color: #495060;
42
+ }
43
+ }
44
+ }
45
+
46
+ .other-menu-icon {
47
+ font-size: 20px;
48
+ }
49
+
50
+ .other-menu-title {
51
+ font-size: 14px;
52
+ display: none;
53
+ }
54
+ }
55
+ }
56
+ }
57
+
58
+ .ind-other-menu-drawer-wrap {
59
+ .ivu-drawer {
60
+ // left: 256px;
61
+ height: calc(100% - 110px);
62
+ bottom: 0;
63
+ top: auto;
64
+
65
+ .other-menu-history {
66
+ .other-menu-history-item {
67
+ width: 100%;
68
+ height: 35px;
69
+ line-height: 35px;
70
+ position: relative;
71
+
72
+ .delete {
73
+ display: none;
74
+ position: absolute;
75
+ right: 15px;
76
+ top: 0px;
77
+ cursor: pointer;
78
+ }
79
+
80
+ &:hover {
81
+ .content {
82
+ cursor: pointer;
83
+ height: 38px;
84
+ font-weight: bold;
85
+ color: var(--ind-primary-color);
86
+ }
87
+
88
+ .delete {
89
+ display: inline;
90
+ }
91
+ }
92
+ }
93
+ }
94
+
95
+ .other-menu-collect {
96
+ .other-menu-collect-item {
97
+ width: 100%;
98
+ display: inline-block;
99
+ height: 35px;
100
+ line-height: 35px;
101
+ position: relative;
102
+
103
+ .delete {
104
+ display: none;
105
+ position: absolute;
106
+ right: 15px;
107
+ top: 0px;
108
+ z-index: 100;
109
+ cursor: pointer;
110
+ }
111
+
112
+ &:hover {
113
+ .content {
114
+ cursor: pointer;
115
+ color: var(--ind-primary-color);
116
+
117
+ .ivu-tooltip {
118
+ .ivu-tooltip-rel {
119
+ .ivu-icon {
120
+ // font-size: 43px;
121
+ }
122
+ }
123
+ }
124
+ }
125
+
126
+ .delete {
127
+ display: inline;
128
+ }
129
+ }
130
+ }
131
+ }
132
+ }
133
+ }
134
+
135
+ .ind-other-menu-drawer-wrap-collapsed {
136
+ .ivu-drawer {
137
+ left: 65px;
138
+ height: calc(100% - 110px);
139
+ bottom: 0;
140
+ top: auto;
141
+ }
142
+ }
@@ -0,0 +1,101 @@
1
+ @menu-name-padding: 15px 28px 15px 30px; // 标题行padding
2
+ @menu-title-font-size: 20px;
3
+ @menu-title-color: #17233d;
4
+ @page-content-padding: 12px;
5
+
6
+ .ind-page-view {
7
+ height: 100%;
8
+ background-color: var(--ind-bg-color-dark);
9
+ overflow: auto;
10
+
11
+ .header {
12
+ display: flex;
13
+ align-items: center;
14
+ padding: @menu-name-padding;
15
+ // padding: 0 var(--ind-page-padding);
16
+ border-bottom: 1px solid var(--ind-border-color);
17
+ background: white;
18
+ z-index: 15;
19
+
20
+ .title {
21
+ font-size: @menu-title-font-size;
22
+ font-weight: 500;
23
+ line-height: 32px;
24
+ color: @menu-title-color;
25
+ }
26
+
27
+ .back-btn + .title {
28
+ margin-left: 8px;
29
+ }
30
+
31
+ .function-wrapper {
32
+ flex-grow: 1;
33
+ display: flex;
34
+ justify-content: flex-end;
35
+ align-items: center;
36
+
37
+ .ivu-btn + .ivu-btn {
38
+ margin-left: 10px;
39
+ }
40
+ }
41
+ }
42
+
43
+ .content {
44
+ // padding: var(--ind-page-padding);
45
+ padding: @page-content-padding @page-content-padding 0;
46
+ box-sizing: border-box;
47
+
48
+ .top-search-content {
49
+ margin-bottom: var(--ind-panel-vertical-margin);
50
+ }
51
+
52
+ .body-content {
53
+ display: flex;
54
+ height: 10px; // 为了不被撑开,给个高度
55
+
56
+ .body-left-content {
57
+ flex: 0 0 16.67%;
58
+ // margin-right: var(--ind-panel-horizon-margin);
59
+ margin-right: 5px;
60
+ overflow: auto;
61
+ }
62
+
63
+ .body-right-content {
64
+ flex: auto;
65
+
66
+ .ind-loading-panel {
67
+ height: 100% !important;
68
+ }
69
+
70
+ .main-content {
71
+ overflow-y: auto;
72
+ overflow-x: hidden;
73
+ }
74
+
75
+ .body-right-content-footer {
76
+ display: flex;
77
+ justify-content: center;
78
+ align-items: center;
79
+ }
80
+ }
81
+ }
82
+
83
+ .bottom {
84
+ display: flex;
85
+ justify-content: center;
86
+ align-items: center;
87
+ // margin-top: var(--ind-panel-vertical-margin);
88
+
89
+ // from emp
90
+ margin-top: 4px;
91
+ margin-left: calc(0px - @page-content-padding);
92
+ padding: 6px 0;
93
+ width: calc(100% + @page-content-padding * 2);
94
+ border-top: 1px solid var(--ind-border-color);
95
+ background: #fff;
96
+ .ivu-btn + .ivu-btn {
97
+ margin-left: 10px;
98
+ }
99
+ }
100
+ }
101
+ }
@@ -0,0 +1,41 @@
1
+ .ind-sider-trigger {
2
+ display: flex;
3
+ justify-content: space-between;
4
+ align-items: center;
5
+ padding: 6px;
6
+ width: 100%;
7
+ height: 50px;
8
+ color: var(--ind-text-color);
9
+ background: #fff;
10
+ overflow: hidden;
11
+ box-sizing: border-box;
12
+ cursor: pointer;
13
+
14
+ .title {
15
+ margin-left: 10px;
16
+ height: 32px;
17
+ line-height: 32px;
18
+ font-size: 16px;
19
+ width: 100%;
20
+ font-weight: bold;
21
+ overflow: hidden;
22
+ }
23
+
24
+ .trans {
25
+ transition: transform 0.2s ease;
26
+ }
27
+
28
+ i {
29
+ .trans;
30
+ }
31
+
32
+ &.collapsed {
33
+ justify-content: center;
34
+ transition: width 0.2s ease-in-out;
35
+
36
+ i {
37
+ transform: rotateZ(90deg);
38
+ .trans;
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,113 @@
1
+ @nav-height: 44px;
2
+ @nav-padding: 6px 0;
3
+ @nav-margin: 0 10px;
4
+
5
+ .ind-tags-nav {
6
+ position: relative;
7
+ padding: @nav-padding;
8
+ margin: @nav-margin;
9
+ height: 44px;
10
+ width: calc(100% - 20px);
11
+ border-top: 1px solid var(--ind-border-color);
12
+ border-bottom: 1px solid var(--ind-border-color);
13
+ box-sizing: border-box;
14
+ user-select: none;
15
+
16
+ .ind-tags-nav-content {
17
+ display: flex;
18
+ justify-content: space-between;
19
+ align-items: center;
20
+ height: 100%;
21
+
22
+ .btn-con {
23
+ height: 100%;
24
+ flex-shrink: 0;
25
+ box-sizing: border-box;
26
+ z-index: 10;
27
+
28
+ button {
29
+ height: 100%;
30
+ padding: 2px 4px;
31
+ line-height: 1;
32
+ text-align: center;
33
+ background: #fff;
34
+ box-sizing: border-box;
35
+ }
36
+ }
37
+ }
38
+
39
+ .ivu-tag {
40
+ height: 30px;
41
+ line-height: 30px;
42
+ background: white;
43
+ margin: 0 5px 0 0;
44
+ border: none;
45
+ cursor: pointer;
46
+
47
+ &.ivu-tag-primary {
48
+ color: var(--ind-primary-color) !important;
49
+ .ivu-tag-color-white {
50
+ color: var(--ind-primary-color) !important;
51
+ font-weight: var(--ind-font-weight-bold);
52
+ }
53
+ }
54
+
55
+ .ivu-tag-text {
56
+ font-size: var(--ind-font-size-md);
57
+ color: var(--ind-text-color);
58
+ }
59
+
60
+ .ivu-icon-ios-close {
61
+ color: #666 !important;
62
+ }
63
+ }
64
+ .ivu-btn-text:hover {
65
+ background: none;
66
+ color: var(--ind-text-color);
67
+ }
68
+ .ivu-btn-text {
69
+ color: var(--ind-text-color);
70
+ }
71
+
72
+ .scroll-outer {
73
+ position: relative;
74
+ width: 100%;
75
+ height: 100%;
76
+ overflow: hidden;
77
+
78
+ .scroll-body {
79
+ position: absolute;
80
+ display: inline-block;
81
+ padding: 1px 4px 0;
82
+ height: ~'calc(100% - 1px)';
83
+ overflow: visible;
84
+ white-space: nowrap;
85
+ transition: left 0.3s ease;
86
+ }
87
+ }
88
+
89
+ .contextmenu {
90
+ position: absolute;
91
+ margin: 0;
92
+ padding: 5px 0;
93
+ background: #fff;
94
+ z-index: 1000;
95
+ list-style-type: none;
96
+ border-radius: 4px;
97
+ box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.1);
98
+ li {
99
+ margin: 0;
100
+ padding: 5px 15px;
101
+ cursor: pointer;
102
+ &:hover {
103
+ background: #eee;
104
+ }
105
+ }
106
+ }
107
+
108
+ .ivu-tag-primary.ivu-tag-dot {
109
+ .ivu-tag-dot-inner {
110
+ background-color: var(--ind-primary-color);
111
+ }
112
+ }
113
+ }
@@ -0,0 +1,47 @@
1
+ .ind-login {
2
+ position: relative;
3
+ width: 100%;
4
+ height: 100%;
5
+ background-image: url('@/assets/imgs/login/login-bg.jpg');
6
+ background-size: cover;
7
+ background-position: center;
8
+
9
+ &-con {
10
+ position: absolute;
11
+ right: 160px;
12
+ top: 50%;
13
+ transform: translateY(-60%);
14
+ width: 350px;
15
+
16
+ .ind-form-con {
17
+ padding: 10px 0 0;
18
+ border-left: none !important;
19
+ border-top: none !important;
20
+ }
21
+ }
22
+
23
+ .ind-login-form {
24
+ .ind-login-prefix {
25
+ width: 13px;
26
+ height: 13px;
27
+ }
28
+
29
+ .ind-login-captcha {
30
+ width: 65%;
31
+ }
32
+
33
+ .ind-login-img-box {
34
+ width: 90px;
35
+ height: 33px;
36
+ float: right;
37
+ padding: 2px;
38
+ margin-top: -33px;
39
+ background-color: #f8f8f9;
40
+
41
+ .ind-login-captcha-img {
42
+ width: 100%;
43
+ height: 100%;
44
+ }
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,29 @@
1
+ :root {
2
+ --modal-top-height: 100px;
3
+ --modal-header-height: 52px;
4
+ --modal-footer-height: 57px;
5
+
6
+ --modal-other-height: calc(
7
+ var(--modal-top-height) + var(--modal-header-height) + var(--modal-footer-height)
8
+ );
9
+ }
10
+
11
+ .ind-modal {
12
+ .ivu-modal:not(.ivu-modal-fullscreen) {
13
+ .ivu-modal-body {
14
+ max-height: calc(100vh - var(--modal-other-height));
15
+ overflow: auto;
16
+ }
17
+
18
+ .ivu-modal-footer {
19
+ button + button {
20
+ margin-left: 0;
21
+ }
22
+ }
23
+ }
24
+ .ivu-modal.ivu-modal-fullscreen {
25
+ .ivu-modal-close .ivu-icon-ios-close {
26
+ color: white;
27
+ }
28
+ }
29
+ }
@@ -0,0 +1,31 @@
1
+ .ind-back-top-panel {
2
+ position: relative;
3
+ height: 100%;
4
+ overflow-y: auto;
5
+ }
6
+
7
+ .ind-loading-panel {
8
+ position: relative;
9
+ height: auto;
10
+
11
+ .ind-loading-spin--dark {
12
+ background-color: #e1e1e1;
13
+ opacity: 0.9;
14
+ }
15
+
16
+ .ind-loading-spin-icon {
17
+ animation: ani-loading-spin 1s linear infinite;
18
+ }
19
+
20
+ @keyframes ani-loading-spin {
21
+ from {
22
+ transform: rotate(0deg);
23
+ }
24
+ 50% {
25
+ transform: rotate(180deg);
26
+ }
27
+ to {
28
+ transform: rotate(360deg);
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,27 @@
1
+ :root,
2
+ :host {
3
+ --ind-sign-padding: var(--ind-padding-xs);
4
+ --ind-sign-content-height: 200px;
5
+ --ind-sign-content-background: var(--ind-white);
6
+ --ind-sign-content-border: 1px solid var(--ind-border-color);
7
+ }
8
+
9
+ .ind-sign {
10
+ padding: var(--ind-sign-padding);
11
+
12
+ &__content {
13
+ display: flex;
14
+ justify-content: center;
15
+ align-items: center;
16
+ height: var(--ind-sign-content-height);
17
+ background-color: var(--ind-sign-content-background);
18
+ border: var(--ind-sign-content-border);
19
+ border-radius: var(--ind-border-radius-md);
20
+ overflow: hidden;
21
+
22
+ canvas {
23
+ width: 100%;
24
+ height: 100%;
25
+ }
26
+ }
27
+ }