st-comp 0.0.231 → 0.0.233
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/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +345 -317
- package/es/VarietyTextCopy.cjs +3 -3
- package/es/VarietyTextCopy.js +4 -4
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +147 -147
- package/lib/{index-0cfdbd7a.js → index-d79ec794.js} +9691 -9663
- package/lib/{python-19ce5778.js → python-a72e2be5.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/KlineBasic/components/KlineSub/index.vue +2 -1
- package/packages/KlineBasic/components/KlineTips/index.vue +2 -1
- package/packages/KlineBasic/utils.js +34 -0
package/es/VarietyTextCopy.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";require("./base-ef747d02.cjs");const v=require("./el-input-7fd293af.cjs");require("./el-tooltip-0ea8fbf8.cjs");const q=require("./el-popper-b6c99b28.cjs"),e=require("vue"),i=require("./index-098c2447.cjs"),V=require("./
|
|
2
|
-
`).reduce((s,a)=>{const t=a.trim().replace(/\s+/gi," ").split(" ")[0];return t&&s.push(t),s},[]):[];return u({validate:n=>new Promise(async(s,a)=>{try{if(p.required&&(!o.value||o.value.trim()===""))return
|
|
1
|
+
"use strict";require("./base-ef747d02.cjs");const v=require("./el-input-7fd293af.cjs");require("./el-tooltip-0ea8fbf8.cjs");const q=require("./el-popper-b6c99b28.cjs"),e=require("vue"),i=require("./index-098c2447.cjs"),V=require("./_plugin-vue_export-helper-f246444f.cjs"),f=require("./el-message-5e6a6be9.cjs");require("./use-form-common-props-fd9b61a0.cjs");require("./index-9780a537.cjs");require("./typescript-b63f8e83.cjs");require("./index-11547a0c.cjs");require("./use-global-config-30d7d8ce.cjs");require("./index-bb833443.cjs");require("./index-c108567d.cjs");require("./config-provider-a584d81e.cjs");const c=r=>(e.pushScopeId("data-v-445e2903"),r=r(),e.popScopeId(),r),h={class:"variety-text-copy"},y={class:"stats-container"},N={class:"stat-item"},g=c(()=>e.createElementVNode("span",{class:"label"},"品种数量统计:",-1)),E={class:"value"},C=c(()=>e.createElementVNode("br",null,null,-1)),I=c(()=>e.createElementVNode("br",null,null,-1)),w={__name:"index",props:{required:{type:Boolean,default:!0}},setup(r,{expose:u}){const d=e.inject("stConfig"),p=r,o=e.ref(""),_=e.computed(()=>l(o.value).length),l=n=>n?n.split(`
|
|
2
|
+
`).reduce((s,a)=>{const t=a.trim().replace(/\s+/gi," ").split(" ")[0];return t&&s.push(t),s},[]):[];return u({validate:n=>new Promise(async(s,a)=>{try{if(p.required&&(!o.value||o.value.trim()===""))return f.ElMessage.error("品种内容不可为空"),n(!1);const{body:t}=await d.request.post("/invest/analysis/strategy/verifyCodes",{codes:l(o.value)});return n(!0,t)}catch(t){return a(t)}})}),(n,s)=>{const a=i.ElIcon,t=q.ElTooltip,x=v.ElInput;return e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("div",y,[e.createElementVNode("div",N,[g,e.createElementVNode("span",E,e.toDisplayString(_.value),1),e.createVNode(t,{class:"box-item",effect:"dark",placement:"right"},{content:e.withCtx(()=>[e.createTextVNode(" 仅统计符合输入格式的数量, 输入格式示例(代码和名称需空格隔开, 名称可不写):"),C,e.createTextVNode("hc8888 热轧卷板期货指数 "),I,e.createTextVNode("sp8888 纸浆期货指数")]),default:e.withCtx(()=>[e.createVNode(a,null,{default:e.withCtx(()=>[e.createVNode(e.unref(i.info_filled_default))]),_:1})]),_:1})])]),e.createVNode(x,{class:"textarea",modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=m=>o.value=m),resize:"none",type:"textarea",placeholder:`文本格式要求示例:
|
|
3
3
|
hc8888 热轧卷板期货指数
|
|
4
4
|
sp8888 纸浆期货指数
|
|
5
|
-
bu8888 石油沥青期货指数`},null,8,["modelValue"])])}}},S=
|
|
5
|
+
bu8888 石油沥青期货指数`},null,8,["modelValue"])])}}},S=V._export_sfc(w,[["__scopeId","data-v-445e2903"]]),T={install(r){r.component("st-varietyTextCopy",S)}};module.exports=T;
|
package/es/VarietyTextCopy.js
CHANGED
|
@@ -4,8 +4,8 @@ import "./el-tooltip-4ed993c7.js";
|
|
|
4
4
|
import { E as h } from "./el-popper-b4f97157.js";
|
|
5
5
|
import { inject as g, ref as E, computed as C, openBlock as V, createElementBlock as I, createElementVNode as n, toDisplayString as S, createVNode as i, withCtx as l, createTextVNode as c, unref as b, pushScopeId as w, popScopeId as T } from "vue";
|
|
6
6
|
import { i as q, E as B } from "./index-a871c3eb.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { _ as N } from "./_plugin-vue_export-helper-dad06003.js";
|
|
8
|
+
import { E as k } from "./el-message-e544a8f5.js";
|
|
9
9
|
import "./use-form-common-props-815d48a6.js";
|
|
10
10
|
import "./index-960806da.js";
|
|
11
11
|
import "./typescript-7ae59c4c.js";
|
|
@@ -28,7 +28,7 @@ const p = (t) => (w("data-v-445e2903"), t = t(), T(), t), j = { class: "variety-
|
|
|
28
28
|
return d({ validate: (s) => new Promise(async (r, a) => {
|
|
29
29
|
try {
|
|
30
30
|
if (m.required && (!o.value || o.value.trim() === ""))
|
|
31
|
-
return
|
|
31
|
+
return k.error("品种内容不可为空"), s(!1);
|
|
32
32
|
const { body: e } = await _.request.post("/invest/analysis/strategy/verifyCodes", { codes: u(o.value) });
|
|
33
33
|
return s(!0, e);
|
|
34
34
|
} catch (e) {
|
|
@@ -79,7 +79,7 @@ bu8888 石油沥青期货指数`
|
|
|
79
79
|
]);
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
|
-
}, G = /* @__PURE__ */
|
|
82
|
+
}, G = /* @__PURE__ */ N(A, [["__scopeId", "data-v-445e2903"]]), ne = {
|
|
83
83
|
install(t) {
|
|
84
84
|
t.component("st-varietyTextCopy", G);
|
|
85
85
|
}
|