@ctzy-web-client/plugin-component-vue 1.0.0

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 (138) hide show
  1. package/package.json +43 -0
  2. package/src/advance-select/advance-operation.vue +44 -0
  3. package/src/advance-select/advance-option.vue +115 -0
  4. package/src/advance-select/advance-select.vue +343 -0
  5. package/src/advance-select/events-helpers.js +40 -0
  6. package/src/advance-select/index.js +13 -0
  7. package/src/advance-select/use-advance-option.js +58 -0
  8. package/src/advance-select/use-advance-select.js +142 -0
  9. package/src/application-slot/application-slot.js +70 -0
  10. package/src/application-slot/breadcrumb-item.vue +12 -0
  11. package/src/application-slot/header-tools-item.vue +12 -0
  12. package/src/application-slot/index.js +17 -0
  13. package/src/breadcrumb-select/breadcrumb-select.vue +97 -0
  14. package/src/breadcrumb-select/index.js +6 -0
  15. package/src/components.js +39 -0
  16. package/src/contextmenu/contextmenu-item.vue +13 -0
  17. package/src/contextmenu/contextmenu.vue +56 -0
  18. package/src/contextmenu/index.js +11 -0
  19. package/src/contextmenu/use-contextmenu.js +117 -0
  20. package/src/data-form/data-form-item.vue +49 -0
  21. package/src/data-form/data-form.vue +212 -0
  22. package/src/data-form/dynamic-component.js +24 -0
  23. package/src/data-form/form-components/Blots/AtBlot.js +32 -0
  24. package/src/data-form/form-components/bwa-date-picker.vue +43 -0
  25. package/src/data-form/form-components/bwa-date-time-picker.vue +49 -0
  26. package/src/data-form/form-components/bwa-input-float.vue +41 -0
  27. package/src/data-form/form-components/bwa-input-integer.vue +58 -0
  28. package/src/data-form/form-components/bwa-input.vue +32 -0
  29. package/src/data-form/form-components/bwa-multi-select.vue +27 -0
  30. package/src/data-form/form-components/bwa-rich-text-tinymce.vue +561 -0
  31. package/src/data-form/form-components/bwa-rich-text.vue +395 -0
  32. package/src/data-form/form-components/bwa-select.vue +67 -0
  33. package/src/data-form/form-components/bwa-textarea.vue +28 -0
  34. package/src/data-form/form-components/bwa-upload.vue +145 -0
  35. package/src/data-form/form-components/bwa-user-multi-select.vue +25 -0
  36. package/src/data-form/form-components/bwa-user-select.vue +81 -0
  37. package/src/data-form/index.js +35 -0
  38. package/src/data-table/data-column-view.vue +131 -0
  39. package/src/data-table/data-table-card.vue +81 -0
  40. package/src/data-table/data-table-column.vue +52 -0
  41. package/src/data-table/data-table.vue +426 -0
  42. package/src/data-table/dynamic-component.js +58 -0
  43. package/src/data-table/index.js +13 -0
  44. package/src/data-table/use-datatable-drag.js +156 -0
  45. package/src/datatable-settings/datatable-settings.vue +323 -0
  46. package/src/datatable-settings/index.js +6 -0
  47. package/src/date-range/date-picker.vue +115 -0
  48. package/src/date-range/date-range.vue +202 -0
  49. package/src/date-range/index.js +6 -0
  50. package/src/drag-list/constants.js +1 -0
  51. package/src/drag-list/drag-item.vue +46 -0
  52. package/src/drag-list/drag-list.vue +50 -0
  53. package/src/drag-list/index.js +6 -0
  54. package/src/drag-list/use-drag-list.js +209 -0
  55. package/src/dragable/constants.js +3 -0
  56. package/src/dragable/dragable-item.vue +19 -0
  57. package/src/dragable/dragable-operation.vue +28 -0
  58. package/src/dragable/dragable.vue +26 -0
  59. package/src/dragable/index.js +14 -0
  60. package/src/dragable/use-dragable.js +227 -0
  61. package/src/filter-panel/conditions/condition.js +35 -0
  62. package/src/filter-panel/conditions/date-range-condition.vue +35 -0
  63. package/src/filter-panel/conditions/department-condition/data.json +29537 -0
  64. package/src/filter-panel/conditions/department-condition/department-condition.vue +92 -0
  65. package/src/filter-panel/conditions/department-condition/department-node.vue +52 -0
  66. package/src/filter-panel/conditions/index.js +22 -0
  67. package/src/filter-panel/conditions/input-condition.vue +63 -0
  68. package/src/filter-panel/conditions/multi-user-condition.vue +56 -0
  69. package/src/filter-panel/conditions/multiple-menu-condition.vue +45 -0
  70. package/src/filter-panel/conditions/single-menu-condition.vue +58 -0
  71. package/src/filter-panel/conditions/single-user-condition.vue +56 -0
  72. package/src/filter-panel/filter-panel-item.vue +46 -0
  73. package/src/filter-panel/filter-panel.vue +149 -0
  74. package/src/filter-panel/index.js +17 -0
  75. package/src/filter-panel/use-filter-panel-item.js +59 -0
  76. package/src/filter-panel/use-filter-panel.js +203 -0
  77. package/src/hooks/use-data/index.js +234 -0
  78. package/src/index.js +48 -0
  79. package/src/layout/index.js +6 -0
  80. package/src/layout/layout.vue +74 -0
  81. package/src/make-installer.js +36 -0
  82. package/src/math/Rectangle.js +28 -0
  83. package/src/menu/index.js +6 -0
  84. package/src/menu/menu-item.vue +41 -0
  85. package/src/menu/menu.vue +53 -0
  86. package/src/panel/index.js +6 -0
  87. package/src/panel/panel.vue +42 -0
  88. package/src/panel-tabs/index.js +6 -0
  89. package/src/panel-tabs/panel-tabs.js +92 -0
  90. package/src/pct-filter-panel/index.js +10 -0
  91. package/src/pct-filter-panel/pct-compents/index.js +10 -0
  92. package/src/pct-filter-panel/pct-compents/pct-Input-condition.vue +63 -0
  93. package/src/pct-filter-panel/pct-compents/pct-date-range-condition.vue +60 -0
  94. package/src/pct-filter-panel/pct-compents/pct-multiple-menu-condition.vue +177 -0
  95. package/src/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.vue +142 -0
  96. package/src/pct-filter-panel/pct-filter-panel-item.vue +46 -0
  97. package/src/pct-filter-panel/pct-filter-panel.vue +201 -0
  98. package/src/pct-filter-panel/use-filter-panel-item.js +61 -0
  99. package/src/pct-filter-panel/use-filter-panel.js +206 -0
  100. package/src/plugins.js +3 -0
  101. package/src/progress/index.js +8 -0
  102. package/src/progress/progress-item.vue +81 -0
  103. package/src/progress/progress.vue +58 -0
  104. package/src/progress/use-progress.js +66 -0
  105. package/src/utils/db.js +8 -0
  106. package/src/utils.js +263 -0
  107. package/src/where-filter-panel/index.js +0 -0
  108. package/src/where-filter-panel/use-where-filter-panel.js +28 -0
  109. package/src/where-filter-panel/where-filter-panel.vue +9 -0
  110. package/style/advance-select.scss +316 -0
  111. package/style/breadcrumb-select.scss +80 -0
  112. package/style/common/var.scss +240 -0
  113. package/style/common.scss +48 -0
  114. package/style/contextmenu.scss +58 -0
  115. package/style/data-form.scss +35 -0
  116. package/style/data-table.scss +81 -0
  117. package/style/datatable-settings.scss +125 -0
  118. package/style/date-range.scss +136 -0
  119. package/style/department-condition.scss +39 -0
  120. package/style/drag-list.scss +68 -0
  121. package/style/dragable.scss +8 -0
  122. package/style/filter-panel.scss +199 -0
  123. package/style/index.scss +22 -0
  124. package/style/input-condition.scss +30 -0
  125. package/style/layout.scss +70 -0
  126. package/style/menu.scss +184 -0
  127. package/style/mixins/_var.scss +21 -0
  128. package/style/mixins/config.scss +4 -0
  129. package/style/mixins/function.scss +62 -0
  130. package/style/mixins/mixins.scss +88 -0
  131. package/style/panel-tabs.scss +60 -0
  132. package/style/panel.scss +110 -0
  133. package/style/pct-filter-panel.scss +306 -0
  134. package/style/progress.scss +122 -0
  135. package/style/rich-text.scss +30 -0
  136. package/style/theme/theme.scss +161 -0
  137. package/style/theme/var.scss +34 -0
  138. package/style/var.scss +21 -0
@@ -0,0 +1,161 @@
1
+ @use 'sass:map';
2
+ @use '../common/var' as *;
3
+ @forward './var';
4
+
5
+ @forward 'element-plus/theme-chalk/src/form.scss' with (
6
+ $form-item-margin-bottom: (
7
+ 'large': map.get($spacing-size, 'input'),
8
+ 'default': map.get($spacing-size, 'input'),
9
+ )
10
+ );
11
+
12
+ @use 'element-plus/theme-chalk/src/index.scss' as *;
13
+
14
+ .el-form .el-form-item__content .el-select {
15
+ width: 100%;
16
+ }
17
+
18
+ // 表格样式重写
19
+ .el-table {
20
+ --el-table-header-bg-color: #f9fbfb;
21
+
22
+ // 表头的设置
23
+ .el-table__header {
24
+ height: 48px;
25
+
26
+ .el-table__cell {
27
+ color: map.get($text-color, 'primary');
28
+ font-weight: 500;
29
+ }
30
+ }
31
+
32
+ tr {
33
+ height: 48px;
34
+ }
35
+
36
+ //斑马行的背景色
37
+ &.el-table--striped
38
+ .el-table__body
39
+ tr.el-table__row--striped
40
+ td.el-table__cell {
41
+ background-color: #f9fbfb;
42
+ }
43
+
44
+ .cell.el-tooltip {
45
+ > .bwa-advance-select {
46
+ display: inline;
47
+ > .bwa-advance-select__reference {
48
+ display: inline;
49
+ }
50
+ }
51
+ }
52
+ }
53
+
54
+ .el-button {
55
+ border-radius: 4px;
56
+
57
+ }
58
+
59
+ [type=button], [type=reset], [type=submit], button {
60
+ border: 1px solid #EAEEEFFF;
61
+ }
62
+ .el-button--default {
63
+ border: 1px solid #EAEEEFFF !important;
64
+ }
65
+ .el-button--text, .bwa-advance-select__clear, .el-dialog__headerbtn{
66
+ border: none !important;
67
+ }
68
+
69
+ // 重写card样式
70
+ .el-card {
71
+ display: flex;
72
+ flex-direction: column;
73
+ height: 100%;
74
+
75
+ .el-card__body {
76
+ height: 100%;
77
+ flex: 1 1;
78
+ overflow: hidden;
79
+ }
80
+ }
81
+
82
+ .el-pagination {
83
+ .el-pagination__sizes {
84
+ font-size: 0;
85
+ }
86
+
87
+ .el-pager {
88
+ .number {
89
+ border-radius: 4px;
90
+ box-shadow: 0 0 0 1px #dcdfe6 inset;
91
+ margin: 0 4px;
92
+
93
+ &.is-active,
94
+ &:hover {
95
+ box-shadow: 0 0 0 1px #409eff inset;
96
+ }
97
+ }
98
+ }
99
+
100
+ .el-pagination__jump {
101
+ .el-input__wrapper {
102
+ border-radius: 4px;
103
+ }
104
+ }
105
+
106
+ .el-select {
107
+ .el-input {
108
+ width: 100px;
109
+ }
110
+ }
111
+ }
112
+
113
+ .el-message {
114
+ &--error {
115
+ .el-icon {
116
+ color: #f5222d;
117
+ }
118
+ }
119
+
120
+ .el-message__content {
121
+ color: map.get($text-color, 'primary');
122
+ }
123
+ }
124
+
125
+ //
126
+ ///* 为所有没有前缀图标的输入框设置样式 */
127
+ //.el-input:not(.el-input--prefix) .el-input__inner {
128
+ // padding-left: 0px; /* 默认的左侧内边距 */
129
+ //}
130
+ //
131
+ ///* 为有前缀图标的输入框设置样式 */
132
+ //.el-input--prefix .el-input__inner {
133
+ // padding-left: 20px; /* 增加左侧内边距,为前缀图标留出空间 */
134
+ //}
135
+ //
136
+ ///* 调整前缀图标的位置 */
137
+ //.el-input__prefix {
138
+ // left: 10px;
139
+ //}
140
+ ///* 如果前缀图标不占位,减少左侧内边距 */
141
+ //.el-input--prefix .el-input__inner:not(.el-input__inner--no-prefix-padding) {
142
+ // padding-left: 20px; /* 减少左侧内边距,因为前缀图标不占位 */
143
+ //}
144
+
145
+ /**
146
+ 解决input前置图标不占位问题
147
+ */
148
+ .el-input__prefix, .el-input__suffix{
149
+ position: static !important;
150
+ }
151
+
152
+ /**
153
+ 解决磐舟动画重叠
154
+ */
155
+ .el-drawer.rtl {
156
+ animation: none !important;
157
+ }
158
+
159
+ .is-selected{
160
+ color: #19BBFF;
161
+ }
@@ -0,0 +1,34 @@
1
+ @use 'sass:map';
2
+ @use '../common/var' as *;
3
+
4
+ @forward 'element-plus/theme-chalk/src/common/var.scss' with (
5
+ $border-radius: (
6
+ 'base': 0px,
7
+ 'small': 0px,
8
+ 'round': 20px,
9
+ 'circle': 100%,
10
+ ),
11
+ $card: (
12
+ 'border-radius': 0px,
13
+ ),
14
+ $colors: (
15
+ 'primary': (
16
+ 'base': $color-primary,
17
+ ),
18
+ 'success': (
19
+ 'base': $color-success,
20
+ ),
21
+ 'warning': (
22
+ 'base': $color-warning,
23
+ ),
24
+ 'danger': (
25
+ 'base': $color-danger,
26
+ ),
27
+ 'error': (
28
+ 'base': $color-error,
29
+ ),
30
+ ),
31
+ $text-color: (
32
+ 'regular': map.get($text-color, 'primary'),
33
+ )
34
+ );
package/style/var.scss ADDED
@@ -0,0 +1,21 @@
1
+ @use 'common/var' as *;
2
+ @use 'mixins/var' as *;
3
+
4
+ :root {
5
+ @include set-css-var-value('color-white', $color-white);
6
+ @include set-css-var-value('color-black', $color-black);
7
+
8
+ @each $type in (primary, success, warning, danger, error) {
9
+ @include set-css-color-type($colors, $type);
10
+ }
11
+
12
+ @include set-component-css-var('text-color', $text-color);
13
+
14
+ @include set-component-css-var('border-radius', $border-radius);
15
+
16
+ @include set-component-css-var('fill-color', $fill-color);
17
+
18
+ @include set-component-css-var('spacing-size', $spacing-size);
19
+
20
+ @include set-component-css-var('border-color', $border-color);
21
+ }