st-comp 0.0.15 → 0.0.17
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/auto-imports.d.ts +1 -1
- package/components.d.ts +2 -1
- package/lib/bundle.js +10097 -9103
- package/lib/bundle.umd.cjs +10 -12
- package/lib/style.css +1 -1
- package/lib/talib.wasm +0 -0
- package/package.json +4 -1
- package/packages/Kline/components/Contextmenu/index.vue +110 -0
- package/packages/Kline/components/Tips/index.vue +18 -86
- package/packages/Kline/formatKlineData.ts +82 -53
- package/packages/Kline/images/buy.svg +1 -0
- package/packages/Kline/images/pen.png +0 -0
- package/packages/Kline/images/sell.svg +1 -0
- package/packages/Kline/images/t.svg +1 -0
- package/packages/Kline/index.vue +452 -119
- package/packages/Kline/option.ts +316 -0
- package/packages/Kline/type.d.ts +192 -24
- package/packages/Kline/utils.ts +576 -171
- package/packages/index.ts +0 -2
- package/public/talib.wasm +0 -0
- package/src/pages/Kline/api.ts +57 -0
- package/src/pages/Kline/components/MultiCycleSingleVariety.vue +728 -0
- package/src/pages/Kline/components/SingleCycleSingleVariety.vue +663 -0
- package/src/pages/Kline/index.vue +85 -16
- package/src/router/routes.ts +0 -5
- package/src/style.css +75 -0
- package/vite.config.ts +37 -27
- package/vitePlugins/testRelese.ts +67 -0
- package/packages/Echarts/index.ts +0 -8
- package/packages/Echarts/index.vue +0 -113
- package/packages/Kline/kline_theme_dark.json +0 -30
- package/packages/Kline/kline_theme_light.json +0 -30
- package/src/components/Echarts/index.vue +0 -31
- package/src/pages/Echarts/index.vue +0 -12
package/packages/index.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { App } from "vue"
|
|
2
2
|
import StChartLayout from "./ChartLayout/index.ts"
|
|
3
3
|
import StDialog from "./Dialog/index.ts"
|
|
4
|
-
import StEcharts from "./Echarts/index.ts"
|
|
5
4
|
import StKline from "./Kline/index.ts"
|
|
6
5
|
import StPagination from "./Pagination/index.ts"
|
|
7
6
|
import StTable from "./Table/index.ts"
|
|
@@ -10,7 +9,6 @@ export default {
|
|
|
10
9
|
install(app: App) {
|
|
11
10
|
StChartLayout.install(app)
|
|
12
11
|
StDialog.install(app)
|
|
13
|
-
StEcharts.install(app)
|
|
14
12
|
StKline.install(app)
|
|
15
13
|
StPagination.install(app)
|
|
16
14
|
StTable.install(app)
|
|
Binary file
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import axios from 'axios'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description: 通用接口-单品种单周期K线数据
|
|
5
|
+
*/
|
|
6
|
+
export const getSingleCycleSingleVariety = async (data: any) => {
|
|
7
|
+
return axios({
|
|
8
|
+
method: 'post',
|
|
9
|
+
headers: {
|
|
10
|
+
token: 'ee8f92ba3949d0173aaf244542cdcaf2',
|
|
11
|
+
},
|
|
12
|
+
url: 'http://192.168.12.49:88/common/qt/getSingleCycleSingleVariety',
|
|
13
|
+
data,
|
|
14
|
+
})
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @description: 通用接口-单品种多周期K线数据
|
|
19
|
+
*/
|
|
20
|
+
export const getMultiCycleSingleVariety = async (data: any) => {
|
|
21
|
+
return axios({
|
|
22
|
+
method: 'post',
|
|
23
|
+
headers: {
|
|
24
|
+
token: 'ee8f92ba3949d0173aaf244542cdcaf2',
|
|
25
|
+
},
|
|
26
|
+
url: 'http://192.168.12.49:88/common/qt/getMultiCycleSingleVariety',
|
|
27
|
+
data,
|
|
28
|
+
})
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @description: 通用接口-字典
|
|
33
|
+
*/
|
|
34
|
+
export const getDict = async (data: any) => {
|
|
35
|
+
return axios({
|
|
36
|
+
method: 'post',
|
|
37
|
+
headers: {
|
|
38
|
+
token: 'ee8f92ba3949d0173aaf244542cdcaf2',
|
|
39
|
+
},
|
|
40
|
+
url: 'http://192.168.12.49:88/common/qt/getDict',
|
|
41
|
+
data,
|
|
42
|
+
})
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @description: 获取指标配置表
|
|
47
|
+
* 后续会通过前端函数库进行自维护获取,而不是依赖接口拉表
|
|
48
|
+
*/
|
|
49
|
+
export const getIndicatorConfig = async () => {
|
|
50
|
+
return axios({
|
|
51
|
+
method: 'get',
|
|
52
|
+
headers: {
|
|
53
|
+
token: 'ee8f92ba3949d0173aaf244542cdcaf2',
|
|
54
|
+
},
|
|
55
|
+
url: 'http://116.62.161.92:8005/get_indicator'
|
|
56
|
+
})
|
|
57
|
+
}
|