doway-coms 2.2.21 → 2.2.23

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 (73) hide show
  1. package/.browserslistrc +2 -2
  2. package/README.md +28 -28
  3. package/package.json +53 -53
  4. package/packages/AuditsList/index.js +7 -7
  5. package/packages/AuditsList/src/index.vue +262 -262
  6. package/packages/BaseButton/index.js +7 -7
  7. package/packages/BaseButton/src/index.vue +241 -241
  8. package/packages/BaseCheckbox/index.js +7 -7
  9. package/packages/BaseCheckbox/src/index.vue +134 -134
  10. package/packages/BaseDate/index.js +7 -7
  11. package/packages/BaseDate/src/index.vue +197 -197
  12. package/packages/BaseDateWeek/index.js +7 -7
  13. package/packages/BaseDateWeek/src/index.vue +163 -163
  14. package/packages/BaseDatetime/index.js +7 -7
  15. package/packages/BaseDatetime/src/index.vue +196 -196
  16. package/packages/BaseForm/index.js +7 -7
  17. package/packages/BaseForm/src/index.vue +729 -728
  18. package/packages/BaseGantt/index.js +9 -9
  19. package/packages/BaseGantt/src/index.vue +608 -608
  20. package/packages/BaseGrid/index.js +9 -9
  21. package/packages/BaseGrid/src/SeqSetting.vue +278 -278
  22. package/packages/BaseGrid/src/index.vue +3580 -3580
  23. package/packages/BaseGridAdjust/index.js +9 -9
  24. package/packages/BaseGridAdjust/src/index.vue +482 -482
  25. package/packages/BaseInput/index.js +7 -7
  26. package/packages/BaseInput/src/index.vue +164 -164
  27. package/packages/BaseIntervalInput/index.js +7 -7
  28. package/packages/BaseIntervalInput/src/index.vue +310 -310
  29. package/packages/BaseKanbanEmpty/index.js +7 -7
  30. package/packages/BaseKanbanEmpty/src/index.vue +176 -176
  31. package/packages/BaseNumberInput/index.js +7 -7
  32. package/packages/BaseNumberInput/src/index.vue +291 -293
  33. package/packages/BasePagination/index.js +7 -7
  34. package/packages/BasePagination/src/index.vue +91 -91
  35. package/packages/BasePictureCard/index.js +7 -7
  36. package/packages/BasePictureCard/src/index.vue +580 -580
  37. package/packages/BasePrintPreview/index.js +7 -7
  38. package/packages/BasePrintPreview/src/index.vue +129 -129
  39. package/packages/BasePulldown/index.js +7 -7
  40. package/packages/BasePulldown/src/index.vue +1265 -1265
  41. package/packages/BaseSearch/index.js +7 -7
  42. package/packages/BaseSearch/src/index.vue +935 -935
  43. package/packages/BaseSelect/index.js +7 -7
  44. package/packages/BaseSelect/src/index.vue +155 -155
  45. package/packages/BaseSelectMulti/index.js +7 -7
  46. package/packages/BaseSelectMulti/src/index.vue +148 -148
  47. package/packages/BaseTextArea/index.js +7 -7
  48. package/packages/BaseTextArea/src/index.vue +178 -178
  49. package/packages/BaseTime/index.js +7 -7
  50. package/packages/BaseTime/src/index.vue +166 -166
  51. package/packages/BaseTool/index.js +7 -7
  52. package/packages/BaseTool/src/index.vue +349 -349
  53. package/packages/BaseToolStatus/index.js +7 -7
  54. package/packages/BaseToolStatus/src/index.vue +388 -388
  55. package/packages/BaseTreeSelect/index.js +8 -8
  56. package/packages/BaseTreeSelect/src/index.vue +437 -437
  57. package/packages/LeaveAMessage/index.js +7 -7
  58. package/packages/LeaveAMessage/src/index.vue +597 -597
  59. package/packages/index.js +191 -191
  60. package/packages/styles/default.css +78 -78
  61. package/packages/styles/default.less +84 -84
  62. package/packages/utils/api.js +107 -107
  63. package/packages/utils/auth.js +38 -38
  64. package/packages/utils/common.js +610 -610
  65. package/packages/utils/dom.js +181 -181
  66. package/packages/utils/enum.js +86 -86
  67. package/packages/utils/filters.js +472 -472
  68. package/packages/utils/gridFormat.js +66 -66
  69. package/packages/utils/msg.js +84 -84
  70. package/packages/utils/patchFiles.js +44 -44
  71. package/packages/utils/request.js +178 -178
  72. package/packages/utils/store.js +303 -305
  73. package/vue.config.js +59 -59
package/packages/index.js CHANGED
@@ -1,191 +1,191 @@
1
- import Vue from 'vue'
2
- // 导入组件
3
- import BaseInput from './BaseInput/index'
4
- import BaseCheckbox from './BaseCheckbox/index'
5
- import BaseDate from './BaseDate/index'
6
- import BaseDatetime from './BaseDatetime/index'
7
- import BaseDateWeek from './BaseDateWeek/index'
8
- import BaseTextArea from './BaseTextArea/index'
9
- import BaseSelect from './BaseSelect/index'
10
- import BaseSelectMulti from './BaseSelectMulti/index'
11
- import BaseTime from './BaseTime/index'
12
- import BasePagination from './BasePagination/index'
13
- import BaseNumberInput from './BaseNumberInput/index'
14
- import BaseTool from './BaseTool/index'
15
- import BaseToolStatus from './BaseToolStatus/index'
16
- import BasePulldown from './BasePulldown/index'
17
- import BaseIntervalInput from './BaseIntervalInput/index'
18
- import BaseForm from './BaseForm/index'
19
- import BasePictureCard from './BasePictureCard/index'
20
- import BasePrintPreview from './BasePrintPreview/index'
21
- import BaseGantt from './BaseGantt/index'
22
- import BaseKanbanEmpty from './BaseKanbanEmpty/index'
23
- import BaseSearch from './BaseSearch/index'
24
- import BaseButton from './BaseButton/index'
25
- import BaseTreeSelect from './BaseTreeSelect/index'
26
- import LeaveAMessage from './LeaveAMessage/index'
27
- import AuditsList from './AuditsList/index'
28
-
29
- import store from './utils/store'
30
- import request from './utils/request'
31
- import BaseGrid from './BaseGrid/index'
32
-
33
- // 存储组件列表
34
- const components = [
35
- BaseInput,
36
- BaseCheckbox,
37
- BaseDate,
38
- BaseDatetime,
39
- BaseDateWeek,
40
- BaseTextArea,
41
- BaseSelect,
42
- BaseSelectMulti,
43
- BaseTime,
44
- BasePagination,
45
- BaseNumberInput,
46
- BaseTool,
47
- BaseToolStatus,
48
- BasePulldown,
49
- BaseIntervalInput,
50
- BaseForm,
51
- BasePictureCard,
52
- BaseGrid,
53
- BasePrintPreview,
54
- BaseGantt,
55
- BaseKanbanEmpty,
56
- BaseSearch,
57
- BaseButton,
58
- LeaveAMessage,
59
- AuditsList,
60
- BaseTreeSelect,
61
- ]
62
- // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
63
-
64
- import 'vxe-table/lib/style.css'
65
- import VXETable from 'vxe-table'
66
-
67
- const popupInterceptor = (params) => {
68
- // 比如点击了某个组件的弹出层面板之后,此时被激活单元格不应该被自动关闭,通过返回 false 可以阻止默认的行为。
69
- let parentElement =
70
- params.$event.target.shadowRoot && params.$event.composed
71
- ? params.$event.composedPath()[0] || params.$event.target
72
- : params.$event.target
73
- while (true) {
74
- // console.debug(parentElement)
75
- if (
76
- parentElement &&
77
- (parentElement.className.indexOf('vxe-modal--wrapper') > -1 ||
78
- parentElement.className.indexOf('ant-calendar') > -1 ||
79
- parentElement.className.indexOf('ant-select-dropdown-menu-item') > -1 ||
80
- parentElement.className.indexOf('interceptor-class') > -1 ||
81
- parentElement.className.indexOf('ant-time-picker-panel') > -1 ||
82
- parentElement.className.indexOf('ant-select-dropdown') > -1)
83
- ) {
84
- //定义网格弹出框不能对焦问题
85
- return false
86
- }
87
- if (parentElement.parentElement) {
88
- parentElement = parentElement.parentElement
89
- } else {
90
- break
91
- }
92
- }
93
- }
94
- //网格弹出点击拦截器
95
- VXETable.interceptor.add('event.clearActived', (params) => {
96
- return popupInterceptor(params)
97
- })
98
- //网格筛选点击拦截器
99
- VXETable.interceptor.add('event.clearFilter', (params) => {
100
- return popupInterceptor(params)
101
- })
102
-
103
- //表格自定义格式化
104
- import './utils/gridFormat'
105
- // 右键菜单插件
106
- import Contextmenu from 'vue-contextmenujs'
107
-
108
- Vue.use(Contextmenu)
109
-
110
- const install = function (Vue) {
111
- //注册grid组件
112
- Vue.use(VXETable)
113
- // 遍历注册全局组件
114
- components.forEach((component) => {
115
- Vue.component(component.name, component)
116
- })
117
- }
118
-
119
- // 环境监测
120
- // 判断是否是直接引入文件
121
- if (typeof window !== 'undefined' && window.Vue) {
122
- install(window.Vue)
123
- }
124
-
125
- import XEUtils from 'xe-utils'
126
- //表单输入框验证
127
- import { extend, localize } from 'vee-validate'
128
- //引入校验规则 安装所有规则
129
- import * as rules from 'vee-validate/dist/rules'
130
- Object.keys(rules).forEach((rule) => {
131
- extend(rule, rules[rule])
132
- })
133
-
134
- extend('gt', (value, min) => {
135
- if (XEUtils.toNumber(value) > min) {
136
- return true
137
- }
138
- return `必须大于${min}`
139
- })
140
-
141
- localize({
142
- en: {
143
- messages: {
144
- required: '必填',
145
- min: '不能小于 {length} 个字符',
146
- max: (_, { length }) => `不能大于 ${length} 个字符`,
147
- email: '邮箱输入不符合规则',
148
- },
149
- },
150
- })
151
-
152
- export default {
153
- // 导出的对象必须具有 install,才能被 Vue.use() 方法安装
154
- install,
155
- // 以下是具体的组件列表
156
- }
157
- export * from './utils/enum'
158
- export * from './utils/common'
159
- export * from './utils/filters'
160
- export * from './utils/msg'
161
-
162
- export {
163
- BaseInput,
164
- BaseCheckbox,
165
- BaseDate,
166
- BaseDatetime,
167
- BaseDateWeek,
168
- BaseTextArea,
169
- BaseSelect,
170
- BaseSelectMulti,
171
- BaseTime,
172
- BasePagination,
173
- BaseNumberInput,
174
- BaseTool,
175
- BaseToolStatus,
176
- BasePulldown,
177
- BaseIntervalInput,
178
- BaseForm,
179
- BaseGrid,
180
- BasePictureCard,
181
- BasePrintPreview,
182
- BaseGantt,
183
- BaseKanbanEmpty,
184
- BaseSearch,
185
- BaseTreeSelect,
186
- BaseButton,
187
- LeaveAMessage,
188
- AuditsList,
189
- store,
190
- request,
191
- }
1
+ import Vue from 'vue'
2
+ // 导入组件
3
+ import BaseInput from './BaseInput/index'
4
+ import BaseCheckbox from './BaseCheckbox/index'
5
+ import BaseDate from './BaseDate/index'
6
+ import BaseDatetime from './BaseDatetime/index'
7
+ import BaseDateWeek from './BaseDateWeek/index'
8
+ import BaseTextArea from './BaseTextArea/index'
9
+ import BaseSelect from './BaseSelect/index'
10
+ import BaseSelectMulti from './BaseSelectMulti/index'
11
+ import BaseTime from './BaseTime/index'
12
+ import BasePagination from './BasePagination/index'
13
+ import BaseNumberInput from './BaseNumberInput/index'
14
+ import BaseTool from './BaseTool/index'
15
+ import BaseToolStatus from './BaseToolStatus/index'
16
+ import BasePulldown from './BasePulldown/index'
17
+ import BaseIntervalInput from './BaseIntervalInput/index'
18
+ import BaseForm from './BaseForm/index'
19
+ import BasePictureCard from './BasePictureCard/index'
20
+ import BasePrintPreview from './BasePrintPreview/index'
21
+ import BaseGantt from './BaseGantt/index'
22
+ import BaseKanbanEmpty from './BaseKanbanEmpty/index'
23
+ import BaseSearch from './BaseSearch/index'
24
+ import BaseButton from './BaseButton/index'
25
+ import BaseTreeSelect from './BaseTreeSelect/index'
26
+ import LeaveAMessage from './LeaveAMessage/index'
27
+ import AuditsList from './AuditsList/index'
28
+
29
+ import store from './utils/store'
30
+ import request from './utils/request'
31
+ import BaseGrid from './BaseGrid/index'
32
+
33
+ // 存储组件列表
34
+ const components = [
35
+ BaseInput,
36
+ BaseCheckbox,
37
+ BaseDate,
38
+ BaseDatetime,
39
+ BaseDateWeek,
40
+ BaseTextArea,
41
+ BaseSelect,
42
+ BaseSelectMulti,
43
+ BaseTime,
44
+ BasePagination,
45
+ BaseNumberInput,
46
+ BaseTool,
47
+ BaseToolStatus,
48
+ BasePulldown,
49
+ BaseIntervalInput,
50
+ BaseForm,
51
+ BasePictureCard,
52
+ BaseGrid,
53
+ BasePrintPreview,
54
+ BaseGantt,
55
+ BaseKanbanEmpty,
56
+ BaseSearch,
57
+ BaseButton,
58
+ LeaveAMessage,
59
+ AuditsList,
60
+ BaseTreeSelect,
61
+ ]
62
+ // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
63
+
64
+ import 'vxe-table/lib/style.css'
65
+ import VXETable from 'vxe-table'
66
+
67
+ const popupInterceptor = (params) => {
68
+ // 比如点击了某个组件的弹出层面板之后,此时被激活单元格不应该被自动关闭,通过返回 false 可以阻止默认的行为。
69
+ let parentElement =
70
+ params.$event.target.shadowRoot && params.$event.composed
71
+ ? params.$event.composedPath()[0] || params.$event.target
72
+ : params.$event.target
73
+ while (true) {
74
+ // console.debug(parentElement)
75
+ if (
76
+ parentElement &&
77
+ (parentElement.className.indexOf('vxe-modal--wrapper') > -1 ||
78
+ parentElement.className.indexOf('ant-calendar') > -1 ||
79
+ parentElement.className.indexOf('ant-select-dropdown-menu-item') > -1 ||
80
+ parentElement.className.indexOf('interceptor-class') > -1 ||
81
+ parentElement.className.indexOf('ant-time-picker-panel') > -1 ||
82
+ parentElement.className.indexOf('ant-select-dropdown') > -1)
83
+ ) {
84
+ //定义网格弹出框不能对焦问题
85
+ return false
86
+ }
87
+ if (parentElement.parentElement) {
88
+ parentElement = parentElement.parentElement
89
+ } else {
90
+ break
91
+ }
92
+ }
93
+ }
94
+ //网格弹出点击拦截器
95
+ VXETable.interceptor.add('event.clearActived', (params) => {
96
+ return popupInterceptor(params)
97
+ })
98
+ //网格筛选点击拦截器
99
+ VXETable.interceptor.add('event.clearFilter', (params) => {
100
+ return popupInterceptor(params)
101
+ })
102
+
103
+ //表格自定义格式化
104
+ import './utils/gridFormat'
105
+ // 右键菜单插件
106
+ import Contextmenu from 'vue-contextmenujs'
107
+
108
+ Vue.use(Contextmenu)
109
+
110
+ const install = function (Vue) {
111
+ //注册grid组件
112
+ Vue.use(VXETable)
113
+ // 遍历注册全局组件
114
+ components.forEach((component) => {
115
+ Vue.component(component.name, component)
116
+ })
117
+ }
118
+
119
+ // 环境监测
120
+ // 判断是否是直接引入文件
121
+ if (typeof window !== 'undefined' && window.Vue) {
122
+ install(window.Vue)
123
+ }
124
+
125
+ import XEUtils from 'xe-utils'
126
+ //表单输入框验证
127
+ import { extend, localize } from 'vee-validate'
128
+ //引入校验规则 安装所有规则
129
+ import * as rules from 'vee-validate/dist/rules'
130
+ Object.keys(rules).forEach((rule) => {
131
+ extend(rule, rules[rule])
132
+ })
133
+
134
+ extend('gt', (value, min) => {
135
+ if (XEUtils.toNumber(value) > min) {
136
+ return true
137
+ }
138
+ return `必须大于${min}`
139
+ })
140
+
141
+ localize({
142
+ en: {
143
+ messages: {
144
+ required: '必填',
145
+ min: '不能小于 {length} 个字符',
146
+ max: (_, { length }) => `不能大于 ${length} 个字符`,
147
+ email: '邮箱输入不符合规则',
148
+ },
149
+ },
150
+ })
151
+
152
+ export default {
153
+ // 导出的对象必须具有 install,才能被 Vue.use() 方法安装
154
+ install,
155
+ // 以下是具体的组件列表
156
+ }
157
+ export * from './utils/enum'
158
+ export * from './utils/common'
159
+ export * from './utils/filters'
160
+ export * from './utils/msg'
161
+
162
+ export {
163
+ BaseInput,
164
+ BaseCheckbox,
165
+ BaseDate,
166
+ BaseDatetime,
167
+ BaseDateWeek,
168
+ BaseTextArea,
169
+ BaseSelect,
170
+ BaseSelectMulti,
171
+ BaseTime,
172
+ BasePagination,
173
+ BaseNumberInput,
174
+ BaseTool,
175
+ BaseToolStatus,
176
+ BasePulldown,
177
+ BaseIntervalInput,
178
+ BaseForm,
179
+ BaseGrid,
180
+ BasePictureCard,
181
+ BasePrintPreview,
182
+ BaseGantt,
183
+ BaseKanbanEmpty,
184
+ BaseSearch,
185
+ BaseTreeSelect,
186
+ BaseButton,
187
+ LeaveAMessage,
188
+ AuditsList,
189
+ store,
190
+ request,
191
+ }
@@ -1,78 +1,78 @@
1
- .d-control-container {
2
- display: flex;
3
- }
4
- .d-control-label {
5
- font-size: 12px;
6
- font-weight: bold;
7
- flex: 0 0 100px;
8
- }
9
- .d-control {
10
- flex: 1;
11
- width: 100%;
12
- height: 30px;
13
- overflow: hidden;
14
- white-space: nowrap;
15
- text-overflow: ellipsis;
16
- }
17
- .d-control-label-required {
18
- color: red;
19
- }
20
- .d-error-input {
21
- border-color: #f22435 !important;
22
- }
23
- .d-error-input input {
24
- border-color: #f22435 !important;
25
- }
26
- .d-error-input input:hover {
27
- border-color: #f22435 !important;
28
- }
29
- .d-error-input div {
30
- border-color: #f22435 !important;
31
- }
32
- .d-error-msg {
33
- color: #f22435;
34
- font-size: 0.75em;
35
- position: fixed;
36
- }
37
- .d-form-items {
38
- display: flex;
39
- flex-flow: row wrap;
40
- justify-content: flex-start;
41
- padding: 8px 8px 8px 8px;
42
- overflow-y: auto;
43
- }
44
- .d-form-items .d-form-item-ghost {
45
- visibility: hidden;
46
- height: 0;
47
- min-height: 0px !important;
48
- flex-grow: 1;
49
- flex-shrink: 1;
50
- flex-basis: auto;
51
- border: 1px solid #9ad4dc;
52
- min-width: 150px;
53
- width: 280px;
54
- margin-right: 8px;
55
- margin-left: 8px;
56
- border-radius: 6px;
57
- }
58
- .d-form-items .d-form-item {
59
- width: 280px;
60
- flex-grow: 1;
61
- flex-shrink: 1;
62
- flex-basis: auto;
63
- margin-top: 0px;
64
- margin-right: 8px;
65
- margin-bottom: 0px;
66
- margin-left: 8px;
67
- padding: 6px 8px 6px 8px;
68
- min-width: 150px;
69
- border-radius: 6px;
70
- }
71
- .d-form-items .d-form-item .search-view-icon {
72
- float: left;
73
- width: 64px;
74
- height: 64px;
75
- }
76
- .vxe-table--render-default .vxe-table--body-wrapper {
77
- position: inherit !important;
78
- }
1
+ .d-control-container {
2
+ display: flex;
3
+ }
4
+ .d-control-label {
5
+ font-size: 12px;
6
+ font-weight: bold;
7
+ flex: 0 0 100px;
8
+ }
9
+ .d-control {
10
+ flex: 1;
11
+ width: 100%;
12
+ height: 30px;
13
+ overflow: hidden;
14
+ white-space: nowrap;
15
+ text-overflow: ellipsis;
16
+ }
17
+ .d-control-label-required {
18
+ color: red;
19
+ }
20
+ .d-error-input {
21
+ border-color: #f22435 !important;
22
+ }
23
+ .d-error-input input {
24
+ border-color: #f22435 !important;
25
+ }
26
+ .d-error-input input:hover {
27
+ border-color: #f22435 !important;
28
+ }
29
+ .d-error-input div {
30
+ border-color: #f22435 !important;
31
+ }
32
+ .d-error-msg {
33
+ color: #f22435;
34
+ font-size: 0.75em;
35
+ position: fixed;
36
+ }
37
+ .d-form-items {
38
+ display: flex;
39
+ flex-flow: row wrap;
40
+ justify-content: flex-start;
41
+ padding: 8px 8px 8px 8px;
42
+ overflow-y: auto;
43
+ }
44
+ .d-form-items .d-form-item-ghost {
45
+ visibility: hidden;
46
+ height: 0;
47
+ min-height: 0px !important;
48
+ flex-grow: 1;
49
+ flex-shrink: 1;
50
+ flex-basis: auto;
51
+ border: 1px solid #9ad4dc;
52
+ min-width: 150px;
53
+ width: 280px;
54
+ margin-right: 8px;
55
+ margin-left: 8px;
56
+ border-radius: 6px;
57
+ }
58
+ .d-form-items .d-form-item {
59
+ width: 280px;
60
+ flex-grow: 1;
61
+ flex-shrink: 1;
62
+ flex-basis: auto;
63
+ margin-top: 0px;
64
+ margin-right: 8px;
65
+ margin-bottom: 0px;
66
+ margin-left: 8px;
67
+ padding: 6px 8px 6px 8px;
68
+ min-width: 150px;
69
+ border-radius: 6px;
70
+ }
71
+ .d-form-items .d-form-item .search-view-icon {
72
+ float: left;
73
+ width: 64px;
74
+ height: 64px;
75
+ }
76
+ .vxe-table--render-default .vxe-table--body-wrapper {
77
+ position: inherit !important;
78
+ }