centui 3.0.0 → 3.1.0
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/ActionBar-Bs5fkyFH.cjs +1 -0
- package/dist/ActionBar-CF1zMUMC.js +56 -0
- package/dist/ActivityIndicator-BOZRJBDn.cjs +1 -0
- package/dist/{RollerSuccess-CVEmS9gU.js → ActivityIndicator-Cp20c1E0.js} +30 -92
- package/dist/{Agree-DT46e5q5.cjs → Agree-ZswFiFNy.cjs} +1 -1
- package/dist/{Agree-yTGTi4e6.js → Agree-lAcOo38C.js} +2 -3
- package/dist/Amount-B2StZGGW.js +56 -0
- package/dist/Amount-CU7Oc4vv.cjs +1 -0
- package/dist/Bill-DDVs3Lu3.cjs +1 -0
- package/dist/Bill-qQ4LdkmR.js +58 -0
- package/dist/{Button-Blpwwbnw.cjs → Button-Bu8liJQE.cjs} +1 -1
- package/dist/{Button-BIi6CrwM.js → Button-D7e-cuA1.js} +5 -6
- package/dist/Captcha-BEF-de8-.cjs +1 -0
- package/dist/Captcha-CgpynYTc.js +283 -0
- package/dist/Cashier-CJLfQOXm.js +363 -0
- package/dist/Cashier-CLJngM0n.cjs +1 -0
- package/dist/{CellItem-YZD-BxKt.js → CellItem-BHEh4Cp-.js} +2 -3
- package/dist/{CellItem-T78DHako.cjs → CellItem-J0LkwZNL.cjs} +1 -1
- package/dist/Chart-BINJAx7V.js +135 -0
- package/dist/Chart-DJ0Q1g1P.cjs +1 -0
- package/dist/CheckBox-D5bCJUXD.js +55 -0
- package/dist/CheckBox-DDeCshDK.cjs +1 -0
- package/dist/CheckBoxBase-BIPGJ-TD.js +43 -0
- package/dist/CheckBoxBase-CobK6-tL.cjs +1 -0
- package/dist/CheckList-BsKo_Fl3.cjs +1 -0
- package/dist/{CheckList-Bfy3B-eN.js → CheckList-ViiCo4yi.js} +47 -91
- package/dist/{Codebox-D0UtCj11.js → Codebox-BLPrFnIv.js} +4 -5
- package/dist/Codebox-yLkdTU7w.cjs +1 -0
- package/dist/{DatePicker-B1AVbKhK.cjs → DatePicker-CCU6gqG3.cjs} +1 -1
- package/dist/{DatePicker-TAHuve5t.js → DatePicker-CYvPJatt.js} +2 -4
- package/dist/DetailItem-D6-zbZmd.js +21 -0
- package/dist/DetailItem-DDJXXao0.cjs +1 -0
- package/dist/Dialog-208_XUAL.cjs +1 -0
- package/dist/Dialog-Bb7Gth3j.js +148 -0
- package/dist/DropMenu-5TA_6bas.js +95 -0
- package/dist/DropMenu-D_ZMGOOi.cjs +1 -0
- package/dist/{Field-CseJzTZz.js → Field-0hdNWFNm.js} +1 -2
- package/dist/{FieldItem-Cc7bw5vU.js → FieldItem-D79w330m.js} +2 -3
- package/dist/{FieldItem-Dkpx5Kxk.cjs → FieldItem-UFKrl_5J.cjs} +1 -1
- package/dist/{Icon-jaEPn7d7.cjs → Icon-83WWqE5z.cjs} +1 -1
- package/dist/{Icon-dWGSK6Ou.js → Icon-BgCtu0ZV.js} +3 -5
- package/dist/ImageReader-DjshA_hh.cjs +1 -0
- package/dist/ImageReader-hUb5CEbV.js +122 -0
- package/dist/ImageViewer-BCEK4DOF.cjs +1 -0
- package/dist/ImageViewer-_dTRCIsV.js +68 -0
- package/dist/InputItem-DO5Yo_IH.cjs +1 -0
- package/dist/InputItem-yHsLFvKt.js +327 -0
- package/dist/Landscape-BsHyoM4N.cjs +1 -0
- package/dist/Landscape-Dd0abEy1.js +73 -0
- package/dist/LicensePlate-CTcAIbcb.js +201 -0
- package/dist/LicensePlate-CfwpVw0G.cjs +1 -0
- package/dist/NoticeBar-CV355FeO.cjs +1 -0
- package/dist/NoticeBar-G5aKL6VO.js +92 -0
- package/dist/NumberKeyboard-BWpxsbYt.cjs +1 -0
- package/dist/{NumberKeyboard-C7TRF5iC.js → NumberKeyboard-B_TJXxki.js} +77 -62
- package/dist/Picker-BOEGTBaN.cjs +1 -0
- package/dist/{Picker-Dam0LEcc.js → Picker-CA-JQ_OC.js} +168 -151
- package/dist/Popup-Ca1jPi0t.cjs +1 -0
- package/dist/Popup-qLk-BsRS.js +116 -0
- package/dist/{PopupTitleBar-nVurLaOe.js → PopupTitleBar-9P4RUMC1.js} +2 -3
- package/dist/{PopupTitleBar-B4vwxKC7.cjs → PopupTitleBar-Bfl49eYJ.cjs} +1 -1
- package/dist/Progress-CT-LHaQ0.cjs +1 -0
- package/dist/{Progress-CwIC6scr.js → Progress-Clet0W_n.js} +20 -22
- package/dist/Radio-B_MxJ65X.cjs +1 -0
- package/dist/{Radio-fsc7_N5K.js → Radio-DY-ZX0BP.js} +16 -14
- package/dist/{RadioGroup-CMPmk8X_.js → RadioGroup-B00aqM9e.js} +8 -6
- package/dist/RadioGroup-B6ukqnm5.cjs +1 -0
- package/dist/{RadioList-upQgua8Z.cjs → RadioList-D-9PITpr.cjs} +1 -1
- package/dist/{RadioList-CkerkQEY.js → RadioList-DNGsEzgf.js} +6 -8
- package/dist/ResultPage-DUs8ok5R.js +64 -0
- package/dist/ResultPage-YQWDaFmz.cjs +1 -0
- package/dist/{Roller-DFJ7jMV0.js → Roller-BznN57fL.js} +1 -2
- package/dist/RollerSuccess-BbMzNlkv.cjs +1 -0
- package/dist/RollerSuccess-CTh43Rh0.js +65 -0
- package/dist/Ruler-Bhf5J7hU.js +136 -0
- package/dist/Ruler-CEzB0oqG.cjs +1 -0
- package/dist/ScrollView-BNY62f7B.js +228 -0
- package/dist/ScrollView-BnadVBJC.cjs +1 -0
- package/dist/ScrollViewMore-BL1vpyMj.cjs +1 -0
- package/dist/ScrollViewMore-DBhoiI1X.js +54 -0
- package/dist/Selector-DOU8Af55.js +209 -0
- package/dist/Selector-DnFvOGbv.cjs +1 -0
- package/dist/{Skeleton-BG_j23KI.js → Skeleton-DqA5IxL5.js} +1 -2
- package/dist/Slider-BB2Nhpys.js +100 -0
- package/dist/Slider-vV7_nULf.cjs +1 -0
- package/dist/Stepper-BnDhL8IO.js +137 -0
- package/dist/Stepper-n_mc16V2.cjs +1 -0
- package/dist/Steps-BPQwab3T.js +157 -0
- package/dist/Steps-Dfpmgl8B.cjs +1 -0
- package/dist/SwiperItem-BY5cUoGn.cjs +1 -0
- package/dist/SwiperItem-BydyBdYU.js +323 -0
- package/dist/Switch-B1rsBY-M.js +31 -0
- package/dist/Switch-CghubImq.cjs +1 -0
- package/dist/TabPane-BCVsdptu.cjs +1 -0
- package/dist/TabPane-Q7oUFzmP.js +237 -0
- package/dist/TabPicker-BcL9assY.cjs +1 -0
- package/dist/TabPicker-BicPrto7.js +173 -0
- package/dist/Tag-C7ygxOwU.js +78 -0
- package/dist/Tag-CIA2npnD.cjs +1 -0
- package/dist/TextareaItem-Dl-PCLl-.js +168 -0
- package/dist/TextareaItem-Du5nl7tv.cjs +1 -0
- package/dist/{Tip-BFZSiRc1.js → Tip-DHPmevlv.js} +2 -3
- package/dist/{Tip-C3brAF9N.cjs → Tip-De_3tKtb.cjs} +1 -1
- package/dist/Transition-B-baX512.js +14 -0
- package/dist/Transition-Bwbqr4Xr.cjs +1 -0
- package/dist/WaterMark-CgkuQjv3.js +103 -0
- package/dist/WaterMark-M81jg6T5.cjs +1 -0
- package/dist/action-bar.cjs +1 -0
- package/dist/action-bar.d.ts +1 -0
- package/dist/action-bar.js +1 -0
- package/dist/{action-sheet-LJilF3EQ.cjs → action-sheet-BjaReHkr.cjs} +1 -1
- package/dist/{action-sheet-DKpi2GLQ.js → action-sheet-Da8dHevy.js} +15 -12
- package/dist/action-sheet.cjs +1 -1
- package/dist/action-sheet.js +1 -2
- package/dist/activity-indicator.cjs +1 -1
- package/dist/activity-indicator.js +4 -3
- package/dist/agree.cjs +1 -1
- package/dist/agree.js +1 -2
- package/dist/amount.cjs +1 -1
- package/dist/amount.js +1 -2
- package/dist/bill.cjs +1 -0
- package/dist/bill.d.ts +1 -0
- package/dist/bill.js +1 -0
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -2
- package/dist/captcha.cjs +1 -0
- package/dist/captcha.d.ts +1 -0
- package/dist/captcha.js +1 -0
- package/dist/cashier.cjs +1 -0
- package/dist/cashier.d.ts +1 -0
- package/dist/cashier.js +1 -0
- package/dist/cell-item.cjs +1 -1
- package/dist/cell-item.js +1 -2
- package/dist/chart.cjs +1 -0
- package/dist/chart.d.ts +1 -0
- package/dist/chart.js +1 -0
- package/dist/check-base.cjs +1 -1
- package/dist/check-base.js +1 -2
- package/dist/check.cjs +1 -1
- package/dist/check.js +3 -2
- package/dist/codebox.cjs +1 -1
- package/dist/codebox.js +1 -2
- package/dist/components/action-sheet/ActionSheet.vue.d.ts +5 -0
- package/dist/components/cashier/CashierChannel.vue.d.ts +4 -0
- package/dist/components/dialog/Dialog.vue.d.ts +10 -0
- package/dist/components/index.d.ts +2 -2
- package/dist/components/number-keyboard/KeyboardKey.vue.d.ts +3 -0
- package/dist/components/popup/PopupTitleBar.vue.d.ts +4 -0
- package/dist/components/swiper/Swiper.vue.d.ts +2 -2
- package/dist/cursor-BIPoNm8V.js +11 -0
- package/dist/cursor-tQE3LcbU.cjs +1 -0
- package/dist/date-picker.cjs +1 -1
- package/dist/date-picker.js +1 -2
- package/dist/detail-item.cjs +1 -0
- package/dist/detail-item.d.ts +1 -0
- package/dist/detail-item.js +1 -0
- package/dist/dialog-C38EDWGJ.cjs +1 -0
- package/dist/dialog-DdNA6YSe.js +91 -0
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +2 -1
- package/dist/drop-menu.cjs +1 -0
- package/dist/drop-menu.d.ts +1 -0
- package/dist/drop-menu.js +1 -0
- package/dist/field-item.cjs +1 -1
- package/dist/field-item.js +1 -2
- package/dist/field.js +1 -2
- package/dist/icon.cjs +1 -1
- package/dist/icon.js +1 -2
- package/dist/image-reader.cjs +1 -0
- package/dist/image-reader.d.ts +1 -0
- package/dist/image-reader.js +1 -0
- package/dist/image-viewer.cjs +1 -0
- package/dist/image-viewer.d.ts +1 -0
- package/dist/image-viewer.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +61 -2669
- package/dist/input-item.cjs +1 -1
- package/dist/input-item.js +1 -2
- package/dist/landscape.cjs +1 -0
- package/dist/landscape.d.ts +1 -0
- package/dist/landscape.js +1 -0
- package/dist/license-plate.cjs +1 -0
- package/dist/license-plate.d.ts +1 -0
- package/dist/license-plate.js +1 -0
- package/dist/notice-bar.cjs +1 -1
- package/dist/notice-bar.js +1 -2
- package/dist/number-keyboard.cjs +1 -1
- package/dist/number-keyboard.js +1 -2
- package/dist/picker.cjs +1 -1
- package/dist/picker.js +1 -2
- package/dist/popup.cjs +1 -1
- package/dist/popup.js +2 -2
- package/dist/progress.cjs +1 -1
- package/dist/progress.js +1 -2
- package/dist/radio-list.cjs +1 -1
- package/dist/radio-list.js +1 -2
- package/dist/radio.cjs +1 -1
- package/dist/radio.js +2 -2
- package/dist/result-page.cjs +1 -0
- package/dist/result-page.d.ts +1 -0
- package/dist/result-page.js +1 -0
- package/dist/ruler.cjs +1 -0
- package/dist/ruler.d.ts +1 -0
- package/dist/ruler.js +1 -0
- package/dist/scroll-view.cjs +1 -1
- package/dist/scroll-view.js +3 -2
- package/dist/selector.cjs +1 -0
- package/dist/selector.d.ts +1 -0
- package/dist/selector.js +1 -0
- package/dist/{shared-BtSkmaWC.js → shared-C9XlLe7F.js} +1 -2
- package/dist/skeleton.js +1 -2
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -2
- package/dist/stepper.cjs +1 -1
- package/dist/stepper.js +1 -2
- package/dist/steps.cjs +1 -0
- package/dist/steps.d.ts +1 -0
- package/dist/steps.js +1 -0
- package/dist/swiper.cjs +1 -1
- package/dist/swiper.js +1 -2
- package/dist/switch.cjs +1 -1
- package/dist/switch.js +1 -2
- package/dist/tab-picker.cjs +1 -0
- package/dist/tab-picker.d.ts +1 -0
- package/dist/tab-picker.js +1 -0
- package/dist/tabs.cjs +1 -0
- package/dist/tabs.d.ts +1 -0
- package/dist/tabs.js +1 -0
- package/dist/tag.cjs +1 -1
- package/dist/tag.js +1 -2
- package/dist/textarea-item.cjs +1 -0
- package/dist/textarea-item.d.ts +1 -0
- package/dist/textarea-item.js +1 -0
- package/dist/tip.cjs +1 -1
- package/dist/tip.js +1 -2
- package/dist/{toast-DX-RoB7Q.js → toast-ByIFvpMs.js} +6 -6
- package/dist/toast-C1K2_cOo.cjs +1 -0
- package/dist/toast.cjs +1 -1
- package/dist/toast.js +1 -2
- package/dist/transition.cjs +1 -0
- package/dist/transition.d.ts +1 -0
- package/dist/transition.js +1 -0
- package/dist/water-mark.cjs +1 -0
- package/dist/water-mark.d.ts +1 -0
- package/dist/water-mark.js +1 -0
- package/package.json +105 -4
- package/dist/Amount-De-oObat.cjs +0 -1
- package/dist/Amount-wOtRYOdx.js +0 -62
- package/dist/CheckBoxBase-BDsytL_r.cjs +0 -1
- package/dist/CheckBoxBase-BjyVzGqj.js +0 -40
- package/dist/CheckList-DEmLmccw.cjs +0 -1
- package/dist/Codebox-Cgj7wyzd.cjs +0 -1
- package/dist/InputItem-EJ4Y3tpU.cjs +0 -1
- package/dist/InputItem-bhFtp97z.js +0 -322
- package/dist/NoticeBar-DSf_EjTL.cjs +0 -1
- package/dist/NoticeBar-PEYcjXwD.js +0 -84
- package/dist/NumberKeyboard-BX0c0l2r.cjs +0 -1
- package/dist/Picker-D-TPtSxf.cjs +0 -1
- package/dist/Popup-Cm4BuaOo.cjs +0 -1
- package/dist/Popup-DPYBBL95.js +0 -116
- package/dist/Progress-DukssNvl.cjs +0 -1
- package/dist/Radio-ZHivLdvi.cjs +0 -1
- package/dist/RadioGroup-BR_jSDR4.cjs +0 -1
- package/dist/RollerSuccess--JecJ7bz.cjs +0 -1
- package/dist/ScrollViewMore-BWph-i1-.cjs +0 -1
- package/dist/ScrollViewMore-BgYJx-TP.js +0 -278
- package/dist/Slider-D3wrE8hn.cjs +0 -1
- package/dist/Slider-DteN8p-L.js +0 -95
- package/dist/Stepper-1EOk4pCY.js +0 -127
- package/dist/Stepper-BJr4I6_8.cjs +0 -1
- package/dist/SwiperItem-B6TgjCsM.cjs +0 -1
- package/dist/SwiperItem-CKd-XKT7.js +0 -337
- package/dist/Switch-B6DvVj2p.js +0 -30
- package/dist/Switch-BVPjF8CM.cjs +0 -1
- package/dist/Tag-CPv77lC8.cjs +0 -1
- package/dist/Tag-bs5j40pF.js +0 -66
- package/dist/dialog-0-E4Vyc-.cjs +0 -1
- package/dist/dialog-DHIZ2SMK.js +0 -227
- package/dist/toast-CAeyMc5r.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./Button-Bu8liJQE.cjs");let t=require("vue");var n={class:`cu-action-bar`},r={class:`cu-action-bar-container`},i={key:0,class:`cu-action-bar-text`},a={class:`cu-action-bar-group`},o=(0,t.defineComponent)({name:`cu-action-bar`,__name:`ActionBar`,props:{actions:{default:()=>[]}},emits:[`click`],setup(o,{emit:s}){let c=o,l=s,u=(0,t.useSlots)(),d=(0,t.computed)(()=>c.actions.slice(0,2));function f(e){if(e.type===t.Comment)return!0;if(e.type===t.Text)return!String(e.children).trim();if(e.type===t.Fragment){let t=e.children;return!Array.isArray(t)||t.every(f)}return!1}let p=(0,t.computed)(()=>{let e=u.default;return e?e().some(e=>!f(e)):!1});function m(e,t){t.onClick?.(e,t),l(`click`,e,t)}return(o,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,n,[(0,t.createElementVNode)(`div`,r,[p.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,i,[(0,t.renderSlot)(o.$slots,`default`)])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,a,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(d.value,(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(e.t,{key:r,class:`cu-action-bar-button`,type:n.type||(n.disabled?`disabled`:`primary`),plain:n.plain||r!==d.value.length-1,round:n.round,inactive:n.inactive,loading:n.loading,icon:n.icon,"icon-svg":n.iconSvg,onClick:e=>m(e,n)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n.text),1)]),_:2},1032,[`type`,`plain`,`round`,`inactive`,`loading`,`icon`,`icon-svg`,`onClick`]))),128))])])]))}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { t as e } from "./Button-D7e-cuA1.js";
|
|
2
|
+
import { Comment as t, Fragment as n, Text as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, defineComponent as u, openBlock as d, renderList as f, renderSlot as p, toDisplayString as m, useSlots as h, withCtx as g } from "vue";
|
|
3
|
+
// src/components/action-bar/ActionBar.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var _ = { class: "cu-action-bar" }, v = { class: "cu-action-bar-container" }, y = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "cu-action-bar-text"
|
|
7
|
+
}, b = { class: "cu-action-bar-group" }, x = /* @__PURE__ */ u({
|
|
8
|
+
name: "cu-action-bar",
|
|
9
|
+
__name: "ActionBar",
|
|
10
|
+
props: { actions: { default: () => [] } },
|
|
11
|
+
emits: ["click"],
|
|
12
|
+
setup(u, { emit: x }) {
|
|
13
|
+
let S = u, C = x, w = h(), T = i(() => S.actions.slice(0, 2));
|
|
14
|
+
function E(e) {
|
|
15
|
+
if (e.type === t) return !0;
|
|
16
|
+
if (e.type === r) return !String(e.children).trim();
|
|
17
|
+
if (e.type === n) {
|
|
18
|
+
let t = e.children;
|
|
19
|
+
return !Array.isArray(t) || t.every(E);
|
|
20
|
+
}
|
|
21
|
+
return !1;
|
|
22
|
+
}
|
|
23
|
+
let D = i(() => {
|
|
24
|
+
let e = w.default;
|
|
25
|
+
return e ? e().some((e) => !E(e)) : !1;
|
|
26
|
+
});
|
|
27
|
+
function O(e, t) {
|
|
28
|
+
t.onClick?.(e, t), C("click", e, t);
|
|
29
|
+
}
|
|
30
|
+
return (t, r) => (d(), s("div", _, [c("div", v, [D.value ? (d(), s("div", y, [p(t.$slots, "default")])) : o("", !0), c("div", b, [(d(!0), s(n, null, f(T.value, (t, n) => (d(), a(e, {
|
|
31
|
+
key: n,
|
|
32
|
+
class: "cu-action-bar-button",
|
|
33
|
+
type: t.type || (t.disabled ? "disabled" : "primary"),
|
|
34
|
+
plain: t.plain || n !== T.value.length - 1,
|
|
35
|
+
round: t.round,
|
|
36
|
+
inactive: t.inactive,
|
|
37
|
+
loading: t.loading,
|
|
38
|
+
icon: t.icon,
|
|
39
|
+
"icon-svg": t.iconSvg,
|
|
40
|
+
onClick: (e) => O(e, t)
|
|
41
|
+
}, {
|
|
42
|
+
default: g(() => [l(m(t.text), 1)]),
|
|
43
|
+
_: 2
|
|
44
|
+
}, 1032, [
|
|
45
|
+
"type",
|
|
46
|
+
"plain",
|
|
47
|
+
"round",
|
|
48
|
+
"inactive",
|
|
49
|
+
"loading",
|
|
50
|
+
"icon",
|
|
51
|
+
"icon-svg",
|
|
52
|
+
"onClick"
|
|
53
|
+
]))), 128))])])]));
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export { x as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./Roller-DALhjhfg.cjs"),t=require("./Icon-83WWqE5z.cjs");let n=require("vue");var r=(0,n.defineComponent)({name:`cu-activity-indicator-spinning`,__name:`Spinning`,props:{size:{default:70},color:{default:`dark`}},setup(e){return(r,i)=>((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{class:(0,n.normalizeClass)([`cu-activity-indicator-spinning`,{dark:e.color===`dark`}])},[(0,n.createVNode)(t.t,{class:`cu-activity-indicator-svg`,name:`spinner`,style:(0,n.normalizeStyle)({width:`${e.size}px`,height:`${e.size}px`})},null,8,[`style`])],2))}}),i=[`cx`,`cy`,`r`],a=[`values`],o=[`values`],s=(0,n.defineComponent)({name:`cu-activity-indicator-carousel-circle`,__name:`CarouselCircle`,props:{size:{default:30},index:{default:0},animateValues:{default:()=>[]}},setup(e){let t=e,r=(0,n.computed)(()=>t.index*t.size*1.5+t.size/2),s=(0,n.computed)(()=>t.animateValues.join(`;`)),c=(0,n.computed)(()=>t.animateValues.map(e=>e*t.size/2).join(`;`));return(t,l)=>((0,n.openBlock)(),(0,n.createElementBlock)(`circle`,{cx:r.value,cy:e.size/2,r:e.size/2},[(0,n.createElementVNode)(`animate`,{attributeName:`fill-opacity`,attributeType:`XML`,begin:`0s`,dur:`1s`,values:s.value,calcMode:`linear`,repeatCount:`indefinite`},null,8,a),(0,n.createElementVNode)(`animate`,{attributeName:`r`,attributeType:`XML`,begin:`0s`,dur:`1s`,values:c.value,calcMode:`linear`,repeatCount:`indefinite`},null,8,o)],8,i))}}),c={class:`cu-activity-indicator-carousel`},l=[`viewBox`,`fill`],u=(0,n.defineComponent)({name:`cu-activity-indicator-carousel`,__name:`Carousel`,props:{size:{default:30},color:{default:`#2F86F6`}},setup(e){let t=e,r=[[1,.8,.6,.6,.6,.8,1],[.6,.8,1,.8,.6,.6,.6],[.6,.6,.6,.8,1,.8,.6]],i=(0,n.computed)(()=>{let e=r.length;return e*t.size+(e-1)*t.size/2}),a=(0,n.computed)(()=>`0 0 ${i.value} ${t.size}`);return(t,o)=>((0,n.openBlock)(),(0,n.createElementBlock)(`div`,c,[((0,n.openBlock)(),(0,n.createElementBlock)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:a.value,fill:e.color,style:(0,n.normalizeStyle)({width:`${i.value}px`,height:`${e.size}px`}),class:`cu-activity-indicator-svg carouseling`},[((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(r,(t,r)=>(0,n.createVNode)(s,{key:`carousel-circle-${r}`,size:e.size,index:r,"animate-values":t},null,8,[`size`,`index`,`animate-values`])),64))],12,l))]))}}),d={class:`indicator-loading`},f=(0,n.defineComponent)({name:`cu-activity-indicator`,__name:`ActivityIndicator`,props:{type:{default:`roller`},size:{default:70},width:{default:void 0},color:{default:void 0},textColor:{default:`#999`},textSize:{default:void 0},vertical:{type:Boolean,default:!1}},setup(t){let i=t,a=(0,n.computed)(()=>i.color??(i.type===`spinner`?`dark`:`#2F86F6`));return(i,o)=>((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{class:(0,n.normalizeClass)([`cu-activity-indicator`,t.type])},[(0,n.createElementVNode)(`div`,{class:(0,n.normalizeClass)([`indicator-container`,{vertical:t.vertical}])},[(0,n.createElementVNode)(`div`,d,[t.type===`roller`?((0,n.openBlock)(),(0,n.createBlock)(e.t,{key:0,size:t.size,color:a.value,width:t.width},null,8,[`size`,`color`,`width`])):t.type===`spinner`?((0,n.openBlock)(),(0,n.createBlock)(r,{key:1,size:t.size,color:a.value},null,8,[`size`,`color`])):t.type===`carousel`?((0,n.openBlock)(),(0,n.createBlock)(u,{key:2,size:t.size,color:a.value},null,8,[`size`,`color`])):(0,n.createCommentVNode)(``,!0)]),i.$slots.default?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,{key:0,style:(0,n.normalizeStyle)({fontSize:`${t.textSize}px`,color:t.textColor}),class:`cu-activity-indicator-text indicator-text`},[(0,n.renderSlot)(i.$slots,`default`)],4)):(0,n.createCommentVNode)(``,!0)],2)],2))}});Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return f}});
|
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, normalizeClass as u, normalizeStyle as d, openBlock as f, renderList as p, renderSlot as m
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var g = /* @__PURE__ */ l({
|
|
1
|
+
import { t as e } from "./Roller-BznN57fL.js";
|
|
2
|
+
import { t } from "./Icon-BgCtu0ZV.js";
|
|
3
|
+
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, normalizeClass as u, normalizeStyle as d, openBlock as f, renderList as p, renderSlot as m } from "vue";
|
|
4
|
+
// src/components/activity-indicator/Spinning.vue
|
|
5
|
+
var h = /* @__PURE__ */ l({
|
|
7
6
|
name: "cu-activity-indicator-spinning",
|
|
8
7
|
__name: "Spinning",
|
|
9
8
|
props: {
|
|
10
9
|
size: { default: 70 },
|
|
11
10
|
color: { default: "dark" }
|
|
12
11
|
},
|
|
13
|
-
setup(
|
|
14
|
-
return (n, r) => (f(), o("div", { class: u(["cu-activity-indicator-spinning", { dark:
|
|
12
|
+
setup(e) {
|
|
13
|
+
return (n, r) => (f(), o("div", { class: u(["cu-activity-indicator-spinning", { dark: e.color === "dark" }]) }, [c(t, {
|
|
15
14
|
class: "cu-activity-indicator-svg",
|
|
16
15
|
name: "spinner",
|
|
17
16
|
style: d({
|
|
18
|
-
width: `${
|
|
19
|
-
height: `${
|
|
17
|
+
width: `${e.size}px`,
|
|
18
|
+
height: `${e.size}px`
|
|
20
19
|
})
|
|
21
20
|
}, null, 8, ["style"])], 2));
|
|
22
21
|
}
|
|
23
|
-
}),
|
|
22
|
+
}), g = [
|
|
24
23
|
"cx",
|
|
25
24
|
"cy",
|
|
26
25
|
"r"
|
|
27
|
-
],
|
|
26
|
+
], _ = ["values"], v = ["values"], y = /* @__PURE__ */ l({
|
|
28
27
|
name: "cu-activity-indicator-carousel-circle",
|
|
29
28
|
__name: "CarouselCircle",
|
|
30
29
|
props: {
|
|
@@ -46,7 +45,7 @@ var g = /* @__PURE__ */ l({
|
|
|
46
45
|
values: i.value,
|
|
47
46
|
calcMode: "linear",
|
|
48
47
|
repeatCount: "indefinite"
|
|
49
|
-
}, null, 8,
|
|
48
|
+
}, null, 8, _), s("animate", {
|
|
50
49
|
attributeName: "r",
|
|
51
50
|
attributeType: "XML",
|
|
52
51
|
begin: "0s",
|
|
@@ -54,9 +53,9 @@ var g = /* @__PURE__ */ l({
|
|
|
54
53
|
values: a.value,
|
|
55
54
|
calcMode: "linear",
|
|
56
55
|
repeatCount: "indefinite"
|
|
57
|
-
}, null, 8,
|
|
56
|
+
}, null, 8, v)], 8, g));
|
|
58
57
|
}
|
|
59
|
-
}),
|
|
58
|
+
}), b = { class: "cu-activity-indicator-carousel" }, x = ["viewBox", "fill"], S = /* @__PURE__ */ l({
|
|
60
59
|
name: "cu-activity-indicator-carousel",
|
|
61
60
|
__name: "Carousel",
|
|
62
61
|
props: {
|
|
@@ -96,7 +95,7 @@ var g = /* @__PURE__ */ l({
|
|
|
96
95
|
let e = i.length;
|
|
97
96
|
return e * t.size + (e - 1) * t.size / 2;
|
|
98
97
|
}), s = r(() => `0 0 ${a.value} ${t.size}`);
|
|
99
|
-
return (t, r) => (f(), o("div",
|
|
98
|
+
return (t, r) => (f(), o("div", b, [(f(), o("svg", {
|
|
100
99
|
xmlns: "http://www.w3.org/2000/svg",
|
|
101
100
|
viewBox: s.value,
|
|
102
101
|
fill: e.color,
|
|
@@ -105,7 +104,7 @@ var g = /* @__PURE__ */ l({
|
|
|
105
104
|
height: `${e.size}px`
|
|
106
105
|
}),
|
|
107
106
|
class: "cu-activity-indicator-svg carouseling"
|
|
108
|
-
}, [(f(), o(n, null, p(i, (t, n) => c(
|
|
107
|
+
}, [(f(), o(n, null, p(i, (t, n) => c(y, {
|
|
109
108
|
key: `carousel-circle-${n}`,
|
|
110
109
|
size: e.size,
|
|
111
110
|
index: n,
|
|
@@ -114,9 +113,9 @@ var g = /* @__PURE__ */ l({
|
|
|
114
113
|
"size",
|
|
115
114
|
"index",
|
|
116
115
|
"animate-values"
|
|
117
|
-
])), 64))], 12,
|
|
116
|
+
])), 64))], 12, x))]));
|
|
118
117
|
}
|
|
119
|
-
}),
|
|
118
|
+
}), C = { class: "indicator-loading" }, w = /* @__PURE__ */ l({
|
|
120
119
|
name: "cu-activity-indicator",
|
|
121
120
|
__name: "ActivityIndicator",
|
|
122
121
|
props: {
|
|
@@ -131,94 +130,33 @@ var g = /* @__PURE__ */ l({
|
|
|
131
130
|
default: !1
|
|
132
131
|
}
|
|
133
132
|
},
|
|
134
|
-
setup(
|
|
135
|
-
let n =
|
|
136
|
-
return (n, r) => (f(), o("div", { class: u(["cu-activity-indicator",
|
|
133
|
+
setup(t) {
|
|
134
|
+
let n = t, c = r(() => n.color ?? (n.type === "spinner" ? "dark" : "#2F86F6"));
|
|
135
|
+
return (n, r) => (f(), o("div", { class: u(["cu-activity-indicator", t.type]) }, [s("div", { class: u(["indicator-container", { vertical: t.vertical }]) }, [s("div", C, [t.type === "roller" ? (f(), i(e, {
|
|
137
136
|
key: 0,
|
|
138
|
-
size:
|
|
137
|
+
size: t.size,
|
|
139
138
|
color: c.value,
|
|
140
|
-
width:
|
|
139
|
+
width: t.width
|
|
141
140
|
}, null, 8, [
|
|
142
141
|
"size",
|
|
143
142
|
"color",
|
|
144
143
|
"width"
|
|
145
|
-
])) :
|
|
144
|
+
])) : t.type === "spinner" ? (f(), i(h, {
|
|
146
145
|
key: 1,
|
|
147
|
-
size:
|
|
146
|
+
size: t.size,
|
|
148
147
|
color: c.value
|
|
149
|
-
}, null, 8, ["size", "color"])) :
|
|
148
|
+
}, null, 8, ["size", "color"])) : t.type === "carousel" ? (f(), i(S, {
|
|
150
149
|
key: 2,
|
|
151
|
-
size:
|
|
150
|
+
size: t.size,
|
|
152
151
|
color: c.value
|
|
153
152
|
}, null, 8, ["size", "color"])) : a("", !0)]), n.$slots.default ? (f(), o("div", {
|
|
154
153
|
key: 0,
|
|
155
154
|
style: d({
|
|
156
|
-
fontSize: `${
|
|
157
|
-
color:
|
|
155
|
+
fontSize: `${t.textSize}px`,
|
|
156
|
+
color: t.textColor
|
|
158
157
|
}),
|
|
159
158
|
class: "cu-activity-indicator-text indicator-text"
|
|
160
159
|
}, [m(n.$slots, "default")], 4)) : a("", !0)], 2)], 2));
|
|
161
160
|
}
|
|
162
|
-
}), E = { class: "cu-activity-indicator-rolling-success" }, D = {
|
|
163
|
-
key: 0,
|
|
164
|
-
name: "circle",
|
|
165
|
-
slot: "circle"
|
|
166
|
-
}, O = /* @__PURE__ */ l({
|
|
167
|
-
name: "cu-activity-indicator-rolling-success",
|
|
168
|
-
__name: "RollerSuccess",
|
|
169
|
-
props: {
|
|
170
|
-
isSuccess: {
|
|
171
|
-
type: Boolean,
|
|
172
|
-
default: !0
|
|
173
|
-
},
|
|
174
|
-
size: { default: 70 },
|
|
175
|
-
color: { default: "#28AA8F" },
|
|
176
|
-
strokeWidth: { default: 8 }
|
|
177
|
-
},
|
|
178
|
-
setup(e) {
|
|
179
|
-
return (n, r) => (f(), o("div", E, [c(t, {
|
|
180
|
-
size: e.size,
|
|
181
|
-
width: e.strokeWidth,
|
|
182
|
-
fill: "#FFF6F1",
|
|
183
|
-
"border-color": "transparent"
|
|
184
|
-
}, {
|
|
185
|
-
default: h(() => [e.isSuccess ? (f(), o("g", D, [...r[0] ||= [s("circle", {
|
|
186
|
-
class: "success",
|
|
187
|
-
cx: "50",
|
|
188
|
-
cy: "50",
|
|
189
|
-
fill: "#FFF6F1",
|
|
190
|
-
stroke: "none",
|
|
191
|
-
r: "40"
|
|
192
|
-
}, null, -1)]])) : a("", !0), e.isSuccess ? (f(), o("svg", {
|
|
193
|
-
key: 1,
|
|
194
|
-
viewBox: "0 0 100 100",
|
|
195
|
-
preserveAspectRatio: "xMidYMid",
|
|
196
|
-
class: "right",
|
|
197
|
-
style: d({ transform: `translate(-50%, -50%) scale(${e.size / 70})` })
|
|
198
|
-
}, [s("g", null, [s("line", {
|
|
199
|
-
x1: "32",
|
|
200
|
-
y1: "47",
|
|
201
|
-
x2: "45",
|
|
202
|
-
y2: "62",
|
|
203
|
-
style: d({
|
|
204
|
-
strokeWidth: e.strokeWidth,
|
|
205
|
-
stroke: e.color
|
|
206
|
-
}),
|
|
207
|
-
"stroke-dasharray": "20"
|
|
208
|
-
}, null, 4), s("line", {
|
|
209
|
-
x1: "42",
|
|
210
|
-
y1: "62",
|
|
211
|
-
x2: "68.4",
|
|
212
|
-
y2: "40",
|
|
213
|
-
style: d({
|
|
214
|
-
strokeWidth: e.strokeWidth,
|
|
215
|
-
stroke: e.color
|
|
216
|
-
}),
|
|
217
|
-
"stroke-dasharray": "35"
|
|
218
|
-
}, null, 4)])], 4)) : a("", !0)]),
|
|
219
|
-
_: 1
|
|
220
|
-
}, 8, ["size", "width"])]));
|
|
221
|
-
}
|
|
222
161
|
});
|
|
223
|
-
|
|
224
|
-
export { g as i, T as n, C as r, O as t };
|
|
162
|
+
export { S as n, h as r, w as t };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./Icon-
|
|
1
|
+
const e=require("./Icon-83WWqE5z.cjs");let t=require("vue");var n={class:`cu-agree-icon-container`},r={key:0},i={key:1},a={class:`cu-agree-content`},o=(0,t.defineComponent)({name:`cu-agree`,__name:`Agree`,props:{modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{default:`md`},iconType:{default:`circle`}},emits:[`update:modelValue`,`change`],setup(o,{emit:s}){let c=o,l=s;function u(e){c.disabled||(l(`update:modelValue`,!c.modelValue),l(`change`,e))}return(s,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`cu-agree`,[o.disabled?`disabled`:``]])},[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`cu-agree-icon`,[o.modelValue?`checked`:``]]),onClick:c[0]||=e=>u(e)},[(0,t.createElementVNode)(`div`,n,[(0,t.renderSlot)(s.$slots,`icon`,{checked:o.modelValue},()=>[o.iconType===`square`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,r,[(0,t.createVNode)(e.t,{name:`square-checked`,size:o.size},null,8,[`size`]),(0,t.createVNode)(e.t,{name:`square-check`,size:o.size},null,8,[`size`])])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,i,[(0,t.createVNode)(e.t,{name:`checked`,size:o.size},null,8,[`size`]),(0,t.createVNode)(e.t,{name:`check`,size:o.size},null,8,[`size`])]))])])],2),(0,t.createElementVNode)(`div`,a,[(0,t.renderSlot)(s.$slots,`default`)])],2))}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "./Icon-
|
|
1
|
+
import { t as e } from "./Icon-BgCtu0ZV.js";
|
|
2
2
|
import { createElementBlock as t, createElementVNode as n, createVNode as r, defineComponent as i, normalizeClass as a, openBlock as o, renderSlot as s } from "vue";
|
|
3
|
-
|
|
3
|
+
// src/components/agree/Agree.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var c = { class: "cu-agree-icon-container" }, l = { key: 0 }, u = { key: 1 }, d = { class: "cu-agree-content" }, f = /* @__PURE__ */ i({
|
|
5
5
|
name: "cu-agree",
|
|
6
6
|
__name: "Agree",
|
|
@@ -40,5 +40,4 @@ var c = { class: "cu-agree-icon-container" }, l = { key: 0 }, u = { key: 1 }, d
|
|
|
40
40
|
}, null, 8, ["size"])]))])])], 2), n("div", d, [s(f.$slots, "default")])], 2));
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
|
-
//#endregion
|
|
44
43
|
export { f as t };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Fragment as e, computed as t, createElementBlock as n, createTextVNode as r, defineComponent as i, normalizeClass as a, onBeforeUnmount as o, onMounted as s, openBlock as c, ref as l, toDisplayString as u, watch as d } from "vue";
|
|
2
|
+
import { formatNumberWithSeparator as f, numberToChineseCapital as p, toFixedPrecision as m } from "@centui/core";
|
|
3
|
+
import { Animate as h } from "@centui/core/web";
|
|
4
|
+
// src/components/amount/Amount.vue
|
|
5
|
+
var g = /* @__PURE__ */ i({
|
|
6
|
+
name: "cu-amount",
|
|
7
|
+
__name: "Amount",
|
|
8
|
+
props: {
|
|
9
|
+
value: { default: 0 },
|
|
10
|
+
precision: { default: 2 },
|
|
11
|
+
isRoundUp: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: !0
|
|
14
|
+
},
|
|
15
|
+
hasSeparator: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: !1
|
|
18
|
+
},
|
|
19
|
+
separator: { default: "," },
|
|
20
|
+
isAnimated: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: !1
|
|
23
|
+
},
|
|
24
|
+
transition: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: !1
|
|
27
|
+
},
|
|
28
|
+
isCapital: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: !1
|
|
31
|
+
},
|
|
32
|
+
duration: { default: 1e3 }
|
|
33
|
+
},
|
|
34
|
+
setup(i) {
|
|
35
|
+
let g = i, _ = l(0), v = l(!1), y = 0, b = t(() => g.precision > 0 ? g.precision : 0), x = t(() => {
|
|
36
|
+
let e = m(_.value, b.value, g.isRoundUp);
|
|
37
|
+
return g.hasSeparator ? f(e, g.separator) : e;
|
|
38
|
+
}), S = t(() => p(m(_.value, 4, g.isRoundUp)));
|
|
39
|
+
d(() => g.value, (e, t) => {
|
|
40
|
+
v.value && (g.isAnimated || g.transition) ? C(t, e) : _.value = e;
|
|
41
|
+
}, { immediate: !0 }), s(() => {
|
|
42
|
+
v.value = !0;
|
|
43
|
+
}), o(() => {
|
|
44
|
+
y &&= (h.stop(y), 0);
|
|
45
|
+
});
|
|
46
|
+
function C(e = 0, t = 0) {
|
|
47
|
+
y &&= (h.stop(y), 0), y = h.start((n) => {
|
|
48
|
+
n === 1 ? _.value = t : _.value = e + (t - e) * n;
|
|
49
|
+
}, () => !0, () => {
|
|
50
|
+
y = 0;
|
|
51
|
+
}, g.duration);
|
|
52
|
+
}
|
|
53
|
+
return (t, o) => (c(), n("span", { class: a(["cu-amount", { numerical: !i.isCapital }]) }, [i.isCapital ? (c(), n(e, { key: 1 }, [r(u(S.value), 1)], 64)) : (c(), n(e, { key: 0 }, [r(u(x.value), 1)], 64))], 2));
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export { g as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e=require("vue"),t=require("@centui/core"),n=require("@centui/core/web");var r=(0,e.defineComponent)({name:`cu-amount`,__name:`Amount`,props:{value:{default:0},precision:{default:2},isRoundUp:{type:Boolean,default:!0},hasSeparator:{type:Boolean,default:!1},separator:{default:`,`},isAnimated:{type:Boolean,default:!1},transition:{type:Boolean,default:!1},isCapital:{type:Boolean,default:!1},duration:{default:1e3}},setup(r){let i=r,a=(0,e.ref)(0),o=(0,e.ref)(!1),s=0,c=(0,e.computed)(()=>i.precision>0?i.precision:0),l=(0,e.computed)(()=>{let e=(0,t.toFixedPrecision)(a.value,c.value,i.isRoundUp);return i.hasSeparator?(0,t.formatNumberWithSeparator)(e,i.separator):e}),u=(0,e.computed)(()=>(0,t.numberToChineseCapital)((0,t.toFixedPrecision)(a.value,4,i.isRoundUp)));(0,e.watch)(()=>i.value,(e,t)=>{o.value&&(i.isAnimated||i.transition)?d(t,e):a.value=e},{immediate:!0}),(0,e.onMounted)(()=>{o.value=!0}),(0,e.onBeforeUnmount)(()=>{s&&=(n.Animate.stop(s),0)});function d(e=0,t=0){s&&=(n.Animate.stop(s),0),s=n.Animate.start(n=>{n===1?a.value=t:a.value=e+(t-e)*n},()=>!0,()=>{s=0},i.duration)}return(t,n)=>((0,e.openBlock)(),(0,e.createElementBlock)(`span`,{class:(0,e.normalizeClass)([`cu-amount`,{numerical:!r.isCapital}])},[r.isCapital?((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,{key:1},[(0,e.createTextVNode)((0,e.toDisplayString)(u.value),1)],64)):((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,{key:0},[(0,e.createTextVNode)((0,e.toDisplayString)(l.value),1)],64))],2))}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./WaterMark-M81jg6T5.cjs");let t=require("vue");var n={class:`cu-bill-header`},r=[`textContent`],i={key:1,class:`cu-bill-no`},a={class:`cu-bill-content`},o={class:`cu-bill-detail`},s={key:0,class:`cu-bill-footer`},c=(0,t.defineComponent)({name:`cu-bill`,__name:`Bill`,props:{title:{default:``},no:{default:``},waterMark:{default:``}},setup(c){let l=(0,t.useSlots)();function u(e){let n=l[e];return n?n(...e===`watermark`?[{coord:{row:1,col:1}}]:[]).some(e=>{if(!e||typeof e!=`object`)return!1;let n=e;if(n.type===t.Comment)return!1;if(n.type===t.Fragment){let e=n.children;return Array.isArray(e)&&e.length>0}return!0}):!1}let d=(0,t.computed)(()=>u(`header`)),f=(0,t.computed)(()=>u(`footer`)),p=(0,t.computed)(()=>u(`watermark`));return(l,u)=>((0,t.openBlock)(),(0,t.createBlock)(e.t,{class:`cu-bill`,content:c.waterMark},(0,t.createSlots)({default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`header`,n,[d.value?(0,t.renderSlot)(l.$slots,`header`,{},void 0,void 0,1):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[c.title?((0,t.openBlock)(),(0,t.createElementBlock)(`h4`,{key:0,class:`cu-bill-title`,textContent:(0,t.toDisplayString)(c.title)},null,8,r)):(0,t.createCommentVNode)(``,!0),c.no?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,i,`NO.`+(0,t.toDisplayString)(c.no),1)):(0,t.createCommentVNode)(``,!0)],64))]),u[0]||=(0,t.createElementVNode)(`div`,{class:`cu-bill-neck`},[(0,t.createElementVNode)(`span`)],-1),(0,t.createElementVNode)(`div`,a,[(0,t.createElementVNode)(`div`,o,[(0,t.renderSlot)(l.$slots,`default`)]),f.value?((0,t.openBlock)(),(0,t.createElementBlock)(`footer`,s,[(0,t.renderSlot)(l.$slots,`footer`)])):(0,t.createCommentVNode)(``,!0)])]),_:2},[p.value?{name:`watermark`,fn:(0,t.withCtx)(({coord:e})=>[(0,t.renderSlot)(l.$slots,`watermark`,{coord:e})]),key:`0`}:void 0]),1032,[`content`]))}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return c}});
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { t as e } from "./WaterMark-CgkuQjv3.js";
|
|
2
|
+
import { Comment as t, Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, defineComponent as l, openBlock as u, renderSlot as d, toDisplayString as f, useSlots as p, withCtx as m } from "vue";
|
|
3
|
+
// src/components/bill/Bill.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var h = { class: "cu-bill-header" }, g = ["textContent"], _ = {
|
|
5
|
+
key: 1,
|
|
6
|
+
class: "cu-bill-no"
|
|
7
|
+
}, v = { class: "cu-bill-content" }, y = { class: "cu-bill-detail" }, b = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "cu-bill-footer"
|
|
10
|
+
}, x = /* @__PURE__ */ l({
|
|
11
|
+
name: "cu-bill",
|
|
12
|
+
__name: "Bill",
|
|
13
|
+
props: {
|
|
14
|
+
title: { default: "" },
|
|
15
|
+
no: { default: "" },
|
|
16
|
+
waterMark: { default: "" }
|
|
17
|
+
},
|
|
18
|
+
setup(l) {
|
|
19
|
+
let x = p();
|
|
20
|
+
function S(e) {
|
|
21
|
+
let r = x[e];
|
|
22
|
+
return r ? r(...e === "watermark" ? [{ coord: {
|
|
23
|
+
row: 1,
|
|
24
|
+
col: 1
|
|
25
|
+
} }] : []).some((e) => {
|
|
26
|
+
if (!e || typeof e != "object") return !1;
|
|
27
|
+
let r = e;
|
|
28
|
+
if (r.type === t) return !1;
|
|
29
|
+
if (r.type === n) {
|
|
30
|
+
let e = r.children;
|
|
31
|
+
return Array.isArray(e) && e.length > 0;
|
|
32
|
+
}
|
|
33
|
+
return !0;
|
|
34
|
+
}) : !1;
|
|
35
|
+
}
|
|
36
|
+
let C = r(() => S("header")), w = r(() => S("footer")), T = r(() => S("watermark"));
|
|
37
|
+
return (t, r) => (u(), i(e, {
|
|
38
|
+
class: "cu-bill",
|
|
39
|
+
content: l.waterMark
|
|
40
|
+
}, c({
|
|
41
|
+
default: m(() => [
|
|
42
|
+
s("header", h, [C.value ? d(t.$slots, "header", {}, void 0, void 0, 1) : (u(), o(n, { key: 0 }, [l.title ? (u(), o("h4", {
|
|
43
|
+
key: 0,
|
|
44
|
+
class: "cu-bill-title",
|
|
45
|
+
textContent: f(l.title)
|
|
46
|
+
}, null, 8, g)) : a("", !0), l.no ? (u(), o("div", _, "NO." + f(l.no), 1)) : a("", !0)], 64))]),
|
|
47
|
+
r[0] ||= s("div", { class: "cu-bill-neck" }, [s("span")], -1),
|
|
48
|
+
s("div", v, [s("div", y, [d(t.$slots, "default")]), w.value ? (u(), o("footer", b, [d(t.$slots, "footer")])) : a("", !0)])
|
|
49
|
+
]),
|
|
50
|
+
_: 2
|
|
51
|
+
}, [T.value ? {
|
|
52
|
+
name: "watermark",
|
|
53
|
+
fn: m(({ coord: e }) => [d(t.$slots, "watermark", { coord: e })]),
|
|
54
|
+
key: "0"
|
|
55
|
+
} : void 0]), 1032, ["content"]));
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
export { x as t };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./
|
|
1
|
+
const e=require("./Roller-DALhjhfg.cjs"),t=require("./Icon-83WWqE5z.cjs");let n=require("vue");var r=[`type`,`disabled`],i={class:`cu-button-inner`},a={class:`cu-button-content`},o=(0,n.defineComponent)({name:`cu-button`,__name:`Button`,props:{type:{default:`default`},nativeType:{default:`button`},icon:{default:``},iconSvg:{type:Boolean,default:!1},size:{default:`large`},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},inactive:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},setup(o){return(s,c)=>((0,n.openBlock)(),(0,n.createElementBlock)(`button`,{type:o.nativeType,class:(0,n.normalizeClass)([`cu-button`,[o.type,o.inactive?`inactive`:`active`,o.inline?`inline`:`block`,o.round?`round`:``,o.plain?`plain`:``,o.size===`small`?`small`:``]]),disabled:o.inactive||o.type===`disabled`},[(0,n.createElementVNode)(`div`,i,[o.loading?((0,n.openBlock)(),(0,n.createBlock)(e.t,{key:0,class:`cu-button-loading`})):o.icon?((0,n.openBlock)(),(0,n.createBlock)(t.t,{key:1,name:o.icon,svg:o.iconSvg},null,8,[`name`,`svg`])):(0,n.createCommentVNode)(``,!0),(0,n.createElementVNode)(`div`,a,[(0,n.renderSlot)(s.$slots,`default`)])])],10,r))}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
2
|
-
import { t } from "./
|
|
1
|
+
import { t as e } from "./Roller-BznN57fL.js";
|
|
2
|
+
import { t } from "./Icon-BgCtu0ZV.js";
|
|
3
3
|
import { createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, normalizeClass as s, openBlock as c, renderSlot as l } from "vue";
|
|
4
|
-
|
|
4
|
+
// src/components/button/Button.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var u = ["type", "disabled"], d = { class: "cu-button-inner" }, f = { class: "cu-button-content" }, p = /* @__PURE__ */ o({
|
|
6
6
|
name: "cu-button",
|
|
7
7
|
__name: "Button",
|
|
@@ -47,15 +47,14 @@ var u = ["type", "disabled"], d = { class: "cu-button-inner" }, f = { class: "cu
|
|
|
47
47
|
o.size === "small" ? "small" : ""
|
|
48
48
|
]]),
|
|
49
49
|
disabled: o.inactive || o.type === "disabled"
|
|
50
|
-
}, [a("div", d, [o.loading ? (c(), n(
|
|
50
|
+
}, [a("div", d, [o.loading ? (c(), n(e, {
|
|
51
51
|
key: 0,
|
|
52
52
|
class: "cu-button-loading"
|
|
53
|
-
})) : o.icon ? (c(), n(
|
|
53
|
+
})) : o.icon ? (c(), n(t, {
|
|
54
54
|
key: 1,
|
|
55
55
|
name: o.icon,
|
|
56
56
|
svg: o.iconSvg
|
|
57
57
|
}, null, 8, ["name", "svg"])) : r("", !0), a("div", f, [l(p.$slots, "default")])])], 10, u));
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
|
-
//#endregion
|
|
61
60
|
export { p as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./Popup-Ca1jPi0t.cjs"),t=require("./PopupTitleBar-Bfl49eYJ.cjs"),n=require("./Dialog-208_XUAL.cjs"),r=require("./Codebox-yLkdTU7w.cjs");let i=require("vue"),a=require("@centui/core");var o={class:`cu-captcha`},s={class:`cu-captcha-content`},c=[`textContent`],l={class:`cu-captcha-message`},u={class:`cu-captcha-footer`},d=[`textContent`],f=[`textContent`],p=[`textContent`,`disabled`],m={class:`cu-captcha-half-container`},h={class:`cu-captcha-half-content`},g=[`textContent`],_=[`textContent`],v=[`textContent`,`disabled`],y={class:`cu-captcha-content`},b=[`textContent`],x={class:`cu-captcha-message`},S={class:`cu-captcha-footer`},C=[`textContent`],w=[`textContent`],T=[`textContent`,`disabled`],E=(0,i.defineComponent)({name:`cu-captcha`,__name:`Captcha`,props:{modelValue:{type:Boolean,default:!1},title:{default:void 0},subtitle:{default:void 0},brief:{default:``},maxlength:{default:4},mask:{type:Boolean,default:!1},system:{type:Boolean,default:!1},autoSend:{type:Boolean,default:!0},autoCountdown:{type:Boolean,default:!0},count:{default:60},countNormalText:{default:()=>String((0,a.t)(`md.captcha.sendCaptcha`))},countActiveText:{default:()=>String((0,a.t)(`md.captcha.countdown`))},isView:{type:Boolean,default:!1},type:{default:`dialog`},inputType:{default:`tel`},disableSend:{type:Boolean,default:!1}},emits:[`update:modelValue`,`show`,`hide`,`submit`,`send`],setup(a,{expose:E,emit:D}){let O=a,k=D,A=(0,i.ref)(null),j=(0,i.ref)(``),M=(0,i.ref)(!1),N=(0,i.ref)(``),P=(0,i.ref)(!1),F=(0,i.ref)(!1),I=(0,i.ref)(O.countNormalText),L=(0,i.ref)(!1),R=(0,i.ref)(0),z=(0,i.computed)(()=>O.isView||O.type===`inline`),B=(0,i.computed)(()=>N.value!==``&&!O.disableSend);(0,i.watch)(()=>O.modelValue,e=>{e&&(j.value=``,F.value||(F.value=!0,J()))}),(0,i.watch)(j,e=>{e&&N.value&&(N.value=``)}),(0,i.onMounted)(()=>{V()&&O.type===`halfScreen`&&(R.value=document.documentElement.clientHeight||document.body.clientHeight,window.addEventListener(`resize`,H,!1)),(O.modelValue||z.value)&&(F.value=!0,J())}),(0,i.onBeforeUnmount)(()=>{V()&&O.type===`halfScreen`&&window.removeEventListener(`resize`,H),Y&&=(clearInterval(Y),null)});function V(){let e=window.navigator.userAgent.toLocaleLowerCase();return/android/.test(e)}function H(){let e=document.documentElement.clientHeight||document.body.clientHeight;R.value<e?L.value=!1:L.value=!0,R.value=e}function U(e){k(`update:modelValue`,e)}function W(){M.value=!0,A.value?.focus(),k(`show`)}function G(){M.value=!1,A.value?.blur(),k(`hide`)}function K(e){k(`submit`,e)}function q(){O.autoCountdown&&X(),k(`send`,X)}function J(){O.autoSend&&q()}let Y=null;function X(){if(!O.count)return;Y&&clearInterval(Y);let e=Date.now(),t=O.count;P.value=!0,I.value=O.countActiveText.replace(`{$1}`,String(t)),Y=setInterval(()=>{t<=1?Z():(t=O.count-Math.floor((Date.now()-e)/1e3),I.value=O.countActiveText.replace(`{$1}`,String(t)))},1e3)}function Z(){P.value=!1,I.value=O.countNormalText,Y&&clearInterval(Y)}function Q(e){Promise.resolve().then(()=>{N.value=e})}function $(){k(`update:modelValue`,!1)}return E({countdown:X,resetcount:Z,setError:Q,close:$,listenResize:H}),(E,D)=>(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)(`div`,o,[z.value?((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:0},[(0,i.createElementVNode)(`div`,s,[a.title?((0,i.openBlock)(),(0,i.createElementBlock)(`h2`,{key:0,class:`cu-captcha-title`,textContent:(0,i.toDisplayString)(a.title)},null,8,c)):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`div`,l,[(0,i.renderSlot)(E.$slots,`default`)])]),(0,i.createVNode)(r.t,{ref_key:`codebox`,ref:A,modelValue:j.value,"onUpdate:modelValue":D[0]||=e=>j.value=e,maxlength:a.maxlength,system:a.system,mask:a.mask,closable:!1,"is-view":!0,justify:!0,autofocus:!1,"input-type":a.inputType,onSubmit:K},{default:(0,i.withCtx)(()=>[(0,i.createElementVNode)(`footer`,u,[N.value?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{key:0,class:`cu-captcha-error`,textContent:(0,i.toDisplayString)(N.value)},null,8,d)):((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{key:1,class:`cu-captcha-brief`,textContent:(0,i.toDisplayString)(a.brief)},null,8,f)),a.count?((0,i.openBlock)(),(0,i.createElementBlock)(`button`,{key:2,class:`cu-captcha-btn`,textContent:(0,i.toDisplayString)(I.value),disabled:P.value,onClick:q},null,8,p)):(0,i.createCommentVNode)(``,!0)])]),_:1},8,[`modelValue`,`maxlength`,`system`,`mask`,`input-type`])],64)):(0,i.createCommentVNode)(``,!0),a.type===`halfScreen`?((0,i.openBlock)(),(0,i.createBlock)(e.t,{key:1,"model-value":a.modelValue,"has-mask":!0,position:`bottom`,"mask-closable":!1,"onUpdate:modelValue":U,onShow:W,onHide:G},{default:(0,i.withCtx)(()=>[(0,i.createElementVNode)(`div`,m,[(0,i.createVNode)(t.t,{"only-close":``,"large-radius":``,title:a.title,describe:a.subtitle,"title-align":`left`,onCancel:$},null,8,[`title`,`describe`]),(0,i.createElementVNode)(`div`,h,[(0,i.renderSlot)(E.$slots,`default`)]),(0,i.createVNode)(r.t,{ref_key:`codebox`,ref:A,modelValue:j.value,"onUpdate:modelValue":D[1]||=e=>j.value=e,maxlength:a.maxlength,system:a.system,mask:a.mask,disabled:a.disableSend,closable:!1,"is-view":!0,justify:!0,autofocus:!1,"input-type":a.inputType,"is-error-style":B.value,onSubmit:K},{default:(0,i.withCtx)(()=>[(0,i.createElementVNode)(`footer`,{class:(0,i.normalizeClass)([`cu-captcha-footer`,{halfStyle:L.value}])},[N.value?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{key:0,class:`cu-captcha-error`,textContent:(0,i.toDisplayString)(N.value)},null,8,g)):((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{key:1,class:`cu-captcha-brief`,textContent:(0,i.toDisplayString)(a.brief)},null,8,_)),a.count?((0,i.openBlock)(),(0,i.createElementBlock)(`button`,{key:2,class:(0,i.normalizeClass)([`cu-captcha-btn`,[a.disableSend&&`is-disabled-send`]]),textContent:(0,i.toDisplayString)(I.value),disabled:P.value,onClick:q},null,10,v)):(0,i.createCommentVNode)(``,!0)],2)]),_:1},8,[`modelValue`,`maxlength`,`system`,`mask`,`disabled`,`input-type`,`is-error-style`])])]),_:3},8,[`model-value`])):(0,i.createCommentVNode)(``,!0),a.type===`dialog`?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:2,"model-value":a.modelValue,closable:!0,"append-to":!1,"onUpdate:modelValue":U,onShow:W,onHide:G},{default:(0,i.withCtx)(()=>[(0,i.createElementVNode)(`div`,y,[a.title?((0,i.openBlock)(),(0,i.createElementBlock)(`h2`,{key:0,class:`cu-captcha-title`,textContent:(0,i.toDisplayString)(a.title)},null,8,b)):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`div`,x,[(0,i.renderSlot)(E.$slots,`default`)])]),(0,i.createVNode)(r.t,{ref_key:`codebox`,ref:A,modelValue:j.value,"onUpdate:modelValue":D[2]||=e=>j.value=e,maxlength:a.maxlength,system:a.system,closable:!1,mask:a.mask,justify:!0,autofocus:!1,"input-type":a.inputType,onSubmit:K},{default:(0,i.withCtx)(()=>[(0,i.createElementVNode)(`footer`,S,[N.value?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{key:0,class:`cu-captcha-error`,textContent:(0,i.toDisplayString)(N.value)},null,8,C)):((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{key:1,class:`cu-captcha-brief`,textContent:(0,i.toDisplayString)(a.brief)},null,8,w)),a.count?((0,i.openBlock)(),(0,i.createElementBlock)(`button`,{key:2,class:`cu-captcha-btn`,textContent:(0,i.toDisplayString)(I.value),disabled:P.value,onClick:q},null,8,T)):(0,i.createCommentVNode)(``,!0)])]),_:1},8,[`modelValue`,`maxlength`,`system`,`mask`,`input-type`])]),_:3},8,[`model-value`])):(0,i.createCommentVNode)(``,!0)],512)),[[i.vShow,z.value||a.modelValue||M.value]])}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return E}});
|