@wlydfe/pro-ui 0.2.13 → 0.2.15

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 (76) hide show
  1. package/README.md +119 -119
  2. package/es/components/form-item/src/index.vue.d.ts +6 -2
  3. package/es/components/form-item/src/index.vue2.mjs +6 -6
  4. package/es/components/page/src/index.vue.d.ts +30 -54
  5. package/es/components/page/src/index.vue2.mjs +2 -2
  6. package/es/components/radio/src/index.vue2.mjs +1 -1
  7. package/es/components/render/src/index.vue2.mjs +1 -1
  8. package/es/directives/copy.d.ts +0 -0
  9. package/es/directives/copy.mjs +1 -0
  10. package/es/directives/longpress.d.ts +0 -0
  11. package/es/directives/longpress.mjs +1 -0
  12. package/es/directives/optimize.d.ts +0 -0
  13. package/es/directives/optimize.mjs +1 -0
  14. package/es/directives/tippy.d.ts +0 -0
  15. package/es/directives/tippy.mjs +1 -0
  16. package/es/index.css +14 -14
  17. package/es/version.d.ts +1 -1
  18. package/es/version.mjs +1 -1
  19. package/global.d.ts +29 -29
  20. package/index.js +12 -12
  21. package/index.min.js +2 -2
  22. package/index.min.mjs +2 -2
  23. package/index.mjs +12 -12
  24. package/lib/components/form-item/src/index.vue.d.ts +6 -2
  25. package/lib/components/form-item/src/index.vue2.js +6 -6
  26. package/lib/components/page/src/index.vue.d.ts +30 -54
  27. package/lib/components/page/src/index.vue2.js +2 -2
  28. package/lib/components/radio/src/index.vue2.js +1 -1
  29. package/lib/components/render/src/index.vue2.js +1 -1
  30. package/lib/directives/copy.d.ts +0 -0
  31. package/lib/directives/copy.js +2 -0
  32. package/lib/directives/longpress.d.ts +0 -0
  33. package/lib/directives/longpress.js +2 -0
  34. package/lib/directives/optimize.d.ts +0 -0
  35. package/lib/directives/optimize.js +2 -0
  36. package/lib/directives/tippy.d.ts +0 -0
  37. package/lib/directives/tippy.js +2 -0
  38. package/lib/{form.css → display-item.css} +13 -13
  39. package/lib/version.d.ts +1 -1
  40. package/lib/version.js +1 -1
  41. package/locale/en.js +1 -1
  42. package/locale/en.min.js +1 -1
  43. package/locale/en.min.mjs +1 -1
  44. package/locale/en.mjs +1 -1
  45. package/locale/ja.js +1 -1
  46. package/locale/ja.min.js +1 -1
  47. package/locale/ja.min.mjs +1 -1
  48. package/locale/ja.mjs +1 -1
  49. package/locale/ko.js +1 -1
  50. package/locale/ko.min.js +1 -1
  51. package/locale/ko.min.mjs +1 -1
  52. package/locale/ko.mjs +1 -1
  53. package/locale/zh-cn.js +1 -1
  54. package/locale/zh-cn.min.js +1 -1
  55. package/locale/zh-cn.min.mjs +1 -1
  56. package/locale/zh-cn.mjs +1 -1
  57. package/locale/zh-tw.js +1 -1
  58. package/locale/zh-tw.min.js +1 -1
  59. package/locale/zh-tw.min.mjs +1 -1
  60. package/locale/zh-tw.mjs +1 -1
  61. package/package.json +2 -2
  62. package/theme-chalk/src/breadcrumb.scss +9 -9
  63. package/theme-chalk/src/date-picker.scss +96 -96
  64. package/theme-chalk/src/descriptions.scss +41 -41
  65. package/theme-chalk/src/display-item.scss +82 -82
  66. package/theme-chalk/src/drawer-form.scss +16 -16
  67. package/theme-chalk/src/form.scss +34 -34
  68. package/theme-chalk/src/input-tag.scss +91 -91
  69. package/theme-chalk/src/layout.scss +36 -36
  70. package/theme-chalk/src/mixins/function.scss +73 -73
  71. package/theme-chalk/src/search.scss +49 -49
  72. package/theme-chalk/src/sidebar.scss +93 -93
  73. package/theme-chalk/src/steps-form.scss +18 -18
  74. package/theme-chalk/src/table.scss +170 -170
  75. package/theme-chalk/src/var/index.scss +6 -6
  76. package/LICENSE +0 -21
@@ -1,93 +1,93 @@
1
- @use 'mixins/mixins' as *;
2
- @use 'mixins/function' as *;
3
- @use 'mixins/config' as *;
4
- @use 'var/index';
5
-
6
- @include b(sidebar) {
7
- height: 100%;
8
-
9
- &.is-vertical {
10
- min-height: 400px;
11
-
12
- &:not(.#{$el-namespace + -menu--collapse}) {
13
- width: var(--plus-sidebar-width);
14
- flex-shrink: 0;
15
- }
16
-
17
- &.#{$el-namespace + -menu--collapse} {
18
- .#{$el-namespace + -menu-item} {
19
- width: calc(var(--plus-sidebar-min-width) - 2px);
20
- }
21
- }
22
-
23
- .#{$el-namespace + -scrollbar__wrap} {
24
- overflow-x: hidden;
25
- }
26
-
27
- &.#{$el-namespace + -menu--collapse} {
28
- .#{$plus-namespace + -sidebar__item-title} {
29
- height: 0;
30
- width: 0;
31
- overflow: hidden;
32
- visibility: hidden;
33
- display: inline-block;
34
- }
35
- .#{$el-namespace + -sub-menu__icon-arrow} {
36
- display: none;
37
- }
38
- }
39
-
40
- .#{$el-namespace + -scrollbar} {
41
- height: calc(100% - var(--plus-sidebar-collapse-height));
42
- }
43
-
44
- .#{$plus-namespace + -sidebar__collapse} {
45
- width: calc(var(--plus-sidebar-width) - 2px);
46
- background-color: getCssVar('menu-bg-color');
47
- height: var(--plus-sidebar-collapse-height);
48
- box-sizing: border-box;
49
- position: absolute;
50
- left: 0;
51
- bottom: 0;
52
- align-items: flex-start;
53
-
54
- &.is-collapse {
55
- width: calc(var(--plus-sidebar-min-width) - 2px);
56
- }
57
-
58
- &.is-active {
59
- background-color: getCssVar('menu-bg-color');
60
- }
61
-
62
- [class*='-icon'] {
63
- margin-top: 10px;
64
- font-size: 20px;
65
- user-select: none;
66
- cursor: pointer;
67
- }
68
- }
69
- }
70
-
71
- &.is-horizontal {
72
- width: 100%;
73
-
74
- .#{$el-namespace + -scrollbar} {
75
- width: 100%;
76
- }
77
-
78
- .#{$el-namespace + -scrollbar__wrap} {
79
- width: 100%;
80
- }
81
-
82
- .#{$el-namespace + -scrollbar__view} {
83
- width: 100%;
84
- height: 100%;
85
- display: flex;
86
- flex-wrap: nowrap;
87
- }
88
- }
89
-
90
- @include e(item-title) {
91
- user-select: none;
92
- }
93
- }
1
+ @use 'mixins/mixins' as *;
2
+ @use 'mixins/function' as *;
3
+ @use 'mixins/config' as *;
4
+ @use 'var/index';
5
+
6
+ @include b(sidebar) {
7
+ height: 100%;
8
+
9
+ &.is-vertical {
10
+ min-height: 400px;
11
+
12
+ &:not(.#{$el-namespace + -menu--collapse}) {
13
+ width: var(--plus-sidebar-width);
14
+ flex-shrink: 0;
15
+ }
16
+
17
+ &.#{$el-namespace + -menu--collapse} {
18
+ .#{$el-namespace + -menu-item} {
19
+ width: calc(var(--plus-sidebar-min-width) - 2px);
20
+ }
21
+ }
22
+
23
+ .#{$el-namespace + -scrollbar__wrap} {
24
+ overflow-x: hidden;
25
+ }
26
+
27
+ &.#{$el-namespace + -menu--collapse} {
28
+ .#{$plus-namespace + -sidebar__item-title} {
29
+ height: 0;
30
+ width: 0;
31
+ overflow: hidden;
32
+ visibility: hidden;
33
+ display: inline-block;
34
+ }
35
+ .#{$el-namespace + -sub-menu__icon-arrow} {
36
+ display: none;
37
+ }
38
+ }
39
+
40
+ .#{$el-namespace + -scrollbar} {
41
+ height: calc(100% - var(--plus-sidebar-collapse-height));
42
+ }
43
+
44
+ .#{$plus-namespace + -sidebar__collapse} {
45
+ width: calc(var(--plus-sidebar-width) - 2px);
46
+ background-color: getCssVar('menu-bg-color');
47
+ height: var(--plus-sidebar-collapse-height);
48
+ box-sizing: border-box;
49
+ position: absolute;
50
+ left: 0;
51
+ bottom: 0;
52
+ align-items: flex-start;
53
+
54
+ &.is-collapse {
55
+ width: calc(var(--plus-sidebar-min-width) - 2px);
56
+ }
57
+
58
+ &.is-active {
59
+ background-color: getCssVar('menu-bg-color');
60
+ }
61
+
62
+ [class*='-icon'] {
63
+ margin-top: 10px;
64
+ font-size: 20px;
65
+ user-select: none;
66
+ cursor: pointer;
67
+ }
68
+ }
69
+ }
70
+
71
+ &.is-horizontal {
72
+ width: 100%;
73
+
74
+ .#{$el-namespace + -scrollbar} {
75
+ width: 100%;
76
+ }
77
+
78
+ .#{$el-namespace + -scrollbar__wrap} {
79
+ width: 100%;
80
+ }
81
+
82
+ .#{$el-namespace + -scrollbar__view} {
83
+ width: 100%;
84
+ height: 100%;
85
+ display: flex;
86
+ flex-wrap: nowrap;
87
+ }
88
+ }
89
+
90
+ @include e(item-title) {
91
+ user-select: none;
92
+ }
93
+ }
@@ -1,18 +1,18 @@
1
- @use 'mixins/mixins' as *;
2
-
3
- @include b(steps-form) {
4
- @include elb(steps) {
5
- margin-bottom: 20px;
6
- }
7
- }
8
-
9
- @include b(steps-form-vertical) {
10
- display: flex;
11
- @include elb(steps--vertical) {
12
- margin-right: 20px;
13
- }
14
-
15
- @include b(form) {
16
- flex: 1;
17
- }
18
- }
1
+ @use 'mixins/mixins' as *;
2
+
3
+ @include b(steps-form) {
4
+ @include elb(steps) {
5
+ margin-bottom: 20px;
6
+ }
7
+ }
8
+
9
+ @include b(steps-form-vertical) {
10
+ display: flex;
11
+ @include elb(steps--vertical) {
12
+ margin-right: 20px;
13
+ }
14
+
15
+ @include b(form) {
16
+ flex: 1;
17
+ }
18
+ }
@@ -1,170 +1,170 @@
1
- @use 'mixins/config' as *;
2
- @use 'mixins/mixins' as *;
3
- @use 'mixins/function' as *;
4
-
5
- @include b(table) {
6
- /* 自定义列栏 */
7
- @include b(table-column) {
8
- @include e(header) {
9
- @include e(header__icon) {
10
- margin-top: -2px;
11
- margin-left: 2px;
12
- vertical-align: middle;
13
- }
14
- }
15
- }
16
-
17
- /* 操作栏 */
18
- @include b(table-action-bar) {
19
- &.is-center {
20
- .cell {
21
- justify-content: center;
22
- }
23
- }
24
- &.is-right {
25
- .cell {
26
- justify-content: flex-end;
27
- }
28
- }
29
-
30
- &.#{$el-namespace + -table-fixed-column--right} {
31
- background-color: getCssVar('bg-color');
32
- }
33
-
34
- .cell {
35
- display: flex;
36
- align-items: center;
37
- }
38
-
39
- @include e(dropdown__link) {
40
- display: inline-flex;
41
- cursor: pointer;
42
- user-select: none;
43
- }
44
- @include e(more-text) {
45
- margin-right: 2px;
46
- }
47
- @include e(column__link) {
48
- margin-right: 10px;
49
- }
50
- @include e(dropdown) {
51
- vertical-align: baseline;
52
- cursor: pointer;
53
- margin-left: 12px;
54
- }
55
- @include elb(link) {
56
- & + .#{$el-namespace + -link} {
57
- margin-left: 12px;
58
- }
59
- }
60
- @include elb(icon) {
61
- cursor: pointer;
62
-
63
- & + .#{$el-namespace + -icon} {
64
- margin-left: 12px;
65
- }
66
- }
67
- }
68
-
69
- /* 排序 */
70
- @include b(table-column-drag-sort) {
71
- @include b(table-column-drag-icon) {
72
- cursor: move;
73
- padding: 4px;
74
- box-sizing: border-box;
75
- font-size: 18px;
76
- }
77
- }
78
-
79
- /* 序号栏 */
80
- @include b(table-column-index) {
81
- @include b(table-index-column) {
82
- display: inline-flex;
83
- align-items: center;
84
- justify-content: center;
85
- word-break: keep-all;
86
- white-space: nowrap;
87
- width: 20px;
88
- height: 20px;
89
- }
90
-
91
- .cell {
92
- @include b(table-column-index__content) {
93
- align-items: center;
94
- display: flex;
95
- justify-content: center;
96
- overflow: hidden;
97
- }
98
- }
99
- }
100
-
101
- /*工具栏*/
102
- @include b(table-title-bar) {
103
- display: flex;
104
- justify-content: space-between;
105
- align-items: center;
106
- margin-bottom: 10px;
107
- }
108
-
109
- @include e(toolbar) {
110
- display: flex;
111
- align-items: center;
112
- }
113
-
114
- @include elb(popper) {
115
- max-width: 200px;
116
- }
117
- }
118
-
119
- /* 密度设置 */
120
- @include b(table-title-bar__toolbar__density) {
121
- display: flex;
122
- flex-direction: column;
123
- align-items: center;
124
-
125
- @include elb(button) {
126
- margin-top: 10px;
127
- width: 80px;
128
-
129
- & + .#{$el-namespace + -button} {
130
- margin-left: 0;
131
- }
132
- }
133
- }
134
-
135
- @include b(table-title-bar__toolbar__icon) {
136
- margin-left: 10px;
137
- vertical-align: middle;
138
- cursor: pointer;
139
- color: getCssVar('text-color-regular');
140
- }
141
- /* 列设置 */
142
- @include b(table-title-bar__toolbar__checkbox__item) {
143
- margin-left: 6px;
144
- }
145
- /* 列设置 拖拽 item */
146
- @include b(table-checkbox-item) {
147
- display: flex;
148
- align-items: center;
149
- margin-left: 20px;
150
- }
151
- /* 列设置 拖拽handle */
152
- @include b(table-checkbox-handle) {
153
- font-size: 18px;
154
- cursor: move;
155
- }
156
-
157
- @include b(table-ghost-class) {
158
- padding: 0 5px;
159
- border: 1px dashed getCssVar('color-primary');
160
- background-color: #fff;
161
- }
162
-
163
- @include b(table-column__edit) {
164
- cursor: pointer;
165
- }
166
-
167
- @include b(table-checkbox-checkAll) {
168
- display: flex;
169
- justify-content: space-between;
170
- }
1
+ @use 'mixins/config' as *;
2
+ @use 'mixins/mixins' as *;
3
+ @use 'mixins/function' as *;
4
+
5
+ @include b(table) {
6
+ /* 自定义列栏 */
7
+ @include b(table-column) {
8
+ @include e(header) {
9
+ @include e(header__icon) {
10
+ margin-top: -2px;
11
+ margin-left: 2px;
12
+ vertical-align: middle;
13
+ }
14
+ }
15
+ }
16
+
17
+ /* 操作栏 */
18
+ @include b(table-action-bar) {
19
+ &.is-center {
20
+ .cell {
21
+ justify-content: center;
22
+ }
23
+ }
24
+ &.is-right {
25
+ .cell {
26
+ justify-content: flex-end;
27
+ }
28
+ }
29
+
30
+ &.#{$el-namespace + -table-fixed-column--right} {
31
+ background-color: getCssVar('bg-color');
32
+ }
33
+
34
+ .cell {
35
+ display: flex;
36
+ align-items: center;
37
+ }
38
+
39
+ @include e(dropdown__link) {
40
+ display: inline-flex;
41
+ cursor: pointer;
42
+ user-select: none;
43
+ }
44
+ @include e(more-text) {
45
+ margin-right: 2px;
46
+ }
47
+ @include e(column__link) {
48
+ margin-right: 10px;
49
+ }
50
+ @include e(dropdown) {
51
+ vertical-align: baseline;
52
+ cursor: pointer;
53
+ margin-left: 12px;
54
+ }
55
+ @include elb(link) {
56
+ & + .#{$el-namespace + -link} {
57
+ margin-left: 12px;
58
+ }
59
+ }
60
+ @include elb(icon) {
61
+ cursor: pointer;
62
+
63
+ & + .#{$el-namespace + -icon} {
64
+ margin-left: 12px;
65
+ }
66
+ }
67
+ }
68
+
69
+ /* 排序 */
70
+ @include b(table-column-drag-sort) {
71
+ @include b(table-column-drag-icon) {
72
+ cursor: move;
73
+ padding: 4px;
74
+ box-sizing: border-box;
75
+ font-size: 18px;
76
+ }
77
+ }
78
+
79
+ /* 序号栏 */
80
+ @include b(table-column-index) {
81
+ @include b(table-index-column) {
82
+ display: inline-flex;
83
+ align-items: center;
84
+ justify-content: center;
85
+ word-break: keep-all;
86
+ white-space: nowrap;
87
+ width: 20px;
88
+ height: 20px;
89
+ }
90
+
91
+ .cell {
92
+ @include b(table-column-index__content) {
93
+ align-items: center;
94
+ display: flex;
95
+ justify-content: center;
96
+ overflow: hidden;
97
+ }
98
+ }
99
+ }
100
+
101
+ /*工具栏*/
102
+ @include b(table-title-bar) {
103
+ display: flex;
104
+ justify-content: space-between;
105
+ align-items: center;
106
+ margin-bottom: 10px;
107
+ }
108
+
109
+ @include e(toolbar) {
110
+ display: flex;
111
+ align-items: center;
112
+ }
113
+
114
+ @include elb(popper) {
115
+ max-width: 200px;
116
+ }
117
+ }
118
+
119
+ /* 密度设置 */
120
+ @include b(table-title-bar__toolbar__density) {
121
+ display: flex;
122
+ flex-direction: column;
123
+ align-items: center;
124
+
125
+ @include elb(button) {
126
+ margin-top: 10px;
127
+ width: 80px;
128
+
129
+ & + .#{$el-namespace + -button} {
130
+ margin-left: 0;
131
+ }
132
+ }
133
+ }
134
+
135
+ @include b(table-title-bar__toolbar__icon) {
136
+ margin-left: 10px;
137
+ vertical-align: middle;
138
+ cursor: pointer;
139
+ color: getCssVar('text-color-regular');
140
+ }
141
+ /* 列设置 */
142
+ @include b(table-title-bar__toolbar__checkbox__item) {
143
+ margin-left: 6px;
144
+ }
145
+ /* 列设置 拖拽 item */
146
+ @include b(table-checkbox-item) {
147
+ display: flex;
148
+ align-items: center;
149
+ margin-left: 20px;
150
+ }
151
+ /* 列设置 拖拽handle */
152
+ @include b(table-checkbox-handle) {
153
+ font-size: 18px;
154
+ cursor: move;
155
+ }
156
+
157
+ @include b(table-ghost-class) {
158
+ padding: 0 5px;
159
+ border: 1px dashed getCssVar('color-primary');
160
+ background-color: #fff;
161
+ }
162
+
163
+ @include b(table-column__edit) {
164
+ cursor: pointer;
165
+ }
166
+
167
+ @include b(table-checkbox-checkAll) {
168
+ display: flex;
169
+ justify-content: space-between;
170
+ }
@@ -1,6 +1,6 @@
1
- :root {
2
- --plus-header-height: 60px;
3
- --plus-sidebar-collapse-height: 60px;
4
- --plus-sidebar-width: 200px;
5
- --plus-sidebar-min-width: 64px;
6
- }
1
+ :root {
2
+ --plus-header-height: 60px;
3
+ --plus-sidebar-collapse-height: 60px;
4
+ --plus-sidebar-width: 200px;
5
+ --plus-sidebar-min-width: 64px;
6
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) xiaofei.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.