doway-coms 2.11.62 → 2.11.66

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 (92) 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 +62 -62
  13. package/packages/AuditsList/index.js +7 -7
  14. package/packages/AuditsList/src/index.vue +314 -314
  15. package/packages/BaseButton/index.js +7 -7
  16. package/packages/BaseButton/src/index.vue +242 -242
  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 +233 -233
  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/BaseFileGroup/index.js +7 -7
  26. package/packages/BaseFileGroup/src/index.vue +724 -724
  27. package/packages/BaseForm/index.js +7 -7
  28. package/packages/BaseForm/src/index.vue +901 -901
  29. package/packages/BaseGantt/index.js +9 -9
  30. package/packages/BaseGantt/src/index.vue +617 -617
  31. package/packages/BaseGrid/index.js +9 -9
  32. package/packages/BaseGrid/src/exportCmp.vue +105 -105
  33. package/packages/BaseGrid/src/gridApi.js +32 -32
  34. package/packages/BaseGrid/src/index.vue +4591 -4591
  35. package/packages/BaseGridAdjust/index.js +9 -9
  36. package/packages/BaseGridAdjust/src/index.vue +482 -482
  37. package/packages/BaseInput/index.js +7 -7
  38. package/packages/BaseInput/src/index.vue +207 -207
  39. package/packages/BaseIntervalInput/index.js +7 -7
  40. package/packages/BaseIntervalInput/src/index.vue +310 -310
  41. package/packages/BaseKanbanEmpty/index.js +7 -7
  42. package/packages/BaseKanbanEmpty/src/index.vue +176 -176
  43. package/packages/BaseNumberInput/index.js +7 -7
  44. package/packages/BaseNumberInput/src/index.vue +291 -291
  45. package/packages/BasePagination/index.js +7 -7
  46. package/packages/BasePagination/src/index.vue +90 -90
  47. package/packages/BasePictureCard/index.js +7 -7
  48. package/packages/BasePictureCard/src/index.vue +671 -671
  49. package/packages/BasePrintPreview/index.js +7 -7
  50. package/packages/BasePrintPreview/src/index.vue +150 -150
  51. package/packages/BasePulldown/index.js +7 -7
  52. package/packages/BasePulldown/src/index.vue +1400 -1396
  53. package/packages/BaseSearch/index.js +7 -7
  54. package/packages/BaseSearch/src/index.vue +935 -935
  55. package/packages/BaseSelect/index.js +7 -7
  56. package/packages/BaseSelect/src/index.vue +162 -162
  57. package/packages/BaseSelectMulti/index.js +7 -7
  58. package/packages/BaseSelectMulti/src/index.vue +148 -148
  59. package/packages/BaseTextArea/index.js +7 -7
  60. package/packages/BaseTextArea/src/index.vue +197 -197
  61. package/packages/BaseTime/index.js +7 -7
  62. package/packages/BaseTime/src/index.vue +166 -166
  63. package/packages/BaseTool/index.js +7 -7
  64. package/packages/BaseTool/src/index.vue +353 -353
  65. package/packages/BaseToolStatus/index.js +7 -7
  66. package/packages/BaseToolStatus/src/ApprovalPersonsGroup.vue +41 -41
  67. package/packages/BaseToolStatus/src/index.vue +439 -439
  68. package/packages/BaseTreeSelect/index.js +8 -8
  69. package/packages/BaseTreeSelect/src/index.vue +437 -437
  70. package/packages/HistoryModal/index.js +8 -8
  71. package/packages/HistoryModal/src/index.vue +161 -161
  72. package/packages/LeaveAMessage/index.js +7 -7
  73. package/packages/LeaveAMessage/src/index.vue +601 -601
  74. package/packages/directive/clickoutside.js +44 -44
  75. package/packages/index.js +197 -197
  76. package/packages/styles/default.css +78 -78
  77. package/packages/styles/default.less +91 -91
  78. package/packages/styles/hps/default.less +73 -73
  79. package/packages/utils/api.js +128 -128
  80. package/packages/utils/auth.js +38 -38
  81. package/packages/utils/common.js +728 -728
  82. package/packages/utils/dom.js +181 -181
  83. package/packages/utils/enum.js +86 -86
  84. package/packages/utils/filters.js +495 -495
  85. package/packages/utils/gridFormat.js +66 -66
  86. package/packages/utils/msg.js +104 -104
  87. package/packages/utils/patchFiles.js +44 -44
  88. package/packages/utils/request.js +181 -181
  89. package/packages/utils/store.js +378 -373
  90. package/packages/utils/tscPrinter.js +101 -101
  91. package/sync.bash +6 -6
  92. package/vue.config.js +59 -59
@@ -1,198 +1,198 @@
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
- :disabled="disabled"
25
- :style="{
26
- width: '100%',
27
- height: `${height}px`,
28
- }"
29
- :class="{ 'd-error-input': v.errors.length > 0 }"
30
- />
31
- <div class="d-error-msg">
32
- {{ v.errors[0] }}
33
- </div>
34
- </ValidationProvider>
35
- <Tooltip placement="topLeft" v-else>
36
- <template slot="title">
37
- {{ currentValue }}
38
- </template>
39
- <span @contextmenu.prevent="onContextmenu">
40
- {{ currentValue }}
41
- </span>
42
- </Tooltip>
43
- </div>
44
- </div>
45
- </template>
46
-
47
- <script>
48
- //VXETable插件
49
- import VXETable from "vxe-table";
50
- //轻量级剪贴板复制函数
51
- import XEClipboard from "xe-clipboard";
52
- import { Input, Tooltip } from "ant-design-vue";
53
- import { ValidationProvider } from "vee-validate";
54
-
55
- export default {
56
- name: "BaseTextArea",
57
- components: {
58
- "a-textarea": Input.TextArea,
59
- ValidationProvider,
60
- Tooltip,
61
- },
62
- data() {
63
- return {
64
- filterValue: "",
65
- isInputChanged: false,
66
- inputTimeout: null,
67
- searchRows: [],
68
- filterCols: [],
69
- gridLoading: false,
70
- gridPagerConfig: {
71
- total: 0,
72
- currentPage: 1,
73
- pageSize: 10,
74
- },
75
- };
76
- },
77
- computed: {
78
- currentValue: {
79
- // 动态计算currentValue的值
80
- get: function () {
81
- return this.value; // 将props中的value赋值给currentValue
82
- },
83
- set: function (val) {
84
- this.$emit("input", val); // 通过$emit触发父组件
85
- },
86
- },
87
- },
88
- props: {
89
- showLabel: {
90
- type: Boolean,
91
- default: function () {
92
- return true;
93
- },
94
- },
95
- width: {
96
- type: String,
97
- default: function () {
98
- return null;
99
- },
100
- },
101
- disabled: {
102
- type: Boolean,
103
- default: function () {
104
- return false;
105
- },
106
- },
107
- height: {
108
- type: String,
109
- default: function () {
110
- return 200;
111
- },
112
- },
113
- rules: {
114
- type: Object,
115
- default: function () {
116
- return null;
117
- },
118
- },
119
- value: {
120
- type: String,
121
- default: function () {
122
- return "";
123
- },
124
- },
125
- edit: {
126
- type: Boolean,
127
- default: function () {
128
- return false;
129
- },
130
- },
131
- name: {
132
- type: String,
133
- default: function () {
134
- return "";
135
- },
136
- },
137
- label: {
138
- type: String,
139
- default: function () {
140
- return "";
141
- },
142
- },
143
- placeholder: {
144
- type: String,
145
- default: function () {
146
- return "";
147
- },
148
- },
149
- tooltip: {
150
- type: String,
151
- default: function () {
152
- return "";
153
- },
154
- },
155
- },
156
- methods: {
157
- change() {
158
- this.$emit("change");
159
- },
160
- onContextmenu(event) {
161
- this.$contextmenu({
162
- items: [
163
- {
164
- icon: "ant-design:folder-open-filled",
165
- label: "复制",
166
- onClick: () => {
167
- if (XEClipboard.copy(event.target.innerText)) {
168
- VXETable.modal.message({
169
- content: "已复制到剪贴板!",
170
- status: "success",
171
- });
172
- }
173
- },
174
- },
175
- ],
176
- event,
177
- zIndex: 1000,
178
- minWidth: 150,
179
- });
180
- return false;
181
- },
182
- },
183
- };
184
- </script>
185
-
186
- <style lang="scss" scoped>
187
- .d-control {
188
- flex:1;
189
- width: 100%;
190
- height: 100%;
191
- overflow: hidden;
192
- white-space: nowrap;
193
- text-overflow: ellipsis;
194
- }
195
- </style>
196
- <style lang="less">
197
- @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
+ :disabled="disabled"
25
+ :style="{
26
+ width: '100%',
27
+ height: `${height}px`,
28
+ }"
29
+ :class="{ 'd-error-input': v.errors.length > 0 }"
30
+ />
31
+ <div class="d-error-msg">
32
+ {{ v.errors[0] }}
33
+ </div>
34
+ </ValidationProvider>
35
+ <Tooltip placement="topLeft" v-else>
36
+ <template slot="title">
37
+ {{ currentValue }}
38
+ </template>
39
+ <span @contextmenu.prevent="onContextmenu">
40
+ {{ currentValue }}
41
+ </span>
42
+ </Tooltip>
43
+ </div>
44
+ </div>
45
+ </template>
46
+
47
+ <script>
48
+ //VXETable插件
49
+ import VXETable from "vxe-table";
50
+ //轻量级剪贴板复制函数
51
+ import XEClipboard from "xe-clipboard";
52
+ import { Input, Tooltip } from "ant-design-vue";
53
+ import { ValidationProvider } from "vee-validate";
54
+
55
+ export default {
56
+ name: "BaseTextArea",
57
+ components: {
58
+ "a-textarea": Input.TextArea,
59
+ ValidationProvider,
60
+ Tooltip,
61
+ },
62
+ data() {
63
+ return {
64
+ filterValue: "",
65
+ isInputChanged: false,
66
+ inputTimeout: null,
67
+ searchRows: [],
68
+ filterCols: [],
69
+ gridLoading: false,
70
+ gridPagerConfig: {
71
+ total: 0,
72
+ currentPage: 1,
73
+ pageSize: 10,
74
+ },
75
+ };
76
+ },
77
+ computed: {
78
+ currentValue: {
79
+ // 动态计算currentValue的值
80
+ get: function () {
81
+ return this.value; // 将props中的value赋值给currentValue
82
+ },
83
+ set: function (val) {
84
+ this.$emit("input", val); // 通过$emit触发父组件
85
+ },
86
+ },
87
+ },
88
+ props: {
89
+ showLabel: {
90
+ type: Boolean,
91
+ default: function () {
92
+ return true;
93
+ },
94
+ },
95
+ width: {
96
+ type: String,
97
+ default: function () {
98
+ return null;
99
+ },
100
+ },
101
+ disabled: {
102
+ type: Boolean,
103
+ default: function () {
104
+ return false;
105
+ },
106
+ },
107
+ height: {
108
+ type: String,
109
+ default: function () {
110
+ return 200;
111
+ },
112
+ },
113
+ rules: {
114
+ type: Object,
115
+ default: function () {
116
+ return null;
117
+ },
118
+ },
119
+ value: {
120
+ type: String,
121
+ default: function () {
122
+ return "";
123
+ },
124
+ },
125
+ edit: {
126
+ type: Boolean,
127
+ default: function () {
128
+ return false;
129
+ },
130
+ },
131
+ name: {
132
+ type: String,
133
+ default: function () {
134
+ return "";
135
+ },
136
+ },
137
+ label: {
138
+ type: String,
139
+ default: function () {
140
+ return "";
141
+ },
142
+ },
143
+ placeholder: {
144
+ type: String,
145
+ default: function () {
146
+ return "";
147
+ },
148
+ },
149
+ tooltip: {
150
+ type: String,
151
+ default: function () {
152
+ return "";
153
+ },
154
+ },
155
+ },
156
+ methods: {
157
+ change() {
158
+ this.$emit("change");
159
+ },
160
+ onContextmenu(event) {
161
+ this.$contextmenu({
162
+ items: [
163
+ {
164
+ icon: "ant-design:folder-open-filled",
165
+ label: "复制",
166
+ onClick: () => {
167
+ if (XEClipboard.copy(event.target.innerText)) {
168
+ VXETable.modal.message({
169
+ content: "已复制到剪贴板!",
170
+ status: "success",
171
+ });
172
+ }
173
+ },
174
+ },
175
+ ],
176
+ event,
177
+ zIndex: 1000,
178
+ minWidth: 150,
179
+ });
180
+ return false;
181
+ },
182
+ },
183
+ };
184
+ </script>
185
+
186
+ <style lang="scss" scoped>
187
+ .d-control {
188
+ flex:1;
189
+ width: 100%;
190
+ height: 100%;
191
+ overflow: hidden;
192
+ white-space: nowrap;
193
+ text-overflow: ellipsis;
194
+ }
195
+ </style>
196
+ <style lang="less">
197
+ @import "../../styles/default.less";
198
198
  </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;