doway-coms 2.10.76 → 2.10.78

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