st-comp 0.0.126 → 0.0.128
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.js +2 -2
- package/es/Dialog.cjs +1 -1
- package/es/Dialog.js +13 -14
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +74 -74
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +14 -14
- package/es/KlineBasic.cjs +1 -6
- package/es/KlineBasic.js +863 -2449
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +12 -12
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +17 -18
- package/es/Pie.cjs +1 -1
- package/es/Pie.js +1 -1
- package/es/Table.cjs +1 -1
- package/es/Table.js +17 -18
- package/es/User.cjs +1 -1
- package/es/User.js +74 -75
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +34 -34
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +12 -13
- package/es/{base-a8f938bd.js → base-3ecbc734.js} +2 -2
- package/es/{castArray-5c01dae1.js → castArray-7d3fc921.js} +1 -1
- package/es/config-provider-7cdfca4d.cjs +1 -0
- package/es/{config-provider-d3edea8a.js → config-provider-83904b4d.js} +3 -3
- package/es/{debounce-edbff018.js → debounce-7344b088.js} +1 -1
- package/es/{dropdown-7e381525.js → dropdown-7da44c8f.js} +4 -4
- package/es/el-button-196807af.cjs +1 -0
- package/es/{el-button-ce99c64e.js → el-button-24f79286.js} +5 -6
- package/es/{el-empty-ed6c115b.js → el-empty-79c5f7a8.js} +1 -1
- package/es/el-form-item-7d32befa.cjs +12 -0
- package/es/el-form-item-afc3dcf2.js +1324 -0
- package/es/{el-input-21e079e4.js → el-input-ee7db655.js} +5 -5
- package/es/el-input-number-0524d787.cjs +1 -0
- package/es/el-input-number-63c21037.js +282 -0
- package/es/{el-menu-item-9369a2ad.js → el-menu-item-0d92e7dc.js} +7 -7
- package/es/el-message-562e923d.cjs +1 -0
- package/es/{el-message-fd827012.js → el-message-71aa42ca.js} +16 -16
- package/es/{el-overlay-9245ec1e.js → el-overlay-6056c89a.js} +76 -77
- package/es/el-overlay-891dcc40.cjs +1 -0
- package/es/{el-popover-6f48d00b.cjs → el-popover-8735b1fa.cjs} +1 -1
- package/es/{el-popover-6f075cee.js → el-popover-c8b2456c.js} +4 -4
- package/es/{el-popper-8dca8dd4.js → el-popper-d3eef7ed.js} +4 -4
- package/es/{el-scrollbar-906103f8.js → el-scrollbar-66f3bb72.js} +1 -1
- package/es/{el-select-6d6093eb.js → el-select-5fb7d469.js} +10 -10
- package/es/{el-table-column-3f388c44.js → el-table-column-560db3aa.js} +14 -15
- package/es/el-table-column-dd8b62aa.cjs +14 -0
- package/es/{el-tag-cdf0019e.js → el-tag-6a31c968.js} +3 -3
- package/es/index-68ee64fa.js +81 -0
- package/es/{index-f8e448bc.js → index-8542fe24.js} +3924 -3873
- package/es/{use-global-config-ac2dad80.cjs → index-8a0b1c53.cjs} +3 -1
- package/es/{index-53bce290.js → index-a1ecf26c.js} +3 -3
- package/es/{index-d1b7c61e.cjs → index-a96158ae.cjs} +41 -36
- package/es/{index-6ced00c4.js → index-fa07a823.js} +1 -1
- package/es/{raf-b584bce8.js → raf-377cf8f5.js} +1 -1
- package/es/{refs-e1675167.js → refs-46cf8186.js} +1 -1
- package/es/{scroll-25ec9230.js → scroll-1efa8148.js} +1 -1
- package/es/style.css +1 -1
- package/es/{use-form-common-props-f7d2e83c.js → use-form-common-props-9c0363ac.js} +1 -1
- package/es/{vnode-699e61cb.js → vnode-cfcdab70.js} +1 -1
- package/es/{zh-cn-61ca7f91.js → zh-cn-4a476dc8.js} +2 -2
- package/es/{zh-cn-a20960b5.cjs → zh-cn-ab9a583d.cjs} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +202 -202
- package/lib/{index-0207fed8.js → index-c2cabc8b.js} +32548 -34091
- package/lib/{python-cac37206.js → python-d3e3fec3.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/KlineBasic/api.js +39 -41
- package/packages/KlineBasic/index.vue +207 -159
- package/packages/KlineBasic/utils.js +173 -72
- package/src/pages/KlineBasic/index.vue +1 -0
- package/es/config-provider-4954003d.cjs +0 -1
- package/es/el-button-c7b375c4.cjs +0 -1
- package/es/el-form-item-b686a8bb.js +0 -1599
- package/es/el-form-item-ff0d8d07.cjs +0 -12
- package/es/el-message-e97bdea1.cjs +0 -1
- package/es/el-overlay-7b90d61c.cjs +0 -1
- package/es/el-table-column-26e7f13f.cjs +0 -14
- package/es/index-669a0983.js +0 -14
- package/es/index-c4649a37.cjs +0 -3
- package/es/use-global-config-8429db7d.js +0 -72
|
@@ -1,86 +1,187 @@
|
|
|
1
1
|
import { stMath } from "st-func";
|
|
2
|
-
import { updateWarningLine
|
|
2
|
+
import { updateWarningLine } from './api'
|
|
3
3
|
|
|
4
4
|
const { round } = stMath;
|
|
5
5
|
|
|
6
|
+
// 获取主图配置
|
|
7
|
+
export const getMainOptions = (chartData, config, startValue, endValue) => {
|
|
8
|
+
const { data, time } = chartData
|
|
9
|
+
const { gridTop, gridRight, gridLeft, maxShowCounts, showSubChart } = config
|
|
10
|
+
return {
|
|
11
|
+
animation: false,
|
|
12
|
+
grid: {
|
|
13
|
+
top: `${gridTop}px`,
|
|
14
|
+
right: `${gridRight}px`,
|
|
15
|
+
bottom: showSubChart ? '6px' : '24px',
|
|
16
|
+
left: `${gridLeft}px`,
|
|
17
|
+
},
|
|
18
|
+
dataZoom: [
|
|
19
|
+
{
|
|
20
|
+
type: "inside",
|
|
21
|
+
startValue,
|
|
22
|
+
endValue,
|
|
23
|
+
maxValueSpan: maxShowCounts,
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
tooltip: {
|
|
27
|
+
trigger: "axis",
|
|
28
|
+
appendToBody: true,
|
|
29
|
+
confine: true,
|
|
30
|
+
axisPointer: {
|
|
31
|
+
type: "cross",
|
|
32
|
+
label: {
|
|
33
|
+
rich: {},
|
|
34
|
+
formatter: (data) => {
|
|
35
|
+
const { axisDimension, value } = data;
|
|
36
|
+
if (axisDimension === "x") {
|
|
37
|
+
return showSubChart ? "" : value;
|
|
38
|
+
} else {
|
|
39
|
+
return String(round(value));
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
formatter: () => "",
|
|
45
|
+
},
|
|
46
|
+
xAxis: {
|
|
47
|
+
show: showSubChart ? false : true,
|
|
48
|
+
type: "category",
|
|
49
|
+
data: time,
|
|
50
|
+
splitLine: {
|
|
51
|
+
show: false,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
yAxis: {
|
|
55
|
+
type: "value",
|
|
56
|
+
axisLine: {
|
|
57
|
+
show: true,
|
|
58
|
+
},
|
|
59
|
+
splitLine: {
|
|
60
|
+
show: true,
|
|
61
|
+
lineStyle: {
|
|
62
|
+
type: "dotted",
|
|
63
|
+
color: "#333",
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
min: (value) => round(value.min),
|
|
67
|
+
max: (value) => round(value.max),
|
|
68
|
+
},
|
|
69
|
+
series: [
|
|
70
|
+
{
|
|
71
|
+
type: "candlestick",
|
|
72
|
+
data,
|
|
73
|
+
itemStyle: {
|
|
74
|
+
color: "transparent",
|
|
75
|
+
color0: "#00FFFF",
|
|
76
|
+
borderColor: "#FF0000",
|
|
77
|
+
borderColor0: "#00FFFF",
|
|
78
|
+
borderWidth: 1,
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
...chartData.mainIndicator.map((item) => {
|
|
82
|
+
return {
|
|
83
|
+
name: item.key,
|
|
84
|
+
type: 'line',
|
|
85
|
+
silent: true,
|
|
86
|
+
symbol: 'none',
|
|
87
|
+
data: item.data,
|
|
88
|
+
lineStyle: {
|
|
89
|
+
width: item.width || 1,
|
|
90
|
+
},
|
|
91
|
+
itemStyle: {
|
|
92
|
+
color: item.color,
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
})
|
|
96
|
+
],
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// 获取画线预警配置
|
|
6
101
|
export const getWarningLineOptions = (mainChartIns, warningLineData, props, config, callback) => {
|
|
7
102
|
const { variety, featureId, featureType } = props
|
|
8
|
-
const { gridLeft, gridRight } = config;
|
|
9
|
-
return warningLineData.
|
|
103
|
+
const { gridTop, gridLeft, gridRight } = config;
|
|
104
|
+
return warningLineData.reduce((res, item) => {
|
|
10
105
|
const { warnPrice } = item;
|
|
11
106
|
const y = mainChartIns?.convertToPixel({ yAxisIndex: 0 }, warnPrice)
|
|
107
|
+
// 位于顶部的预警线不绘制
|
|
108
|
+
if (y <= gridTop) return res;
|
|
109
|
+
// 超出图表的预警线不绘制
|
|
110
|
+
if (y >= mainChartIns?.getHeight()) return res;
|
|
12
111
|
let dragStart = 0; // 记录拖拽开始的位置
|
|
13
|
-
return
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
112
|
+
return [
|
|
113
|
+
...res,
|
|
114
|
+
{
|
|
115
|
+
type: "group",
|
|
116
|
+
name: "warningLine",
|
|
117
|
+
info: item,
|
|
118
|
+
draggable: "vertical",
|
|
119
|
+
children: [
|
|
120
|
+
{
|
|
121
|
+
type: "line",
|
|
122
|
+
info: item,
|
|
123
|
+
shape: {
|
|
124
|
+
x1: gridLeft, // 开始X坐标
|
|
125
|
+
y1: y, // 开始Y坐标
|
|
126
|
+
x2: mainChartIns?.getWidth() - gridRight, // 结束X坐标
|
|
127
|
+
y2: y, // 结束Y坐标
|
|
128
|
+
},
|
|
129
|
+
style: {
|
|
130
|
+
stroke: "#FFF",
|
|
131
|
+
lineWidth: 1,
|
|
132
|
+
lineDash: [8, 4],
|
|
133
|
+
},
|
|
134
|
+
z: 10,
|
|
27
135
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
136
|
+
{
|
|
137
|
+
type: "text",
|
|
138
|
+
info: item,
|
|
139
|
+
x: mainChartIns?.getWidth() - gridRight,
|
|
140
|
+
y: y - 5,
|
|
141
|
+
style: {
|
|
142
|
+
fill: "#FFF",
|
|
143
|
+
text: warnPrice,
|
|
144
|
+
stroke: "#000",
|
|
145
|
+
lineWidth: 1,
|
|
146
|
+
opacity: 1,
|
|
147
|
+
},
|
|
148
|
+
z: 10,
|
|
32
149
|
},
|
|
33
|
-
|
|
150
|
+
],
|
|
151
|
+
// 事件:开始拖拽
|
|
152
|
+
ondragstart: (params) => {
|
|
153
|
+
dragStart = params.offsetY; // 记录拖拽开始坐标
|
|
34
154
|
},
|
|
35
|
-
{
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
style: {
|
|
41
|
-
fill: "#FFF",
|
|
42
|
-
text: warnPrice,
|
|
43
|
-
stroke: "#000",
|
|
44
|
-
lineWidth: 1,
|
|
45
|
-
opacity: 1,
|
|
46
|
-
},
|
|
47
|
-
z: 10,
|
|
155
|
+
ondrag: params => {
|
|
156
|
+
if (params.target && params.target.childAt(1)) {
|
|
157
|
+
const newValue = mainChartIns.convertFromPixel({ yAxisIndex: 0 }, y + (params.offsetY - dragStart))
|
|
158
|
+
params.target.childAt(1)?.animate('style', false).when(1, { text: round(newValue, 3) }).start()
|
|
159
|
+
}
|
|
48
160
|
},
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
featureCode: variety, //品种代码
|
|
76
|
-
featureType, //品种类型
|
|
77
|
-
};
|
|
78
|
-
await updateWarningLine(params);
|
|
79
|
-
ElMessage.success("画线预警修改成功");
|
|
80
|
-
const res = await getWarningLine({ featureId })
|
|
81
|
-
callback && callback(res?.body || []);
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
};
|
|
85
|
-
})
|
|
161
|
+
// 事件:结束拖拽
|
|
162
|
+
ondragend: async (params) => {
|
|
163
|
+
/**
|
|
164
|
+
* 之所以不直接使用dragEnd,是因为echarts拖拽会有偏差问题
|
|
165
|
+
* 需要使用偏移量才会更加准备,不然会出现画完线渲染位置和拖拽位置不一致
|
|
166
|
+
*/
|
|
167
|
+
const dragEnd = params.offsetY; // 记录结束拖拽坐标
|
|
168
|
+
const dragInterval = dragEnd - dragStart; // 拖拽偏移量
|
|
169
|
+
if (dragInterval !== 0) {
|
|
170
|
+
// 计算偏移后对应的Y轴数据
|
|
171
|
+
const yAxisValue = mainChartIns?.convertFromPixel({ yAxisIndex: 0 }, dragInterval + y);
|
|
172
|
+
const params = {
|
|
173
|
+
id: item.id,
|
|
174
|
+
warnPrice: round(yAxisValue, 3),
|
|
175
|
+
featureId, //品种id
|
|
176
|
+
featureCode: variety, //品种代码
|
|
177
|
+
featureType, //品种类型
|
|
178
|
+
};
|
|
179
|
+
await updateWarningLine(params);
|
|
180
|
+
ElMessage.success("画线预警修改成功");
|
|
181
|
+
callback && callback();
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
}
|
|
185
|
+
]
|
|
186
|
+
}, [])
|
|
86
187
|
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("vue"),a=require("./use-global-config-ac2dad80.cjs"),i=require("./use-form-common-props-1b84d8f4.cjs"),e=require("./base-ec05f348.cjs"),p=e.buildProps({a11y:{type:Boolean,default:!0},locale:{type:e.definePropType(Object)},size:i.useSizeProp,button:{type:e.definePropType(Object)},experimentalFeatures:{type:e.definePropType(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:e.definePropType(Object)},zIndex:Number,namespace:{type:String,default:"el"},...i.useEmptyValuesProps}),s={},l=o.defineComponent({name:"ElConfigProvider",props:p,setup(t,{slots:u}){o.watch(()=>t.message,n=>{Object.assign(s,n??{})},{immediate:!0,deep:!0});const r=a.provideGlobalConfig(t);return()=>o.renderSlot(u,"default",{config:r==null?void 0:r.value})}});exports.ConfigProvider=l;exports.messageConfig=s;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),i=require("./use-form-common-props-1b84d8f4.cjs"),N=require("./index-c4649a37.cjs"),V=require("./use-global-config-ac2dad80.cjs"),d=require("./base-ec05f348.cjs"),$=require("./index-eea0bcb3.cjs"),_=Symbol("buttonGroupContextKey"),w=(o,c)=>{N.useDeprecated({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},e.computed(()=>o.type==="text"));const l=e.inject(_,void 0),n=V.useGlobalConfig("button"),{form:s}=i.useFormItem(),a=i.useFormSize(e.computed(()=>l==null?void 0:l.size)),t=i.useFormDisabled(),u=e.ref(),m=e.useSlots(),f=e.computed(()=>o.type||(l==null?void 0:l.type)||""),v=e.computed(()=>{var r,b,g;return(g=(b=o.autoInsertSpace)!=null?b:(r=n.value)==null?void 0:r.autoInsertSpace)!=null?g:!1}),k=e.computed(()=>o.tag==="button"?{ariaDisabled:t.value||o.loading,disabled:t.value||o.loading,autofocus:o.autofocus,type:o.nativeType}:{}),y=e.computed(()=>{var r;const b=(r=m.default)==null?void 0:r.call(m);if(v.value&&(b==null?void 0:b.length)===1){const g=b[0];if((g==null?void 0:g.type)===e.Text){const x=g.children;return/^\p{Unified_Ideograph}{2}$/u.test(x.trim())}}return!1});return{_disabled:t,_size:a,_type:f,_ref:u,_props:k,shouldAddSpace:y,handleClick:r=>{if(t.value||o.loading){r.stopPropagation();return}o.nativeType==="reset"&&(s==null||s.resetFields()),c("click",r)}}},S=["default","primary","success","warning","info","danger","text",""],z=["button","submit","reset"],B=d.buildProps({size:i.useSizeProp,disabled:Boolean,type:{type:String,values:S,default:""},icon:{type:i.iconPropType},nativeType:{type:String,values:z,default:"button"},loading:Boolean,loadingIcon:{type:i.iconPropType,default:()=>i.loading_default},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:d.definePropType([String,Object]),default:"button"}}),E={click:o=>o instanceof MouseEvent};function p(o,c=20){return o.mix("#141414",c).toString()}function I(o){const c=i.useFormDisabled(),l=d.useNamespace("button");return e.computed(()=>{let n={},s=o.color;if(s){const a=s.match(/var\((.*?)\)/);a&&(s=window.getComputedStyle(window.document.documentElement).getPropertyValue(a[1]));const t=new $.TinyColor(s),u=o.dark?t.tint(20).toString():p(t,20);if(o.plain)n=l.cssVarBlock({"bg-color":o.dark?p(t,90):t.tint(90).toString(),"text-color":s,"border-color":o.dark?p(t,50):t.tint(50).toString(),"hover-text-color":`var(${l.cssVarName("color-white")})`,"hover-bg-color":s,"hover-border-color":s,"active-bg-color":u,"active-text-color":`var(${l.cssVarName("color-white")})`,"active-border-color":u}),c.value&&(n[l.cssVarBlockName("disabled-bg-color")]=o.dark?p(t,90):t.tint(90).toString(),n[l.cssVarBlockName("disabled-text-color")]=o.dark?p(t,50):t.tint(50).toString(),n[l.cssVarBlockName("disabled-border-color")]=o.dark?p(t,80):t.tint(80).toString());else{const m=o.dark?p(t,30):t.tint(30).toString(),f=t.isDark()?`var(${l.cssVarName("color-white")})`:`var(${l.cssVarName("color-black")})`;if(n=l.cssVarBlock({"bg-color":s,"text-color":f,"border-color":s,"hover-bg-color":m,"hover-text-color":f,"hover-border-color":m,"active-bg-color":u,"active-border-color":u}),c.value){const v=o.dark?p(t,50):t.tint(50).toString();n[l.cssVarBlockName("disabled-bg-color")]=v,n[l.cssVarBlockName("disabled-text-color")]=o.dark?"rgba(255, 255, 255, 0.5)":`var(${l.cssVarName("color-white")})`,n[l.cssVarBlockName("disabled-border-color")]=v}}}return n})}const P=e.defineComponent({name:"ElButton"}),T=e.defineComponent({...P,props:B,emits:E,setup(o,{expose:c,emit:l}){const n=o,s=I(n),a=d.useNamespace("button"),{_ref:t,_size:u,_type:m,_disabled:f,_props:v,shouldAddSpace:k,handleClick:y}=w(n,l),C=e.computed(()=>[a.b(),a.m(m.value),a.m(u.value),a.is("disabled",f.value),a.is("loading",n.loading),a.is("plain",n.plain),a.is("round",n.round),a.is("circle",n.circle),a.is("text",n.text),a.is("link",n.link),a.is("has-bg",n.bg)]);return c({ref:t,size:u,type:m,disabled:f,shouldAddSpace:k}),(r,b)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.tag),e.mergeProps({ref_key:"_ref",ref:t},e.unref(v),{class:e.unref(C),style:e.unref(s),onClick:e.unref(y)}),{default:e.withCtx(()=>[r.loading?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[r.$slots.loading?e.renderSlot(r.$slots,"loading",{key:0}):(e.openBlock(),e.createBlock(e.unref(i.ElIcon),{key:1,class:e.normalizeClass(e.unref(a).is("loading"))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.loadingIcon)))]),_:1},8,["class"]))],64)):r.icon||r.$slots.icon?(e.openBlock(),e.createBlock(e.unref(i.ElIcon),{key:1},{default:e.withCtx(()=>[r.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.icon),{key:0})):e.renderSlot(r.$slots,"icon",{key:1})]),_:3})):e.createCommentVNode("v-if",!0),r.$slots.default?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass({[e.unref(a).em("text","expand")]:e.unref(k)})},[e.renderSlot(r.$slots,"default")],2)):e.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var D=d._export_sfc(T,[["__file","button.vue"]]);const G={size:B.size,type:B.type},F=e.defineComponent({name:"ElButtonGroup"}),q=e.defineComponent({...F,props:G,setup(o){const c=o;e.provide(_,e.reactive({size:e.toRef(c,"size"),type:e.toRef(c,"type")}));const l=d.useNamespace("button");return(n,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(l).b("group"))},[e.renderSlot(n.$slots,"default")],2))}});var h=d._export_sfc(q,[["__file","button-group.vue"]]);const K=d.withInstall(D,{ButtonGroup:h});d.withNoopInstall(h);exports.ElButton=K;exports.buttonTypes=S;
|