doway-coms 2.6.2 → 2.6.4

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