doway-coms 2.11.14 → 2.11.16

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 (91) 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 +895 -895
  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 +4243 -4243
  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 +1395 -1395
  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 +187 -187
  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 +122 -122
  70. package/packages/utils/auth.js +38 -38
  71. package/packages/utils/common.js +728 -703
  72. package/packages/utils/dom.js +181 -181
  73. package/packages/utils/enum.js +86 -86
  74. package/packages/utils/filters.js +495 -495
  75. package/packages/utils/gridFormat.js +66 -66
  76. package/packages/utils/msg.js +103 -103
  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 -101
  81. package/sync.bash +6 -6
  82. package/vue.config.js +59 -59
  83. package/dist/css/chunk-vendors.7f83d8f9.css +0 -8
  84. package/dist/css/index.7946d50b.css +0 -1
  85. package/dist/favicon.ico +0 -0
  86. package/dist/js/chunk-vendors.28fda91d.js +0 -340
  87. package/dist/js/index.49bc6add.js +0 -2
  88. package/lib/doway-coms.common.js +0 -120397
  89. package/lib/doway-coms.css +0 -1
  90. package/lib/doway-coms.umd.js +0 -120407
  91. package/lib/doway-coms.umd.min.js +0 -328
@@ -1,167 +1,167 @@
1
- <template>
2
- <div class="d-control-container">
3
- <div class="d-control-label">
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
- <TimePicker
20
- :size="'small'"
21
- placeholder="选择时间"
22
- v-model="currentValue"
23
- format="HH:mm:ss"
24
- value-format="HH:mm:ss"
25
- style="width: 100%"
26
- :class="{ 'd-error-input': v.errors.length > 0 }"
27
- @change="change"
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
- {{ currentValue }}
39
- </span>
40
- </Tooltip>
41
- </div>
42
- </div>
43
- </template>
44
-
45
- <script>
46
- //VXETable插件
47
- import VXETable from "vxe-table";
48
- //轻量级剪贴板复制函数
49
- import XEClipboard from "xe-clipboard";
50
- import moment from "moment";
51
- import { TimePicker } from "ant-design-vue";
52
- import { ValidationProvider } from "vee-validate";
53
- import { Tooltip } from "ant-design-vue";
54
-
55
- export default {
56
- name: "BaseTime",
57
- components: {
58
- TimePicker,
59
- ValidationProvider,
60
- Tooltip,
61
- },
62
- data() {
63
- return {
64
- moment,
65
- filterValue: "",
66
- isInputChanged: false,
67
- inputTimeout: null,
68
- searchRows: [],
69
- filterCols: [],
70
- gridLoading: false,
71
- gridPagerConfig: {
72
- total: 0,
73
- currentPage: 1,
74
- pageSize: 10,
75
- },
76
- };
77
- },
78
- computed: {
79
- currentValue: {
80
- // 动态计算currentValue的值
81
- get: function () {
82
- return this.value; // 将props中的value赋值给currentValue
83
- },
84
- set: function (val) {
85
- this.$emit("input", val); // 通过$emit触发父组件
86
- },
87
- },
88
- },
89
- props: {
90
- rules: {
91
- type: Object,
92
- default: function () {
93
- return null;
94
- },
95
- },
96
- value: {
97
- type: String,
98
- default: function () {
99
- return "";
100
- },
101
- },
102
- edit: {
103
- type: Boolean,
104
- default: function () {
105
- return false;
106
- },
107
- },
108
- name: {
109
- type: String,
110
- default: function () {
111
- return "";
112
- },
113
- },
114
- label: {
115
- type: String,
116
- default: function () {
117
- return "";
118
- },
119
- },
120
- placeholder: {
121
- type: String,
122
- default: function () {
123
- return "";
124
- },
125
- },
126
- tooltip: {
127
- type: String,
128
- default: function () {
129
- return "";
130
- },
131
- },
132
- },
133
- created() {},
134
- methods: {
135
- change() {
136
- this.$emit('change')
137
- },
138
- onContextmenu(event, currentValue) {
139
- this.$contextmenu({
140
- items: [
141
- {
142
- icon: 'ant-design:folder-open-filled',
143
- label: "复制",
144
- onClick: () => {
145
- if (XEClipboard.copy(currentValue)) {
146
- VXETable.modal.message({
147
- content: "已复制到剪贴板!",
148
- status: "success",
149
- });
150
- }
151
- }
152
- }
153
- ],
154
- event,
155
- zIndex: 1000,
156
- minWidth: 150
157
- });
158
- return false;
159
- }
160
- },
161
- };
162
- </script>
163
-
164
- <style lang="scss" scoped></style>
165
- <style lang="less">
166
- @import "../../styles/default.less";
1
+ <template>
2
+ <div class="d-control-container">
3
+ <div class="d-control-label">
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
+ <TimePicker
20
+ :size="'small'"
21
+ placeholder="选择时间"
22
+ v-model="currentValue"
23
+ format="HH:mm:ss"
24
+ value-format="HH:mm:ss"
25
+ style="width: 100%"
26
+ :class="{ 'd-error-input': v.errors.length > 0 }"
27
+ @change="change"
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
+ {{ currentValue }}
39
+ </span>
40
+ </Tooltip>
41
+ </div>
42
+ </div>
43
+ </template>
44
+
45
+ <script>
46
+ //VXETable插件
47
+ import VXETable from "vxe-table";
48
+ //轻量级剪贴板复制函数
49
+ import XEClipboard from "xe-clipboard";
50
+ import moment from "moment";
51
+ import { TimePicker } from "ant-design-vue";
52
+ import { ValidationProvider } from "vee-validate";
53
+ import { Tooltip } from "ant-design-vue";
54
+
55
+ export default {
56
+ name: "BaseTime",
57
+ components: {
58
+ TimePicker,
59
+ ValidationProvider,
60
+ Tooltip,
61
+ },
62
+ data() {
63
+ return {
64
+ moment,
65
+ filterValue: "",
66
+ isInputChanged: false,
67
+ inputTimeout: null,
68
+ searchRows: [],
69
+ filterCols: [],
70
+ gridLoading: false,
71
+ gridPagerConfig: {
72
+ total: 0,
73
+ currentPage: 1,
74
+ pageSize: 10,
75
+ },
76
+ };
77
+ },
78
+ computed: {
79
+ currentValue: {
80
+ // 动态计算currentValue的值
81
+ get: function () {
82
+ return this.value; // 将props中的value赋值给currentValue
83
+ },
84
+ set: function (val) {
85
+ this.$emit("input", val); // 通过$emit触发父组件
86
+ },
87
+ },
88
+ },
89
+ props: {
90
+ rules: {
91
+ type: Object,
92
+ default: function () {
93
+ return null;
94
+ },
95
+ },
96
+ value: {
97
+ type: String,
98
+ default: function () {
99
+ return "";
100
+ },
101
+ },
102
+ edit: {
103
+ type: Boolean,
104
+ default: function () {
105
+ return false;
106
+ },
107
+ },
108
+ name: {
109
+ type: String,
110
+ default: function () {
111
+ return "";
112
+ },
113
+ },
114
+ label: {
115
+ type: String,
116
+ default: function () {
117
+ return "";
118
+ },
119
+ },
120
+ placeholder: {
121
+ type: String,
122
+ default: function () {
123
+ return "";
124
+ },
125
+ },
126
+ tooltip: {
127
+ type: String,
128
+ default: function () {
129
+ return "";
130
+ },
131
+ },
132
+ },
133
+ created() {},
134
+ methods: {
135
+ change() {
136
+ this.$emit('change')
137
+ },
138
+ onContextmenu(event, currentValue) {
139
+ this.$contextmenu({
140
+ items: [
141
+ {
142
+ icon: 'ant-design:folder-open-filled',
143
+ label: "复制",
144
+ onClick: () => {
145
+ if (XEClipboard.copy(currentValue)) {
146
+ VXETable.modal.message({
147
+ content: "已复制到剪贴板!",
148
+ status: "success",
149
+ });
150
+ }
151
+ }
152
+ }
153
+ ],
154
+ event,
155
+ zIndex: 1000,
156
+ minWidth: 150
157
+ });
158
+ return false;
159
+ }
160
+ },
161
+ };
162
+ </script>
163
+
164
+ <style lang="scss" scoped></style>
165
+ <style lang="less">
166
+ @import "../../styles/default.less";
167
167
  </style>
@@ -1,8 +1,8 @@
1
- // 导入组件,组件必须声明 name
2
- import BaseTool from './src/index.vue';
3
- // 为组件提供 install 安装方法,供按需引入
4
- BaseTool.install = function(Vue) {
5
- Vue.component(BaseTool.name, BaseTool);
6
- };
7
- // 默认导出组件
1
+ // 导入组件,组件必须声明 name
2
+ import BaseTool from './src/index.vue';
3
+ // 为组件提供 install 安装方法,供按需引入
4
+ BaseTool.install = function(Vue) {
5
+ Vue.component(BaseTool.name, BaseTool);
6
+ };
7
+ // 默认导出组件
8
8
  export default BaseTool;