doway-coms 2.7.7 → 2.7.8

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 (87) hide show
  1. package/.browserslistrc +2 -2
  2. package/README.md +28 -28
  3. package/package.json +54 -54
  4. package/packages/AuditsList/index.js +7 -7
  5. package/packages/AuditsList/src/index.vue +266 -266
  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/BaseDateMonth/index.js +7 -7
  13. package/packages/BaseDateMonth/src/index.vue +163 -163
  14. package/packages/BaseDateWeek/index.js +7 -7
  15. package/packages/BaseDateWeek/src/index.vue +163 -163
  16. package/packages/BaseDatetime/index.js +7 -7
  17. package/packages/BaseDatetime/src/index.vue +196 -196
  18. package/packages/BaseFileGroup/index.js +7 -7
  19. package/packages/BaseFileGroup/src/index.vue +724 -724
  20. package/packages/BaseForm/index.js +7 -7
  21. package/packages/BaseForm/src/index.vue +752 -752
  22. package/packages/BaseGantt/index.js +9 -9
  23. package/packages/BaseGantt/src/index.vue +617 -617
  24. package/packages/BaseGrid/index.js +9 -9
  25. package/packages/BaseGrid/src/SeqSetting.vue +278 -278
  26. package/packages/BaseGrid/src/index.vue +3738 -3734
  27. package/packages/BaseGridAdjust/index.js +9 -9
  28. package/packages/BaseGridAdjust/src/index.vue +482 -482
  29. package/packages/BaseInput/index.js +7 -7
  30. package/packages/BaseInput/src/index.vue +164 -164
  31. package/packages/BaseIntervalInput/index.js +7 -7
  32. package/packages/BaseIntervalInput/src/index.vue +310 -310
  33. package/packages/BaseKanbanEmpty/index.js +7 -7
  34. package/packages/BaseKanbanEmpty/src/index.vue +176 -176
  35. package/packages/BaseNumberInput/index.js +7 -7
  36. package/packages/BaseNumberInput/src/index.vue +290 -290
  37. package/packages/BasePagination/index.js +7 -7
  38. package/packages/BasePagination/src/index.vue +91 -91
  39. package/packages/BasePictureCard/index.js +7 -7
  40. package/packages/BasePictureCard/src/index.vue +580 -580
  41. package/packages/BasePrintPreview/index.js +7 -7
  42. package/packages/BasePrintPreview/src/index.vue +129 -129
  43. package/packages/BasePulldown/index.js +7 -7
  44. package/packages/BasePulldown/src/index.vue +1346 -1346
  45. package/packages/BaseSearch/index.js +7 -7
  46. package/packages/BaseSearch/src/index.vue +935 -935
  47. package/packages/BaseSelect/index.js +7 -7
  48. package/packages/BaseSelect/src/index.vue +155 -155
  49. package/packages/BaseSelectMulti/index.js +7 -7
  50. package/packages/BaseSelectMulti/src/index.vue +148 -148
  51. package/packages/BaseTextArea/index.js +7 -7
  52. package/packages/BaseTextArea/src/index.vue +178 -178
  53. package/packages/BaseTime/index.js +7 -7
  54. package/packages/BaseTime/src/index.vue +166 -166
  55. package/packages/BaseTool/index.js +7 -7
  56. package/packages/BaseTool/src/index.vue +349 -349
  57. package/packages/BaseToolStatus/index.js +7 -7
  58. package/packages/BaseToolStatus/src/ApprovalPersonsGroup.vue +41 -41
  59. package/packages/BaseToolStatus/src/index.vue +439 -439
  60. package/packages/BaseTreeSelect/index.js +8 -8
  61. package/packages/BaseTreeSelect/src/index.vue +437 -437
  62. package/packages/LeaveAMessage/index.js +7 -7
  63. package/packages/LeaveAMessage/src/index.vue +601 -601
  64. package/packages/index.js +194 -194
  65. package/packages/styles/default.css +78 -78
  66. package/packages/styles/default.less +91 -91
  67. package/packages/utils/api.js +107 -107
  68. package/packages/utils/auth.js +38 -38
  69. package/packages/utils/common.js +635 -635
  70. package/packages/utils/dom.js +181 -181
  71. package/packages/utils/enum.js +86 -86
  72. package/packages/utils/filters.js +485 -485
  73. package/packages/utils/gridFormat.js +66 -66
  74. package/packages/utils/msg.js +84 -84
  75. package/packages/utils/patchFiles.js +44 -44
  76. package/packages/utils/request.js +178 -178
  77. package/packages/utils/store.js +314 -314
  78. package/vue.config.js +59 -59
  79. package/dist/css/chunk-vendors.7f83d8f9.css +0 -8
  80. package/dist/css/index.7946d50b.css +0 -1
  81. package/dist/favicon.ico +0 -0
  82. package/dist/js/chunk-vendors.28fda91d.js +0 -340
  83. package/dist/js/index.49bc6add.js +0 -2
  84. package/lib/doway-coms.common.js +0 -120397
  85. package/lib/doway-coms.css +0 -1
  86. package/lib/doway-coms.umd.js +0 -120407
  87. package/lib/doway-coms.umd.min.js +0 -328
@@ -1,135 +1,135 @@
1
- <template>
2
- <div class="d-control-container">
3
- <div class="d-control-label">
4
- {{ label
5
- }}
6
- <span v-if="rules && rules['required']" class="d-control-label-required"
7
- >*</span
8
- >
9
- <Tooltip :title="tooltip" v-if="tooltip" style="margin: 0 2px">
10
- <img src="../../styles/icon/help.png" alt="" style="width: 14px">
11
- </Tooltip>
12
- </div>
13
- <div class="d-control">
14
- <ValidationProvider
15
- :name="label"
16
- v-slot="v"
17
- :rules="rules"
18
- v-if="edit === true"
19
- >
20
- <Checkbox
21
- :size="'small'"
22
- v-model="currentValue"
23
- :placeholder="placeholder"
24
- style="width: 100%"
25
- @change="change"
26
- :class="{ 'd-error-input': v.errors.length > 0 }"
27
- />
28
- <div class="d-error-msg">
29
- {{ v.errors[0] }}
30
- </div>
31
- </ValidationProvider>
32
- <span v-else>{{ currentValue === true ? "是" : "否" }}</span>
33
- </div>
34
- </div>
35
- </template>
36
-
37
- <script>
38
- import { Checkbox } from 'ant-design-vue'
39
- import { ValidationProvider } from 'vee-validate'
40
- import { Tooltip } from 'ant-design-vue'
41
- export default {
42
- name: 'BaseCheckbox',
43
- components:{
44
- Checkbox,
45
- ValidationProvider,
46
- Tooltip,
47
- },
48
- data() {
49
- return {
50
- filterValue: '',
51
- isInputChanged: false,
52
- inputTimeout: null,
53
- searchRows: [],
54
- filterCols: [],
55
- gridLoading: false,
56
- gridPagerConfig: {
57
- total: 0,
58
- currentPage: 1,
59
- pageSize: 10
60
- }
61
- }
62
- },
63
- computed: {
64
- currentValue: {
65
- // 动态计算currentValue的值
66
- get: function() {
67
- return this.value // 将props中的value赋值给currentValue
68
- },
69
- set: function(val) {
70
- this.$emit('input', val) // 通过$emit触发父组件
71
- }
72
- }
73
- },
74
- props: {
75
- rules: {
76
- type: Object,
77
- default: function() {
78
- return null
79
- }
80
- },
81
- value: {
82
- type: Boolean,
83
- default: function() {
84
- return false
85
- }
86
- },
87
- edit: {
88
- type: Boolean,
89
- default: function() {
90
- return false
91
- }
92
- },
93
- name: {
94
- type: String,
95
- default: function() {
96
- return ''
97
- }
98
- },
99
- label: {
100
- type: String,
101
- default: function() {
102
- return ''
103
- }
104
- },
105
- placeholder: {
106
- type: String,
107
- default: function() {
108
- return ''
109
- }
110
- },
111
- tooltip: {
112
- type: String,
113
- default: function() {
114
- return ''
115
- }
116
- }
117
- },
118
- created() {},
119
- methods: {
120
- change() {
121
- this.$emit('change')
122
- }
123
- }
124
- }
125
- </script>
126
-
127
- <style lang="scss" scoped>
128
- ::v-deep .ant-checkbox-wrapper {
129
- display: inline;
130
- }
131
- </style>
132
- <style lang="less">
133
- @import '../../styles/default.less';
134
- </style>
1
+ <template>
2
+ <div class="d-control-container">
3
+ <div class="d-control-label">
4
+ {{ label
5
+ }}
6
+ <span v-if="rules && rules['required']" class="d-control-label-required"
7
+ >*</span
8
+ >
9
+ <Tooltip :title="tooltip" v-if="tooltip" style="margin: 0 2px">
10
+ <img src="../../styles/icon/help.png" alt="" style="width: 14px">
11
+ </Tooltip>
12
+ </div>
13
+ <div class="d-control">
14
+ <ValidationProvider
15
+ :name="label"
16
+ v-slot="v"
17
+ :rules="rules"
18
+ v-if="edit === true"
19
+ >
20
+ <Checkbox
21
+ :size="'small'"
22
+ v-model="currentValue"
23
+ :placeholder="placeholder"
24
+ style="width: 100%"
25
+ @change="change"
26
+ :class="{ 'd-error-input': v.errors.length > 0 }"
27
+ />
28
+ <div class="d-error-msg">
29
+ {{ v.errors[0] }}
30
+ </div>
31
+ </ValidationProvider>
32
+ <span v-else>{{ currentValue === true ? "是" : "否" }}</span>
33
+ </div>
34
+ </div>
35
+ </template>
36
+
37
+ <script>
38
+ import { Checkbox } from 'ant-design-vue'
39
+ import { ValidationProvider } from 'vee-validate'
40
+ import { Tooltip } from 'ant-design-vue'
41
+ export default {
42
+ name: 'BaseCheckbox',
43
+ components:{
44
+ Checkbox,
45
+ ValidationProvider,
46
+ Tooltip,
47
+ },
48
+ data() {
49
+ return {
50
+ filterValue: '',
51
+ isInputChanged: false,
52
+ inputTimeout: null,
53
+ searchRows: [],
54
+ filterCols: [],
55
+ gridLoading: false,
56
+ gridPagerConfig: {
57
+ total: 0,
58
+ currentPage: 1,
59
+ pageSize: 10
60
+ }
61
+ }
62
+ },
63
+ computed: {
64
+ currentValue: {
65
+ // 动态计算currentValue的值
66
+ get: function() {
67
+ return this.value // 将props中的value赋值给currentValue
68
+ },
69
+ set: function(val) {
70
+ this.$emit('input', val) // 通过$emit触发父组件
71
+ }
72
+ }
73
+ },
74
+ props: {
75
+ rules: {
76
+ type: Object,
77
+ default: function() {
78
+ return null
79
+ }
80
+ },
81
+ value: {
82
+ type: Boolean,
83
+ default: function() {
84
+ return false
85
+ }
86
+ },
87
+ edit: {
88
+ type: Boolean,
89
+ default: function() {
90
+ return false
91
+ }
92
+ },
93
+ name: {
94
+ type: String,
95
+ default: function() {
96
+ return ''
97
+ }
98
+ },
99
+ label: {
100
+ type: String,
101
+ default: function() {
102
+ return ''
103
+ }
104
+ },
105
+ placeholder: {
106
+ type: String,
107
+ default: function() {
108
+ return ''
109
+ }
110
+ },
111
+ tooltip: {
112
+ type: String,
113
+ default: function() {
114
+ return ''
115
+ }
116
+ }
117
+ },
118
+ created() {},
119
+ methods: {
120
+ change() {
121
+ this.$emit('change')
122
+ }
123
+ }
124
+ }
125
+ </script>
126
+
127
+ <style lang="scss" scoped>
128
+ ::v-deep .ant-checkbox-wrapper {
129
+ display: inline;
130
+ }
131
+ </style>
132
+ <style lang="less">
133
+ @import '../../styles/default.less';
134
+ </style>
135
135
 
@@ -1,8 +1,8 @@
1
- // 导入组件,组件必须声明 name
2
- import BaseDate from './src/index.vue';
3
- // 为组件提供 install 安装方法,供按需引入
4
- BaseDate.install = function(Vue) {
5
- Vue.component(BaseDate.name, BaseDate);
6
- };
7
- // 默认导出组件
1
+ // 导入组件,组件必须声明 name
2
+ import BaseDate from './src/index.vue';
3
+ // 为组件提供 install 安装方法,供按需引入
4
+ BaseDate.install = function(Vue) {
5
+ Vue.component(BaseDate.name, BaseDate);
6
+ };
7
+ // 默认导出组件
8
8
  export default BaseDate;
@@ -1,198 +1,198 @@
1
- <template>
2
- <div class="d-control-container">
3
- <div
4
- class="d-control-label"
5
- :style="{ width: labelWidth > 0 ? labelWidth + 'px' : 'none' }"
6
- >
7
- {{ label }}
8
- <span v-if="rules && rules['required']" class="d-control-label-required"
9
- >*</span
10
- >
11
- <Tooltip :title="tooltip" v-if="tooltip" style="margin: 0 2px">
12
- <img src="../../styles/icon/help.png" alt="" style="width: 14px" />
13
- </Tooltip>
14
- </div>
15
- <div class="d-control">
16
- <ValidationProvider
17
- :name="label"
18
- v-slot="v"
19
- :rules="rules"
20
- v-if="edit === true"
21
- >
22
- <DatePicker
23
- :size="'small'"
24
- placeholder="选择日期"
25
- v-model="currentValue"
26
- :disabled-date="disabledDate"
27
- format="YYYY-MM-DD"
28
- value-format="YYYY-MM-DD"
29
- style="width: 100%"
30
- @change="change"
31
- :class="{ 'd-error-input': v.errors.length > 0 }"
32
- />
33
- <div class="d-error-msg">
34
- {{ v.errors[0] }}
35
- </div>
36
- </ValidationProvider>
37
- <Tooltip placement="topLeft" v-else>
38
- <template slot="title">
39
- {{ moment(currentValue).format("YYYY-MM-DD") }}
40
- </template>
41
- <span @contextmenu.prevent="(event) => onContextmenu(event, currentValue)">
42
- {{ currentValue?moment(currentValue).format("YYYY-MM-DD"):currentValue }}
43
- </span>
44
- </Tooltip>
45
- </div>
46
- </div>
47
- </template>
48
-
49
- <script>
50
- //VXETable插件
51
- import VXETable from "vxe-table";
52
- //轻量级剪贴板复制函数
53
- import XEClipboard from "xe-clipboard";
54
- import { DatePicker, Tooltip } from "ant-design-vue";
55
- import { ValidationProvider } from "vee-validate";
56
- import moment from "moment";
57
-
58
- export default {
59
- name: "BaseDate",
60
- components: {
61
- DatePicker,
62
- ValidationProvider,
63
- Tooltip,
64
- },
65
- data() {
66
- return {
67
- moment,
68
- filterValue: "",
69
- isInputChanged: false,
70
- inputTimeout: null,
71
- searchRows: [],
72
- filterCols: [],
73
- gridLoading: false,
74
- gridPagerConfig: {
75
- total: 0,
76
- currentPage: 1,
77
- pageSize: 10,
78
- },
79
- };
80
- },
81
- computed: {
82
- currentValue: {
83
- // 动态计算currentValue的值
84
- get: function () {
85
- return this.value; // 将props中的value赋值给currentValue
86
- },
87
- set: function (val) {
88
- this.$emit("input", val); // 通过$emit触发父组件
89
- },
90
- },
91
- },
92
- props: {
93
- rules: {
94
- type: Object,
95
- default: function () {
96
- return null;
97
- },
98
- },
99
- value: {
100
- type: String,
101
- default: function () {
102
- return "";
103
- },
104
- },
105
- pastDate: {
106
- type: Boolean,
107
- default: function () {
108
- return false;
109
- },
110
- },
111
- labelWidth: {
112
- type: Number,
113
- default: function () {
114
- return 0;
115
- },
116
- },
117
- edit: {
118
- type: Boolean,
119
- default: function () {
120
- return false;
121
- },
122
- },
123
- name: {
124
- type: String,
125
- default: function () {
126
- return "";
127
- },
128
- },
129
- label: {
130
- type: String,
131
- default: function () {
132
- return "";
133
- },
134
- },
135
- placeholder: {
136
- type: String,
137
- default: function () {
138
- return "";
139
- },
140
- },
141
- tooltip: {
142
- type: String,
143
- default: function () {
144
- return "";
145
- },
146
- },
147
- disabledDateValue: {
148
- type: Number,
149
- default: function () {
150
- return 0;
151
- },
152
- },
153
- },
154
- created() {},
155
- methods: {
156
- onContextmenu(event, currentValue) {
157
- this.$contextmenu({
158
- items: [
159
- {
160
- icon: 'ant-design:folder-open-filled',
161
- label: "复制",
162
- onClick: () => {
163
- if (XEClipboard.copy(currentValue)) {
164
- VXETable.modal.message({
165
- content: "已复制到剪贴板!",
166
- status: "success",
167
- });
168
- }
169
- }
170
- }
171
- ],
172
- event,
173
- zIndex: 1000,
174
- minWidth: 150
175
- });
176
- return false;
177
- },
178
- change() {
179
- this.$emit("change");
180
- },
181
- disabledDate(current) {
182
- if (this.pastDate === true) {
183
- //如果允许过期时间
184
- return false;
185
- }
186
- return (
187
- current &&
188
- current.diff(moment().add(this.disabledDateValue, "day"), "days") < 0
189
- );
190
- },
191
- },
192
- };
193
- </script>
194
-
195
- <style lang="less">
196
- @import "../../styles/default.less";
197
- </style>
1
+ <template>
2
+ <div class="d-control-container">
3
+ <div
4
+ class="d-control-label"
5
+ :style="{ width: labelWidth > 0 ? labelWidth + 'px' : 'none' }"
6
+ >
7
+ {{ label }}
8
+ <span v-if="rules && rules['required']" class="d-control-label-required"
9
+ >*</span
10
+ >
11
+ <Tooltip :title="tooltip" v-if="tooltip" style="margin: 0 2px">
12
+ <img src="../../styles/icon/help.png" alt="" style="width: 14px" />
13
+ </Tooltip>
14
+ </div>
15
+ <div class="d-control">
16
+ <ValidationProvider
17
+ :name="label"
18
+ v-slot="v"
19
+ :rules="rules"
20
+ v-if="edit === true"
21
+ >
22
+ <DatePicker
23
+ :size="'small'"
24
+ placeholder="选择日期"
25
+ v-model="currentValue"
26
+ :disabled-date="disabledDate"
27
+ format="YYYY-MM-DD"
28
+ value-format="YYYY-MM-DD"
29
+ style="width: 100%"
30
+ @change="change"
31
+ :class="{ 'd-error-input': v.errors.length > 0 }"
32
+ />
33
+ <div class="d-error-msg">
34
+ {{ v.errors[0] }}
35
+ </div>
36
+ </ValidationProvider>
37
+ <Tooltip placement="topLeft" v-else>
38
+ <template slot="title">
39
+ {{ moment(currentValue).format("YYYY-MM-DD") }}
40
+ </template>
41
+ <span @contextmenu.prevent="(event) => onContextmenu(event, currentValue)">
42
+ {{ currentValue?moment(currentValue).format("YYYY-MM-DD"):currentValue }}
43
+ </span>
44
+ </Tooltip>
45
+ </div>
46
+ </div>
47
+ </template>
48
+
49
+ <script>
50
+ //VXETable插件
51
+ import VXETable from "vxe-table";
52
+ //轻量级剪贴板复制函数
53
+ import XEClipboard from "xe-clipboard";
54
+ import { DatePicker, Tooltip } from "ant-design-vue";
55
+ import { ValidationProvider } from "vee-validate";
56
+ import moment from "moment";
57
+
58
+ export default {
59
+ name: "BaseDate",
60
+ components: {
61
+ DatePicker,
62
+ ValidationProvider,
63
+ Tooltip,
64
+ },
65
+ data() {
66
+ return {
67
+ moment,
68
+ filterValue: "",
69
+ isInputChanged: false,
70
+ inputTimeout: null,
71
+ searchRows: [],
72
+ filterCols: [],
73
+ gridLoading: false,
74
+ gridPagerConfig: {
75
+ total: 0,
76
+ currentPage: 1,
77
+ pageSize: 10,
78
+ },
79
+ };
80
+ },
81
+ computed: {
82
+ currentValue: {
83
+ // 动态计算currentValue的值
84
+ get: function () {
85
+ return this.value; // 将props中的value赋值给currentValue
86
+ },
87
+ set: function (val) {
88
+ this.$emit("input", val); // 通过$emit触发父组件
89
+ },
90
+ },
91
+ },
92
+ props: {
93
+ rules: {
94
+ type: Object,
95
+ default: function () {
96
+ return null;
97
+ },
98
+ },
99
+ value: {
100
+ type: String,
101
+ default: function () {
102
+ return "";
103
+ },
104
+ },
105
+ pastDate: {
106
+ type: Boolean,
107
+ default: function () {
108
+ return false;
109
+ },
110
+ },
111
+ labelWidth: {
112
+ type: Number,
113
+ default: function () {
114
+ return 0;
115
+ },
116
+ },
117
+ edit: {
118
+ type: Boolean,
119
+ default: function () {
120
+ return false;
121
+ },
122
+ },
123
+ name: {
124
+ type: String,
125
+ default: function () {
126
+ return "";
127
+ },
128
+ },
129
+ label: {
130
+ type: String,
131
+ default: function () {
132
+ return "";
133
+ },
134
+ },
135
+ placeholder: {
136
+ type: String,
137
+ default: function () {
138
+ return "";
139
+ },
140
+ },
141
+ tooltip: {
142
+ type: String,
143
+ default: function () {
144
+ return "";
145
+ },
146
+ },
147
+ disabledDateValue: {
148
+ type: Number,
149
+ default: function () {
150
+ return 0;
151
+ },
152
+ },
153
+ },
154
+ created() {},
155
+ methods: {
156
+ onContextmenu(event, currentValue) {
157
+ this.$contextmenu({
158
+ items: [
159
+ {
160
+ icon: 'ant-design:folder-open-filled',
161
+ label: "复制",
162
+ onClick: () => {
163
+ if (XEClipboard.copy(currentValue)) {
164
+ VXETable.modal.message({
165
+ content: "已复制到剪贴板!",
166
+ status: "success",
167
+ });
168
+ }
169
+ }
170
+ }
171
+ ],
172
+ event,
173
+ zIndex: 1000,
174
+ minWidth: 150
175
+ });
176
+ return false;
177
+ },
178
+ change() {
179
+ this.$emit("change");
180
+ },
181
+ disabledDate(current) {
182
+ if (this.pastDate === true) {
183
+ //如果允许过期时间
184
+ return false;
185
+ }
186
+ return (
187
+ current &&
188
+ current.diff(moment().add(this.disabledDateValue, "day"), "days") < 0
189
+ );
190
+ },
191
+ },
192
+ };
193
+ </script>
194
+
195
+ <style lang="less">
196
+ @import "../../styles/default.less";
197
+ </style>
198
198