doway-coms 2.11.30 → 2.11.32

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 (93) hide show
  1. package/.browserslistrc +2 -2
  2. package/README.md +28 -28
  3. package/package.json +62 -62
  4. package/packages/AuditsList/index.js +7 -7
  5. package/packages/AuditsList/src/index.vue +314 -314
  6. package/packages/BaseButton/index.js +7 -7
  7. package/packages/BaseButton/src/index.vue +242 -242
  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/BaseFileGroup/index.js +7 -7
  17. package/packages/BaseFileGroup/src/index.vue +724 -724
  18. package/packages/BaseForm/index.js +7 -7
  19. package/packages/BaseForm/src/index.vue +896 -896
  20. package/packages/BaseGantt/index.js +9 -9
  21. package/packages/BaseGantt/src/index.vue +617 -617
  22. package/packages/BaseGrid/index.js +9 -9
  23. package/packages/BaseGrid/src/SeqSetting.vue +5 -0
  24. package/packages/BaseGrid/src/exportCmp.vue +105 -105
  25. package/packages/BaseGrid/src/gridApi.js +32 -32
  26. package/packages/BaseGrid/src/index.vue +4271 -4258
  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 +207 -207
  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 +291 -291
  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 +671 -671
  41. package/packages/BasePrintPreview/index.js +7 -7
  42. package/packages/BasePrintPreview/src/index.vue +150 -150
  43. package/packages/BasePulldown/index.js +7 -7
  44. package/packages/BasePulldown/src/index.vue +1395 -1395
  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 +197 -197
  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 +353 -353
  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/HistoryModal/index.js +8 -8
  63. package/packages/HistoryModal/src/index.vue +144 -144
  64. package/packages/LeaveAMessage/index.js +7 -7
  65. package/packages/LeaveAMessage/src/index.vue +601 -601
  66. package/packages/directive/clickoutside.js +44 -44
  67. package/packages/index.js +197 -197
  68. package/packages/styles/default.css +78 -78
  69. package/packages/styles/default.less +91 -91
  70. package/packages/styles/hps/default.less +25 -25
  71. package/packages/utils/api.js +122 -122
  72. package/packages/utils/auth.js +38 -38
  73. package/packages/utils/common.js +728 -728
  74. package/packages/utils/dom.js +181 -181
  75. package/packages/utils/enum.js +86 -86
  76. package/packages/utils/filters.js +495 -495
  77. package/packages/utils/gridFormat.js +66 -66
  78. package/packages/utils/msg.js +104 -104
  79. package/packages/utils/patchFiles.js +44 -44
  80. package/packages/utils/request.js +181 -181
  81. package/packages/utils/store.js +373 -373
  82. package/packages/utils/tscPrinter.js +101 -101
  83. package/sync.bash +6 -6
  84. package/vue.config.js +59 -59
  85. package/dist/css/chunk-vendors.7f83d8f9.css +0 -8
  86. package/dist/css/index.7946d50b.css +0 -1
  87. package/dist/favicon.ico +0 -0
  88. package/dist/js/chunk-vendors.28fda91d.js +0 -340
  89. package/dist/js/index.49bc6add.js +0 -2
  90. package/lib/doway-coms.common.js +0 -120397
  91. package/lib/doway-coms.css +0 -1
  92. package/lib/doway-coms.umd.js +0 -120407
  93. package/lib/doway-coms.umd.min.js +0 -328
@@ -1,8 +1,8 @@
1
- // 导入组件,组件必须声明 name
2
- import BaseInput from './src/index.vue';
3
- // 为组件提供 install 安装方法,供按需引入
4
- BaseInput.install = function(Vue) {
5
- Vue.component(BaseInput.name, BaseInput);
6
- };
7
- // 默认导出组件
1
+ // 导入组件,组件必须声明 name
2
+ import BaseInput from './src/index.vue';
3
+ // 为组件提供 install 安装方法,供按需引入
4
+ BaseInput.install = function(Vue) {
5
+ Vue.component(BaseInput.name, BaseInput);
6
+ };
7
+ // 默认导出组件
8
8
  export default BaseInput;
@@ -1,207 +1,207 @@
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
- >*
8
- </span>
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
- <Input
21
- :size="'small'"
22
- v-model="currentValue"
23
- :placeholder="placeholder"
24
- @change="change"
25
- @blur="blur"
26
- style="width: 100%"
27
- :class="{ 'd-error-input': v.errors.length > 0 }"
28
- />
29
- <div class="d-error-msg">
30
- {{ v.errors[0] }}
31
- </div>
32
- </ValidationProvider>
33
- <Tooltip placement="topLeft" v-else>
34
- <template slot="title">
35
- {{ currentValue }}
36
- </template>
37
- <span @contextmenu.prevent="(event) => onContextmenu(event, currentValue)">
38
- <template v-if="route">
39
- <a @click="linkClick">{{ currentValue }}</a>
40
- </template>
41
- <template v-else>
42
- <span :style="{color:fontColor?fontColor:null}">
43
- {{ currentValue }}
44
- </span>
45
- </template>
46
- </span>
47
- </Tooltip>
48
- </div>
49
- <slot name="right" :field="name"></slot>
50
- </div>
51
- </template>
52
-
53
- <script>
54
- //VXETable插件
55
- import VXETable from "vxe-table";
56
- //轻量级剪贴板复制函数
57
- import XEClipboard from "xe-clipboard";
58
- import { Input, Tooltip } from 'ant-design-vue'
59
- import { ValidationProvider } from 'vee-validate'
60
- export default {
61
- name: 'BaseInput',
62
- components:{
63
- Input,
64
- ValidationProvider,
65
- Tooltip,
66
- },
67
- data() {
68
- return {
69
- filterValue: '',
70
- isInputChanged: false,
71
- inputTimeout: null,
72
- searchRows: [],
73
- filterCols: [],
74
- gridLoading: false,
75
- gridPagerConfig: {
76
- total: 0,
77
- currentPage: 1,
78
- pageSize: 10
79
- }
80
- }
81
- },
82
- computed: {
83
- currentValue: {
84
- // 动态计算currentValue的值
85
- get: function() {
86
- return this.value // 将props中的value赋值给currentValue
87
- },
88
- set: function(val) {
89
- this.$emit('input', val) // 通过$emit触发父组件
90
- }
91
- }
92
- },
93
- props: {
94
- rules: {
95
- type: Object,
96
- default: function() {
97
- return null
98
- }
99
- },
100
- fontColor: {
101
- type: String,
102
- default: function() {
103
- return ''
104
- }
105
- },
106
- value: {
107
- type: String,
108
- default: function() {
109
- return ''
110
- }
111
- },
112
- edit: {
113
- type: Boolean,
114
- default: function() {
115
- return false
116
- }
117
- },
118
- name: {
119
- type: String,
120
- default: function() {
121
- return ''
122
- }
123
- },
124
- label: {
125
- type: String,
126
- default: function() {
127
- return ''
128
- }
129
- },
130
- placeholder: {
131
- type: String,
132
- default: function() {
133
- return ''
134
- }
135
- },
136
- tooltip: {
137
- type: String,
138
- default: function() {
139
- return ''
140
- }
141
- },
142
- route: {
143
- type: Object,
144
- default: function() {
145
- return null
146
- }
147
- },
148
- row: {
149
- type: Object,
150
- default: function() {
151
- return {}
152
- }
153
- }
154
- },
155
- created() {},
156
- methods: {
157
- change(event) {
158
- // const value = event.target.value.trim(); // 去除前后空格
159
- // this.$emit('input', value);
160
- this.$emit('change')
161
- },
162
- blur(event) {
163
- // const value = event.target.value.trim(); // 去除前后空格
164
- // this.$emit('input', value);
165
- this.$emit('blur')
166
- },
167
- onContextmenu(event, currentValue) {
168
- this.$contextmenu({
169
- items: [
170
- {
171
- icon: 'ant-design:folder-open-filled',
172
- label: "复制",
173
- onClick: () => {
174
- if (XEClipboard.copy(currentValue)) {
175
- VXETable.modal.message({
176
- content: "已复制到剪贴板!",
177
- status: "success",
178
- });
179
- }
180
- }
181
- }
182
- ],
183
- event,
184
- zIndex: 1000,
185
- minWidth: 150
186
- });
187
- return false;
188
- },
189
- linkClick() {
190
- //判断是否可以跳转
191
- if (!this.$props.edit && this.$props.route && this.$props.route.name) {
192
- let tempRouteName = this.$props.route.name;
193
- let tempRouteQueryId = this.$props.row[this.$props.route.field];
194
-
195
- if (!tempRouteQueryId) return;
196
- this.$router.pushRoute({
197
- name: tempRouteName,
198
- query: { id: tempRouteQueryId },
199
- });
200
- }
201
- }
202
- }
203
- }
204
- </script>
205
- <style lang="less">
206
- @import '../../styles/default.less';
207
- </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
+ >*
8
+ </span>
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
+ <Input
21
+ :size="'small'"
22
+ v-model="currentValue"
23
+ :placeholder="placeholder"
24
+ @change="change"
25
+ @blur="blur"
26
+ style="width: 100%"
27
+ :class="{ 'd-error-input': v.errors.length > 0 }"
28
+ />
29
+ <div class="d-error-msg">
30
+ {{ v.errors[0] }}
31
+ </div>
32
+ </ValidationProvider>
33
+ <Tooltip placement="topLeft" v-else>
34
+ <template slot="title">
35
+ {{ currentValue }}
36
+ </template>
37
+ <span @contextmenu.prevent="(event) => onContextmenu(event, currentValue)">
38
+ <template v-if="route">
39
+ <a @click="linkClick">{{ currentValue }}</a>
40
+ </template>
41
+ <template v-else>
42
+ <span :style="{color:fontColor?fontColor:null}">
43
+ {{ currentValue }}
44
+ </span>
45
+ </template>
46
+ </span>
47
+ </Tooltip>
48
+ </div>
49
+ <slot name="right" :field="name"></slot>
50
+ </div>
51
+ </template>
52
+
53
+ <script>
54
+ //VXETable插件
55
+ import VXETable from "vxe-table";
56
+ //轻量级剪贴板复制函数
57
+ import XEClipboard from "xe-clipboard";
58
+ import { Input, Tooltip } from 'ant-design-vue'
59
+ import { ValidationProvider } from 'vee-validate'
60
+ export default {
61
+ name: 'BaseInput',
62
+ components:{
63
+ Input,
64
+ ValidationProvider,
65
+ Tooltip,
66
+ },
67
+ data() {
68
+ return {
69
+ filterValue: '',
70
+ isInputChanged: false,
71
+ inputTimeout: null,
72
+ searchRows: [],
73
+ filterCols: [],
74
+ gridLoading: false,
75
+ gridPagerConfig: {
76
+ total: 0,
77
+ currentPage: 1,
78
+ pageSize: 10
79
+ }
80
+ }
81
+ },
82
+ computed: {
83
+ currentValue: {
84
+ // 动态计算currentValue的值
85
+ get: function() {
86
+ return this.value // 将props中的value赋值给currentValue
87
+ },
88
+ set: function(val) {
89
+ this.$emit('input', val) // 通过$emit触发父组件
90
+ }
91
+ }
92
+ },
93
+ props: {
94
+ rules: {
95
+ type: Object,
96
+ default: function() {
97
+ return null
98
+ }
99
+ },
100
+ fontColor: {
101
+ type: String,
102
+ default: function() {
103
+ return ''
104
+ }
105
+ },
106
+ value: {
107
+ type: String,
108
+ default: function() {
109
+ return ''
110
+ }
111
+ },
112
+ edit: {
113
+ type: Boolean,
114
+ default: function() {
115
+ return false
116
+ }
117
+ },
118
+ name: {
119
+ type: String,
120
+ default: function() {
121
+ return ''
122
+ }
123
+ },
124
+ label: {
125
+ type: String,
126
+ default: function() {
127
+ return ''
128
+ }
129
+ },
130
+ placeholder: {
131
+ type: String,
132
+ default: function() {
133
+ return ''
134
+ }
135
+ },
136
+ tooltip: {
137
+ type: String,
138
+ default: function() {
139
+ return ''
140
+ }
141
+ },
142
+ route: {
143
+ type: Object,
144
+ default: function() {
145
+ return null
146
+ }
147
+ },
148
+ row: {
149
+ type: Object,
150
+ default: function() {
151
+ return {}
152
+ }
153
+ }
154
+ },
155
+ created() {},
156
+ methods: {
157
+ change(event) {
158
+ // const value = event.target.value.trim(); // 去除前后空格
159
+ // this.$emit('input', value);
160
+ this.$emit('change')
161
+ },
162
+ blur(event) {
163
+ // const value = event.target.value.trim(); // 去除前后空格
164
+ // this.$emit('input', value);
165
+ this.$emit('blur')
166
+ },
167
+ onContextmenu(event, currentValue) {
168
+ this.$contextmenu({
169
+ items: [
170
+ {
171
+ icon: 'ant-design:folder-open-filled',
172
+ label: "复制",
173
+ onClick: () => {
174
+ if (XEClipboard.copy(currentValue)) {
175
+ VXETable.modal.message({
176
+ content: "已复制到剪贴板!",
177
+ status: "success",
178
+ });
179
+ }
180
+ }
181
+ }
182
+ ],
183
+ event,
184
+ zIndex: 1000,
185
+ minWidth: 150
186
+ });
187
+ return false;
188
+ },
189
+ linkClick() {
190
+ //判断是否可以跳转
191
+ if (!this.$props.edit && this.$props.route && this.$props.route.name) {
192
+ let tempRouteName = this.$props.route.name;
193
+ let tempRouteQueryId = this.$props.row[this.$props.route.field];
194
+
195
+ if (!tempRouteQueryId) return;
196
+ this.$router.pushRoute({
197
+ name: tempRouteName,
198
+ query: { id: tempRouteQueryId },
199
+ });
200
+ }
201
+ }
202
+ }
203
+ }
204
+ </script>
205
+ <style lang="less">
206
+ @import '../../styles/default.less';
207
+ </style>
@@ -1,8 +1,8 @@
1
- // 导入组件,组件必须声明 name
2
- import BaseIntervalInput from './src/index.vue';
3
- // 为组件提供 install 安装方法,供按需引入
4
- BaseIntervalInput.install = function(Vue) {
5
- Vue.component(BaseIntervalInput.name, BaseIntervalInput);
6
- };
7
- // 默认导出组件
1
+ // 导入组件,组件必须声明 name
2
+ import BaseIntervalInput from './src/index.vue';
3
+ // 为组件提供 install 安装方法,供按需引入
4
+ BaseIntervalInput.install = function(Vue) {
5
+ Vue.component(BaseIntervalInput.name, BaseIntervalInput);
6
+ };
7
+ // 默认导出组件
8
8
  export default BaseIntervalInput;