hisonvue 1.1.6 → 1.1.8
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/dist/{HAccordion-BXzQTj-T.js → HAccordion-CcqP8KVN.js} +1 -1
- package/dist/{HAccordion-2BXGsG5B.mjs → HAccordion-DABKXdkp.mjs} +2 -2
- package/dist/{HBaggie-DP-oXbIt.js → HBaggie-Dc-KPRDG.js} +1 -1
- package/dist/{HBaggie-DbUnI6Cg.mjs → HBaggie-Dnq5t8un.mjs} +2 -2
- package/dist/{HBanner-C_RVokKc.js → HBanner-ClmYECkp.js} +1 -1
- package/dist/{HBanner-DS1wAGBj.mjs → HBanner-Cxl_X-Ui.mjs} +2 -2
- package/dist/{HButton-CJZsjgRh.mjs → HButton-BuJp6l32.mjs} +2 -2
- package/dist/{HButton-EmsUduJx.js → HButton-D7w35fAT.js} +1 -1
- package/dist/{HCalendar-BHuielDt.mjs → HCalendar-Cg1Ejr3b.mjs} +1 -1
- package/dist/{HCalendar-BQcg95QP.js → HCalendar-GfsTZV86.js} +1 -1
- package/dist/{HCaption-B_TLREQt.mjs → HCaption-BP0zpAoh.mjs} +1 -1
- package/dist/{HCaption-DnnfU-4f.js → HCaption-BZklN1hJ.js} +1 -1
- package/dist/{HChart-CPILy-I8.js → HChart-BoIsUY-U.js} +1 -1
- package/dist/{HChart-C9gfq-PC.mjs → HChart-ZHMznCxo.mjs} +1 -1
- package/dist/{HDrawer-tfvUaRKv.js → HDrawer-BdNXB7bZ.js} +1 -1
- package/dist/{HDrawer-D_kSIGBU.mjs → HDrawer-BfMsOIMU.mjs} +1 -1
- package/dist/{HDropdown-BjUvzvFC.js → HDropdown-CFFwgLxP.js} +1 -1
- package/dist/{HDropdown-BIPy8aU4.mjs → HDropdown-KwBejxH6.mjs} +2 -2
- package/dist/{HFileset-PW9YCJgS.js → HFileset-BVwhCpWk.js} +1 -1
- package/dist/{HFileset-BtK0nmzk.mjs → HFileset-NrFG7upU.mjs} +1 -1
- package/dist/{HGap-BbdxTgBt.js → HGap-D-OpGS6f.js} +1 -1
- package/dist/{HGap-CW02Hxpc.mjs → HGap-DQ7KNksh.mjs} +1 -1
- package/dist/{HGrid-CJ4-xVpR.mjs → HGrid-Dgv2QLud.mjs} +1 -1
- package/dist/{HGrid-olge21bD.js → HGrid-PEaylCn3.js} +1 -1
- package/dist/{HImagebox-AXcA-jAB.js → HImagebox-CVmax7-2.js} +1 -1
- package/dist/{HImagebox-FTiJuOTN.mjs → HImagebox-DGj7kyoL.mjs} +1 -1
- package/dist/{HInput-CZ11eUJB.js → HInput-CRyozCxo.js} +1 -1
- package/dist/{HInput-Cqo_Tfru.mjs → HInput-DzT-VAwv.mjs} +1 -1
- package/dist/{HInputGroup-zaJVW7RE.js → HInputGroup-CaYUBopI.js} +1 -1
- package/dist/{HInputGroup-SzCxRqaF.mjs → HInputGroup-CjBmNgV9.mjs} +1 -1
- package/dist/HLabel-BA2ph0V-.js +1 -0
- package/dist/{HLabel-DEVMDggG.mjs → HLabel-c8gR7-ur.mjs} +148 -131
- package/dist/{HLayout-Fh65aaVI.js → HLayout-Da1XBfUi.js} +1 -1
- package/dist/{HLayout-x_jVkIo4.mjs → HLayout-GazOMB2h.mjs} +1 -1
- package/dist/{HList-JIhEylRe.js → HList-B14zIkzR.js} +1 -1
- package/dist/{HList-V-fyd5fw.mjs → HList-tAOQaX_Q.mjs} +2 -2
- package/dist/{HModal-M0YUil9A.js → HModal-Boe8kpBb.js} +1 -1
- package/dist/{HModal-B7pME4H2.mjs → HModal-oGryjRSc.mjs} +1 -1
- package/dist/{HNote-HqNrL-U2.mjs → HNote-CZ02WSkW.mjs} +1 -1
- package/dist/{HNote-C5nujdV1.js → HNote-JSNpTQXQ.js} +1 -1
- package/dist/{HPagination-6aWyrTI-.js → HPagination-DlPSez0N.js} +1 -1
- package/dist/{HPagination-h8MaMUIE.mjs → HPagination-ZJZWJ7HP.mjs} +2 -2
- package/dist/HParagraph-BPtGEwa6.js +1 -0
- package/dist/{HParagraph-CP1IofM4.mjs → HParagraph-D0bGPbRd.mjs} +174 -157
- package/dist/{HPopup-Cj5IaN9N.js → HPopup-DhNEnDcR.js} +1 -1
- package/dist/{HPopup-DUnn4AIb.mjs → HPopup-Dv018FIN.mjs} +1 -1
- package/dist/{HSpinner-HdIJ62aF.js → HSpinner-BHcYPH5-.js} +1 -1
- package/dist/{HSpinner-bShjHynQ.mjs → HSpinner-Bvk7nkiS.mjs} +1 -1
- package/dist/{HTable-BuGAaqrq.mjs → HTable-C1ZdeMIP.mjs} +1 -1
- package/dist/{HTable-BgZ-XAZx.js → HTable-Dq_ySJrZ.js} +1 -1
- package/dist/hisonvue.cjs.js +1 -1
- package/dist/hisonvue.d.ts +58 -0
- package/dist/hisonvue.es.js +2 -2
- package/dist/{index-BU8h1J_W.mjs → index-9uY2HzIO.mjs} +1 -1
- package/dist/{index-BzCcaeiL.js → index-Cp0RZa-k.js} +1 -1
- package/dist/{setButtonCssEvent-Oy4ojn9y.js → setButtonCssEvent-CEQ0vsUw.js} +1 -1
- package/dist/{setButtonCssEvent-C-ESkC60.mjs → setButtonCssEvent-C_OU9wiq.mjs} +1 -1
- package/package.json +3 -3
- package/dist/HLabel-jZG7tY-0.js +0 -1
- package/dist/HParagraph-IvsIOdD1.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { B as
|
|
3
|
-
import { r as
|
|
4
|
-
import { _ as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as Se, ref as a, useSlots as Be, computed as o, Text as ke, onMounted as Z, onBeforeUnmount as Ie, watch as n, nextTick as $, unref as pe, createElementBlock as D, openBlock as F, normalizeClass as we, createBlock as Ne, resolveDynamicComponent as Ue, mergeProps as Le, withKeys as _, withModifiers as ee, withCtx as Me, renderSlot as He, Fragment as Ee, createTextVNode as $e, toDisplayString as te } from "vue";
|
|
2
|
+
import { B as Fe, f as x, T as xe, g as Ve, u as Ke, w as g, e as Oe, t as Re, b as le, h as A, r as De, c as je, d as qe } from "./index-9uY2HzIO.mjs";
|
|
3
|
+
import { r as ne, a as ae } from "./setButtonCssEvent-C_OU9wiq.mjs";
|
|
4
|
+
import { _ as ze } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
5
|
+
const Ge = {
|
|
6
6
|
/**
|
|
7
7
|
* Unique identifier for the label.
|
|
8
8
|
* - Access methods via `hison.component.getLabel(id)`
|
|
@@ -99,8 +99,8 @@ const je = {
|
|
|
99
99
|
*/
|
|
100
100
|
backgroundType: {
|
|
101
101
|
type: String,
|
|
102
|
-
default:
|
|
103
|
-
validator: (t) =>
|
|
102
|
+
default: x.empty,
|
|
103
|
+
validator: (t) => Fe.includes(t)
|
|
104
104
|
},
|
|
105
105
|
/**
|
|
106
106
|
* ID of the target `HInput` (checkbox/radio) to toggle when the label is clicked or activated by keyboard.
|
|
@@ -111,6 +111,12 @@ const je = {
|
|
|
111
111
|
type: String,
|
|
112
112
|
default: null
|
|
113
113
|
},
|
|
114
|
+
/**
|
|
115
|
+
* Prevent auto-translation by browsers or translation plugins.
|
|
116
|
+
* - When false: adds `translate="no"` and `.notranslate` to the rendered element
|
|
117
|
+
* - Default: true
|
|
118
|
+
*/
|
|
119
|
+
translate: { type: Boolean, default: !0 },
|
|
114
120
|
/**
|
|
115
121
|
* Controls keyboard focus order of the element.
|
|
116
122
|
* - `0` enables natural tab navigation, positive numbers set custom order.
|
|
@@ -121,175 +127,179 @@ const je = {
|
|
|
121
127
|
default: null,
|
|
122
128
|
validator: (t) => t === null || t === "" || !isNaN(+t) && isFinite(+t)
|
|
123
129
|
}
|
|
124
|
-
},
|
|
130
|
+
}, Pe = Se({
|
|
125
131
|
name: "HLabel",
|
|
126
|
-
props:
|
|
132
|
+
props: Ge,
|
|
127
133
|
inheritAttrs: !1,
|
|
128
134
|
emits: ["mounted", "responsive-change", "click", "mousedown", "mouseup", "mouseover", "mouseout"],
|
|
129
|
-
setup(t, { emit: s, slots:
|
|
130
|
-
const b = a(null), m = a(null),
|
|
131
|
-
const e = { ...
|
|
135
|
+
setup(t, { emit: s, slots: oe }) {
|
|
136
|
+
const b = a(null), m = a(null), i = t.id ? t.id : Ve(), u = `hlabel:${i}`, j = Ke(), V = Be(), C = a(t.visible), f = a(t.title || ""), S = a(t.textAlign ?? g.left), se = o(() => ({ textAlign: S.value })), v = a(t.href ?? null), r = a({ ...t.anchorAttrs || {} }), h = o(() => !!(v.value && String(v.value).trim())), ue = o(() => {
|
|
137
|
+
const e = { ...r.value };
|
|
132
138
|
return f.value && e.title == null && (e.title = f.value), e.href = v.value || void 0, e.download === !0 && (e.download = ""), String(e.target || "") === "_blank" && (e.rel == null || String(e.rel).trim() === "") && (e.rel = "noopener noreferrer"), e;
|
|
133
|
-
}),
|
|
134
|
-
() =>
|
|
135
|
-
),
|
|
136
|
-
() => !!
|
|
137
|
-
),
|
|
139
|
+
}), H = o(() => V.default ? V.default() : []), K = o(
|
|
140
|
+
() => H.value.length > 0 && H.value.every((e) => e.type === ke)
|
|
141
|
+
), B = o(
|
|
142
|
+
() => !!V.default && !K.value
|
|
143
|
+
), re = o(() => B.value ? "div" : h.value ? "a" : "span"), k = a(t.fontBold), ie = o(() => {
|
|
138
144
|
if (k.value) return "hison-font-bold";
|
|
139
|
-
}),
|
|
140
|
-
if (
|
|
141
|
-
}),
|
|
142
|
-
if (
|
|
143
|
-
}),
|
|
144
|
-
if (
|
|
145
|
-
}),
|
|
146
|
-
switch (
|
|
147
|
-
case
|
|
145
|
+
}), I = a(t.fontItalic), de = o(() => {
|
|
146
|
+
if (I.value) return "hison-font-italic";
|
|
147
|
+
}), p = a(t.fontThruline), fe = o(() => {
|
|
148
|
+
if (p.value) return "hison-font-thruline-important";
|
|
149
|
+
}), w = a(t.fontUnderline), ve = o(() => {
|
|
150
|
+
if (w.value) return "hison-font-underline-important";
|
|
151
|
+
}), N = a(t.border ?? !1), U = a(t.backgroundType || x.empty), ce = o(() => C.value ? "" : "hison-display-none"), ge = o(() => N.value ? "hison-border" : ""), be = o(() => {
|
|
152
|
+
switch (U.value) {
|
|
153
|
+
case x.empty:
|
|
148
154
|
return "hison-bg-empty";
|
|
149
|
-
case
|
|
155
|
+
case x.transparent:
|
|
150
156
|
return "hison-bg-transparent";
|
|
151
157
|
default:
|
|
152
158
|
return "hison-bg-filled";
|
|
153
159
|
}
|
|
154
160
|
}), d = a(t.text || "");
|
|
155
|
-
|
|
156
|
-
if (
|
|
157
|
-
const e =
|
|
161
|
+
Z(() => {
|
|
162
|
+
if (K.value) {
|
|
163
|
+
const e = H.value.map((l) => String(l.children ?? "")).join("");
|
|
158
164
|
d.value = e;
|
|
159
165
|
}
|
|
160
166
|
});
|
|
161
|
-
const c = a(t.toggleTarget ?? null), y = o(() => !!(c.value && String(c.value).trim())),
|
|
167
|
+
const c = a(t.toggleTarget ?? null), y = o(() => !!(c.value && String(c.value).trim())), T = a(t.translate), me = o(() => T.value === !1 ? "notranslate" : ""), he = o(() => T.value === !1 ? "no" : void 0), L = a(
|
|
162
168
|
t.tabIndex !== null && t.tabIndex !== "" ? Number(t.tabIndex) : null
|
|
163
|
-
),
|
|
164
|
-
|
|
165
|
-
},
|
|
166
|
-
var P,
|
|
169
|
+
), E = a([]), O = () => {
|
|
170
|
+
E.value = Oe(Re(t.class) || "", j.value), le(E.value, "size", A.componentStyle.size), le(E.value, "color", "primary");
|
|
171
|
+
}, q = () => {
|
|
172
|
+
var P, J, X, Y, Q, W;
|
|
167
173
|
if (!y.value) return;
|
|
168
|
-
const e = String(c.value), l = (P =
|
|
174
|
+
const e = String(c.value), l = (P = A.component.inputList) == null ? void 0 : P[e];
|
|
169
175
|
if (!l || !l.isHisonvueComponent) return;
|
|
170
|
-
const
|
|
171
|
-
if (
|
|
172
|
-
const
|
|
173
|
-
|
|
174
|
-
},
|
|
175
|
-
y.value &&
|
|
176
|
-
},
|
|
177
|
-
if (y.value &&
|
|
176
|
+
const M = (J = l.getInputType) == null ? void 0 : J.call(l), Ae = (X = l.getEditMode) == null ? void 0 : X.call(l);
|
|
177
|
+
if (M !== "checkbox" && M !== "radio" || Ae !== "editable") return;
|
|
178
|
+
const Ce = !!((Y = l.getValue) != null && Y.call(l));
|
|
179
|
+
M === "checkbox" ? (Q = l.setValue) == null || Q.call(l, !Ce) : (W = l.setValue) == null || W.call(l, !0);
|
|
180
|
+
}, ye = (e) => {
|
|
181
|
+
y.value && q(), s("click", e, m.value);
|
|
182
|
+
}, Te = (e) => {
|
|
183
|
+
if (y.value && q(), !h.value) return;
|
|
178
184
|
const l = b.value;
|
|
179
185
|
l && l.tagName === "A" && l.click();
|
|
180
|
-
},
|
|
186
|
+
}, R = (e = !0) => {
|
|
181
187
|
const l = b.value;
|
|
182
188
|
if (l) {
|
|
183
|
-
if (
|
|
184
|
-
|
|
189
|
+
if (ne(l), y.value) {
|
|
190
|
+
ae(l);
|
|
185
191
|
return;
|
|
186
192
|
}
|
|
187
|
-
e && h.value && l.tagName === "A" &&
|
|
193
|
+
e && h.value && l.tagName === "A" && ae(l);
|
|
188
194
|
}
|
|
189
|
-
},
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
}),
|
|
195
|
+
}, z = () => {
|
|
196
|
+
A.component.labelList[i] && A.component.labelList[i].isHisonvueComponent && console.warn(`[Hisonvue] The label ID is at risk of being duplicated. ${i}`), De(u, () => {
|
|
197
|
+
G(), $(z);
|
|
198
|
+
}), O(), $(() => R(!0)), m.value = {
|
|
193
199
|
isHisonvueComponent: !0,
|
|
194
|
-
getId: () =>
|
|
200
|
+
getId: () => i,
|
|
195
201
|
getType: () => "label",
|
|
196
|
-
isVisible: () =>
|
|
202
|
+
isVisible: () => C.value,
|
|
197
203
|
setVisible: (e) => {
|
|
198
|
-
|
|
204
|
+
C.value = e;
|
|
199
205
|
},
|
|
200
206
|
getTitle: () => f.value,
|
|
201
207
|
setTitle: (e) => {
|
|
202
208
|
f.value = e;
|
|
203
209
|
},
|
|
204
|
-
getText: () =>
|
|
210
|
+
getText: () => B.value ? "" : d.value,
|
|
205
211
|
setText: (e) => {
|
|
206
|
-
|
|
212
|
+
B.value || (d.value = e);
|
|
207
213
|
},
|
|
208
214
|
getHref: () => v.value ?? "",
|
|
209
215
|
setHref: (e) => {
|
|
210
216
|
v.value = e ?? null;
|
|
211
217
|
},
|
|
212
|
-
getAnchorAttrs: () => ({ ...
|
|
218
|
+
getAnchorAttrs: () => ({ ...r.value }),
|
|
213
219
|
replaceAnchorAttrs: (e) => {
|
|
214
|
-
|
|
220
|
+
r.value = { ...e };
|
|
215
221
|
},
|
|
216
222
|
mergeAnchorAttrs: (e) => {
|
|
217
|
-
|
|
223
|
+
r.value = { ...r.value, ...e };
|
|
218
224
|
},
|
|
219
225
|
setAnchorAttr: (e, l) => {
|
|
220
|
-
|
|
226
|
+
r.value = { ...r.value, [e]: l };
|
|
221
227
|
},
|
|
222
228
|
removeAnchorAttr: (e) => {
|
|
223
|
-
const l = { ...
|
|
224
|
-
delete l[e],
|
|
229
|
+
const l = { ...r.value };
|
|
230
|
+
delete l[e], r.value = l;
|
|
225
231
|
},
|
|
226
232
|
isFontBold: () => k.value,
|
|
227
233
|
setFontBold: (e) => {
|
|
228
234
|
k.value = e;
|
|
229
235
|
},
|
|
230
|
-
isFontItalic: () =>
|
|
236
|
+
isFontItalic: () => I.value,
|
|
231
237
|
setFontItalic: (e) => {
|
|
232
|
-
|
|
238
|
+
I.value = e;
|
|
233
239
|
},
|
|
234
|
-
isFontThruline: () =>
|
|
240
|
+
isFontThruline: () => p.value,
|
|
235
241
|
setFontThruline: (e) => {
|
|
236
|
-
|
|
242
|
+
p.value = e;
|
|
237
243
|
},
|
|
238
|
-
isFontUnderline: () =>
|
|
244
|
+
isFontUnderline: () => w.value,
|
|
239
245
|
setFontUnderline: (e) => {
|
|
240
|
-
|
|
246
|
+
w.value = e;
|
|
241
247
|
},
|
|
242
|
-
getTextAlign: () =>
|
|
248
|
+
getTextAlign: () => S.value,
|
|
243
249
|
setTextAlign: (e) => {
|
|
244
|
-
(e === g.left || e === g.center || e === g.right) && (
|
|
250
|
+
(e === g.left || e === g.center || e === g.right) && (S.value = e);
|
|
245
251
|
},
|
|
246
|
-
isBorder: () =>
|
|
252
|
+
isBorder: () => N.value,
|
|
247
253
|
setBorder: (e) => {
|
|
248
|
-
|
|
254
|
+
N.value = e;
|
|
249
255
|
},
|
|
250
|
-
getBackgroundType: () =>
|
|
256
|
+
getBackgroundType: () => U.value,
|
|
251
257
|
setBackgroundType: (e) => {
|
|
252
|
-
|
|
258
|
+
U.value = e;
|
|
253
259
|
},
|
|
254
260
|
getToggleTarget: () => c.value,
|
|
255
261
|
setToggleTarget: (e) => {
|
|
256
262
|
c.value = e;
|
|
257
263
|
},
|
|
258
|
-
|
|
259
|
-
|
|
264
|
+
isTranslate: () => T.value,
|
|
265
|
+
setTranslate: (e) => {
|
|
266
|
+
T.value = e;
|
|
267
|
+
},
|
|
268
|
+
reload: () => je(u),
|
|
269
|
+
getTabIndex: () => L.value,
|
|
260
270
|
setTabIndex: (e) => {
|
|
261
|
-
|
|
271
|
+
L.value = e != null ? Number(e) : null;
|
|
262
272
|
},
|
|
263
273
|
focus: () => {
|
|
264
274
|
const e = b.value;
|
|
265
275
|
e && h.value && e.tagName === "A" && e.focus();
|
|
266
276
|
}
|
|
267
|
-
},
|
|
268
|
-
},
|
|
269
|
-
|
|
277
|
+
}, A.component.labelList[i] = m.value, s("mounted", m.value);
|
|
278
|
+
}, G = () => {
|
|
279
|
+
qe(u);
|
|
270
280
|
const e = b.value;
|
|
271
|
-
e &&
|
|
281
|
+
e && ne(e), delete A.component.labelList[i];
|
|
272
282
|
};
|
|
273
|
-
return
|
|
274
|
-
|
|
283
|
+
return Z(z), Ie(G), n(j, (e) => {
|
|
284
|
+
O(), s("responsive-change", e);
|
|
275
285
|
}), n(h, (e) => {
|
|
276
|
-
|
|
286
|
+
$(() => R(e));
|
|
277
287
|
}, { flush: "post" }), n(y, (e) => {
|
|
278
|
-
|
|
288
|
+
$(() => R(e));
|
|
279
289
|
}, { flush: "post" }), n(() => t.visible, (e) => {
|
|
280
290
|
const l = !!e;
|
|
281
|
-
l !==
|
|
291
|
+
l !== C.value && (C.value = l);
|
|
282
292
|
}), n(() => t.title, (e) => {
|
|
283
293
|
const l = e ?? "";
|
|
284
294
|
l !== f.value && (f.value = l);
|
|
285
295
|
}), n(() => t.text, (e) => {
|
|
286
|
-
if (!
|
|
296
|
+
if (!B.value) {
|
|
287
297
|
const l = e ?? "";
|
|
288
298
|
l !== d.value && (d.value = l);
|
|
289
299
|
}
|
|
290
|
-
}), n(
|
|
291
|
-
if (
|
|
292
|
-
const l = e.map((
|
|
300
|
+
}), n(H, (e) => {
|
|
301
|
+
if (K.value) {
|
|
302
|
+
const l = e.map((M) => String(M.children ?? "")).join("");
|
|
293
303
|
l !== d.value && (d.value = l);
|
|
294
304
|
}
|
|
295
305
|
}), n(() => t.href, (e) => {
|
|
@@ -297,72 +307,77 @@ const je = {
|
|
|
297
307
|
l !== v.value && (v.value = l);
|
|
298
308
|
}), n(() => t.anchorAttrs, (e) => {
|
|
299
309
|
const l = { ...e || {} };
|
|
300
|
-
JSON.stringify(l) !== JSON.stringify(
|
|
310
|
+
JSON.stringify(l) !== JSON.stringify(r.value) && (r.value = l);
|
|
301
311
|
}), n(() => t.fontBold, (e) => {
|
|
302
312
|
const l = !!e;
|
|
303
313
|
l !== k.value && (k.value = l);
|
|
304
314
|
}), n(() => t.fontItalic, (e) => {
|
|
305
315
|
const l = !!e;
|
|
306
|
-
l !==
|
|
316
|
+
l !== I.value && (I.value = l);
|
|
307
317
|
}), n(() => t.fontThruline, (e) => {
|
|
308
318
|
const l = !!e;
|
|
309
|
-
l !==
|
|
319
|
+
l !== p.value && (p.value = l);
|
|
310
320
|
}), n(() => t.fontUnderline, (e) => {
|
|
311
321
|
const l = !!e;
|
|
312
|
-
l !==
|
|
322
|
+
l !== w.value && (w.value = l);
|
|
313
323
|
}), n(() => t.textAlign, (e) => {
|
|
314
|
-
e && e !==
|
|
324
|
+
e && e !== S.value && (e === g.left || e === g.center || e === g.right) && (S.value = e);
|
|
315
325
|
}), n(() => t.border, (e) => {
|
|
316
326
|
const l = !!e;
|
|
317
|
-
l !==
|
|
327
|
+
l !== N.value && (N.value = l);
|
|
318
328
|
}), n(() => t.backgroundType, (e) => {
|
|
319
|
-
e && e !==
|
|
329
|
+
e && e !== U.value && (U.value = e);
|
|
320
330
|
}), n(() => t.toggleTarget, (e) => {
|
|
321
331
|
const l = e ?? null;
|
|
322
332
|
l !== c.value && (c.value = l);
|
|
333
|
+
}), n(() => t.translate, (e) => {
|
|
334
|
+
const l = !!e;
|
|
335
|
+
l !== T.value && (T.value = l);
|
|
323
336
|
}), n(() => t.tabIndex, (e) => {
|
|
324
337
|
const l = e === null || e === "" ? null : Number(e);
|
|
325
|
-
l !==
|
|
338
|
+
l !== L.value && (L.value = l);
|
|
326
339
|
}), n(() => t.class, () => {
|
|
327
|
-
|
|
340
|
+
O();
|
|
328
341
|
}), {
|
|
329
342
|
labelRef: b,
|
|
330
|
-
labelMethods: o(() =>
|
|
343
|
+
labelMethods: o(() => pe(m)),
|
|
331
344
|
props: t,
|
|
332
345
|
title: f,
|
|
333
346
|
hasHref: h,
|
|
334
347
|
hasToggleTarget: y,
|
|
335
|
-
hasElementSlot:
|
|
336
|
-
renderTag:
|
|
348
|
+
hasElementSlot: B,
|
|
349
|
+
renderTag: re,
|
|
337
350
|
internalText: d,
|
|
338
|
-
computedAnchorAttrs:
|
|
339
|
-
visibleClass:
|
|
351
|
+
computedAnchorAttrs: ue,
|
|
352
|
+
visibleClass: ce,
|
|
340
353
|
fontBoldClass: ie,
|
|
341
|
-
fontItalicClass:
|
|
342
|
-
fontThrulineClass:
|
|
343
|
-
fontUnderlineClass:
|
|
344
|
-
textAlignStyle:
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
354
|
+
fontItalicClass: de,
|
|
355
|
+
fontThrulineClass: fe,
|
|
356
|
+
fontUnderlineClass: ve,
|
|
357
|
+
textAlignStyle: se,
|
|
358
|
+
translateAttr: he,
|
|
359
|
+
translateClass: me,
|
|
360
|
+
borderClass: ge,
|
|
361
|
+
backgroundTypeClass: be,
|
|
362
|
+
responsiveClassList: E,
|
|
363
|
+
tabIndex: L,
|
|
364
|
+
onClick: ye,
|
|
365
|
+
onKeyActivate: Te
|
|
351
366
|
};
|
|
352
367
|
}
|
|
353
|
-
}),
|
|
368
|
+
}), Je = {
|
|
354
369
|
key: 2,
|
|
355
370
|
class: "hison-label-text"
|
|
356
371
|
};
|
|
357
|
-
function
|
|
358
|
-
return
|
|
359
|
-
class:
|
|
372
|
+
function Xe(t, s, oe, b, m, i) {
|
|
373
|
+
return F(), D("div", {
|
|
374
|
+
class: we([
|
|
360
375
|
"hison-wrapper",
|
|
361
376
|
...t.responsiveClassList,
|
|
362
377
|
t.visibleClass
|
|
363
378
|
])
|
|
364
379
|
}, [
|
|
365
|
-
(
|
|
380
|
+
(F(), Ne(Ue(t.renderTag), Le({
|
|
366
381
|
ref: "labelRef",
|
|
367
382
|
class: [
|
|
368
383
|
"hison-label",
|
|
@@ -373,11 +388,13 @@ function Pe(t, s, ae, b, m, r) {
|
|
|
373
388
|
t.fontThrulineClass,
|
|
374
389
|
t.fontUnderlineClass,
|
|
375
390
|
t.borderClass,
|
|
376
|
-
t.backgroundTypeClass
|
|
391
|
+
t.backgroundTypeClass,
|
|
392
|
+
t.translateClass
|
|
377
393
|
],
|
|
378
394
|
style: [t.textAlignStyle, t.props.style],
|
|
379
395
|
title: t.title || void 0,
|
|
380
|
-
tabindex: t.tabIndex ?? void 0
|
|
396
|
+
tabindex: t.tabIndex ?? void 0,
|
|
397
|
+
translate: t.translateAttr
|
|
381
398
|
}, t.renderTag === "a" ? t.computedAnchorAttrs : void 0, {
|
|
382
399
|
onClick: t.onClick,
|
|
383
400
|
onMousedown: s[0] || (s[0] = (u) => t.$emit("mousedown", u, t.labelMethods)),
|
|
@@ -385,20 +402,20 @@ function Pe(t, s, ae, b, m, r) {
|
|
|
385
402
|
onMouseover: s[2] || (s[2] = (u) => t.$emit("mouseover", u, t.labelMethods)),
|
|
386
403
|
onMouseout: s[3] || (s[3] = (u) => t.$emit("mouseout", u, t.labelMethods)),
|
|
387
404
|
onKeydown: [
|
|
388
|
-
|
|
389
|
-
|
|
405
|
+
_(ee(t.onKeyActivate, ["prevent"]), ["enter"]),
|
|
406
|
+
_(ee(t.onKeyActivate, ["prevent"]), ["space"])
|
|
390
407
|
]
|
|
391
408
|
}), {
|
|
392
|
-
default:
|
|
393
|
-
t.hasElementSlot ?
|
|
394
|
-
|
|
395
|
-
], 64)) : (
|
|
409
|
+
default: Me(() => [
|
|
410
|
+
t.hasElementSlot ? He(t.$slots, "default", { key: 0 }) : t.hasHref ? (F(), D(Ee, { key: 1 }, [
|
|
411
|
+
$e(te(t.internalText), 1)
|
|
412
|
+
], 64)) : (F(), D("span", Je, te(t.internalText), 1))
|
|
396
413
|
]),
|
|
397
414
|
_: 3
|
|
398
|
-
}, 16, ["class", "style", "title", "tabindex", "onClick", "onKeydown"]))
|
|
415
|
+
}, 16, ["class", "style", "title", "tabindex", "translate", "onClick", "onKeydown"]))
|
|
399
416
|
], 2);
|
|
400
417
|
}
|
|
401
|
-
const
|
|
418
|
+
const _e = /* @__PURE__ */ ze(Pe, [["render", Xe]]);
|
|
402
419
|
export {
|
|
403
|
-
|
|
420
|
+
_e as default
|
|
404
421
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),l=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),l=require("./index-Cp0RZa-k.js"),C=require("./_plugin-vue_export-helper-BHFhmbuH.js"),h={id:{type:String,required:!1},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!0},backImageSrc:{type:String,required:!1},backImageRepeat:{type:String,required:!1,validator:e=>e==null||l.BACK_IMAGE_STYLE_VALUES.includes(e)?!0:/^(repeat-x|repeat-y|repeat|no-repeat)(\s+\S+\/\S+)?$/.test(e)||/^(cover|contain)$/.test(e)||/[\/\s]/.test(e)},backImageWidth:{type:String,required:!1},backImageAlign:{type:String,required:!1,validator:e=>e==null||l.BACK_IMAGE_ALIGN_VALUES.includes(e)},backImageVerticalAlign:{type:String,required:!1,validator:e=>e==null||l.BACK_IMAGE_VERTICAL_ALIGN_VALUES.includes(e)},backColor:{type:String,required:!1},border:{type:Boolean,default:!1},height:{type:String,required:!1}},S=a.defineComponent({name:"HLayout",props:h,inheritAttrs:!1,emits:["mounted","responsive-change","click","mousedown","mouseup","mouseover","mouseout"],setup(e,{emit:o}){const n=a.ref(null),u=a.ref(null),r=e.id?e.id:l.getUUID(),m=`hlayout:${r}`,s=l.useDevice(),c=a.ref(e.visible),v=a.computed(()=>c.value?"":"hison-display-none"),d=a.ref(e.border??!1),f=a.computed(()=>d.value?"hison-border":""),I=a.computed(()=>{const t={};if(e.backImageSrc&&(t.backgroundImage=`url(${e.backImageSrc})`,t.backgroundRepeat=e.backImageRepeat||"no-repeat",t.backgroundSize=e.backImageWidth||"auto",t.backgroundPosition=`${e.backImageAlign||"center"} ${e.backImageVerticalAlign||"center"}`),e.backColor){const i=l.getHexCodeFromColorText(e.backColor)||e.backColor;t.backgroundColor=i}return e.height&&(t.height=e.height),t}),g=a.ref([]),b=()=>{g.value=l.extractResponsiveClasses(l.toClassString(e.class)||"",s.value),l.getIndexSpecificClassNameFromClassList(g.value,"col")===-1&&g.value.push("hison-col-12"),l.addComponentNameToClass(g.value,"color","primary")},y=()=>{l.hisonCloser.component.layoutList[r]&&l.hisonCloser.component.layoutList[r].isHisonvueComponent&&console.warn(`[Hisonvue] The layout ID is at risk of being duplicated. ${r}`),l.registerReloadable(m,()=>{k(),a.nextTick(y)}),n.value&&(b(),u.value={isHisonvueComponent:!0,getId:()=>r,getType:()=>"layout",isVisible:()=>c.value,setVisible:t=>{c.value=t},getBackImageSrc:()=>e.backImageSrc||"",setBackImageSrc:t=>{n.value&&(n.value.style.backgroundImage=`url(${t})`)},getBackImageRepeat:()=>e.backImageRepeat||"",setBackImageRepeat:t=>{n.value&&(n.value.style.backgroundRepeat=t)},getBackImageWidth:()=>e.backImageWidth||"",setBackImageWidth:t=>{n.value&&(n.value.style.backgroundSize=t)},getBackImageAlign:()=>e.backImageAlign||"",setBackImageAlign:t=>{if(n.value){const i=e.backImageVerticalAlign||"center";n.value.style.backgroundPosition=`${t} ${i}`}},getBackImageVerticalAlign:()=>e.backImageVerticalAlign||"",setBackImageVerticalAlign:t=>{if(n.value){const i=e.backImageAlign||"center";n.value.style.backgroundPosition=`${i} ${t}`}},getBackColor:()=>e.backColor||"",setBackColor:t=>{n.value&&(n.value.style.backgroundColor=l.getHexCodeFromColorText(t)||t)},isBorder:()=>d.value,setBorder:t=>{d.value=t},getHeight:()=>e.height||"",setHeight:t=>{n.value&&(n.value.style.height=t)},reload:()=>l.reloadHisonComponent(m)},l.hisonCloser.component.layoutList[r]=u.value,o("mounted",u.value))},k=()=>{l.unregisterReloadable(m),delete l.hisonCloser.component.layoutList[r]};return a.onMounted(y),a.onBeforeUnmount(k),a.watch(s,t=>{b(),o("responsive-change",t)}),a.watch(()=>e.visible,t=>{const i=!!t;i!==c.value&&(c.value=i)}),a.watch(()=>e.border,t=>{const i=!!t;i!==d.value&&(d.value=i)}),a.watch(()=>e.class,()=>{b()}),{layoutRef:n,layoutMethods:a.computed(()=>a.unref(u)),props:e,responsiveClassList:g,visibleClass:v,borderClass:f,computedBackStyle:I}}});function A(e,o,n,u,r,m){return a.openBlock(),a.createElementBlock("div",{ref:"layoutRef",class:a.normalizeClass(["hison-layout",...e.responsiveClassList,e.visibleClass,e.borderClass]),style:a.normalizeStyle([e.props.style,e.computedBackStyle]),onClick:o[0]||(o[0]=s=>e.$emit("click",s,e.layoutMethods)),onMousedown:o[1]||(o[1]=s=>e.$emit("mousedown",s,e.layoutMethods)),onMouseup:o[2]||(o[2]=s=>e.$emit("mouseup",s,e.layoutMethods)),onMouseover:o[3]||(o[3]=s=>e.$emit("mouseover",s,e.layoutMethods)),onMouseout:o[4]||(o[4]=s=>e.$emit("mouseout",s,e.layoutMethods))},[o[6]||(o[6]=a.createElementVNode("div",{class:"hison-layout-frame-adjust"},null,-1)),a.renderSlot(e.$slots,"default",{},()=>[o[5]||(o[5]=a.createTextVNode("Hison Layout"))])],38)}const B=C._export_sfc(S,[["render",A]]);exports.default=B;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as A, ref as d, computed as m, onMounted as B, onBeforeUnmount as $, watch as b, unref as L, nextTick as M, createElementBlock as R, openBlock as V, normalizeStyle as p, normalizeClass as q, createElementVNode as E, renderSlot as H, createTextVNode as T } from "vue";
|
|
2
|
-
import { X as N, Y as U, Z as w, g as G, u as W, F as I, e as z, t as P, a as j, b as D, h as k, r as F, c as K, d as Y } from "./index-
|
|
2
|
+
import { X as N, Y as U, Z as w, g as G, u as W, F as I, e as z, t as P, a as j, b as D, h as k, r as F, c as K, d as Y } from "./index-9uY2HzIO.mjs";
|
|
3
3
|
import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
4
|
const X = {
|
|
5
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-Cp0RZa-k.js"),N=require("./setButtonCssEvent-CEQ0vsUw.js"),W=require("./_plugin-vue_export-helper-BHFhmbuH.js"),X={id:{type:String,required:!1},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},listItemStyle:{type:[String,Object,Array],required:!1},listItemInnerStyle:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!0},border:{type:Boolean,default:!1},listBorder:{type:Boolean,default:!1},backgroundType:{type:String,default:o.BackgroundType.empty,validator:n=>o.BACKGROUND_TYPE_VALUES.includes(n)},listBackgroundType:{type:String,default:o.BackgroundType.empty,validator:n=>o.BACKGROUND_TYPE_VALUES.includes(n)},listType:{type:String,default:"ul",validator:n=>n==="ul"||n==="ol"},bulletChar:{type:String,default:"•"},showMarker:{type:Boolean,default:!0},textList:{type:Array,default:()=>[]},addEvent:{type:Boolean,default:!1},tabIndex:{type:[Number,String],default:null,validator:n=>n===null||n===""||!isNaN(+n)&&isFinite(+n)}},Z=e.defineComponent({name:"HList",props:X,inheritAttrs:!1,emits:["mounted","responsive-change","click","mousedown","mouseup","mouseover","mouseout"],setup(n,{emit:l,slots:I}){const A=e.ref(null),i=e.ref([]),T=e.ref([]),a=n.id?n.id:o.getUUID(),d=`hlist:${a}`,r=o.useDevice(),v=e.ref(null),y=e.ref(n.visible),$=e.computed(()=>y.value?"":"hison-display-none"),m=e.ref(n.listType||"ul"),p=e.ref(n.bulletChar||"•"),k=e.ref(n.showMarker!==!1),g=e.ref(n.border??!1),h=e.ref(n.listBorder??!1),B=e.ref(n.backgroundType||o.BackgroundType.empty),b=e.ref(n.listBackgroundType||o.BackgroundType.empty),c=e.ref(!!n.addEvent),H=e.computed(()=>g.value?"hison-border":""),O=e.computed(()=>h.value?"hison-border":""),U=e.computed(()=>{switch(B.value){case o.BackgroundType.empty:return"hison-bg-empty";case o.BackgroundType.transparent:return"hison-bg-transparent";default:return"hison-bg-filled"}}),K=e.computed(()=>{switch(b.value){case o.BackgroundType.empty:return"hison-bg-empty";case o.BackgroundType.transparent:return"hison-bg-transparent";default:return"hison-bg-filled"}}),j=e.computed(()=>{var t;return((t=I.default)==null?void 0:t.call(I))??[]}),f=e.ref(n.tabIndex!==null&&n.tabIndex!==""?Number(n.tabIndex):null),R=(t,s=[])=>{if(!t||t.length===0)return s;for(const u of t)if(u.type!==e.Comment&&u.type!==e.Text)if(u.type===e.Fragment){const S=u.children;R(S,s)}else s.push(u);return s},L=e.computed(()=>R(j.value)),F=e.computed(()=>L.value.length>0),w=e.ref(Array.isArray(n.textList)?n.textList:[]),z=e.computed(()=>w.value??[]),P=e.computed(()=>m.value),E=e.ref([]),M=()=>{E.value=o.extractResponsiveClasses(o.toClassString(n.class)||"",r.value),o.addComponentNameToClass(E.value,"size",o.hisonCloser.componentStyle.size),o.addComponentNameToClass(E.value,"color","primary")},C=(t=!0)=>{e.nextTick(()=>{i.value.forEach(s=>{s&&(N.removeButtonCssEvent(s),t&&c.value&&N.addButtonCssEvent(s))})})},G=t=>{c.value&&l("click",t,v.value)},Y=(t,s)=>{c.value&&l(t,s,v.value)},D=()=>{o.hisonCloser.component.listList[a]&&o.hisonCloser.component.listList[a].isHisonvueComponent&&console.warn(`[Hisonvue] The list ID is at risk of being duplicated. ${a}`),o.registerReloadable(d,()=>{V(),e.nextTick(D)}),M(),C(!0),v.value={isHisonvueComponent:!0,getId:()=>a,getType:()=>"list",isVisible:()=>y.value,setVisible:t=>{y.value=t},getListType:()=>m.value,setListType:t=>{m.value=t},isShowMarker:()=>k.value,setShowMarker:t=>{k.value=t},getBulletChar:()=>p.value,setBulletChar:t=>{p.value=t},isBorder:()=>g.value,setBorder:t=>{g.value=t},isListBorder:()=>h.value,setListBorder:t=>{h.value=t},getBackgroundType:()=>B.value,setBackgroundType:t=>{B.value=t},getListBackgroundType:()=>b.value,setListBackgroundType:t=>{b.value=t},getTextList:()=>[...z.value],setTextList:t=>{w.value=Array.isArray(t)?t:[]},isAddEvent:()=>c.value,setAddEvent:t=>{c.value=!!t,C(!0)},getTabIndex:()=>f.value,setTabIndex:t=>{f.value=t!=null?Number(t):null},getListRowCount:()=>i.value.length,getListItem:t=>!Number.isInteger(t)||t<0||t>=i.value.length?null:i.value[t]??null,focus:(t=0)=>{var S;if(!c.value)return;const s=f.value;if(s==null||s===-1||!Number.isInteger(t)||t<0||t>=i.value.length)return;const u=i.value[t];(S=u==null?void 0:u.focus)==null||S.call(u)},reload:()=>o.reloadHisonComponent(d)},o.hisonCloser.component.listList[a]=v.value,l("mounted",v.value)},V=()=>{o.unregisterReloadable(d),i.value.forEach(t=>t&&N.removeButtonCssEvent(t)),delete o.hisonCloser.component.listList[a]};e.onMounted(D),e.onBeforeUnmount(V);const q=t=>{if(!t)return null;if(t instanceof Element)return t;const s=t.$el;return s instanceof Element?s:null},J=t=>{const s=q(t);s&&(i.value.includes(s)||i.value.push(s))},Q=t=>{const s=q(t);s&&(T.value.includes(s)||T.value.push(s))};return e.watch(r,t=>{M(),l("responsive-change",t)}),e.watch(()=>n.visible,t=>{const s=!!t;s!==y.value&&(y.value=s)}),e.watch(()=>n.border,t=>{const s=!!t;s!==g.value&&(g.value=s)}),e.watch(()=>n.listBorder,t=>{const s=!!t;s!==h.value&&(h.value=s)}),e.watch(()=>n.backgroundType,t=>{t&&t!==B.value&&(B.value=t)}),e.watch(()=>n.listBackgroundType,t=>{t&&t!==b.value&&(b.value=t)}),e.watch(()=>n.listType,t=>{const s=t==="ol"?"ol":"ul";s!==m.value&&(m.value=s)}),e.watch(()=>n.bulletChar,t=>{const s=t??"•";s!==p.value&&(p.value=s)}),e.watch(()=>n.showMarker,t=>{const s=t!==!1;s!==k.value&&(k.value=s)}),e.watch(()=>n.textList,t=>{w.value=Array.isArray(t)?t:[]}),e.watch(()=>n.addEvent,t=>{const s=!!t;s!==c.value&&(c.value=s,C(!0))}),e.watch(()=>n.tabIndex,t=>{const s=t===null||t===""?null:Number(t);s!==f.value&&(f.value=s)}),e.watch(()=>n.class,()=>{M()}),e.watch(L,()=>{C(!0)}),e.watch(w,()=>{C(!0)},{deep:!0}),{props:n,listRef:A,itemRefs:i,itemInnerRefs:T,renderTag:P,listType:m,bulletChar:p,showMarker:k,visibleClass:$,borderClass:H,listBorderClass:O,backgroundTypeClass:U,listBackgroundTypeClass:K,responsiveClassList:E,hasElementSlot:F,elementNodes:L,normalizedItems:z,tabIndex:f,setItemRef:J,setItemInnerRef:Q,onItemClick:G,emitItem:Y}}}),x=["tabindex"],_={key:0,class:"hison-list-marker"},ee={key:0},te={key:1},ne={class:"hison-list-content"},se=["tabindex"],le={key:0,class:"hison-list-marker"},oe={key:0},re={key:1},ae={class:"hison-list-content"},ie={key:1,class:"hison-list-item-text"};function ue(n,l,I,A,i,T){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hison-wrapper",...n.responsiveClassList,n.visibleClass])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.renderTag),{ref:"listRef",class:e.normalizeClass(["hison-list",n.borderClass,n.backgroundTypeClass]),style:e.normalizeStyle(n.props.style),onKeydown:[e.withKeys(e.withModifiers(n.onItemClick,["prevent"]),["enter"]),e.withKeys(e.withModifiers(n.onItemClick,["prevent"]),["space"])]},{default:e.withCtx(()=>[n.hasElementSlot?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.elementNodes,(a,d)=>(e.openBlock(),e.createElementBlock("li",{key:d,class:e.normalizeClass(["hison-list-item",n.listBorderClass,n.listBackgroundTypeClass]),style:e.normalizeStyle(n.props.listItemStyle),ref_for:!0,ref:n.setItemRef,tabindex:n.tabIndex??void 0,onClick:l[0]||(l[0]=(...r)=>n.onItemClick&&n.onItemClick(...r)),onMousedown:l[1]||(l[1]=r=>n.emitItem("mousedown",r)),onMouseup:l[2]||(l[2]=r=>n.emitItem("mouseup",r)),onMouseover:l[3]||(l[3]=r=>n.emitItem("mouseover",r)),onMouseout:l[4]||(l[4]=r=>n.emitItem("mouseout",r))},[e.createElementVNode("div",{class:"hison-list-item-inner",style:e.normalizeStyle(n.props.listItemInnerStyle),ref_for:!0,ref:n.setItemInnerRef},[n.showMarker?(e.openBlock(),e.createElementBlock("div",_,[n.listType==="ol"?(e.openBlock(),e.createElementBlock("span",ee,e.toDisplayString(d+1)+".",1)):(e.openBlock(),e.createElementBlock("span",te,e.toDisplayString(n.bulletChar),1))])):e.createCommentVNode("",!0),e.createElementVNode("div",ne,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a)))])],4)],46,x))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(n.normalizedItems,(a,d)=>(e.openBlock(),e.createElementBlock("li",{key:d,class:e.normalizeClass(["hison-list-item",n.listBorderClass,n.listBackgroundTypeClass]),ref_for:!0,ref:n.setItemRef,tabindex:n.tabIndex??void 0,onClick:l[5]||(l[5]=(...r)=>n.onItemClick&&n.onItemClick(...r)),onMousedown:l[6]||(l[6]=r=>n.emitItem("mousedown",r)),onMouseup:l[7]||(l[7]=r=>n.emitItem("mouseup",r)),onMouseover:l[8]||(l[8]=r=>n.emitItem("mouseover",r)),onMouseout:l[9]||(l[9]=r=>n.emitItem("mouseout",r))},[e.createElementVNode("div",{class:"hison-list-item-inner",style:e.normalizeStyle(n.props.listItemInnerStyle),ref_for:!0,ref:n.setItemInnerRef},[n.showMarker?(e.openBlock(),e.createElementBlock("div",le,[n.listType==="ol"?(e.openBlock(),e.createElementBlock("span",oe,e.toDisplayString(d+1)+".",1)):(e.openBlock(),e.createElementBlock("span",re,e.toDisplayString(n.bulletChar),1))])):e.createCommentVNode("",!0),e.createElementVNode("div",ae,[n.$slots.item?e.renderSlot(n.$slots,"item",{key:0,item:a,index:d}):(e.openBlock(),e.createElementBlock("span",ie,e.toDisplayString(String(a??"")),1))])],4)],42,se))),128))]),_:3},40,["class","style","onKeydown"]))],2)}const de=W._export_sfc(Z,[["render",ue]]);exports.default=de;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as ye, ref as o, computed as f, onMounted as ce, onBeforeUnmount as be, watch as r, Comment as ge, Text as pe, Fragment as U, nextTick as Y, createElementBlock as u, openBlock as i, normalizeClass as H, createBlock as J, resolveDynamicComponent as Q, withKeys as W, normalizeStyle as z, withModifiers as X, withCtx as he, renderList as Z, createElementVNode as D, createCommentVNode as x, toDisplayString as w, renderSlot as ke } from "vue";
|
|
2
|
-
import { B as _, f as c, g as Ie, u as Ce, e as Te, t as Be, b as ee, h as E, r as Le, c as Se, d as we } from "./index-
|
|
3
|
-
import { r as te, a as Ee } from "./setButtonCssEvent-
|
|
2
|
+
import { B as _, f as c, g as Ie, u as Ce, e as Te, t as Be, b as ee, h as E, r as Le, c as Se, d as we } from "./index-9uY2HzIO.mjs";
|
|
3
|
+
import { r as te, a as Ee } from "./setButtonCssEvent-C_OU9wiq.mjs";
|
|
4
4
|
import { _ as Me } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
5
5
|
const Ae = {
|
|
6
6
|
/**
|