doway-coms 1.4.95 → 1.4.97

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 (70) 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.86478f73.css +3 -0
  5. package/dist/favicon.ico +0 -0
  6. package/dist/js/chunk-vendors.307eaa8f.js +347 -0
  7. package/dist/js/index.48e7f7ac.js +2 -0
  8. package/package.json +52 -52
  9. package/packages/BaseButton/index.js +7 -7
  10. package/packages/BaseButton/src/index.vue +241 -241
  11. package/packages/BaseCheckbox/index.js +7 -7
  12. package/packages/BaseCheckbox/src/index.vue +134 -134
  13. package/packages/BaseDate/index.js +7 -7
  14. package/packages/BaseDate/src/index.vue +197 -197
  15. package/packages/BaseDateWeek/index.js +7 -7
  16. package/packages/BaseDateWeek/src/index.vue +163 -163
  17. package/packages/BaseDatetime/index.js +7 -7
  18. package/packages/BaseDatetime/src/index.vue +196 -196
  19. package/packages/BaseForm/index.js +7 -7
  20. package/packages/BaseForm/src/index.vue +664 -664
  21. package/packages/BaseGantt/index.js +9 -9
  22. package/packages/BaseGantt/src/index.vue +604 -604
  23. package/packages/BaseGrid/index.js +9 -9
  24. package/packages/BaseGrid/src/index.vue +2675 -2674
  25. package/packages/BaseGridAdjust/index.js +9 -9
  26. package/packages/BaseGridAdjust/src/index.vue +455 -455
  27. package/packages/BaseInput/index.js +7 -7
  28. package/packages/BaseInput/src/index.vue +164 -164
  29. package/packages/BaseIntervalInput/index.js +7 -7
  30. package/packages/BaseIntervalInput/src/index.vue +310 -310
  31. package/packages/BaseKanbanEmpty/index.js +7 -7
  32. package/packages/BaseKanbanEmpty/src/index.vue +176 -176
  33. package/packages/BaseNumberInput/index.js +7 -7
  34. package/packages/BaseNumberInput/src/index.vue +229 -229
  35. package/packages/BasePagination/index.js +7 -7
  36. package/packages/BasePagination/src/index.vue +91 -91
  37. package/packages/BasePictureCard/index.js +7 -7
  38. package/packages/BasePictureCard/src/index.vue +561 -561
  39. package/packages/BasePrintPreview/index.js +7 -7
  40. package/packages/BasePrintPreview/src/index.vue +117 -117
  41. package/packages/BasePulldown/index.js +7 -7
  42. package/packages/BasePulldown/src/index.vue +859 -829
  43. package/packages/BaseSearch/index.js +7 -7
  44. package/packages/BaseSearch/src/index.vue +935 -935
  45. package/packages/BaseSelect/index.js +7 -7
  46. package/packages/BaseSelect/src/index.vue +153 -153
  47. package/packages/BaseSelectMulti/index.js +7 -7
  48. package/packages/BaseSelectMulti/src/index.vue +148 -148
  49. package/packages/BaseTextArea/index.js +7 -7
  50. package/packages/BaseTextArea/src/index.vue +178 -178
  51. package/packages/BaseTime/index.js +7 -7
  52. package/packages/BaseTime/src/index.vue +166 -166
  53. package/packages/BaseTool/index.js +7 -7
  54. package/packages/BaseTool/src/index.vue +349 -349
  55. package/packages/BaseToolStatus/index.js +7 -7
  56. package/packages/BaseToolStatus/src/index.vue +383 -383
  57. package/packages/index.js +165 -165
  58. package/packages/styles/default.less +80 -80
  59. package/packages/utils/api.js +45 -45
  60. package/packages/utils/auth.js +38 -38
  61. package/packages/utils/common.js +583 -583
  62. package/packages/utils/dom.js +181 -181
  63. package/packages/utils/enum.js +83 -83
  64. package/packages/utils/filters.js +458 -458
  65. package/packages/utils/gridFormat.js +52 -52
  66. package/packages/utils/msg.js +16 -16
  67. package/packages/utils/patchFiles.js +44 -44
  68. package/packages/utils/request.js +169 -169
  69. package/packages/utils/store.js +246 -246
  70. package/vue.config.js +59 -59
@@ -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
- {{ moment(currentValue).format("YYYY-MM-DD") }}
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
+ {{ moment(currentValue).format("YYYY-MM-DD") }}
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