doway-coms 2.10.41 → 2.10.42

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