st-comp 0.0.75 → 0.0.77
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/components.d.ts +3 -0
- package/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +25 -223
- package/es/Dialog.cjs +1 -1
- package/es/Dialog.js +15 -13
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +105 -102
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +45 -42
- package/es/MonacoEditor.cjs +1 -1
- package/es/MonacoEditor.js +1 -1
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +121 -117
- package/es/Table.cjs +3 -3
- package/es/Table.js +275 -271
- package/es/VarietySearch.cjs +2 -2
- package/es/VarietySearch.js +734 -716
- package/es/VirtualTable.cjs +13 -1
- package/es/VirtualTable.js +2724 -1
- package/es/{base-dbd10dcf.cjs → base-4865d432.cjs} +3 -3
- package/es/{base-00f6b0ab.js → base-6faccb01.js} +66 -65
- package/es/castArray-3341cbb4.cjs +1 -0
- package/es/castArray-bdee0d50.js +10 -0
- package/es/config-provider-465c8253.cjs +1 -0
- package/es/config-provider-be0e9c36.js +46 -0
- package/es/{el-button-12e38f0b.js → el-button-1b9c4fd6.js} +31 -31
- package/es/el-button-aad5268b.cjs +1 -0
- package/es/el-empty-348c46f7.js +204 -0
- package/es/el-empty-608948d9.cjs +1 -0
- package/es/el-icon-158ddc19.cjs +1 -0
- package/es/{el-icon-bacbcecf.js → el-icon-d385d377.js} +58 -57
- package/es/{el-overlay-ea0f5492.js → el-overlay-400ac6ce.js} +58 -57
- package/es/el-overlay-4713107e.cjs +5 -0
- package/es/el-scrollbar-83abe3de.js +248 -0
- package/es/el-scrollbar-bc381e35.cjs +1 -0
- package/es/el-select-7116533b.cjs +9 -0
- package/es/{el-select-f84b87d9.js → el-select-895360ba.js} +282 -280
- package/es/el-tag-2c7e5d4a.cjs +1 -0
- package/es/el-tag-30cecca3.js +2417 -0
- package/es/focus-trap-5ac78614.js +259 -0
- package/es/focus-trap-a169f160.cjs +1 -0
- package/es/{index-2cc1c02e.cjs → index-a091492d.cjs} +1 -1
- package/es/{index-16dfa199.js → index-caa490bf.js} +17 -14
- package/es/{python-336a8c96.js → python-0b8dfd75.js} +1 -1
- package/es/{python-044eec0c.cjs → python-bd86111b.cjs} +1 -1
- package/es/raf-5e5c53db.cjs +1 -0
- package/es/raf-92c5ed6d.js +6 -0
- package/es/{scroll-c6489061.js → scroll-264c50f3.js} +5 -5
- package/es/{scroll-891e3e9f.cjs → scroll-bb8039ba.cjs} +1 -1
- package/es/style.css +1 -1
- package/es/typescript-7ae59c4c.js +4 -0
- package/es/typescript-b63f8e83.cjs +1 -0
- package/es/use-form-item-0e9cae13.js +668 -0
- package/es/use-form-item-6cef6b15.cjs +3 -0
- package/es/use-global-config-17f3d7c7.cjs +1 -0
- package/es/use-global-config-8c9c775f.js +110 -0
- package/es/{vnode-b44a499a.cjs → vnode-abafec9e.cjs} +1 -1
- package/es/{vnode-229e6729.js → vnode-b78096e3.js} +4 -4
- package/es/{zh-cn-e0c3b8df.js → zh-cn-8aaa7dd2.js} +2 -2
- package/es/{zh-cn-5c01bb26.cjs → zh-cn-e4d38144.cjs} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +2 -2
- package/lib/{index-d7f5d65b.js → index-7d3b5736.js} +72 -50
- package/lib/{python-31d7356c.js → python-d1c44236.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/MonacoEditor/index.vue +5 -0
- package/packages/VarietySearch/config.js +44 -21
- package/packages/VarietySearch/index.vue +64 -24
- package/src/pages/MonacoEditor/index.vue +5 -0
- package/es/config-provider-33068fb6.cjs +0 -1
- package/es/config-provider-c98bd563.js +0 -148
- package/es/el-button-fc645d0f.cjs +0 -1
- package/es/el-icon-99876220.cjs +0 -1
- package/es/el-overlay-dcbc4437.cjs +0 -5
- package/es/el-scrollbar-6800cb98.js +0 -2653
- package/es/el-scrollbar-9da140ab.cjs +0 -1
- package/es/el-select-d22b5aa3.cjs +0 -9
- package/es/focus-trap-9f4b1039.js +0 -880
- package/es/focus-trap-fae33d9d.cjs +0 -3
package/components.d.ts
CHANGED
|
@@ -8,11 +8,13 @@ export {}
|
|
|
8
8
|
declare module 'vue' {
|
|
9
9
|
export interface GlobalComponents {
|
|
10
10
|
Dialog: typeof import('./src/components/Dialog/index.vue')['default']
|
|
11
|
+
ElAutoResizer: typeof import('element-plus/es')['ElAutoResizer']
|
|
11
12
|
ElButton: typeof import('element-plus/es')['ElButton']
|
|
12
13
|
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
|
|
13
14
|
ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup']
|
|
14
15
|
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
|
|
15
16
|
ElDialog: typeof import('element-plus/es')['ElDialog']
|
|
17
|
+
ElDivider: typeof import('element-plus/es')['ElDivider']
|
|
16
18
|
ElEmpty: typeof import('element-plus/es')['ElEmpty']
|
|
17
19
|
ElForm: typeof import('element-plus/es')['ElForm']
|
|
18
20
|
ElFormItem: typeof import('element-plus/es')['ElFormItem']
|
|
@@ -30,6 +32,7 @@ declare module 'vue' {
|
|
|
30
32
|
ElSelect: typeof import('element-plus/es')['ElSelect']
|
|
31
33
|
ElTable: typeof import('element-plus/es')['ElTable']
|
|
32
34
|
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
|
|
35
|
+
ElTableV2: typeof import('element-plus/es')['ElTableV2']
|
|
33
36
|
ElTag: typeof import('element-plus/es')['ElTag']
|
|
34
37
|
Kline: typeof import('./src/components/Kline/index.vue')['default']
|
|
35
38
|
RouterLink: typeof import('vue-router')['RouterLink']
|
package/es/ChartLayout.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";require("./base-4865d432.cjs");const i=require("./el-empty-608948d9.cjs"),t=require("vue"),r=require("./_plugin-vue_export-helper-f246444f.cjs");const o={__name:"index",props:{data:{type:Array,default:()=>[]},spacing:{type:Number,default:()=>2},row:{type:Number,default:()=>3},col:{type:Number,default:()=>3},emptyText:{type:String,default:()=>"暂无数据"}},setup(e){return(a,s)=>{const n=i.ElEmpty;return e.data&&e.data.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:"chartLayout",style:t.normalizeStyle({width:`calc(100% + ${e.spacing}px)`,height:`calc(100% + ${e.spacing}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data.slice(0,e.col*e.row),(c,l)=>(t.openBlock(),t.createElementBlock("div",{key:c.key,class:"chartLayout-item",style:t.normalizeStyle({margin:`0 ${e.spacing}px ${e.spacing}px 0`,width:`calc(100% / ${e.row} - ${e.spacing}px)`,height:`calc(100% / ${e.col} - ${e.spacing}px)`})},[t.renderSlot(a.$slots,"default",{data:c,index:l},void 0,!0)],4))),128))],4)):(t.openBlock(),t.createBlock(n,{key:1,description:e.emptyText,style:{height:"80%"}},null,8,["description"]))}}},u=r._export_sfc(o,[["__scopeId","data-v-578f611c"]]),d={install(e){e.component("st-chartLayout",u)}};module.exports=d;
|
package/es/ChartLayout.js
CHANGED
|
@@ -1,206 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
version: "1.1",
|
|
7
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
-
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
9
|
-
}, R = ["id"], G = ["stop-color"], I = ["stop-color"], L = ["id"], z = ["stop-color"], T = ["stop-color"], D = ["id"], M = {
|
|
10
|
-
id: "Illustrations",
|
|
11
|
-
stroke: "none",
|
|
12
|
-
"stroke-width": "1",
|
|
13
|
-
fill: "none",
|
|
14
|
-
"fill-rule": "evenodd"
|
|
15
|
-
}, P = {
|
|
16
|
-
id: "B-type",
|
|
17
|
-
transform: "translate(-1268.000000, -535.000000)"
|
|
18
|
-
}, A = {
|
|
19
|
-
id: "Group-2",
|
|
20
|
-
transform: "translate(1268.000000, 535.000000)"
|
|
21
|
-
}, F = ["fill"], O = ["fill"], U = {
|
|
22
|
-
id: "Group-Copy",
|
|
23
|
-
transform: "translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"
|
|
24
|
-
}, Z = ["fill"], j = ["fill"], q = ["fill"], H = ["fill"], J = ["fill"], K = {
|
|
25
|
-
id: "Rectangle-Copy-17",
|
|
26
|
-
transform: "translate(53.000000, 45.000000)"
|
|
27
|
-
}, Q = ["fill", "xlink:href"], W = ["fill", "mask"], X = ["fill"], Y = m({
|
|
28
|
-
name: "ImgEmpty"
|
|
29
|
-
}), tt = /* @__PURE__ */ m({
|
|
30
|
-
...Y,
|
|
31
|
-
setup(l) {
|
|
32
|
-
const s = _("empty"), o = g();
|
|
33
|
-
return (i, c) => (a(), n("svg", b, [
|
|
34
|
-
t("defs", null, [
|
|
35
|
-
t("linearGradient", {
|
|
36
|
-
id: `linearGradient-1-${e(o)}`,
|
|
37
|
-
x1: "38.8503086%",
|
|
38
|
-
y1: "0%",
|
|
39
|
-
x2: "61.1496914%",
|
|
40
|
-
y2: "100%"
|
|
41
|
-
}, [
|
|
42
|
-
t("stop", {
|
|
43
|
-
"stop-color": `var(${e(s).cssVarBlockName("fill-color-1")})`,
|
|
44
|
-
offset: "0%"
|
|
45
|
-
}, null, 8, G),
|
|
46
|
-
t("stop", {
|
|
47
|
-
"stop-color": `var(${e(s).cssVarBlockName("fill-color-4")})`,
|
|
48
|
-
offset: "100%"
|
|
49
|
-
}, null, 8, I)
|
|
50
|
-
], 8, R),
|
|
51
|
-
t("linearGradient", {
|
|
52
|
-
id: `linearGradient-2-${e(o)}`,
|
|
53
|
-
x1: "0%",
|
|
54
|
-
y1: "9.5%",
|
|
55
|
-
x2: "100%",
|
|
56
|
-
y2: "90.5%"
|
|
57
|
-
}, [
|
|
58
|
-
t("stop", {
|
|
59
|
-
"stop-color": `var(${e(s).cssVarBlockName("fill-color-1")})`,
|
|
60
|
-
offset: "0%"
|
|
61
|
-
}, null, 8, z),
|
|
62
|
-
t("stop", {
|
|
63
|
-
"stop-color": `var(${e(s).cssVarBlockName("fill-color-6")})`,
|
|
64
|
-
offset: "100%"
|
|
65
|
-
}, null, 8, T)
|
|
66
|
-
], 8, L),
|
|
67
|
-
t("rect", {
|
|
68
|
-
id: `path-3-${e(o)}`,
|
|
69
|
-
x: "0",
|
|
70
|
-
y: "0",
|
|
71
|
-
width: "17",
|
|
72
|
-
height: "36"
|
|
73
|
-
}, null, 8, D)
|
|
74
|
-
]),
|
|
75
|
-
t("g", M, [
|
|
76
|
-
t("g", P, [
|
|
77
|
-
t("g", A, [
|
|
78
|
-
t("path", {
|
|
79
|
-
id: "Oval-Copy-2",
|
|
80
|
-
d: "M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",
|
|
81
|
-
fill: `var(${e(s).cssVarBlockName("fill-color-3")})`
|
|
82
|
-
}, null, 8, F),
|
|
83
|
-
t("polygon", {
|
|
84
|
-
id: "Rectangle-Copy-14",
|
|
85
|
-
fill: `var(${e(s).cssVarBlockName("fill-color-7")})`,
|
|
86
|
-
transform: "translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",
|
|
87
|
-
points: "13 58 53 58 42 45 2 45"
|
|
88
|
-
}, null, 8, O),
|
|
89
|
-
t("g", U, [
|
|
90
|
-
t("polygon", {
|
|
91
|
-
id: "Rectangle-Copy-10",
|
|
92
|
-
fill: `var(${e(s).cssVarBlockName("fill-color-7")})`,
|
|
93
|
-
transform: "translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",
|
|
94
|
-
points: "2.84078316e-14 3 18 3 23 7 5 7"
|
|
95
|
-
}, null, 8, Z),
|
|
96
|
-
t("polygon", {
|
|
97
|
-
id: "Rectangle-Copy-11",
|
|
98
|
-
fill: `var(${e(s).cssVarBlockName("fill-color-5")})`,
|
|
99
|
-
points: "-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"
|
|
100
|
-
}, null, 8, j),
|
|
101
|
-
t("rect", {
|
|
102
|
-
id: "Rectangle-Copy-12",
|
|
103
|
-
fill: `url(#linearGradient-1-${e(o)})`,
|
|
104
|
-
transform: "translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",
|
|
105
|
-
x: "38",
|
|
106
|
-
y: "7",
|
|
107
|
-
width: "17",
|
|
108
|
-
height: "36"
|
|
109
|
-
}, null, 8, q),
|
|
110
|
-
t("polygon", {
|
|
111
|
-
id: "Rectangle-Copy-13",
|
|
112
|
-
fill: `var(${e(s).cssVarBlockName("fill-color-2")})`,
|
|
113
|
-
transform: "translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",
|
|
114
|
-
points: "24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"
|
|
115
|
-
}, null, 8, H)
|
|
116
|
-
]),
|
|
117
|
-
t("rect", {
|
|
118
|
-
id: "Rectangle-Copy-15",
|
|
119
|
-
fill: `url(#linearGradient-2-${e(o)})`,
|
|
120
|
-
x: "13",
|
|
121
|
-
y: "45",
|
|
122
|
-
width: "40",
|
|
123
|
-
height: "36"
|
|
124
|
-
}, null, 8, J),
|
|
125
|
-
t("g", K, [
|
|
126
|
-
t("use", {
|
|
127
|
-
id: "Mask",
|
|
128
|
-
fill: `var(${e(s).cssVarBlockName("fill-color-8")})`,
|
|
129
|
-
transform: "translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ",
|
|
130
|
-
"xlink:href": `#path-3-${e(o)}`
|
|
131
|
-
}, null, 8, Q),
|
|
132
|
-
t("polygon", {
|
|
133
|
-
id: "Rectangle-Copy",
|
|
134
|
-
fill: `var(${e(s).cssVarBlockName("fill-color-9")})`,
|
|
135
|
-
mask: `url(#mask-4-${e(o)})`,
|
|
136
|
-
transform: "translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",
|
|
137
|
-
points: "7 0 24 0 20 18 7 16.5"
|
|
138
|
-
}, null, 8, W)
|
|
139
|
-
]),
|
|
140
|
-
t("polygon", {
|
|
141
|
-
id: "Rectangle-Copy-18",
|
|
142
|
-
fill: `var(${e(s).cssVarBlockName("fill-color-2")})`,
|
|
143
|
-
transform: "translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",
|
|
144
|
-
points: "62 45 79 45 70 58 53 58"
|
|
145
|
-
}, null, 8, X)
|
|
146
|
-
])
|
|
147
|
-
])
|
|
148
|
-
])
|
|
149
|
-
]));
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
var et = /* @__PURE__ */ h(tt, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);
|
|
153
|
-
const lt = $({
|
|
154
|
-
image: {
|
|
155
|
-
type: String,
|
|
156
|
-
default: ""
|
|
157
|
-
},
|
|
158
|
-
imageSize: Number,
|
|
159
|
-
description: {
|
|
160
|
-
type: String,
|
|
161
|
-
default: ""
|
|
162
|
-
}
|
|
163
|
-
}), st = ["src"], ot = { key: 1 }, at = m({
|
|
164
|
-
name: "ElEmpty"
|
|
165
|
-
}), nt = /* @__PURE__ */ m({
|
|
166
|
-
...at,
|
|
167
|
-
props: lt,
|
|
168
|
-
setup(l) {
|
|
169
|
-
const s = l, { t: o } = k(), i = _("empty"), c = y(() => s.description || o("el.table.emptyText")), f = y(() => ({
|
|
170
|
-
width: v(s.imageSize)
|
|
171
|
-
}));
|
|
172
|
-
return (r, pt) => (a(), n("div", {
|
|
173
|
-
class: d(e(i).b())
|
|
174
|
-
}, [
|
|
175
|
-
t("div", {
|
|
176
|
-
class: d(e(i).e("image")),
|
|
177
|
-
style: u(e(f))
|
|
178
|
-
}, [
|
|
179
|
-
r.image ? (a(), n("img", {
|
|
180
|
-
key: 0,
|
|
181
|
-
src: r.image,
|
|
182
|
-
ondragstart: "return false"
|
|
183
|
-
}, null, 8, st)) : p(r.$slots, "image", { key: 1 }, () => [
|
|
184
|
-
w(et)
|
|
185
|
-
])
|
|
186
|
-
], 6),
|
|
187
|
-
t("div", {
|
|
188
|
-
class: d(e(i).e("description"))
|
|
189
|
-
}, [
|
|
190
|
-
r.$slots.description ? p(r.$slots, "description", { key: 0 }) : (a(), n("p", ot, N(e(c)), 1))
|
|
191
|
-
], 2),
|
|
192
|
-
r.$slots.default ? (a(), n("div", {
|
|
193
|
-
key: 0,
|
|
194
|
-
class: d(e(i).e("bottom"))
|
|
195
|
-
}, [
|
|
196
|
-
p(r.$slots, "default")
|
|
197
|
-
], 2)) : C("v-if", !0)
|
|
198
|
-
], 2));
|
|
199
|
-
}
|
|
200
|
-
});
|
|
201
|
-
var it = /* @__PURE__ */ h(nt, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);
|
|
202
|
-
const rt = x(it);
|
|
203
|
-
const ct = {
|
|
1
|
+
import "./base-6faccb01.js";
|
|
2
|
+
import { E as r } from "./el-empty-348c46f7.js";
|
|
3
|
+
import { openBlock as e, createElementBlock as a, normalizeStyle as n, Fragment as o, renderList as u, renderSlot as s, createBlock as y } from "vue";
|
|
4
|
+
import { _ as m } from "./_plugin-vue_export-helper-dad06003.js";
|
|
5
|
+
const f = {
|
|
204
6
|
__name: "index",
|
|
205
7
|
props: {
|
|
206
8
|
data: {
|
|
@@ -228,43 +30,43 @@ const ct = {
|
|
|
228
30
|
default: () => "暂无数据"
|
|
229
31
|
}
|
|
230
32
|
},
|
|
231
|
-
setup(
|
|
232
|
-
return (
|
|
233
|
-
const i =
|
|
234
|
-
return
|
|
33
|
+
setup(t) {
|
|
34
|
+
return (l, x) => {
|
|
35
|
+
const i = r;
|
|
36
|
+
return t.data && t.data.length ? (e(), a("div", {
|
|
235
37
|
key: 0,
|
|
236
38
|
class: "chartLayout",
|
|
237
|
-
style:
|
|
238
|
-
width: `calc(100% + ${
|
|
239
|
-
height: `calc(100% + ${
|
|
39
|
+
style: n({
|
|
40
|
+
width: `calc(100% + ${t.spacing}px)`,
|
|
41
|
+
height: `calc(100% + ${t.spacing}px)`
|
|
240
42
|
})
|
|
241
43
|
}, [
|
|
242
|
-
(
|
|
44
|
+
(e(!0), a(o, null, u(t.data.slice(0, t.col * t.row), (c, d) => (e(), a("div", {
|
|
243
45
|
key: c.key,
|
|
244
46
|
class: "chartLayout-item",
|
|
245
|
-
style:
|
|
246
|
-
margin: `0 ${
|
|
247
|
-
width: `calc(100% / ${
|
|
248
|
-
height: `calc(100% / ${
|
|
47
|
+
style: n({
|
|
48
|
+
margin: `0 ${t.spacing}px ${t.spacing}px 0`,
|
|
49
|
+
width: `calc(100% / ${t.row} - ${t.spacing}px)`,
|
|
50
|
+
height: `calc(100% / ${t.col} - ${t.spacing}px)`
|
|
249
51
|
})
|
|
250
52
|
}, [
|
|
251
|
-
|
|
53
|
+
s(l.$slots, "default", {
|
|
252
54
|
data: c,
|
|
253
|
-
index:
|
|
55
|
+
index: d
|
|
254
56
|
}, void 0, !0)
|
|
255
57
|
], 4))), 128))
|
|
256
|
-
], 4)) : (
|
|
58
|
+
], 4)) : (e(), y(i, {
|
|
257
59
|
key: 1,
|
|
258
|
-
description:
|
|
60
|
+
description: t.emptyText,
|
|
259
61
|
style: { height: "80%" }
|
|
260
62
|
}, null, 8, ["description"]));
|
|
261
63
|
};
|
|
262
64
|
}
|
|
263
|
-
},
|
|
264
|
-
install(
|
|
265
|
-
|
|
65
|
+
}, g = /* @__PURE__ */ m(f, [["__scopeId", "data-v-578f611c"]]), v = {
|
|
66
|
+
install(t) {
|
|
67
|
+
t.component("st-chartLayout", g);
|
|
266
68
|
}
|
|
267
69
|
};
|
|
268
70
|
export {
|
|
269
|
-
|
|
71
|
+
v as default
|
|
270
72
|
};
|
package/es/Dialog.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("./base-
|
|
1
|
+
"use strict";require("./base-4865d432.cjs");const u=require("./zh-cn-e4d38144.cjs"),f=require("./el-overlay-4713107e.cjs"),V=require("./el-button-aad5268b.cjs"),e=require("vue");require("./config-provider-465c8253.cjs");require("./use-global-config-17f3d7c7.cjs");require("./use-form-item-6cef6b15.cjs");require("./vnode-abafec9e.cjs");require("./focus-trap-a169f160.cjs");require("./scroll-bb8039ba.cjs");require("./index-eea0bcb3.cjs");const C=e.createElementVNode("span",null,"This is a message",-1),_={class:"dialog-footer"},q=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(n){i("update:modelValue",n)}}),c=n=>{i("update:modelValue",!1)};return(n,t)=>{const a=V.ElButton,m=f.ElDialog,p=u.ElConfigProvider;return e.openBlock(),e.createBlock(p,{locale:e.unref(u.zhCn)},{default:e.withCtx(()=>[e.createVNode(m,{modelValue:l.value,"onUpdate:modelValue":t[2]||(t[2]=r=>l.value=r),title:o.title,width:"30%","before-close":c,style:e.normalizeStyle(o.style)},{footer:e.withCtx(()=>[e.createElementVNode("span",_,[e.createVNode(a,{onClick:t[0]||(t[0]=r=>l.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("Cancel")]),_:1}),e.createVNode(a,{type:"primary",onClick:t[1]||(t[1]=r=>l.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(" Confirm ")]),_:1})])]),default:e.withCtx(()=>[C]),_:1},8,["modelValue","title","style"])]),_:1},8,["locale"])}}}),v={install(o){o.component("st-dialog",q)}};module.exports=v;
|
package/es/Dialog.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import "./base-
|
|
2
|
-
import { z as V, E as g } from "./zh-cn-
|
|
3
|
-
import { E as y } from "./el-overlay-
|
|
4
|
-
import { E as v } from "./el-button-
|
|
1
|
+
import "./base-6faccb01.js";
|
|
2
|
+
import { z as V, E as g } from "./zh-cn-8aaa7dd2.js";
|
|
3
|
+
import { E as y } from "./el-overlay-400ac6ce.js";
|
|
4
|
+
import { E as v } from "./el-button-1b9c4fd6.js";
|
|
5
5
|
import { defineComponent as C, computed as E, openBlock as x, createBlock as k, unref as B, withCtx as o, createVNode as i, normalizeStyle as b, createElementVNode as d, createTextVNode as m } from "vue";
|
|
6
|
-
import "./config-provider-
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
6
|
+
import "./config-provider-be0e9c36.js";
|
|
7
|
+
import "./use-global-config-8c9c775f.js";
|
|
8
|
+
import "./use-form-item-0e9cae13.js";
|
|
9
|
+
import "./vnode-b78096e3.js";
|
|
10
|
+
import "./focus-trap-5ac78614.js";
|
|
11
|
+
import "./scroll-264c50f3.js";
|
|
10
12
|
import "./index-657047bb.js";
|
|
11
13
|
const z = /* @__PURE__ */ d("span", null, "This is a message", -1), N = { class: "dialog-footer" }, S = /* @__PURE__ */ C({
|
|
12
14
|
__name: "index",
|
|
@@ -25,10 +27,10 @@ const z = /* @__PURE__ */ d("span", null, "This is a message", -1), N = { class:
|
|
|
25
27
|
}
|
|
26
28
|
},
|
|
27
29
|
emits: ["update:modelValue"],
|
|
28
|
-
setup(t, { emit:
|
|
29
|
-
const r =
|
|
30
|
+
setup(t, { emit: p }) {
|
|
31
|
+
const r = p, u = t, l = E({
|
|
30
32
|
get() {
|
|
31
|
-
return
|
|
33
|
+
return u.modelValue;
|
|
32
34
|
},
|
|
33
35
|
set(n) {
|
|
34
36
|
r("update:modelValue", n);
|
|
@@ -79,11 +81,11 @@ const z = /* @__PURE__ */ d("span", null, "This is a message", -1), N = { class:
|
|
|
79
81
|
}, 8, ["locale"]);
|
|
80
82
|
};
|
|
81
83
|
}
|
|
82
|
-
}),
|
|
84
|
+
}), H = {
|
|
83
85
|
install(t) {
|
|
84
86
|
t.component("st-dialog", S);
|
|
85
87
|
}
|
|
86
88
|
};
|
|
87
89
|
export {
|
|
88
|
-
|
|
90
|
+
H as default
|
|
89
91
|
};
|