doway-coms 2.3.2 → 2.3.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 (82) 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 +53 -53
  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/BaseForm/index.js +7 -7
  26. package/packages/BaseForm/src/index.vue +730 -730
  27. package/packages/BaseGantt/index.js +9 -9
  28. package/packages/BaseGantt/src/index.vue +617 -617
  29. package/packages/BaseGrid/index.js +9 -9
  30. package/packages/BaseGrid/src/SeqSetting.vue +278 -278
  31. package/packages/BaseGrid/src/index.vue +3616 -3616
  32. package/packages/BaseGridAdjust/index.js +9 -9
  33. package/packages/BaseGridAdjust/src/index.vue +482 -482
  34. package/packages/BaseInput/index.js +7 -7
  35. package/packages/BaseInput/src/index.vue +164 -164
  36. package/packages/BaseIntervalInput/index.js +7 -7
  37. package/packages/BaseIntervalInput/src/index.vue +310 -310
  38. package/packages/BaseKanbanEmpty/index.js +7 -7
  39. package/packages/BaseKanbanEmpty/src/index.vue +176 -176
  40. package/packages/BaseNumberInput/index.js +7 -7
  41. package/packages/BaseNumberInput/src/index.vue +291 -291
  42. package/packages/BasePagination/index.js +7 -7
  43. package/packages/BasePagination/src/index.vue +91 -91
  44. package/packages/BasePictureCard/index.js +7 -7
  45. package/packages/BasePictureCard/src/index.vue +580 -580
  46. package/packages/BasePrintPreview/index.js +7 -7
  47. package/packages/BasePrintPreview/src/index.vue +129 -129
  48. package/packages/BasePulldown/index.js +7 -7
  49. package/packages/BasePulldown/src/index.vue +1321 -1282
  50. package/packages/BaseSearch/index.js +7 -7
  51. package/packages/BaseSearch/src/index.vue +935 -935
  52. package/packages/BaseSelect/index.js +7 -7
  53. package/packages/BaseSelect/src/index.vue +155 -155
  54. package/packages/BaseSelectMulti/index.js +7 -7
  55. package/packages/BaseSelectMulti/src/index.vue +148 -148
  56. package/packages/BaseTextArea/index.js +7 -7
  57. package/packages/BaseTextArea/src/index.vue +178 -178
  58. package/packages/BaseTime/index.js +7 -7
  59. package/packages/BaseTime/src/index.vue +166 -166
  60. package/packages/BaseTool/index.js +7 -7
  61. package/packages/BaseTool/src/index.vue +349 -349
  62. package/packages/BaseToolStatus/index.js +7 -7
  63. package/packages/BaseToolStatus/src/index.vue +388 -388
  64. package/packages/BaseTreeSelect/index.js +8 -8
  65. package/packages/BaseTreeSelect/src/index.vue +437 -437
  66. package/packages/LeaveAMessage/index.js +7 -7
  67. package/packages/LeaveAMessage/src/index.vue +601 -601
  68. package/packages/index.js +191 -191
  69. package/packages/styles/default.css +78 -78
  70. package/packages/styles/default.less +84 -84
  71. package/packages/utils/api.js +107 -107
  72. package/packages/utils/auth.js +38 -38
  73. package/packages/utils/common.js +610 -610
  74. package/packages/utils/dom.js +181 -181
  75. package/packages/utils/enum.js +86 -86
  76. package/packages/utils/filters.js +472 -472
  77. package/packages/utils/gridFormat.js +66 -66
  78. package/packages/utils/msg.js +84 -84
  79. package/packages/utils/patchFiles.js +44 -44
  80. package/packages/utils/request.js +178 -178
  81. package/packages/utils/store.js +309 -309
  82. 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
+ }