ele-admin-plus 1.4.1-beta.1 → 1.4.1
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.
- package/es/core-components.d.ts +2 -0
- package/es/core-components.js +104 -100
- package/es/ele-app/plus.d.ts +9 -1
- package/es/ele-app/plusx.d.ts +26 -13
- package/es/ele-backtop/index.js +7 -1
- package/es/ele-basic-select/components/select-view.d.ts +53 -22
- package/es/ele-basic-select/components/select-view.js +57 -20
- package/es/ele-basic-select/index.d.ts +39 -19
- package/es/ele-basic-select/index.js +62 -13
- package/es/ele-basic-select/props.d.ts +33 -21
- package/es/ele-basic-select/props.js +33 -21
- package/es/ele-basic-select/style/index.js +2 -0
- package/es/ele-basic-select/types.d.ts +1 -1
- package/es/ele-config-provider/components/receiver-view.d.ts +2 -0
- package/es/ele-config-provider/components/receiver-view.js +74 -72
- package/es/ele-config-provider/receiver.d.ts +2 -2
- package/es/ele-config-provider/receiver.js +5 -1
- package/es/ele-config-provider/types.d.ts +10 -1
- package/es/ele-copyable/index.d.ts +2 -4
- package/es/ele-cron-builder/index.d.ts +24 -0
- package/es/ele-cron-builder/index.js +81 -0
- package/es/ele-cron-builder/props.d.ts +31 -0
- package/es/ele-cron-builder/props.js +24 -0
- package/es/ele-cron-builder/style/index.d.ts +1 -0
- package/es/ele-cron-builder/style/index.js +4 -0
- package/es/ele-cron-builder/style/index.scss +6 -0
- package/es/ele-cron-builder/types.d.ts +8 -0
- package/es/ele-cron-panel/components/cron-day.d.ts +25 -0
- package/es/ele-cron-panel/components/cron-day.js +232 -0
- package/es/ele-cron-panel/components/cron-hour.d.ts +25 -0
- package/es/ele-cron-panel/components/cron-hour.js +174 -0
- package/es/ele-cron-panel/components/cron-minute.d.ts +25 -0
- package/es/ele-cron-panel/components/cron-minute.js +174 -0
- package/es/ele-cron-panel/components/cron-month.d.ts +25 -0
- package/es/ele-cron-panel/components/cron-month.js +174 -0
- package/es/ele-cron-panel/components/cron-second.d.ts +25 -0
- package/es/ele-cron-panel/components/cron-second.js +174 -0
- package/es/ele-cron-panel/components/cron-week.d.ts +25 -0
- package/es/ele-cron-panel/components/cron-week.js +229 -0
- package/es/ele-cron-panel/components/cron-year.d.ts +25 -0
- package/es/ele-cron-panel/components/cron-year.js +186 -0
- package/es/ele-cron-panel/index.d.ts +14 -0
- package/es/ele-cron-panel/index.js +348 -0
- package/es/ele-cron-panel/props.d.ts +20 -0
- package/es/ele-cron-panel/props.js +14 -0
- package/es/ele-cron-panel/style/index.d.ts +1 -0
- package/es/ele-cron-panel/style/index.js +7 -0
- package/es/ele-cron-panel/style/index.scss +282 -0
- package/es/ele-cron-panel/types.d.ts +118 -0
- package/es/ele-cron-panel/util.d.ts +23 -0
- package/es/ele-cron-panel/util.js +542 -0
- package/es/ele-cropper/components/cropper-tools.d.ts +2 -2
- package/es/ele-cropper-modal/index.d.ts +2 -4
- package/es/ele-crud/index.d.ts +3 -3
- package/es/ele-drawer/index.d.ts +9 -0
- package/es/ele-drawer/index.js +5 -1
- package/es/ele-drawer/props.d.ts +5 -0
- package/es/ele-drawer/props.js +6 -1
- package/es/ele-drawer/style/index.scss +11 -0
- package/es/ele-file-list/index.d.ts +3 -3
- package/es/ele-icon-select/components/icon-grid.d.ts +8 -3
- package/es/ele-icon-select/components/icon-grid.js +20 -12
- package/es/ele-icon-select/index.d.ts +58 -59
- package/es/ele-icon-select/index.js +92 -86
- package/es/ele-icon-select/props.d.ts +35 -35
- package/es/ele-icon-select/props.js +34 -34
- package/es/ele-icon-select/style/css-var.scss +1 -1
- package/es/ele-icon-select/style/index.scss +50 -18
- package/es/ele-icon-select/types.d.ts +13 -0
- package/es/ele-map-picker/index.d.ts +3 -3
- package/es/ele-modal/index.d.ts +4 -2
- package/es/ele-modal/index.js +9 -3
- package/es/ele-modal/props.d.ts +2 -0
- package/es/ele-modal/props.js +2 -0
- package/es/ele-modal/style/index.scss +16 -0
- package/es/ele-pro-form/components/item-type-data.js +39 -64
- package/es/ele-pro-form/index.d.ts +3 -3
- package/es/ele-pro-table/components/table-tools.d.ts +12 -97
- package/es/ele-pro-table/components/table-tools.js +118 -248
- package/es/ele-pro-table/components/tool-export.d.ts +5 -1
- package/es/ele-pro-table/components/tool-export.js +32 -20
- package/es/ele-pro-table/components/tool-print.d.ts +5 -1
- package/es/ele-pro-table/components/tool-print.js +37 -25
- package/es/ele-pro-table/exceljs-plugin.d.ts +12 -0
- package/es/ele-pro-table/exceljs-plugin.js +81 -0
- package/es/ele-pro-table/index.d.ts +6 -7
- package/es/ele-pro-table/index.js +117 -46
- package/es/ele-pro-table/types.d.ts +11 -0
- package/es/ele-split-panel/style/index.scss +1 -1
- package/es/ele-table-select/index.d.ts +2 -0
- package/es/ele-table-select/props.d.ts +2 -0
- package/es/ele-table-select/props.js +3 -1
- package/es/ele-tour/index.d.ts +3 -3
- package/es/ele-tree-select/index.d.ts +2 -0
- package/es/ele-upload-list/index.d.ts +3 -3
- package/es/ele-upload-list/index.js +25 -8
- package/es/ele-virtual-table/components/body-cell.d.ts +1 -1
- package/es/ele-watermark/index.d.ts +20 -7
- package/es/ele-watermark/index.js +253 -94
- package/es/ele-watermark/props.d.ts +10 -3
- package/es/ele-watermark/props.js +10 -3
- package/es/ele-watermark/types.d.ts +12 -0
- package/es/ele-watermark/util.d.ts +2 -9
- package/es/ele-watermark/util.js +10 -19
- package/es/lang/en_US.js +116 -0
- package/es/lang/zh_CN.js +116 -0
- package/es/lang/zh_TW.js +116 -0
- package/es/style/plus.scss +3 -1
- package/es/style/themes/default.scss +12 -3
- package/es/style/themes/rounded.scss +2 -1
- package/es/utils/theme-util.d.ts +1 -1
- package/lib/core-components.cjs +104 -100
- package/lib/core-components.d.ts +2 -0
- package/lib/ele-app/plus.d.ts +9 -1
- package/lib/ele-app/plusx.d.ts +26 -13
- package/lib/ele-backtop/index.cjs +6 -0
- package/lib/ele-basic-select/components/select-view.cjs +56 -19
- package/lib/ele-basic-select/components/select-view.d.ts +53 -22
- package/lib/ele-basic-select/index.cjs +61 -12
- package/lib/ele-basic-select/index.d.ts +39 -19
- package/lib/ele-basic-select/props.cjs +33 -21
- package/lib/ele-basic-select/props.d.ts +33 -21
- package/lib/ele-basic-select/style/index.cjs +2 -0
- package/lib/ele-basic-select/types.d.ts +1 -1
- package/lib/ele-config-provider/components/receiver-view.cjs +2 -2
- package/lib/ele-config-provider/components/receiver-view.d.ts +2 -0
- package/lib/ele-config-provider/receiver.cjs +5 -1
- package/lib/ele-config-provider/receiver.d.ts +2 -2
- package/lib/ele-config-provider/types.d.ts +10 -1
- package/lib/ele-copyable/index.d.ts +2 -4
- package/lib/ele-cron-builder/index.cjs +80 -0
- package/lib/ele-cron-builder/index.d.ts +24 -0
- package/lib/ele-cron-builder/props.cjs +24 -0
- package/lib/ele-cron-builder/props.d.ts +31 -0
- package/lib/ele-cron-builder/style/index.cjs +5 -0
- package/lib/ele-cron-builder/style/index.d.ts +1 -0
- package/lib/ele-cron-builder/style/index.scss +6 -0
- package/lib/ele-cron-builder/types.d.ts +8 -0
- package/lib/ele-cron-panel/components/cron-day.cjs +231 -0
- package/lib/ele-cron-panel/components/cron-day.d.ts +25 -0
- package/lib/ele-cron-panel/components/cron-hour.cjs +173 -0
- package/lib/ele-cron-panel/components/cron-hour.d.ts +25 -0
- package/lib/ele-cron-panel/components/cron-minute.cjs +173 -0
- package/lib/ele-cron-panel/components/cron-minute.d.ts +25 -0
- package/lib/ele-cron-panel/components/cron-month.cjs +173 -0
- package/lib/ele-cron-panel/components/cron-month.d.ts +25 -0
- package/lib/ele-cron-panel/components/cron-second.cjs +173 -0
- package/lib/ele-cron-panel/components/cron-second.d.ts +25 -0
- package/lib/ele-cron-panel/components/cron-week.cjs +228 -0
- package/lib/ele-cron-panel/components/cron-week.d.ts +25 -0
- package/lib/ele-cron-panel/components/cron-year.cjs +185 -0
- package/lib/ele-cron-panel/components/cron-year.d.ts +25 -0
- package/lib/ele-cron-panel/index.cjs +347 -0
- package/lib/ele-cron-panel/index.d.ts +14 -0
- package/lib/ele-cron-panel/props.cjs +14 -0
- package/lib/ele-cron-panel/props.d.ts +20 -0
- package/lib/ele-cron-panel/style/index.cjs +8 -0
- package/lib/ele-cron-panel/style/index.d.ts +1 -0
- package/lib/ele-cron-panel/style/index.scss +282 -0
- package/lib/ele-cron-panel/types.d.ts +118 -0
- package/lib/ele-cron-panel/util.cjs +542 -0
- package/lib/ele-cron-panel/util.d.ts +23 -0
- package/lib/ele-cropper/components/cropper-tools.d.ts +2 -2
- package/lib/ele-cropper-modal/index.d.ts +2 -4
- package/lib/ele-crud/index.d.ts +3 -3
- package/lib/ele-drawer/index.cjs +4 -0
- package/lib/ele-drawer/index.d.ts +9 -0
- package/lib/ele-drawer/props.cjs +6 -1
- package/lib/ele-drawer/props.d.ts +5 -0
- package/lib/ele-drawer/style/index.scss +11 -0
- package/lib/ele-file-list/index.d.ts +3 -3
- package/lib/ele-icon-select/components/icon-grid.cjs +19 -11
- package/lib/ele-icon-select/components/icon-grid.d.ts +8 -3
- package/lib/ele-icon-select/index.cjs +91 -85
- package/lib/ele-icon-select/index.d.ts +58 -59
- package/lib/ele-icon-select/props.cjs +34 -34
- package/lib/ele-icon-select/props.d.ts +35 -35
- package/lib/ele-icon-select/style/css-var.scss +1 -1
- package/lib/ele-icon-select/style/index.scss +50 -18
- package/lib/ele-icon-select/types.d.ts +13 -0
- package/lib/ele-map-picker/index.d.ts +3 -3
- package/lib/ele-modal/index.cjs +9 -3
- package/lib/ele-modal/index.d.ts +4 -2
- package/lib/ele-modal/props.cjs +2 -0
- package/lib/ele-modal/props.d.ts +2 -0
- package/lib/ele-modal/style/index.scss +16 -0
- package/lib/ele-pro-form/components/item-type-data.cjs +39 -64
- package/lib/ele-pro-form/index.d.ts +3 -3
- package/lib/ele-pro-table/components/table-tools.cjs +117 -247
- package/lib/ele-pro-table/components/table-tools.d.ts +12 -97
- package/lib/ele-pro-table/components/tool-export.cjs +32 -20
- package/lib/ele-pro-table/components/tool-export.d.ts +5 -1
- package/lib/ele-pro-table/components/tool-print.cjs +37 -25
- package/lib/ele-pro-table/components/tool-print.d.ts +5 -1
- package/lib/ele-pro-table/exceljs-plugin.cjs +81 -0
- package/lib/ele-pro-table/exceljs-plugin.d.ts +12 -0
- package/lib/ele-pro-table/index.cjs +143 -72
- package/lib/ele-pro-table/index.d.ts +6 -7
- package/lib/ele-pro-table/types.d.ts +11 -0
- package/lib/ele-split-panel/style/index.scss +1 -1
- package/lib/ele-table-select/index.d.ts +2 -0
- package/lib/ele-table-select/props.cjs +3 -1
- package/lib/ele-table-select/props.d.ts +2 -0
- package/lib/ele-tour/index.d.ts +3 -3
- package/lib/ele-tree-select/index.d.ts +2 -0
- package/lib/ele-upload-list/index.cjs +25 -8
- package/lib/ele-upload-list/index.d.ts +3 -3
- package/lib/ele-virtual-table/components/body-cell.d.ts +1 -1
- package/lib/ele-watermark/index.cjs +251 -92
- package/lib/ele-watermark/index.d.ts +20 -7
- package/lib/ele-watermark/props.cjs +10 -3
- package/lib/ele-watermark/props.d.ts +10 -3
- package/lib/ele-watermark/types.d.ts +12 -0
- package/lib/ele-watermark/util.cjs +10 -19
- package/lib/ele-watermark/util.d.ts +2 -9
- package/lib/lang/en_US.cjs +116 -0
- package/lib/lang/zh_CN.cjs +116 -0
- package/lib/lang/zh_TW.cjs +116 -0
- package/lib/style/plus.scss +3 -1
- package/lib/style/themes/default.scss +12 -3
- package/lib/style/themes/rounded.scss +2 -1
- package/lib/utils/theme-util.d.ts +1 -1
- package/package.json +1 -1
- package/typings/global.d.ts +2 -0
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
@use '../../style/themes/default.scss' as *;
|
|
2
|
+
@use '../../style/util.scss' as *;
|
|
3
|
+
|
|
4
|
+
.ele-cron-panel {
|
|
5
|
+
position: relative;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.ele-cron-panel-main > .ele-tabs {
|
|
9
|
+
#{eleVarName('tab', 'height')}: 32px;
|
|
10
|
+
|
|
11
|
+
.el-tabs__content {
|
|
12
|
+
padding: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.el-tabs__new-tab {
|
|
16
|
+
flex-shrink: 0;
|
|
17
|
+
min-width: 36px;
|
|
18
|
+
width: max-content;
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
margin: 0 6px 0 0;
|
|
21
|
+
padding: 0 4px;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* 内容 */
|
|
26
|
+
.ele-cron-panel-content {
|
|
27
|
+
height: 360px;
|
|
28
|
+
padding: 12px 20px 0 20px;
|
|
29
|
+
overflow: auto;
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
|
|
32
|
+
.el-radio-group {
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
align-items: flex-start;
|
|
36
|
+
width: min-content;
|
|
37
|
+
min-width: 100%;
|
|
38
|
+
|
|
39
|
+
& > .el-radio {
|
|
40
|
+
margin: 0;
|
|
41
|
+
|
|
42
|
+
& + .el-radio {
|
|
43
|
+
margin-top: 8px;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* 指定选择项 */
|
|
49
|
+
.ele-cron-panel-options-wrapper {
|
|
50
|
+
padding: 4px 0 0 0;
|
|
51
|
+
align-items: flex-start;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.ele-cron-panel-options {
|
|
55
|
+
white-space: normal;
|
|
56
|
+
padding: 6px 0 0 2px;
|
|
57
|
+
box-sizing: border-box;
|
|
58
|
+
|
|
59
|
+
.el-checkbox {
|
|
60
|
+
margin: 0;
|
|
61
|
+
width: 66px;
|
|
62
|
+
height: 26px;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* 范围输入项 */
|
|
67
|
+
.ele-cron-panel-item-wrapper {
|
|
68
|
+
height: auto;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.ele-cron-panel-item {
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.ele-cron-panel-item-input > .el-input-number {
|
|
77
|
+
width: 100%;
|
|
78
|
+
box-sizing: border-box;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.ele-cron-panel-item-input,
|
|
82
|
+
.ele-cron-panel-item-input.el-checkbox {
|
|
83
|
+
width: 98px;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* 底栏 */
|
|
88
|
+
.ele-cron-panel-extra {
|
|
89
|
+
border: 1px solid elVar('border-color', 'light');
|
|
90
|
+
border-top: none;
|
|
91
|
+
display: flex;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.ele-cron-panel-extra-item {
|
|
95
|
+
flex-shrink: 0;
|
|
96
|
+
box-sizing: border-box;
|
|
97
|
+
|
|
98
|
+
&:first-child {
|
|
99
|
+
flex: 1;
|
|
100
|
+
overflow: hidden;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
& + .ele-cron-panel-extra-item {
|
|
104
|
+
min-width: 220px;
|
|
105
|
+
border-left: 1px solid elVar('border-color', 'light');
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* 结果 */
|
|
110
|
+
.ele-cron-panel-result {
|
|
111
|
+
display: flex;
|
|
112
|
+
align-items: flex-start;
|
|
113
|
+
justify-content: center;
|
|
114
|
+
gap: 8px;
|
|
115
|
+
margin-top: 8px;
|
|
116
|
+
min-width: max-content;
|
|
117
|
+
|
|
118
|
+
& + .ele-cron-panel-result {
|
|
119
|
+
margin: 12px 0 8px 0;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.ele-cron-panel-result-item {
|
|
124
|
+
flex-shrink: 0;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.ele-cron-panel-result-title {
|
|
128
|
+
font-size: 12px;
|
|
129
|
+
text-align: center;
|
|
130
|
+
margin-bottom: 2px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.ele-cron-panel-result-text {
|
|
134
|
+
font-size: 12px;
|
|
135
|
+
text-align: center;
|
|
136
|
+
min-width: 32px;
|
|
137
|
+
max-width: 100%;
|
|
138
|
+
height: 20px;
|
|
139
|
+
line-height: 20px;
|
|
140
|
+
padding: 0 4px;
|
|
141
|
+
border-radius: 4px;
|
|
142
|
+
border: 1px solid elVar('border-color');
|
|
143
|
+
box-sizing: border-box;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.ele-cron-panel-result-value {
|
|
147
|
+
min-width: 270px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* 最近运行时间 */
|
|
151
|
+
.ele-cron-panel-extra-header {
|
|
152
|
+
height: 28px;
|
|
153
|
+
line-height: 28px;
|
|
154
|
+
font-size: 13px;
|
|
155
|
+
padding: 0 16px;
|
|
156
|
+
background: elVar('fill-color', 'lighter');
|
|
157
|
+
border-bottom: 1px solid elVar('border-color', 'light');
|
|
158
|
+
box-sizing: border-box;
|
|
159
|
+
text-align: center;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.ele-cron-panel-extra-body {
|
|
163
|
+
padding: 6px 12px;
|
|
164
|
+
box-sizing: border-box;
|
|
165
|
+
overflow: auto;
|
|
166
|
+
|
|
167
|
+
.ele-cron-panel-test {
|
|
168
|
+
padding: 0;
|
|
169
|
+
margin: 0 auto;
|
|
170
|
+
width: max-content;
|
|
171
|
+
box-sizing: border-box;
|
|
172
|
+
list-style: none;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.ele-cron-panel-test-item {
|
|
176
|
+
line-height: 22px;
|
|
177
|
+
|
|
178
|
+
&::before {
|
|
179
|
+
content: '';
|
|
180
|
+
width: 4px;
|
|
181
|
+
height: 4px;
|
|
182
|
+
margin: 0 6px 0 0;
|
|
183
|
+
vertical-align: 3px;
|
|
184
|
+
display: inline-block;
|
|
185
|
+
background: elVar('text-color', 'regular');
|
|
186
|
+
border-radius: 50%;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/* 常用列表 */
|
|
192
|
+
.ele-cron-panel-list-mask {
|
|
193
|
+
position: absolute;
|
|
194
|
+
top: 0;
|
|
195
|
+
left: 0;
|
|
196
|
+
right: 0;
|
|
197
|
+
bottom: 0;
|
|
198
|
+
z-index: 9;
|
|
199
|
+
|
|
200
|
+
&:not(.is-show) {
|
|
201
|
+
pointer-events: none;
|
|
202
|
+
|
|
203
|
+
.ele-cron-panel-list-wrapper {
|
|
204
|
+
opacity: 0;
|
|
205
|
+
transform: scale(0.6);
|
|
206
|
+
pointer-events: none;
|
|
207
|
+
visibility: hidden;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.ele-cron-panel-list-wrapper {
|
|
213
|
+
width: max-content;
|
|
214
|
+
max-height: calc(100% - 36px);
|
|
215
|
+
margin: 36px 0 0 auto;
|
|
216
|
+
padding: 8px;
|
|
217
|
+
border-radius: 6px;
|
|
218
|
+
background: elVar('bg-color', 'overlay');
|
|
219
|
+
box-shadow: elVar('box-shadow', 'light');
|
|
220
|
+
transition: all $transition-slow;
|
|
221
|
+
transform-origin: top right;
|
|
222
|
+
box-sizing: border-box;
|
|
223
|
+
overflow: auto;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.ele-cron-panel-list-item {
|
|
227
|
+
padding: 6px 8px 2px 8px;
|
|
228
|
+
border: 1px solid elVar('border-color');
|
|
229
|
+
border-radius: 4px;
|
|
230
|
+
transition: all $transition-base;
|
|
231
|
+
cursor: pointer;
|
|
232
|
+
|
|
233
|
+
& + .ele-cron-panel-list-item {
|
|
234
|
+
margin-top: 8px;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
&:hover {
|
|
238
|
+
background: elVar('fill-color', 'lighter');
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.ele-cron-panel-list-item-label {
|
|
243
|
+
font-size: 12px;
|
|
244
|
+
line-height: 18px;
|
|
245
|
+
margin-top: 2px;
|
|
246
|
+
opacity: 0.8;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.ele-cron-panel-list-item-value {
|
|
250
|
+
height: 18px;
|
|
251
|
+
line-height: 18px;
|
|
252
|
+
font-size: 12px;
|
|
253
|
+
border-radius: 4px;
|
|
254
|
+
padding: 0 6px;
|
|
255
|
+
width: max-content;
|
|
256
|
+
background: elVar('color-info', 'light-9');
|
|
257
|
+
border: 1px solid elVar('border-color');
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/* 小屏幕 */
|
|
261
|
+
@media screen and (max-width: 768px) {
|
|
262
|
+
.ele-cron-panel-content {
|
|
263
|
+
height: 220px;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.ele-cron-panel-extra {
|
|
267
|
+
flex-direction: column;
|
|
268
|
+
|
|
269
|
+
.ele-cron-panel-extra-item {
|
|
270
|
+
flex: none;
|
|
271
|
+
|
|
272
|
+
& + .ele-cron-panel-extra-item {
|
|
273
|
+
border-top: 1px solid elVar('border-color', 'light');
|
|
274
|
+
border-left: none;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.ele-cron-panel-result {
|
|
280
|
+
gap: 2px;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 国际化
|
|
3
|
+
*/
|
|
4
|
+
export interface CronPanelLocale {
|
|
5
|
+
second: string;
|
|
6
|
+
minute: string;
|
|
7
|
+
hour: string;
|
|
8
|
+
day: string;
|
|
9
|
+
month: string;
|
|
10
|
+
week: string;
|
|
11
|
+
year: string;
|
|
12
|
+
result: string;
|
|
13
|
+
resultSecond: string;
|
|
14
|
+
resultMinute: string;
|
|
15
|
+
resultHour: string;
|
|
16
|
+
resultDay: string;
|
|
17
|
+
resultMonth: string;
|
|
18
|
+
resultWeek: string;
|
|
19
|
+
resultYear: string;
|
|
20
|
+
resultName: string;
|
|
21
|
+
resultTest: string;
|
|
22
|
+
resultNoData: string;
|
|
23
|
+
resultNoMore: string;
|
|
24
|
+
//
|
|
25
|
+
secondEvery: string;
|
|
26
|
+
secondRangeStart: string;
|
|
27
|
+
secondRange: string;
|
|
28
|
+
secondRangeEnd: string;
|
|
29
|
+
secondIntervalStart: string;
|
|
30
|
+
secondInterval: string;
|
|
31
|
+
secondIntervalEnd: string;
|
|
32
|
+
secondSpecified: string;
|
|
33
|
+
//
|
|
34
|
+
dayEvery: string;
|
|
35
|
+
dayRangeStart: string;
|
|
36
|
+
dayRange: string;
|
|
37
|
+
dayRangeEnd: string;
|
|
38
|
+
dayIntervalStart: string;
|
|
39
|
+
dayInterval: string;
|
|
40
|
+
dayIntervalEnd: string;
|
|
41
|
+
daySpecified: string;
|
|
42
|
+
dayWorkday: string;
|
|
43
|
+
dayWorkdayText: string;
|
|
44
|
+
dayLast: string;
|
|
45
|
+
dayUnset: string;
|
|
46
|
+
//
|
|
47
|
+
hourEvery: string;
|
|
48
|
+
hourRangeStart: string;
|
|
49
|
+
hourRange: string;
|
|
50
|
+
hourRangeEnd: string;
|
|
51
|
+
hourIntervalStart: string;
|
|
52
|
+
hourInterval: string;
|
|
53
|
+
hourIntervalEnd: string;
|
|
54
|
+
hourSpecified: string;
|
|
55
|
+
//
|
|
56
|
+
minuteEvery: string;
|
|
57
|
+
minuteRangeStart: string;
|
|
58
|
+
minuteRange: string;
|
|
59
|
+
minuteRangeEnd: string;
|
|
60
|
+
minuteIntervalStart: string;
|
|
61
|
+
minuteInterval: string;
|
|
62
|
+
minuteIntervalEnd: string;
|
|
63
|
+
minuteSpecified: string;
|
|
64
|
+
//
|
|
65
|
+
monthEvery: string;
|
|
66
|
+
monthRangeStart: string;
|
|
67
|
+
monthRange: string;
|
|
68
|
+
monthRangeEnd: string;
|
|
69
|
+
monthIntervalStart: string;
|
|
70
|
+
monthInterval: string;
|
|
71
|
+
monthIntervalEnd: string;
|
|
72
|
+
monthSpecified: string;
|
|
73
|
+
//
|
|
74
|
+
weekEvery: string;
|
|
75
|
+
weekRangeStart: string;
|
|
76
|
+
weekRange: string;
|
|
77
|
+
weekIntervalStart: string;
|
|
78
|
+
weekInterval: string;
|
|
79
|
+
weekIntervalEnd: string;
|
|
80
|
+
weekSpecified: string;
|
|
81
|
+
weekLast: string;
|
|
82
|
+
weekUnset: string;
|
|
83
|
+
weekName1: string;
|
|
84
|
+
weekName2: string;
|
|
85
|
+
weekName3: string;
|
|
86
|
+
weekName4: string;
|
|
87
|
+
weekName5: string;
|
|
88
|
+
weekName6: string;
|
|
89
|
+
weekName7: string;
|
|
90
|
+
//
|
|
91
|
+
yearEvery: string;
|
|
92
|
+
yearRangeStart: string;
|
|
93
|
+
yearRange: string;
|
|
94
|
+
yearRangeEnd: string;
|
|
95
|
+
yearIntervalStart: string;
|
|
96
|
+
yearInterval: string;
|
|
97
|
+
yearIntervalEnd: string;
|
|
98
|
+
yearSpecified: string;
|
|
99
|
+
yearUnset: string;
|
|
100
|
+
//
|
|
101
|
+
common: string;
|
|
102
|
+
common01: string;
|
|
103
|
+
common02: string;
|
|
104
|
+
common03: string;
|
|
105
|
+
common04: string;
|
|
106
|
+
common05: string;
|
|
107
|
+
common06: string;
|
|
108
|
+
common07: string;
|
|
109
|
+
common08: string;
|
|
110
|
+
common09: string;
|
|
111
|
+
common10: string;
|
|
112
|
+
common11: string;
|
|
113
|
+
common12: string;
|
|
114
|
+
common13: string;
|
|
115
|
+
common14: string;
|
|
116
|
+
common15: string;
|
|
117
|
+
common16: string;
|
|
118
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 任意* 范围 间隔 指定 通用封装
|
|
3
|
+
* @param minValue 最小值
|
|
4
|
+
* @param maxValue 最大值
|
|
5
|
+
* @param defaultType 默认类型
|
|
6
|
+
*/
|
|
7
|
+
export declare function useCron(minValue: number, maxValue: number, defaultType?: string): {
|
|
8
|
+
type: import('vue').Ref<string, string>;
|
|
9
|
+
start: import('vue').Ref<number, number>;
|
|
10
|
+
end: import('vue').Ref<number, number>;
|
|
11
|
+
endMin: import('vue').ComputedRef<number>;
|
|
12
|
+
intervalStart: import('vue').Ref<number, number>;
|
|
13
|
+
intervalStep: import('vue').Ref<number, number>;
|
|
14
|
+
intervalStepMax: import('vue').ComputedRef<number>;
|
|
15
|
+
selections: import('vue').Ref<number[], number[]>;
|
|
16
|
+
getValue: () => string | undefined;
|
|
17
|
+
parseValue: (str?: string) => void;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* 计算最近 5 次运行时间
|
|
21
|
+
* @param cron Cron 表达式
|
|
22
|
+
*/
|
|
23
|
+
export declare function getResultItems(cron: string | undefined, noDataText: string, noMoreText: string): string[];
|