st-comp 0.0.178 → 0.0.180
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/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +3 -3
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +29 -33
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +14 -18
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +25 -30
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +457 -419
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +13 -16
- package/es/KlinePlus.cjs +3 -3
- package/es/KlinePlus.js +140 -142
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +274 -276
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +3 -3
- package/es/Table.cjs +1 -1
- package/es/Table.js +21 -23
- package/es/User.cjs +1 -1
- package/es/User.js +472 -482
- package/es/VarSelectDialog.cjs +3 -3
- package/es/VarSelectDialog.js +440 -2878
- package/es/VarietySearch.cjs +12 -12
- package/es/VarietySearch.js +1199 -1176
- package/es/VirtualTable.cjs +1 -13
- package/es/VirtualTable.js +1547 -1567
- package/es/{_initCloneObject-da90eef0.js → _initCloneObject-346b7ee2.js} +25 -26
- package/es/_initCloneObject-e2f0deb9.cjs +1 -0
- package/es/base-62a70f61.js +288 -0
- package/es/base-ef747d02.cjs +5 -0
- package/es/config-provider-178bb43c.cjs +1 -0
- package/es/config-provider-2e733cae.js +58 -0
- package/es/dayjs.min-2c20abe6.cjs +1 -0
- package/es/{dayjs.min-54a4e095.js → dayjs.min-8313b006.js} +96 -93
- package/es/{debounce-9e323221.cjs → debounce-0b77a317.cjs} +1 -1
- package/es/{debounce-3cec4646.js → debounce-5f2ec4be.js} +19 -19
- package/es/{dropdown-82b80e8b.js → dropdown-d06edf54.js} +49 -39
- package/es/dropdown-f2fec683.cjs +1 -0
- package/es/el-button-5b08c08a.js +272 -0
- package/es/el-button-fc46a173.cjs +1 -0
- package/es/el-dialog-0b7166c9.cjs +1 -0
- package/es/el-dialog-d8d0da7a.js +276 -0
- package/es/{el-divider-fd2b4e2e.js → el-divider-2f300113.js} +1 -1
- package/es/{el-divider-40c50ce7.cjs → el-divider-4713d74c.cjs} +1 -1
- package/es/{el-empty-412fc297.js → el-empty-87a86f30.js} +57 -80
- package/es/el-empty-bb2b0235.cjs +1 -0
- package/es/el-form-item-caffd133.cjs +12 -0
- package/es/el-form-item-ff9c7d98.js +1267 -0
- package/es/el-input-6db30c8c.js +531 -0
- package/es/el-input-9c912678.cjs +1 -0
- package/es/el-input-number-05f150e5.js +311 -0
- package/es/el-input-number-6fe73563.cjs +1 -0
- package/es/el-loading-8514feaa.cjs +1 -0
- package/es/el-loading-93842445.js +203 -0
- package/es/el-menu-item-7a57c1be.cjs +1 -0
- package/es/el-menu-item-a886fbdd.js +768 -0
- package/es/el-message-8aa674f2.js +406 -0
- package/es/el-message-aad5b42b.cjs +1 -0
- package/es/el-message-box-2b6b2b68.js +550 -0
- package/es/el-message-box-53f355d7.cjs +1 -0
- package/es/el-overlay-540b2a02.js +324 -0
- package/es/el-overlay-96630a2e.cjs +1 -0
- package/es/el-popconfirm-2afdf6fb.cjs +1 -0
- package/es/el-popconfirm-c18d8035.js +162 -0
- package/es/el-popper-544fd77e.js +2412 -0
- package/es/el-popper-73466d7a.cjs +1 -0
- package/es/el-scrollbar-691cfc11.cjs +1 -0
- package/es/el-scrollbar-fae984e3.js +763 -0
- package/es/el-segmented-a7493831.js +142 -0
- package/es/el-segmented-b6bd3c0e.cjs +1 -0
- package/es/el-select-5959e837.cjs +1 -0
- package/es/el-select-ea8feecf.js +1251 -0
- package/es/el-table-column-9ef52443.js +3878 -0
- package/es/el-table-column-b824ac5c.cjs +14 -0
- package/es/el-tag-2fc9b9eb.js +116 -0
- package/es/el-tag-ecad6d02.cjs +1 -0
- package/es/index-2e331d74.js +10 -0
- package/es/{index-a8e9ec0f.js → index-34592e82.js} +176 -182
- package/es/index-3a74eae4.cjs +1 -0
- package/es/{index-1c41bd56.js → index-5d4e5c51.js} +3 -3
- package/es/{index-e348d5e8.cjs → index-694bb944.cjs} +1 -1
- package/es/{index-ee1cebbc.js → index-74fb90c7.js} +5 -5
- package/es/{index-d577b81b.js → index-8d7ae5dc.js} +2 -2
- package/es/index-a9095b4a.js +163 -0
- package/es/index-a93dd9c4.cjs +1 -0
- package/es/index-ebd2fd7e.cjs +1 -0
- package/es/index-f1c702f6.cjs +1 -0
- package/es/{index-19fa1fcf.cjs → index-f6afafaa.cjs} +1 -1
- package/es/{raf-bfbf42e4.js → raf-41aed4d4.js} +1 -1
- package/es/{raf-07cb6953.cjs → raf-8249652f.cjs} +1 -1
- package/es/{scroll-e3cb691f.js → scroll-7d352c1f.js} +2 -2
- package/es/{scroll-4769a65d.cjs → scroll-b108dabd.cjs} +1 -1
- package/es/style.css +1 -1
- package/es/use-global-config-03735617.cjs +1 -0
- package/es/use-global-config-4b185eb5.js +71 -0
- package/es/validator-0e688e4e.cjs +1 -0
- package/es/validator-d12a8f8c.js +5 -0
- package/es/vnode-4db20540.cjs +1 -0
- package/es/vnode-a0795a4b.js +70 -0
- package/es/{zh-cn-d883afa8.js → zh-cn-0ff32188.js} +5 -4
- package/es/{zh-cn-b24a7dc9.cjs → zh-cn-adf19c4b.cjs} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +226 -245
- package/lib/{index-0f16f8b0.js → index-9341884f.js} +44358 -46367
- package/lib/{python-e9c32bc9.js → python-5c9b3e4e.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +2 -2
- package/packages/KlinePlus/index.vue +2 -1
- package/packages/VarSelectDialog/index.vue +43 -67
- package/packages/VarietySearch/components/FactorScreen/FactorDescription.vue +4 -2
- package/packages/VarietySearch/components/FactorScreen/index.vue +6 -4
- package/packages/index.ts +0 -2
- package/src/pages/VarSelectDialog/index.vue +1 -1
- package/src/router/routes.ts +0 -5
- package/es/Dialog.cjs +0 -1
- package/es/Dialog.js +0 -95
- package/es/_commonjsHelpers-10dfc225.js +0 -8
- package/es/_commonjsHelpers-87b0abe8.cjs +0 -1
- package/es/_initCloneObject-9ccbb113.cjs +0 -1
- package/es/base-bdc10baa.cjs +0 -5
- package/es/base-d9284bf0.js +0 -304
- package/es/castArray-37eb9980.cjs +0 -1
- package/es/castArray-b0ab0165.js +0 -10
- package/es/config-provider-ec6b09df.cjs +0 -1
- package/es/config-provider-f0151e9f.js +0 -47
- package/es/dayjs.min-19fb125f.cjs +0 -1
- package/es/dropdown-b2dab5bb.cjs +0 -1
- package/es/el-button-34665425.js +0 -237
- package/es/el-button-960edd49.cjs +0 -1
- package/es/el-dialog-a412484e.js +0 -267
- package/es/el-dialog-cd484c1f.cjs +0 -1
- package/es/el-empty-627ec09e.cjs +0 -1
- package/es/el-form-item-668ba024.js +0 -1263
- package/es/el-form-item-e1c3104b.cjs +0 -12
- package/es/el-input-22e66e37.js +0 -523
- package/es/el-input-5163bda3.cjs +0 -1
- package/es/el-input-number-481e21c5.js +0 -284
- package/es/el-input-number-eb54cde4.cjs +0 -1
- package/es/el-loading-15a5501c.cjs +0 -1
- package/es/el-loading-d4e403ab.js +0 -187
- package/es/el-menu-item-404c10e5.js +0 -772
- package/es/el-menu-item-ac89e804.cjs +0 -1
- package/es/el-message-ad87b9dd.cjs +0 -1
- package/es/el-message-box-41f39f6d.js +0 -558
- package/es/el-message-box-6694f827.cjs +0 -1
- package/es/el-message-ef506caa.js +0 -375
- package/es/el-overlay-4a9fa4e1.js +0 -269
- package/es/el-overlay-e5d318c3.cjs +0 -1
- package/es/el-popconfirm-7b9183aa.js +0 -140
- package/es/el-popconfirm-a497b279.cjs +0 -1
- package/es/el-popper-14a9d493.cjs +0 -1
- package/es/el-popper-e73466eb.js +0 -2263
- package/es/el-scrollbar-45318df0.js +0 -201
- package/es/el-scrollbar-8bf765f2.cjs +0 -1
- package/es/el-segmented-3ba6d664.cjs +0 -1
- package/es/el-segmented-41820018.js +0 -135
- package/es/el-select-1d2309a1.cjs +0 -1
- package/es/el-select-d7a00294.js +0 -1130
- package/es/el-table-column-a2d0c635.js +0 -3805
- package/es/el-table-column-be9a76bb.cjs +0 -14
- package/es/el-tag-7f391090.js +0 -280
- package/es/el-tag-8d49d4d2.cjs +0 -1
- package/es/index-02ca0096.cjs +0 -5
- package/es/index-3120be08.js +0 -14
- package/es/index-5b81f4da.cjs +0 -1
- package/es/index-85a32a00.js +0 -59
- package/es/index-8d3c5e96.cjs +0 -3
- package/es/index-94f38460.js +0 -306
- package/es/index-a99a5307.cjs +0 -1
- package/es/index-b90c746b.cjs +0 -1
- package/es/index-d94bae37.cjs +0 -1
- package/es/index-d99fdc6d.js +0 -159
- package/es/use-form-common-props-592797e2.cjs +0 -2
- package/es/use-form-common-props-cc347a83.js +0 -171
- package/es/use-global-config-584b62f1.cjs +0 -1
- package/es/use-global-config-c7f0a7e3.js +0 -73
- package/es/validator-10fa54fe.js +0 -5
- package/es/validator-af488a9a.cjs +0 -1
- package/es/vnode-1b827c99.cjs +0 -1
- package/es/vnode-6be33bb1.js +0 -14
- package/packages/Dialog/index.ts +0 -8
- package/packages/Dialog/index.vue +0 -54
- package/src/pages/Dialog/index.vue +0 -16
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "st-comp",
|
|
3
3
|
"public": true,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.180",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"axios": "^1.5.1",
|
|
18
18
|
"dayjs": "^1.11.10",
|
|
19
19
|
"echarts": "^5.4.3",
|
|
20
|
-
"element-plus": "^2.
|
|
20
|
+
"element-plus": "^2.11.3",
|
|
21
21
|
"interactjs": "^1.10.27",
|
|
22
22
|
"markdown-it": "^14.1.0",
|
|
23
23
|
"monaco-editor": "0.47.0",
|
|
@@ -298,7 +298,7 @@ const getMoreData = async (type) => {
|
|
|
298
298
|
};
|
|
299
299
|
// 图表: 获取数据 [当屏首末时间范围]
|
|
300
300
|
const getScreenTimeRange = () => {
|
|
301
|
-
if (!klineData.value.time) return (screenTimeRange.value = []);
|
|
301
|
+
if (!klineData.value.time.length) return (screenTimeRange.value = []);
|
|
302
302
|
const { time } = klineData.value;
|
|
303
303
|
const { startValue, endValue } = mainChartIns.getOption()?.dataZoom[0] ?? {};
|
|
304
304
|
const startTime = time[startValue];
|
|
@@ -642,6 +642,7 @@ const draw = (params = { startValue: 0, endValue: 0 }) => {
|
|
|
642
642
|
};
|
|
643
643
|
// 图表: 绘制(当屏最高价)
|
|
644
644
|
const drawScreenMaxPrice = () => {
|
|
645
|
+
if (!props.userKlineConfig.enable_showScreenMaxPrice || !klineData.value.time.length) return;
|
|
645
646
|
const { data } = klineData.value;
|
|
646
647
|
const { startValue, endValue } = mainChartIns.getOption()?.dataZoom[0] ?? {};
|
|
647
648
|
let maxPrice = 0;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import interact from "interactjs";
|
|
3
2
|
import { computed, onMounted, ref, inject } from "vue";
|
|
4
3
|
import { Close, InfoFilled } from "@element-plus/icons-vue";
|
|
5
4
|
import VarietySelect from "./VarietySelect.vue";
|
|
@@ -12,13 +11,8 @@ const props = defineProps({
|
|
|
12
11
|
},
|
|
13
12
|
});
|
|
14
13
|
|
|
15
|
-
const dialogRef = ref(null); // 弹窗主体Ref
|
|
16
|
-
const dialogTop = ref((window.innerHeight - 542) / 2 - 220 > 0 ? (window.innerHeight - 542) / 2 - 220 : 0);
|
|
17
|
-
const dialogRight = ref((window.innerWidth - 1000) / 2 > 0 ? (window.innerWidth - 1000) / 2 : 0);
|
|
18
|
-
|
|
19
14
|
const editorRef = ref(null); // 编辑器Ref
|
|
20
15
|
const visible = ref(false);
|
|
21
|
-
const zIndex = ref(0);
|
|
22
16
|
|
|
23
17
|
const varName = ref(null);
|
|
24
18
|
const varList = ref([]);
|
|
@@ -109,28 +103,9 @@ defineExpose({
|
|
|
109
103
|
* @editor 脚本编辑器实例
|
|
110
104
|
* @newZindex Number 窗口定位层级
|
|
111
105
|
*/
|
|
112
|
-
open: (editor
|
|
106
|
+
open: (editor) => {
|
|
113
107
|
editorRef.value = editor;
|
|
114
|
-
zIndex.value = newZIndex;
|
|
115
108
|
visible.value = true;
|
|
116
|
-
// 支持拖拽
|
|
117
|
-
const dragArea = document.querySelector("body");
|
|
118
|
-
interact(dialogRef.value).draggable({
|
|
119
|
-
allowFrom: ".custom-header", // 只有 .custom-header 元素可以触发拖拽
|
|
120
|
-
// 限制拖拽范围
|
|
121
|
-
modifiers: [
|
|
122
|
-
interact.modifiers.restrictRect({
|
|
123
|
-
restriction: dragArea, // 限制在拖拽区域内
|
|
124
|
-
endOnly: false, // 实时限制
|
|
125
|
-
}),
|
|
126
|
-
],
|
|
127
|
-
listeners: {
|
|
128
|
-
move(event) {
|
|
129
|
-
dialogRight.value -= event.dx;
|
|
130
|
-
dialogTop.value += event.dy;
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
});
|
|
134
109
|
},
|
|
135
110
|
close: () => {
|
|
136
111
|
visible.value = false;
|
|
@@ -139,38 +114,46 @@ defineExpose({
|
|
|
139
114
|
</script>
|
|
140
115
|
|
|
141
116
|
<template>
|
|
142
|
-
<
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
117
|
+
<el-dialog
|
|
118
|
+
modal-class="var-select-dialog"
|
|
119
|
+
v-model="visible"
|
|
120
|
+
width="660px"
|
|
121
|
+
align-center
|
|
122
|
+
destroy-on-close
|
|
123
|
+
draggable
|
|
124
|
+
overflow
|
|
125
|
+
:modal="false"
|
|
126
|
+
:modal-penetrable="true"
|
|
127
|
+
:show-close="false"
|
|
147
128
|
>
|
|
148
|
-
<
|
|
149
|
-
<div class="
|
|
150
|
-
<
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
<
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
129
|
+
<template #header>
|
|
130
|
+
<div class="custom-header">
|
|
131
|
+
<div class="left">
|
|
132
|
+
<span> 选择变量 </span>
|
|
133
|
+
<el-select
|
|
134
|
+
v-model="varName"
|
|
135
|
+
placeholder="选择变量"
|
|
136
|
+
filterable
|
|
137
|
+
clearable
|
|
138
|
+
>
|
|
139
|
+
<el-option
|
|
140
|
+
v-for="(item, index) in varList"
|
|
141
|
+
:key="index"
|
|
142
|
+
:label="item.varName"
|
|
143
|
+
:value="item.varName"
|
|
144
|
+
/>
|
|
145
|
+
</el-select>
|
|
146
|
+
</div>
|
|
147
|
+
<div class="right">
|
|
148
|
+
<el-icon
|
|
149
|
+
class="el-icon--left"
|
|
150
|
+
@click="visible = false"
|
|
151
|
+
>
|
|
152
|
+
<Close />
|
|
153
|
+
</el-icon>
|
|
154
|
+
</div>
|
|
172
155
|
</div>
|
|
173
|
-
</
|
|
156
|
+
</template>
|
|
174
157
|
<div class="custom-body">
|
|
175
158
|
<template v-if="formatList.length">
|
|
176
159
|
<div
|
|
@@ -242,7 +225,7 @@ defineExpose({
|
|
|
242
225
|
placement="top-start"
|
|
243
226
|
>
|
|
244
227
|
<template #content>
|
|
245
|
-
<div style="max-width: 820px
|
|
228
|
+
<div style="max-width: 820px">
|
|
246
229
|
<span style="white-space: pre-line">{{ formatItem.tip }}</span>
|
|
247
230
|
</div>
|
|
248
231
|
</template>
|
|
@@ -251,25 +234,18 @@ defineExpose({
|
|
|
251
234
|
</div>
|
|
252
235
|
</template>
|
|
253
236
|
</div>
|
|
254
|
-
</
|
|
237
|
+
</el-dialog>
|
|
255
238
|
</template>
|
|
256
239
|
|
|
257
240
|
<style lang="scss" scoped>
|
|
258
241
|
.var-select-dialog {
|
|
242
|
+
width: 660px;
|
|
259
243
|
min-width: 660px;
|
|
260
244
|
max-width: 1000px;
|
|
261
|
-
border-radius: 4px;
|
|
262
|
-
box-sizing: border-box;
|
|
263
|
-
box-shadow: var(--el-box-shadow-light);
|
|
264
|
-
background-color: var(--el-bg-color);
|
|
265
|
-
z-index: 3000;
|
|
266
|
-
position: fixed;
|
|
267
245
|
.custom-header {
|
|
268
|
-
z-index: 4000;
|
|
269
246
|
display: flex;
|
|
270
247
|
align-items: center;
|
|
271
248
|
justify-content: space-between;
|
|
272
|
-
padding: 10px;
|
|
273
249
|
.left {
|
|
274
250
|
display: flex;
|
|
275
251
|
align-items: center;
|
|
@@ -299,7 +275,7 @@ defineExpose({
|
|
|
299
275
|
min-height: 160px;
|
|
300
276
|
box-sizing: border-box;
|
|
301
277
|
border-top: var(--el-border);
|
|
302
|
-
padding:
|
|
278
|
+
padding: 10px 0;
|
|
303
279
|
.format-item {
|
|
304
280
|
font-size: 12px;
|
|
305
281
|
display: flex;
|
|
@@ -33,10 +33,12 @@ onMounted(async () => {
|
|
|
33
33
|
:title="factorType === '模版' ? '因子说明' : '脚本编写说明'"
|
|
34
34
|
width="1000"
|
|
35
35
|
align-center
|
|
36
|
-
draggable
|
|
37
|
-
overflow
|
|
38
36
|
append-to-body
|
|
39
37
|
destroy-on-close
|
|
38
|
+
draggable
|
|
39
|
+
overflow
|
|
40
|
+
:modal="false"
|
|
41
|
+
:modal-penetrable="true"
|
|
40
42
|
>
|
|
41
43
|
<el-scrollbar height="500px">
|
|
42
44
|
<template v-if="factorType === '模版'">
|
|
@@ -243,9 +243,7 @@ const handleDeleteTag = (aciton, index) => {
|
|
|
243
243
|
|
|
244
244
|
// 打开变量选择器
|
|
245
245
|
const open = () => {
|
|
246
|
-
|
|
247
|
-
console.log(zIndex);
|
|
248
|
-
stVarSelectDialogRef.value.open(monacoEditorRef.value, zIndex);
|
|
246
|
+
stVarSelectDialogRef.value.open(monacoEditorRef.value);
|
|
249
247
|
};
|
|
250
248
|
</script>
|
|
251
249
|
|
|
@@ -319,6 +317,10 @@ const open = () => {
|
|
|
319
317
|
width="1000"
|
|
320
318
|
align-center
|
|
321
319
|
destroy-on-close
|
|
320
|
+
draggable
|
|
321
|
+
overflow
|
|
322
|
+
:modal="false"
|
|
323
|
+
:modal-penetrable="true"
|
|
322
324
|
:show-close="false"
|
|
323
325
|
>
|
|
324
326
|
<template #header="{ titleId, titleClass }">
|
|
@@ -601,7 +603,7 @@ const open = () => {
|
|
|
601
603
|
<!-- 脚本模式 -->
|
|
602
604
|
<div
|
|
603
605
|
style="width: 968px; height: 400px"
|
|
604
|
-
:style="factorType === '脚本' ? null : { position: 'fixed', top: '-400px', zIndex: -1 }"
|
|
606
|
+
:style="factorType === '脚本' ? null : { position: 'fixed', top: '-400px', zIndex: -1, visibility: 'hidden', pointerEvents: 'none' }"
|
|
605
607
|
>
|
|
606
608
|
<MonacoEditor
|
|
607
609
|
ref="monacoEditorRef"
|
package/packages/index.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { App } from "vue"
|
|
|
2
2
|
import StChartLayout from "./ChartLayout/index.ts"
|
|
3
3
|
import StConfigProvider from "./ConfigProvider/index.ts"
|
|
4
4
|
import StContextmenu from "./Contextmenu/index.ts"
|
|
5
|
-
import StDialog from "./Dialog/index.ts"
|
|
6
5
|
import StFactorWarning from "./FactorWarning/index.ts"
|
|
7
6
|
import StHeatMap from "./HeatMap/index.ts"
|
|
8
7
|
import StKline from "./Kline/index.ts"
|
|
@@ -28,7 +27,6 @@ export default {
|
|
|
28
27
|
StChartLayout.install(app)
|
|
29
28
|
StConfigProvider.install(app)
|
|
30
29
|
StContextmenu.install(app)
|
|
31
|
-
StDialog.install(app)
|
|
32
30
|
StFactorWarning.install(app)
|
|
33
31
|
StHeatMap.install(app)
|
|
34
32
|
StKline.install(app)
|
package/src/router/routes.ts
CHANGED
|
@@ -14,11 +14,6 @@ export default [
|
|
|
14
14
|
name: 'Contextmenu',
|
|
15
15
|
component: () => import('../pages/Contextmenu/index.vue'),
|
|
16
16
|
},
|
|
17
|
-
{
|
|
18
|
-
path: '/dialog',
|
|
19
|
-
name: 'Dialog',
|
|
20
|
-
component: () => import('../pages/Dialog/index.vue'),
|
|
21
|
-
},
|
|
22
17
|
{
|
|
23
18
|
path: '/factorWarning',
|
|
24
19
|
name: 'FactorWarning',
|
package/es/Dialog.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";require("./base-bdc10baa.cjs");const a=require("./zh-cn-b24a7dc9.cjs"),f=require("./el-dialog-cd484c1f.cjs");require("./el-overlay-e5d318c3.cjs");const q=require("./el-button-960edd49.cjs"),e=require("vue");require("./config-provider-ec6b09df.cjs");require("./use-global-config-584b62f1.cjs");require("./use-form-common-props-592797e2.cjs");require("./index-02ca0096.cjs");require("./index-19fa1fcf.cjs");require("./index-d94bae37.cjs");require("./index-8d3c5e96.cjs");require("./vnode-1b827c99.cjs");require("./scroll-4769a65d.cjs");require("./index-eea0bcb3.cjs");const V=e.createElementVNode("span",null,"This is a message",-1),C={class:"dialog-footer"},_=e.defineComponent({__name:"index",props:{modelValue:{type:Boolean,required:!0},title:{type:String,default:()=>""},style:{type:String,default:()=>""}},emits:["update:modelValue"],setup(o,{emit:s}){const i=s,d=o,l=e.computed({get(){return d.modelValue},set(r){i("update:modelValue",r)}}),c=r=>{i("update:modelValue",!1)};return(r,t)=>{const u=q.ElButton,m=f.ElDialog,p=a.ElConfigProvider;return e.openBlock(),e.createBlock(p,{locale:e.unref(a.zhCn)},{default:e.withCtx(()=>[e.createVNode(m,{modelValue:l.value,"onUpdate:modelValue":t[2]||(t[2]=n=>l.value=n),title:o.title,width:"30%","before-close":c,style:e.normalizeStyle(o.style)},{footer:e.withCtx(()=>[e.createElementVNode("span",C,[e.createVNode(u,{onClick:t[0]||(t[0]=n=>l.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("Cancel")]),_:1}),e.createVNode(u,{type:"primary",onClick:t[1]||(t[1]=n=>l.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(" Confirm ")]),_:1})])]),default:e.withCtx(()=>[V]),_:1},8,["modelValue","title","style"])]),_:1},8,["locale"])}}}),g={install(o){o.component("st-dialog",_)}};module.exports=g;
|
package/es/Dialog.js
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import "./base-d9284bf0.js";
|
|
2
|
-
import { z as V, E as g } from "./zh-cn-d883afa8.js";
|
|
3
|
-
import { E as y } from "./el-dialog-a412484e.js";
|
|
4
|
-
import "./el-overlay-4a9fa4e1.js";
|
|
5
|
-
import { E as v } from "./el-button-34665425.js";
|
|
6
|
-
import { defineComponent as C, computed as E, openBlock as x, createBlock as k, unref as B, withCtx as o, createVNode as a, normalizeStyle as b, createElementVNode as d, createTextVNode as s } from "vue";
|
|
7
|
-
import "./config-provider-f0151e9f.js";
|
|
8
|
-
import "./use-global-config-c7f0a7e3.js";
|
|
9
|
-
import "./use-form-common-props-cc347a83.js";
|
|
10
|
-
import "./index-a8e9ec0f.js";
|
|
11
|
-
import "./index-ee1cebbc.js";
|
|
12
|
-
import "./index-94f38460.js";
|
|
13
|
-
import "./index-3120be08.js";
|
|
14
|
-
import "./vnode-6be33bb1.js";
|
|
15
|
-
import "./scroll-e3cb691f.js";
|
|
16
|
-
import "./index-657047bb.js";
|
|
17
|
-
const z = /* @__PURE__ */ d("span", null, "This is a message", -1), N = { class: "dialog-footer" }, S = /* @__PURE__ */ C({
|
|
18
|
-
__name: "index",
|
|
19
|
-
props: {
|
|
20
|
-
modelValue: {
|
|
21
|
-
type: Boolean,
|
|
22
|
-
required: !0
|
|
23
|
-
},
|
|
24
|
-
title: {
|
|
25
|
-
type: String,
|
|
26
|
-
default: () => ""
|
|
27
|
-
},
|
|
28
|
-
style: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: () => ""
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
emits: ["update:modelValue"],
|
|
34
|
-
setup(t, { emit: p }) {
|
|
35
|
-
const r = p, u = t, l = E({
|
|
36
|
-
get() {
|
|
37
|
-
return u.modelValue;
|
|
38
|
-
},
|
|
39
|
-
set(n) {
|
|
40
|
-
r("update:modelValue", n);
|
|
41
|
-
}
|
|
42
|
-
}), f = (n) => {
|
|
43
|
-
r("update:modelValue", !1);
|
|
44
|
-
};
|
|
45
|
-
return (n, e) => {
|
|
46
|
-
const m = v, c = y, _ = g;
|
|
47
|
-
return x(), k(_, { locale: B(V) }, {
|
|
48
|
-
default: o(() => [
|
|
49
|
-
a(c, {
|
|
50
|
-
modelValue: l.value,
|
|
51
|
-
"onUpdate:modelValue": e[2] || (e[2] = (i) => l.value = i),
|
|
52
|
-
title: t.title,
|
|
53
|
-
width: "30%",
|
|
54
|
-
"before-close": f,
|
|
55
|
-
style: b(t.style)
|
|
56
|
-
}, {
|
|
57
|
-
footer: o(() => [
|
|
58
|
-
d("span", N, [
|
|
59
|
-
a(m, {
|
|
60
|
-
onClick: e[0] || (e[0] = (i) => l.value = !1)
|
|
61
|
-
}, {
|
|
62
|
-
default: o(() => [
|
|
63
|
-
s("Cancel")
|
|
64
|
-
]),
|
|
65
|
-
_: 1
|
|
66
|
-
}),
|
|
67
|
-
a(m, {
|
|
68
|
-
type: "primary",
|
|
69
|
-
onClick: e[1] || (e[1] = (i) => l.value = !1)
|
|
70
|
-
}, {
|
|
71
|
-
default: o(() => [
|
|
72
|
-
s(" Confirm ")
|
|
73
|
-
]),
|
|
74
|
-
_: 1
|
|
75
|
-
})
|
|
76
|
-
])
|
|
77
|
-
]),
|
|
78
|
-
default: o(() => [
|
|
79
|
-
z
|
|
80
|
-
]),
|
|
81
|
-
_: 1
|
|
82
|
-
}, 8, ["modelValue", "title", "style"])
|
|
83
|
-
]),
|
|
84
|
-
_: 1
|
|
85
|
-
}, 8, ["locale"]);
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
}), L = {
|
|
89
|
-
install(t) {
|
|
90
|
-
t.component("st-dialog", S);
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
export {
|
|
94
|
-
L as default
|
|
95
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
-
function l(e) {
|
|
3
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
-
}
|
|
5
|
-
export {
|
|
6
|
-
o as c,
|
|
7
|
-
l as g
|
|
8
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}exports.commonjsGlobal=o;exports.getDefaultExportFromCjs=l;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const c=require("./use-form-common-props-592797e2.cjs"),o=require("./el-popper-14a9d493.cjs"),s=require("./index-02ca0096.cjs");var a=Object.create,P=function(){function e(){}return function(n){if(!s.isObject(n))return{};if(a)return a(n);e.prototype=n;var r=new e;return e.prototype=void 0,r}}();const w=P;function A(e,n){var r=-1,t=e.length;for(n||(n=Array(t));++r<t;)n[r]=e[r];return n}function b(e,n,r,t){var O=!r;r||(r={});for(var f=-1,h=n.length;++f<h;){var i=n[f],u=t?t(r[i],e[i],i,r,e):void 0;u===void 0&&(u=e[i]),O?c.baseAssignValue(r,i,u):c.assignValue(r,i,u)}return r}function x(e){var n=[];if(e!=null)for(var r in Object(e))n.push(r);return n}var C=Object.prototype,B=C.hasOwnProperty;function I(e){if(!s.isObject(e))return x(e);var n=o.isPrototype(e),r=[];for(var t in e)t=="constructor"&&(n||!B.call(e,t))||r.push(t);return r}function T(e){return o.isArrayLike(e)?o.arrayLikeKeys(e,!0):I(e)}var U=o.overArg(Object.getPrototypeOf,Object);const y=U;var d=typeof exports=="object"&&exports&&!exports.nodeType&&exports,l=d&&typeof module=="object"&&module&&!module.nodeType&&module,m=l&&l.exports===d,p=m?s.root.Buffer:void 0,v=p?p.allocUnsafe:void 0;function q(e,n){if(n)return e.slice();var r=e.length,t=v?v(r):new e.constructor(r);return e.copy(t),t}function g(e){var n=new e.constructor(e.byteLength);return new o.Uint8Array(n).set(new o.Uint8Array(e)),n}function K(e,n){var r=n?g(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function L(e){return typeof e.constructor=="function"&&!o.isPrototype(e)?w(y(e)):{}}exports.cloneArrayBuffer=g;exports.cloneBuffer=q;exports.cloneTypedArray=K;exports.copyArray=A;exports.copyObject=b;exports.getPrototype=y;exports.initCloneObject=L;exports.keysIn=T;
|
package/es/base-bdc10baa.cjs
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";const c=require("vue"),g="el",q="is-",v=(e,t,n,r,o)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),o&&(i+=`--${o}`),i},T=Symbol("namespaceContextKey"),V=e=>{const t=e||(c.getCurrentInstance()?c.inject(T,c.ref(g)):c.ref(g));return c.computed(()=>c.unref(t)||g)},M=(e,t)=>{const n=V(t);return{namespace:n,b:(s="")=>v(n.value,e,s,"",""),e:s=>s?v(n.value,e,"",s,""):"",m:s=>s?v(n.value,e,"","",s):"",be:(s,a)=>s&&a?v(n.value,e,s,a,""):"",em:(s,a)=>s&&a?v(n.value,e,"",s,a):"",bm:(s,a)=>s&&a?v(n.value,e,s,"",a):"",bem:(s,a,d)=>s&&a&&d?v(n.value,e,s,a,d):"",is:(s,...a)=>{const d=a.length>=1?a[0]:!0;return s&&d?`${q}${s}`:""},cssVar:s=>{const a={};for(const d in s)s[d]&&(a[`--${n.value}-${d}`]=s[d]);return a},cssVarName:s=>`--${n.value}-${s}`,cssVarBlock:s=>{const a={};for(const d in s)s[d]&&(a[`--${n.value}-${e}-${d}`]=s[d]);return a},cssVarBlockName:s=>`--${n.value}-${e}-${s}`}};/**
|
|
2
|
-
* @vue/shared v3.4.19
|
|
3
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
-
* @license MIT
|
|
5
|
-
**/process.env.NODE_ENV!=="production"&&Object.freeze({});process.env.NODE_ENV!=="production"&&Object.freeze([]);const I=()=>{},G=Object.prototype.hasOwnProperty,$=(e,t)=>G.call(e,t),J=Array.isArray,w=e=>typeof e=="function",P=e=>typeof e=="string",b=e=>e!==null&&typeof e=="object",Z=e=>(b(e)||w(e))&&w(e.then)&&w(e.catch),H=Object.prototype.toString,Q=e=>H.call(e),X=e=>Q(e)==="[object Object]",A=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Y=/-(\w)/g,k=A(e=>e.replace(Y,(t,n)=>n?n.toUpperCase():"")),ee=/\B([A-Z])/g,te=A(e=>e.replace(ee,"-$1").toLowerCase());function F(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r}function x(e){return e==null}const ne=e=>e===void 0,re=e=>typeof e=="boolean",B=e=>typeof e=="number",se=e=>typeof Element>"u"?!1:e instanceof Element,oe=e=>x(e),ie=e=>P(e)?!Number.isNaN(Number(e)):!1;var ce=Object.defineProperty,ae=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,j=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,C=(e,t,n)=>t in e?ce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pe=(e,t)=>{for(var n in t||(t={}))le.call(t,n)&&C(e,n,t[n]);if(j)for(var n of j(t))fe.call(t,n)&&C(e,n,t[n]);return e},de=(e,t)=>ae(e,ue(t));function me(e,t){var n;const r=c.shallowRef();return c.watchEffect(()=>{r.value=e()},de(pe({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),c.readonly(r)}var S;const _=typeof window<"u",D=e=>typeof e=="function",ye=e=>typeof e=="string",N=()=>{},ve=_&&((S=window==null?void 0:window.navigator)==null?void 0:S.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function O(e){return typeof e=="function"?e():c.unref(e)}function he(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}function ge(e,t={}){let n,r,o=N;const i=f=>{clearTimeout(f),o(),o=N};return f=>{const p=O(e),u=O(t.maxWait);return n&&i(n),p<=0||u!==void 0&&u<=0?(r&&(i(r),r=null),Promise.resolve(f())):new Promise((l,y)=>{o=t.rejectOnCancel?y:l,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,l(f())},u)),n=setTimeout(()=>{r&&i(r),r=null,l(f())},p)})}}function we(e){return e}function Oe(e,t){let n,r,o;const i=c.ref(!0),m=()=>{i.value=!0,o()};c.watch(e,m,{flush:"sync"});const f=D(t)?t:t.get,p=D(t)?void 0:t.set,u=c.customRef((l,y)=>(r=l,o=y,{get(){return i.value&&(n=f(),i.value=!1),r(),n},set(h){p==null||p(h)}}));return Object.isExtensible(u)&&(u.trigger=m),u}function U(e){return c.getCurrentScope()?(c.onScopeDispose(e),!0):!1}function Pe(e,t=200,n={}){return he(ge(t,n),e)}function be(e,t=200,n={}){const r=c.ref(e.value),o=Pe(()=>{r.value=e.value},t,n);return c.watch(e,()=>o()),r}function _e(e,t=!0){c.getCurrentInstance()?c.onMounted(e):t?e():c.nextTick(e)}function $e(e,t,n={}){const{immediate:r=!0}=n,o=c.ref(!1);let i=null;function m(){i&&(clearTimeout(i),i=null)}function f(){o.value=!1,m()}function p(...u){m(),o.value=!0,i=setTimeout(()=>{o.value=!1,i=null,e(...u)},O(t))}return r&&(o.value=!0,_&&p()),U(f),{isPending:c.readonly(o),start:p,stop:f}}class W extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Ne(e,t){throw new W(`[${e}] ${t}`)}function K(e,t){if(process.env.NODE_ENV!=="production"){const n=P(e)?new W(`[${e}] ${t}`):e;console.warn(n)}}const R="__epPropKey",Ee=e=>e,je=e=>b(e)&&!!e[R],z=(e,t)=>{if(!b(e)||je(e))return e;const{values:n,required:r,default:o,type:i,validator:m}=e,p={type:i,required:!!r,validator:n||m?u=>{let l=!1,y=[];if(n&&(y=Array.from(n),$(e,"default")&&y.push(o),l||(l=y.includes(u))),m&&(l||(l=m(u))),!l&&y.length>0){const h=[...new Set(y)].map(E=>JSON.stringify(E)).join(", ");c.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(u)}.`)}return l}:void 0,[R]:!0};return $(e,"default")&&(p.default=o),p},Ce=e=>F(Object.entries(e).map(([t,n])=>[t,z(n,t)]));var Se=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const De="utils/dom/style",L=(e="")=>e.split(" ").filter(t=>!!t.trim()),Te=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ve=(e,t)=>{!e||!t.trim()||e.classList.add(...L(t))},Ie=(e,t)=>{!e||!t.trim()||e.classList.remove(...L(t))},Ae=(e,t)=>{var n;if(!_||!e||!t)return"";let r=k(t);r==="float"&&(r="cssFloat");try{const o=e.style[r];if(o)return o;const i=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return i?i[r]:""}catch{return e.style[r]}};function Fe(e,t="px"){if(!e)return"";if(B(e)||ie(e))return`${e}${t}`;if(P(e))return e;K(De,"binding value must be a string or number")}const xe=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},Be=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),Ue=(e,t)=>(e.install=n=>{n.directive(t,e)},e),We=e=>(e.install=I,e);exports.NOOP=I;exports._export_sfc=Se;exports.addClass=Ve;exports.addUnit=Fe;exports.buildProp=z;exports.buildProps=Ce;exports.computedEager=me;exports.computedWithControl=Oe;exports.debugWarn=K;exports.defaultNamespace=g;exports.definePropType=Ee;exports.fromPairs=F;exports.getStyle=Ae;exports.hasClass=Te;exports.hasOwn=$;exports.hyphenate=te;exports.identity=we;exports.isArray=J;exports.isBoolean=re;exports.isClient=_;exports.isElement=se;exports.isFunction=w;exports.isIOS=ve;exports.isNil=x;exports.isNumber=B;exports.isObject=b;exports.isPlainObject=X;exports.isPromise=Z;exports.isPropAbsent=oe;exports.isString=P;exports.isString$1=ye;exports.isUndefined=ne;exports.namespaceContextKey=T;exports.noop=N;exports.refDebounced=be;exports.removeClass=Ie;exports.resolveUnref=O;exports.throwError=Ne;exports.tryOnMounted=_e;exports.tryOnScopeDispose=U;exports.useGetDerivedNamespace=V;exports.useNamespace=M;exports.useTimeoutFn=$e;exports.withInstall=xe;exports.withInstallDirective=Ue;exports.withInstallFunction=Be;exports.withNoopInstall=We;
|