@vaebe/ccui 2.0.0-beta.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/LICENSE +201 -0
- package/README.md +31 -0
- package/affix/ccui-cli.css +2 -0
- package/affix/index.es.js +132 -0
- package/affix/index.umd.js +1 -0
- package/alert/ccui-cli.css +2 -0
- package/alert/index.es.js +127 -0
- package/alert/index.umd.js +1 -0
- package/anchor/ccui-cli.css +2 -0
- package/anchor/index.es.js +160 -0
- package/anchor/index.umd.js +1 -0
- package/avatar/ccui-cli.css +2 -0
- package/avatar/index.es.js +235 -0
- package/avatar/index.umd.js +1 -0
- package/badge/ccui-cli.css +2 -0
- package/badge/index.es.js +146 -0
- package/badge/index.umd.js +1 -0
- package/breadcrumb/ccui-cli.css +2 -0
- package/breadcrumb/index.es.js +89 -0
- package/breadcrumb/index.umd.js +1 -0
- package/button/ccui-cli.css +2 -0
- package/button/index.es.js +1236 -0
- package/button/index.umd.js +1 -0
- package/button-3d/ccui-cli.css +2 -0
- package/button-3d/index.es.js +80 -0
- package/button-3d/index.umd.js +1 -0
- package/calendar/ccui-cli.css +2 -0
- package/calendar/index.es.js +450 -0
- package/calendar/index.umd.js +1 -0
- package/card/ccui-cli.css +2 -0
- package/card/index.es.js +78 -0
- package/card/index.umd.js +1 -0
- package/ccui-cli.css +2 -0
- package/check-box/ccui-cli.css +2 -0
- package/check-box/index.es.js +173 -0
- package/check-box/index.umd.js +1 -0
- package/collapse/ccui-cli.css +2 -0
- package/collapse/index.es.js +176 -0
- package/collapse/index.umd.js +1 -0
- package/config-provider/index.es.js +204 -0
- package/config-provider/index.umd.js +1 -0
- package/date-picker/ccui-cli.css +2 -0
- package/date-picker/index.es.js +2447 -0
- package/date-picker/index.umd.js +1 -0
- package/descriptions/ccui-cli.css +2 -0
- package/descriptions/index.es.js +175 -0
- package/descriptions/index.umd.js +1 -0
- package/divider/ccui-cli.css +2 -0
- package/divider/index.es.js +78 -0
- package/divider/index.umd.js +1 -0
- package/drawer/ccui-cli.css +2 -0
- package/drawer/index.es.js +1320 -0
- package/drawer/index.umd.js +1 -0
- package/dropdown/ccui-cli.css +2 -0
- package/dropdown/index.es.js +606 -0
- package/dropdown/index.umd.js +1 -0
- package/empty/ccui-cli.css +2 -0
- package/empty/index.es.js +173 -0
- package/empty/index.umd.js +1 -0
- package/flex/ccui-cli.css +2 -0
- package/flex/index.es.js +87 -0
- package/flex/index.umd.js +1 -0
- package/float-button/ccui-cli.css +2 -0
- package/float-button/index.es.js +169 -0
- package/float-button/index.umd.js +1 -0
- package/form/ccui-cli.css +2 -0
- package/form/index.es.js +752 -0
- package/form/index.umd.js +1 -0
- package/grid/ccui-cli.css +2 -0
- package/grid/index.es.js +207 -0
- package/grid/index.umd.js +1 -0
- package/icon/ccui-cli.css +2 -0
- package/icon/index.es.js +1228 -0
- package/icon/index.umd.js +1 -0
- package/image/ccui-cli.css +2 -0
- package/image/index.es.js +276 -0
- package/image/index.umd.js +1 -0
- package/index.d.ts +7 -0
- package/input/ccui-cli.css +2 -0
- package/input/index.es.js +1293 -0
- package/input/index.umd.js +1 -0
- package/input-number/ccui-cli.css +2 -0
- package/input-number/index.es.js +263 -0
- package/input-number/index.umd.js +1 -0
- package/layout/ccui-cli.css +2 -0
- package/layout/index.es.js +184 -0
- package/layout/index.umd.js +1 -0
- package/masonry/ccui-cli.css +2 -0
- package/masonry/index.es.js +119 -0
- package/masonry/index.umd.js +1 -0
- package/menu/ccui-cli.css +2 -0
- package/menu/index.es.js +385 -0
- package/menu/index.umd.js +1 -0
- package/message/ccui-cli.css +2 -0
- package/message/index.es.js +351 -0
- package/message/index.umd.js +1 -0
- package/modal/ccui-cli.css +2 -0
- package/modal/index.es.js +1553 -0
- package/modal/index.umd.js +1 -0
- package/notification/ccui-cli.css +2 -0
- package/notification/index.es.js +347 -0
- package/notification/index.umd.js +1 -0
- package/nuxt/components/category.js +2 -0
- package/nuxt/components/install.js +2 -0
- package/nuxt/components/status.js +2 -0
- package/nuxt/components/title.js +2 -0
- package/nuxt/index.js +13 -0
- package/package.json +53 -0
- package/pagination/ccui-cli.css +2 -0
- package/pagination/index.es.js +296 -0
- package/pagination/index.umd.js +1 -0
- package/popconfirm/ccui-cli.css +2 -0
- package/popconfirm/index.es.js +735 -0
- package/popconfirm/index.umd.js +1 -0
- package/popover/ccui-cli.css +2 -0
- package/popover/index.es.js +530 -0
- package/popover/index.umd.js +1 -0
- package/progress/ccui-cli.css +2 -0
- package/progress/index.es.js +167 -0
- package/progress/index.umd.js +1 -0
- package/radio/ccui-cli.css +2 -0
- package/radio/index.es.js +157 -0
- package/radio/index.umd.js +1 -0
- package/rate/ccui-cli.css +2 -0
- package/rate/index.es.js +115 -0
- package/rate/index.umd.js +1 -0
- package/result/ccui-cli.css +2 -0
- package/result/index.es.js +90 -0
- package/result/index.umd.js +1 -0
- package/segmented/ccui-cli.css +2 -0
- package/segmented/index.es.js +99 -0
- package/segmented/index.umd.js +1 -0
- package/select/ccui-cli.css +2 -0
- package/select/index.es.js +1885 -0
- package/select/index.umd.js +1 -0
- package/skeleton/ccui-cli.css +2 -0
- package/skeleton/index.es.js +117 -0
- package/skeleton/index.umd.js +1 -0
- package/slider/ccui-cli.css +2 -0
- package/slider/index.es.js +1071 -0
- package/slider/index.umd.js +1 -0
- package/space/ccui-cli.css +2 -0
- package/space/index.es.js +108 -0
- package/space/index.umd.js +1 -0
- package/spin/ccui-cli.css +2 -0
- package/spin/index.es.js +86 -0
- package/spin/index.umd.js +1 -0
- package/splitter/ccui-cli.css +2 -0
- package/splitter/index.es.js +198 -0
- package/splitter/index.umd.js +1 -0
- package/status/ccui-cli.css +2 -0
- package/status/index.es.js +44 -0
- package/status/index.umd.js +1 -0
- package/steps/ccui-cli.css +2 -0
- package/steps/index.es.js +118 -0
- package/steps/index.umd.js +1 -0
- package/switch/ccui-cli.css +2 -0
- package/switch/index.es.js +118 -0
- package/switch/index.umd.js +1 -0
- package/table/ccui-cli.css +2 -0
- package/table/index.es.js +553 -0
- package/table/index.umd.js +1 -0
- package/tabs/ccui-cli.css +2 -0
- package/tabs/index.es.js +128 -0
- package/tabs/index.umd.js +1 -0
- package/tag/ccui-cli.css +2 -0
- package/tag/index.es.js +116 -0
- package/tag/index.umd.js +1 -0
- package/theme/darkTheme.css +352 -0
- package/theme/theme.scss +703 -0
- package/timeline/ccui-cli.css +2 -0
- package/timeline/index.es.js +113 -0
- package/timeline/index.umd.js +1 -0
- package/tooltip/ccui-cli.css +2 -0
- package/tooltip/index.es.js +423 -0
- package/tooltip/index.umd.js +1 -0
- package/tree/ccui-cli.css +2 -0
- package/tree/index.es.js +810 -0
- package/tree/index.umd.js +1 -0
- package/typography/ccui-cli.css +2 -0
- package/typography/index.es.js +270 -0
- package/typography/index.umd.js +1 -0
- package/util/index.es.js +78 -0
- package/util/index.umd.js +1 -0
- package/vue-ccui.es.js +18989 -0
- package/vue-ccui.umd.js +1 -0
- package/watermark/ccui-cli.css +2 -0
- package/watermark/index.es.js +179 -0
- package/watermark/index.umd.js +1 -0
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import { computed as e, createTextVNode as t, createVNode as n, defineComponent as r, inject as i, ref as a, watch as o } from "vue";
|
|
2
|
+
//#region ../ccui/ui/shared/hooks/use-namespace.ts
|
|
3
|
+
function s(e, t, n) {
|
|
4
|
+
let r = e;
|
|
5
|
+
return t && (r += `__${t}`), n && (r += `--${n}`), r;
|
|
6
|
+
}
|
|
7
|
+
function c(e, t = !1) {
|
|
8
|
+
let n = t ? `.ccui-${e}` : `ccui-${e}`;
|
|
9
|
+
return {
|
|
10
|
+
b: () => s(n),
|
|
11
|
+
e: (e) => e ? s(n, e) : "",
|
|
12
|
+
m: (e) => e ? s(n, "", e) : "",
|
|
13
|
+
em: (e, t) => e && t ? s(n, e, t) : "",
|
|
14
|
+
is: (e) => `is-${e}`
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region ../ccui/ui/locale/zh-CN.ts
|
|
19
|
+
var l = {
|
|
20
|
+
locale: "zh-CN",
|
|
21
|
+
Modal: {
|
|
22
|
+
okText: "确 定",
|
|
23
|
+
cancelText: "取 消",
|
|
24
|
+
justOkText: "知道了"
|
|
25
|
+
},
|
|
26
|
+
Popconfirm: {
|
|
27
|
+
okText: "确 定",
|
|
28
|
+
cancelText: "取 消"
|
|
29
|
+
},
|
|
30
|
+
Empty: { description: "暂无数据" },
|
|
31
|
+
AutoComplete: { notFoundContent: "暂无数据" },
|
|
32
|
+
Mentions: { notFoundContent: "暂无数据" },
|
|
33
|
+
Cascader: { notFoundContent: "暂无数据" },
|
|
34
|
+
TreeSelect: { notFoundContent: "暂无数据" },
|
|
35
|
+
Select: { notFoundContent: "暂无数据" },
|
|
36
|
+
Pagination: {
|
|
37
|
+
itemsPerPage: "条/页",
|
|
38
|
+
jumpTo: "跳至",
|
|
39
|
+
page: "页",
|
|
40
|
+
prevPage: "上一页",
|
|
41
|
+
nextPage: "下一页",
|
|
42
|
+
total: "共 {total} 条"
|
|
43
|
+
},
|
|
44
|
+
Image: {
|
|
45
|
+
loading: "加载中",
|
|
46
|
+
error: "加载失败"
|
|
47
|
+
},
|
|
48
|
+
DatePicker: {
|
|
49
|
+
placeholder: "请选择日期",
|
|
50
|
+
rangePlaceholder: ["开始日期", "结束日期"],
|
|
51
|
+
timePlaceholder: "请选择时间",
|
|
52
|
+
weekdaysShort: [
|
|
53
|
+
"日",
|
|
54
|
+
"一",
|
|
55
|
+
"二",
|
|
56
|
+
"三",
|
|
57
|
+
"四",
|
|
58
|
+
"五",
|
|
59
|
+
"六"
|
|
60
|
+
],
|
|
61
|
+
panelLabelFormat: "YYYY 年 M 月",
|
|
62
|
+
monthNamesShort: [
|
|
63
|
+
"1 月",
|
|
64
|
+
"2 月",
|
|
65
|
+
"3 月",
|
|
66
|
+
"4 月",
|
|
67
|
+
"5 月",
|
|
68
|
+
"6 月",
|
|
69
|
+
"7 月",
|
|
70
|
+
"8 月",
|
|
71
|
+
"9 月",
|
|
72
|
+
"10 月",
|
|
73
|
+
"11 月",
|
|
74
|
+
"12 月"
|
|
75
|
+
],
|
|
76
|
+
quarterNames: [
|
|
77
|
+
"一季度",
|
|
78
|
+
"二季度",
|
|
79
|
+
"三季度",
|
|
80
|
+
"四季度"
|
|
81
|
+
],
|
|
82
|
+
weekFormat: "{weekYear} 年第 {weekNumber} 周",
|
|
83
|
+
weekHeader: "周",
|
|
84
|
+
now: "此刻",
|
|
85
|
+
ok: "确定",
|
|
86
|
+
prevYearLabel: "前一年",
|
|
87
|
+
prevMonthLabel: "上个月",
|
|
88
|
+
nextYearLabel: "后一年",
|
|
89
|
+
nextMonthLabel: "下个月",
|
|
90
|
+
clearLabel: "清除"
|
|
91
|
+
}
|
|
92
|
+
}, u = Symbol("ccui-config");
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region ../ccui/ui/config-provider/src/config-provider.tsx
|
|
95
|
+
function d() {
|
|
96
|
+
return i(u, {
|
|
97
|
+
prefixCls: "ccui",
|
|
98
|
+
componentSize: "middle",
|
|
99
|
+
locale: l,
|
|
100
|
+
direction: "ltr",
|
|
101
|
+
theme: void 0,
|
|
102
|
+
iconPrefixCls: "ccui-icon"
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
//#endregion
|
|
106
|
+
//#region ../ccui/ui/pagination/src/pagination-types.ts
|
|
107
|
+
var f = {
|
|
108
|
+
current: {
|
|
109
|
+
type: Number,
|
|
110
|
+
default: 1
|
|
111
|
+
},
|
|
112
|
+
total: {
|
|
113
|
+
type: Number,
|
|
114
|
+
default: 0
|
|
115
|
+
},
|
|
116
|
+
pageSize: {
|
|
117
|
+
type: Number,
|
|
118
|
+
default: 10
|
|
119
|
+
},
|
|
120
|
+
pageSizeOptions: {
|
|
121
|
+
type: Array,
|
|
122
|
+
default: () => [
|
|
123
|
+
10,
|
|
124
|
+
20,
|
|
125
|
+
50,
|
|
126
|
+
100
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
showSizeChanger: {
|
|
130
|
+
type: Boolean,
|
|
131
|
+
default: !1
|
|
132
|
+
},
|
|
133
|
+
showQuickJumper: {
|
|
134
|
+
type: Boolean,
|
|
135
|
+
default: !1
|
|
136
|
+
},
|
|
137
|
+
showTotal: {
|
|
138
|
+
type: [Boolean, Function],
|
|
139
|
+
default: !1
|
|
140
|
+
},
|
|
141
|
+
simple: {
|
|
142
|
+
type: Boolean,
|
|
143
|
+
default: !1
|
|
144
|
+
},
|
|
145
|
+
disabled: {
|
|
146
|
+
type: Boolean,
|
|
147
|
+
default: !1
|
|
148
|
+
},
|
|
149
|
+
hideOnSinglePage: {
|
|
150
|
+
type: Boolean,
|
|
151
|
+
default: !1
|
|
152
|
+
},
|
|
153
|
+
size: {
|
|
154
|
+
type: String,
|
|
155
|
+
default: "default"
|
|
156
|
+
}
|
|
157
|
+
}, p = -1;
|
|
158
|
+
function m(e, t) {
|
|
159
|
+
if (t <= 7) return Array.from({ length: t }, (e, t) => t + 1);
|
|
160
|
+
let n = [1];
|
|
161
|
+
return e <= 4 ? (n.push(2, 3, 4, 5, p, t), n) : e >= t - 3 ? (n.push(p, t - 4, t - 3, t - 2, t - 1, t), n) : (n.push(p, e - 1, e, e + 1, p, t), n);
|
|
162
|
+
}
|
|
163
|
+
var h = /* @__PURE__ */ r({
|
|
164
|
+
name: "CPagination",
|
|
165
|
+
props: f,
|
|
166
|
+
emits: [
|
|
167
|
+
"update:current",
|
|
168
|
+
"update:pageSize",
|
|
169
|
+
"change"
|
|
170
|
+
],
|
|
171
|
+
setup(r, { emit: i, slots: s }) {
|
|
172
|
+
let l = c("pagination"), u = d(), f = e(() => u.locale?.Pagination ?? {}), h = a(r.current), g = a(r.pageSize), _ = a("");
|
|
173
|
+
o(() => r.current, (e) => {
|
|
174
|
+
h.value = e;
|
|
175
|
+
}), o(() => r.pageSize, (e) => {
|
|
176
|
+
g.value = e;
|
|
177
|
+
});
|
|
178
|
+
let v = e(() => {
|
|
179
|
+
let e = g.value || 1;
|
|
180
|
+
return Math.max(1, Math.ceil(r.total / e));
|
|
181
|
+
}), y = e(() => m(h.value, v.value)), b = e(() => {
|
|
182
|
+
let e = (h.value - 1) * g.value + 1, t = Math.min(h.value * g.value, r.total);
|
|
183
|
+
return [Math.min(e, t), t];
|
|
184
|
+
}), x = e(() => ({
|
|
185
|
+
[l.b()]: !0,
|
|
186
|
+
[l.m("disabled")]: r.disabled,
|
|
187
|
+
[l.m("simple")]: r.simple,
|
|
188
|
+
[l.m("small")]: r.size === "small"
|
|
189
|
+
})), S = (e) => {
|
|
190
|
+
if (r.disabled) return;
|
|
191
|
+
let t = Math.max(1, Math.min(v.value, e));
|
|
192
|
+
t !== h.value && (h.value = t, i("update:current", t), i("change", t, g.value));
|
|
193
|
+
}, C = () => {
|
|
194
|
+
h.value > 1 && S(h.value - 1);
|
|
195
|
+
}, w = () => {
|
|
196
|
+
h.value < v.value && S(h.value + 1);
|
|
197
|
+
}, T = (e) => {
|
|
198
|
+
let t = e.target, n = Number(t.value);
|
|
199
|
+
if (Number.isNaN(n) || n === g.value) return;
|
|
200
|
+
g.value = n, i("update:pageSize", n);
|
|
201
|
+
let a = Math.max(1, Math.ceil(r.total / n));
|
|
202
|
+
h.value > a && (h.value = a, i("update:current", a)), i("change", h.value, n);
|
|
203
|
+
}, E = (e) => {
|
|
204
|
+
if (e.key !== "Enter") return;
|
|
205
|
+
let t = Number(_.value);
|
|
206
|
+
!Number.isNaN(t) && t >= 1 && S(Math.floor(t)), _.value = "";
|
|
207
|
+
}, D = () => {
|
|
208
|
+
if (!r.showTotal) return null;
|
|
209
|
+
let e;
|
|
210
|
+
return e = typeof r.showTotal == "function" ? r.showTotal(r.total, b.value) : (f.value.total || "共 {total} 条").replace("{total}", String(r.total)), n("li", { class: l.e("total-text") }, [e]);
|
|
211
|
+
}, O = (e) => {
|
|
212
|
+
if (e === p) return n("li", {
|
|
213
|
+
class: [l.e("item"), l.em("item", "ellipsis")],
|
|
214
|
+
"aria-hidden": !0
|
|
215
|
+
}, [t("•••")]);
|
|
216
|
+
let r = e === h.value;
|
|
217
|
+
return n("li", {
|
|
218
|
+
key: e,
|
|
219
|
+
class: [l.e("item"), r && l.em("item", "active")],
|
|
220
|
+
"aria-current": r ? "page" : void 0,
|
|
221
|
+
onClick: () => S(e)
|
|
222
|
+
}, [e]);
|
|
223
|
+
}, k = () => r.showSizeChanger ? n("li", { class: l.e("size-changer") }, [n("select", {
|
|
224
|
+
class: l.e("size-select"),
|
|
225
|
+
value: g.value,
|
|
226
|
+
disabled: r.disabled,
|
|
227
|
+
onChange: T
|
|
228
|
+
}, [r.pageSizeOptions.map((e) => n("option", {
|
|
229
|
+
key: e,
|
|
230
|
+
value: e
|
|
231
|
+
}, [`${e} ${f.value.itemsPerPage || "条/页"}`]))])]) : null, A = () => r.showQuickJumper ? n("li", { class: l.e("jumper") }, [
|
|
232
|
+
f.value.jumpTo || "跳至",
|
|
233
|
+
n("input", {
|
|
234
|
+
class: l.e("jumper-input"),
|
|
235
|
+
type: "text",
|
|
236
|
+
value: _.value,
|
|
237
|
+
disabled: r.disabled,
|
|
238
|
+
onInput: (e) => {
|
|
239
|
+
_.value = e.target.value;
|
|
240
|
+
},
|
|
241
|
+
onKeydown: E
|
|
242
|
+
}, null),
|
|
243
|
+
f.value.page || "页"
|
|
244
|
+
]) : null;
|
|
245
|
+
return () => {
|
|
246
|
+
if (r.hideOnSinglePage && v.value <= 1) return null;
|
|
247
|
+
let e = h.value <= 1 || r.disabled, i = h.value >= v.value || r.disabled;
|
|
248
|
+
return n("ul", { class: x.value }, [
|
|
249
|
+
D(),
|
|
250
|
+
n("li", {
|
|
251
|
+
class: [l.e("prev"), e && l.is("disabled")],
|
|
252
|
+
onClick: C,
|
|
253
|
+
"aria-disabled": e,
|
|
254
|
+
"aria-label": f.value.prevPage || "上一页"
|
|
255
|
+
}, [s.prev ? s.prev() : n("span", { class: l.e("arrow") }, [t("‹")])]),
|
|
256
|
+
r.simple ? n("li", { class: l.e("simple-pager") }, [
|
|
257
|
+
n("input", {
|
|
258
|
+
class: l.e("simple-input"),
|
|
259
|
+
type: "text",
|
|
260
|
+
value: h.value,
|
|
261
|
+
disabled: r.disabled,
|
|
262
|
+
onChange: (e) => {
|
|
263
|
+
let t = Number(e.target.value);
|
|
264
|
+
Number.isNaN(t) || S(Math.floor(t));
|
|
265
|
+
}
|
|
266
|
+
}, null),
|
|
267
|
+
n("span", { class: l.e("simple-slash") }, [t("/")]),
|
|
268
|
+
n("span", { class: l.e("simple-total") }, [v.value])
|
|
269
|
+
]) : y.value.map(O),
|
|
270
|
+
n("li", {
|
|
271
|
+
class: [l.e("next"), i && l.is("disabled")],
|
|
272
|
+
onClick: w,
|
|
273
|
+
"aria-disabled": i,
|
|
274
|
+
"aria-label": f.value.nextPage || "下一页"
|
|
275
|
+
}, [s.next ? s.next() : n("span", { class: l.e("arrow") }, [t("›")])]),
|
|
276
|
+
k(),
|
|
277
|
+
A()
|
|
278
|
+
]);
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
//#endregion
|
|
283
|
+
//#region ../ccui/ui/pagination/index.ts
|
|
284
|
+
h.install = function(e) {
|
|
285
|
+
e.component(h.name, h);
|
|
286
|
+
};
|
|
287
|
+
var g = {
|
|
288
|
+
title: "Pagination 分页",
|
|
289
|
+
category: "导航",
|
|
290
|
+
status: "100%",
|
|
291
|
+
install(e) {
|
|
292
|
+
e.component(h.name, h);
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
//#endregion
|
|
296
|
+
export { h as Pagination, g as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`vue`)):typeof define==`function`&&define.amd?define([`exports`,`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.index={},e.Vue))})(this,function(e,t){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});function n(e,t,n){let r=e;return t&&(r+=`__${t}`),n&&(r+=`--${n}`),r}function r(e,t=!1){let r=t?`.ccui-${e}`:`ccui-${e}`;return{b:()=>n(r),e:e=>e?n(r,e):``,m:e=>e?n(r,``,e):``,em:(e,t)=>e&&t?n(r,e,t):``,is:e=>`is-${e}`}}var i={locale:`zh-CN`,Modal:{okText:`确 定`,cancelText:`取 消`,justOkText:`知道了`},Popconfirm:{okText:`确 定`,cancelText:`取 消`},Empty:{description:`暂无数据`},AutoComplete:{notFoundContent:`暂无数据`},Mentions:{notFoundContent:`暂无数据`},Cascader:{notFoundContent:`暂无数据`},TreeSelect:{notFoundContent:`暂无数据`},Select:{notFoundContent:`暂无数据`},Pagination:{itemsPerPage:`条/页`,jumpTo:`跳至`,page:`页`,prevPage:`上一页`,nextPage:`下一页`,total:`共 {total} 条`},Image:{loading:`加载中`,error:`加载失败`},DatePicker:{placeholder:`请选择日期`,rangePlaceholder:[`开始日期`,`结束日期`],timePlaceholder:`请选择时间`,weekdaysShort:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],panelLabelFormat:`YYYY 年 M 月`,monthNamesShort:[`1 月`,`2 月`,`3 月`,`4 月`,`5 月`,`6 月`,`7 月`,`8 月`,`9 月`,`10 月`,`11 月`,`12 月`],quarterNames:[`一季度`,`二季度`,`三季度`,`四季度`],weekFormat:`{weekYear} 年第 {weekNumber} 周`,weekHeader:`周`,now:`此刻`,ok:`确定`,prevYearLabel:`前一年`,prevMonthLabel:`上个月`,nextYearLabel:`后一年`,nextMonthLabel:`下个月`,clearLabel:`清除`}},a=Symbol(`ccui-config`);function o(){return(0,t.inject)(a,{prefixCls:`ccui`,componentSize:`middle`,locale:i,direction:`ltr`,theme:void 0,iconPrefixCls:`ccui-icon`})}var s={current:{type:Number,default:1},total:{type:Number,default:0},pageSize:{type:Number,default:10},pageSizeOptions:{type:Array,default:()=>[10,20,50,100]},showSizeChanger:{type:Boolean,default:!1},showQuickJumper:{type:Boolean,default:!1},showTotal:{type:[Boolean,Function],default:!1},simple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},hideOnSinglePage:{type:Boolean,default:!1},size:{type:String,default:`default`}},c=-1;function l(e,t){if(t<=7)return Array.from({length:t},(e,t)=>t+1);let n=[1];return e<=4?(n.push(2,3,4,5,c,t),n):e>=t-3?(n.push(c,t-4,t-3,t-2,t-1,t),n):(n.push(c,e-1,e,e+1,c,t),n)}var u=(0,t.defineComponent)({name:`CPagination`,props:s,emits:[`update:current`,`update:pageSize`,`change`],setup(e,{emit:n,slots:i}){let a=r(`pagination`),s=o(),u=(0,t.computed)(()=>s.locale?.Pagination??{}),d=(0,t.ref)(e.current),f=(0,t.ref)(e.pageSize),p=(0,t.ref)(``);(0,t.watch)(()=>e.current,e=>{d.value=e}),(0,t.watch)(()=>e.pageSize,e=>{f.value=e});let m=(0,t.computed)(()=>{let t=f.value||1;return Math.max(1,Math.ceil(e.total/t))}),h=(0,t.computed)(()=>l(d.value,m.value)),g=(0,t.computed)(()=>{let t=(d.value-1)*f.value+1,n=Math.min(d.value*f.value,e.total);return[Math.min(t,n),n]}),_=(0,t.computed)(()=>({[a.b()]:!0,[a.m(`disabled`)]:e.disabled,[a.m(`simple`)]:e.simple,[a.m(`small`)]:e.size===`small`})),v=t=>{if(e.disabled)return;let r=Math.max(1,Math.min(m.value,t));r!==d.value&&(d.value=r,n(`update:current`,r),n(`change`,r,f.value))},y=()=>{d.value>1&&v(d.value-1)},b=()=>{d.value<m.value&&v(d.value+1)},x=t=>{let r=t.target,i=Number(r.value);if(Number.isNaN(i)||i===f.value)return;f.value=i,n(`update:pageSize`,i);let a=Math.max(1,Math.ceil(e.total/i));d.value>a&&(d.value=a,n(`update:current`,a)),n(`change`,d.value,i)},S=e=>{if(e.key!==`Enter`)return;let t=Number(p.value);!Number.isNaN(t)&&t>=1&&v(Math.floor(t)),p.value=``},C=()=>{if(!e.showTotal)return null;let n;return n=typeof e.showTotal==`function`?e.showTotal(e.total,g.value):(u.value.total||`共 {total} 条`).replace(`{total}`,String(e.total)),(0,t.createVNode)(`li`,{class:a.e(`total-text`)},[n])},w=e=>{if(e===c)return(0,t.createVNode)(`li`,{class:[a.e(`item`),a.em(`item`,`ellipsis`)],"aria-hidden":!0},[(0,t.createTextVNode)(`•••`)]);let n=e===d.value;return(0,t.createVNode)(`li`,{key:e,class:[a.e(`item`),n&&a.em(`item`,`active`)],"aria-current":n?`page`:void 0,onClick:()=>v(e)},[e])},T=()=>e.showSizeChanger?(0,t.createVNode)(`li`,{class:a.e(`size-changer`)},[(0,t.createVNode)(`select`,{class:a.e(`size-select`),value:f.value,disabled:e.disabled,onChange:x},[e.pageSizeOptions.map(e=>(0,t.createVNode)(`option`,{key:e,value:e},[`${e} ${u.value.itemsPerPage||`条/页`}`]))])]):null,E=()=>e.showQuickJumper?(0,t.createVNode)(`li`,{class:a.e(`jumper`)},[u.value.jumpTo||`跳至`,(0,t.createVNode)(`input`,{class:a.e(`jumper-input`),type:`text`,value:p.value,disabled:e.disabled,onInput:e=>{p.value=e.target.value},onKeydown:S},null),u.value.page||`页`]):null;return()=>{if(e.hideOnSinglePage&&m.value<=1)return null;let n=d.value<=1||e.disabled,r=d.value>=m.value||e.disabled;return(0,t.createVNode)(`ul`,{class:_.value},[C(),(0,t.createVNode)(`li`,{class:[a.e(`prev`),n&&a.is(`disabled`)],onClick:y,"aria-disabled":n,"aria-label":u.value.prevPage||`上一页`},[i.prev?i.prev():(0,t.createVNode)(`span`,{class:a.e(`arrow`)},[(0,t.createTextVNode)(`‹`)])]),e.simple?(0,t.createVNode)(`li`,{class:a.e(`simple-pager`)},[(0,t.createVNode)(`input`,{class:a.e(`simple-input`),type:`text`,value:d.value,disabled:e.disabled,onChange:e=>{let t=Number(e.target.value);Number.isNaN(t)||v(Math.floor(t))}},null),(0,t.createVNode)(`span`,{class:a.e(`simple-slash`)},[(0,t.createTextVNode)(`/`)]),(0,t.createVNode)(`span`,{class:a.e(`simple-total`)},[m.value])]):h.value.map(w),(0,t.createVNode)(`li`,{class:[a.e(`next`),r&&a.is(`disabled`)],onClick:b,"aria-disabled":r,"aria-label":u.value.nextPage||`下一页`},[i.next?i.next():(0,t.createVNode)(`span`,{class:a.e(`arrow`)},[(0,t.createTextVNode)(`›`)])]),T(),E()])}}});u.install=function(e){e.component(u.name,u)},e.Pagination=u,e.default={title:`Pagination 分页`,category:`导航`,status:`100%`,install(e){e.component(u.name,u)}}});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.ccui-popover{display:inline-block;position:relative}.ccui-popover__trigger{display:inline-block}.ccui-popover__popper{z-index:2000;word-wrap:break-word;box-sizing:border-box;border-radius:4px;width:max-content;min-width:10px;max-width:400px;padding:12px;font-size:14px;line-height:1.4}.ccui-popover__popper--dark{color:#fff;background:#303133;border:1px solid #303133;box-shadow:0 2px 12px #0000001a}.ccui-popover__popper--light{color:#606266;background:#fff;border:1px solid #e4e7ed;box-shadow:0 2px 12px #0000001a}.ccui-popover__popper--top .ccui-popover__arrow{border-top-color:inherit;border-bottom:none;bottom:-4px}.ccui-popover__popper--bottom .ccui-popover__arrow{border-bottom-color:inherit;border-top:none;top:-4px}.ccui-popover__popper--left .ccui-popover__arrow{border-left-color:inherit;border-right:none;right:-4px}.ccui-popover__popper--right .ccui-popover__arrow{border-right-color:inherit;border-left:none;left:-4px}.ccui-popover__header{color:#303133;border-radius:inherit;padding:0 0 8px;font-size:16px;font-weight:500}.ccui-popover__popper--dark .ccui-popover__header{color:#fff}.ccui-popover__content{text-align:left;border-radius:inherit;padding:0;font-size:14px;line-height:1.4}.ccui-popover__arrow{background:inherit;border:inherit;z-index:-1;width:8px;height:8px;position:absolute;transform:rotate(45deg)}.ccui-popover-fade-enter-active,.ccui-popover-fade-leave-active{transition:opacity .15s}.ccui-popover-fade-enter-from,.ccui-popover-fade-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:opacity .2s linear}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.ccui-popover--disabled{cursor:not-allowed}.ccui-popover--disabled .ccui-popover__trigger{pointer-events:none;opacity:.6}@media (width<=768px){.ccui-popover__popper{max-width:calc(100vw - 20px);font-size:14px}}:root{--ccui-global-bg:#f5f5f5;--ccui-global-bg-normal:#fff;--ccui-base-bg:#fff;--ccui-base-bg-dark:#000000d9;--ccui-brand:#1677ff;--ccui-brand-foil:#e6f4ff;--ccui-brand-hover:#4096ff;--ccui-brand-active:#0958d9;--ccui-brand-active-focus:#003eb3;--ccui-contrast:#ff4d4f;--ccui-text:#000000e0;--ccui-text-weak:#000000a6;--ccui-aide-text:#00000073;--ccui-aide-text-stress:#000000a6;--ccui-placeholder:#00000040;--ccui-light-text:#fff;--ccui-dark-text:#000000e0;--ccui-link:#1677ff;--ccui-link-active:#0958d9;--ccui-link-light:#4096ff;--ccui-link-light-active:#69b1ff;--ccui-line:#d9d9d9;--ccui-dividing-line:#f0f0f0;--ccui-block:#fff;--ccui-area:#fafafa;--ccui-danger:#ff4d4f;--ccui-warning:#faad14;--ccui-waiting:#00000073;--ccui-success:#52c41a;--ccui-info:#1677ff;--ccui-initial:#e6f4ff;--ccui-unavailable:#f5f5f5;--ccui-shadow:#00000026;--ccui-light-shadow:#0000000f;--ccui-icon-text:#000000e0;--ccui-icon-bg:#fff;--ccui-icon-fill:#00000073;--ccui-icon-fill-hover:#000000a6;--ccui-icon-fill-active:#1677ff;--ccui-icon-fill-active-hover:#4096ff;--ccui-form-control-line:#d9d9d9;--ccui-form-control-line-hover:#4096ff;--ccui-form-control-line-active:#1677ff;--ccui-form-control-line-active-hover:#0958d9;--ccui-list-item-active-bg:#1677ff;--ccui-list-item-active-text:#fff;--ccui-list-item-active-hover-bg:#4096ff;--ccui-list-item-hover-bg:#0000000a;--ccui-list-item-hover-text:#1677ff;--ccui-list-item-selected-bg:#e6f4ff;--ccui-list-item-strip-bg:#fafafa;--ccui-disabled-bg:#0000000a;--ccui-disabled-line:#d9d9d9;--ccui-disabled-text:#00000040;--ccui-primary-disabled:#91caff;--ccui-icon-fill-active-disabled:#91caff;--ccui-label-bg:#fafafa;--ccui-connected-overlay-bg:#fff;--ccui-connected-overlay-line:#1677ff;--ccui-fullscreen-overlay-bg:#fff;--ccui-feedback-overlay-bg:#000000d9;--ccui-feedback-overlay-text:#fff;--ccui-embed-search-bg:#fafafa;--ccui-embed-search-bg-hover:#f0f0f0;--ccui-float-block-shadow:#1677ff29;--ccui-highlight-overlay:#fffc;--ccui-range-item-hover-bg:#e6f4ff;--ccui-primary:#1677ff;--ccui-primary-hover:#4096ff;--ccui-primary-active:#0958d9;--ccui-contrast-hover:#ff7875;--ccui-contrast-active:#d9363e;--ccui-secondary:#000000a6;--ccui-danger-line:#ffccc7;--ccui-danger-bg:#fff2f0;--ccui-warning-line:#ffe58f;--ccui-warning-bg:#fffbe6;--ccui-info-line:#91caff;--ccui-info-bg:#e6f4ff;--ccui-success-line:#b7eb8f;--ccui-success-bg:#f6ffed;--ccui-primary-line:#91caff;--ccui-primary-bg:#e6f4ff;--ccui-default-line:#d9d9d9;--ccui-default-bg:#fff;--ccui-font-size:14px;--ccui-font-size-card-title:16px;--ccui-font-size-page-title:20px;--ccui-font-size-modal-title:16px;--ccui-font-size-price:24px;--ccui-font-size-data-overview:30px;--ccui-font-size-icon:16px;--ccui-font-size-sm:12px;--ccui-font-size-md:14px;--ccui-font-size-lg:16px;--ccui-font-title-weight:600;--ccui-font-content-weight:400;--ccui-line-height-base:1.57143;--ccui-border-radius:6px;--ccui-border-radius-feedback:8px;--ccui-border-radius-card:8px;--ccui-shadow-length-base:0 1px 2px 0;--ccui-shadow-length-slide-left:-6px 0 16px 0;--ccui-shadow-length-slide-right:6px 0 16px 0;--ccui-shadow-length-connected-overlay:0 6px 16px 0;--ccui-shadow-length-hover:0 6px 16px 0;--ccui-shadow-length-feedback-overlay:0 6px 16px 0;--ccui-shadow-fullscreen-overlay:0 6px 16px 0;--ccui-animation-duration-slow:.3s;--ccui-animation-duration-base:.2s;--ccui-animation-duration-fast:.1s;--ccui-animation-ease-in:cubic-bezier(.7, 0, .84, 0);--ccui-animation-ease-out:cubic-bezier(.215, .61, .355, 1);--ccui-animation-ease-in-out:cubic-bezier(.78, .14, .15, .86);--ccui-animation-ease-in-smooth:cubic-bezier(.645, .045, .355, 1);--ccui-animation-linear:cubic-bezier(0, 0, 1, 1);--ccui-z-index-full-page-overlay:1080;--ccui-z-index-pop-up:1060;--ccui-z-index-dropdown:1052;--ccui-z-index-modal:1050;--ccui-z-index-drawer:1040;--ccui-z-index-framework:1000;--ccui-size-sm:24px;--ccui-size-md:32px;--ccui-size-lg:40px;--ccui-color-primary:#1677ff;--ccui-color-primary-hover:#4096ff;--ccui-color-primary-active:#0958d9;--ccui-color-primary-bg:#e6f4ff;--ccui-color-primary-bg-hover:#bae0ff;--ccui-color-primary-border:#91caff;--ccui-color-primary-border-hover:#69b1ff;--ccui-color-success:#52c41a;--ccui-color-success-hover:#73d13d;--ccui-color-success-active:#389e0d;--ccui-color-success-bg:#f6ffed;--ccui-color-success-border:#b7eb8f;--ccui-color-warning:#faad14;--ccui-color-warning-hover:#ffc53d;--ccui-color-warning-active:#d48806;--ccui-color-warning-bg:#fffbe6;--ccui-color-warning-border:#ffe58f;--ccui-color-error:#ff4d4f;--ccui-color-error-hover:#ff7875;--ccui-color-error-active:#d9363e;--ccui-color-error-bg:#fff2f0;--ccui-color-error-border:#ffccc7;--ccui-color-info:#1677ff;--ccui-color-info-hover:#4096ff;--ccui-color-info-bg:#e6f4ff;--ccui-color-info-border:#91caff;--ccui-color-text:#000000e0;--ccui-color-text-secondary:#000000a6;--ccui-color-text-tertiary:#00000073;--ccui-color-text-quaternary:#00000040;--ccui-color-text-disabled:#00000040;--ccui-color-text-placeholder:#00000040;--ccui-color-text-heading:#000000e0;--ccui-color-text-light-solid:#fff;--ccui-color-bg-base:#fff;--ccui-color-bg-container:#fff;--ccui-color-bg-elevated:#fff;--ccui-color-bg-layout:#f5f5f5;--ccui-color-bg-spotlight:#000000d9;--ccui-color-bg-mask:#00000073;--ccui-color-bg-text-hover:#0000000f;--ccui-color-bg-text-active:#00000026;--ccui-color-border:#d9d9d9;--ccui-color-border-secondary:#f0f0f0;--ccui-color-border-disabled:#0000000a;--ccui-color-split:#0505050f;--ccui-color-fill:#00000026;--ccui-color-fill-secondary:#0000000f;--ccui-color-fill-tertiary:#0000000a;--ccui-color-fill-quaternary:#00000005;--ccui-control-outline:#0591ff1a;--ccui-control-outline-error:#ff26050f;--ccui-control-outline-warning:#ffd7051a;--ccui-red-1:#fff1f0;--ccui-red-2:#ffccc7;--ccui-red-3:#ffa39e;--ccui-red-4:#ff7875;--ccui-red-5:#ff4d4f;--ccui-red-6:#f5222d;--ccui-red-7:#cf1322;--ccui-red-8:#a8071a;--ccui-red-9:#820014;--ccui-red-10:#5c0011;--ccui-volcano-1:#fff2e8;--ccui-volcano-2:#ffd8bf;--ccui-volcano-3:#ffbb96;--ccui-volcano-4:#ff9c6e;--ccui-volcano-5:#ff7a45;--ccui-volcano-6:#fa541c;--ccui-volcano-7:#d4380d;--ccui-volcano-8:#ad2102;--ccui-volcano-9:#871400;--ccui-volcano-10:#610b00;--ccui-orange-1:#fff7e6;--ccui-orange-2:#ffe7ba;--ccui-orange-3:#ffd591;--ccui-orange-4:#ffc069;--ccui-orange-5:#ffa940;--ccui-orange-6:#fa8c16;--ccui-orange-7:#d46b08;--ccui-orange-8:#ad4e00;--ccui-orange-9:#873800;--ccui-orange-10:#612500;--ccui-gold-1:#fffbe6;--ccui-gold-2:#fff1b8;--ccui-gold-3:#ffe58f;--ccui-gold-4:#ffd666;--ccui-gold-5:#ffc53d;--ccui-gold-6:#faad14;--ccui-gold-7:#d48806;--ccui-gold-8:#ad6800;--ccui-gold-9:#874d00;--ccui-gold-10:#613400;--ccui-yellow-1:#feffe6;--ccui-yellow-2:#ffffb8;--ccui-yellow-3:#fffb8f;--ccui-yellow-4:#fff566;--ccui-yellow-5:#ffec3d;--ccui-yellow-6:#fadb14;--ccui-yellow-7:#d4b106;--ccui-yellow-8:#ad8b00;--ccui-yellow-9:#876800;--ccui-yellow-10:#614700;--ccui-lime-1:#fcffe6;--ccui-lime-2:#f4ffb8;--ccui-lime-3:#eaff8f;--ccui-lime-4:#d3f261;--ccui-lime-5:#bae637;--ccui-lime-6:#a0d911;--ccui-lime-7:#7cb305;--ccui-lime-8:#5b8c00;--ccui-lime-9:#3f6600;--ccui-lime-10:#254000;--ccui-green-1:#f6ffed;--ccui-green-2:#d9f7be;--ccui-green-3:#b7eb8f;--ccui-green-4:#95de64;--ccui-green-5:#73d13d;--ccui-green-6:#52c41a;--ccui-green-7:#389e0d;--ccui-green-8:#237804;--ccui-green-9:#135200;--ccui-green-10:#092b00;--ccui-cyan-1:#e6fffb;--ccui-cyan-2:#b5f5ec;--ccui-cyan-3:#87e8de;--ccui-cyan-4:#5cdbd3;--ccui-cyan-5:#36cfc9;--ccui-cyan-6:#13c2c2;--ccui-cyan-7:#08979c;--ccui-cyan-8:#006d75;--ccui-cyan-9:#00474f;--ccui-cyan-10:#002329;--ccui-blue-1:#e6f4ff;--ccui-blue-2:#bae0ff;--ccui-blue-3:#91caff;--ccui-blue-4:#69b1ff;--ccui-blue-5:#4096ff;--ccui-blue-6:#1677ff;--ccui-blue-7:#0958d9;--ccui-blue-8:#003eb3;--ccui-blue-9:#002c8c;--ccui-blue-10:#001d66;--ccui-geekblue-1:#f0f5ff;--ccui-geekblue-2:#d6e4ff;--ccui-geekblue-3:#adc6ff;--ccui-geekblue-4:#85a5ff;--ccui-geekblue-5:#597ef7;--ccui-geekblue-6:#2f54eb;--ccui-geekblue-7:#1d39c4;--ccui-geekblue-8:#10239e;--ccui-geekblue-9:#061178;--ccui-geekblue-10:#030852;--ccui-purple-1:#f9f0ff;--ccui-purple-2:#efdbff;--ccui-purple-3:#d3adf7;--ccui-purple-4:#b37feb;--ccui-purple-5:#9254de;--ccui-purple-6:#722ed1;--ccui-purple-7:#531dab;--ccui-purple-8:#391085;--ccui-purple-9:#22075e;--ccui-purple-10:#120338;--ccui-magenta-1:#fff0f6;--ccui-magenta-2:#ffd6e7;--ccui-magenta-3:#ffadd2;--ccui-magenta-4:#ff85c0;--ccui-magenta-5:#f759ab;--ccui-magenta-6:#eb2f96;--ccui-magenta-7:#c41d7f;--ccui-magenta-8:#9e1068;--ccui-magenta-9:#780650;--ccui-magenta-10:#520339;--ccui-pink-1:#fff0f6;--ccui-pink-6:#eb2f96;--ccui-border-radius-lg:8px;--ccui-border-radius-sm:4px;--ccui-border-radius-xs:2px;--ccui-border-radius-outer:4px;--ccui-font-size-xl:20px;--ccui-font-size-heading-1:38px;--ccui-font-size-heading-2:30px;--ccui-font-size-heading-3:24px;--ccui-font-size-heading-4:20px;--ccui-font-size-heading-5:16px;--ccui-line-height-lg:1.5;--ccui-line-height-sm:1.66;--ccui-line-height-heading-1:1.21052;--ccui-line-height-heading-2:1.26666;--ccui-line-height-heading-3:1.33333;--ccui-line-height-heading-4:1.4;--ccui-line-height-heading-5:1.5;--ccui-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--ccui-font-family-code:SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;--ccui-control-height:32px;--ccui-control-height-sm:24px;--ccui-control-height-lg:40px;--ccui-control-height-xs:16px;--ccui-box-shadow:0 6px 16px 0 #00000014, 0 3px 6px -4px #0000001f, 0 9px 28px 8px #0000000d;--ccui-box-shadow-secondary:0 6px 16px 0 #00000014, 0 3px 6px -4px #0000001f, 0 9px 28px 8px #0000000d;--ccui-box-shadow-tertiary:0 1px 2px 0 #00000008, 0 1px 6px -1px #00000005, 0 2px 4px 0 #00000005;--ccui-motion-duration-slow:.3s;--ccui-motion-duration-mid:.2s;--ccui-motion-duration-fast:.1s;--ccui-motion-ease-in-out:cubic-bezier(.645, .045, .355, 1);--ccui-motion-ease-out:cubic-bezier(.215, .61, .355, 1);--ccui-motion-ease-in:cubic-bezier(.55, .055, .675, .19);--ccui-motion-ease-out-back:cubic-bezier(.12, .4, .29, 1.46);--ccui-motion-ease-in-back:cubic-bezier(.71, -.46, .88, .6);--ccui-motion-ease-out-circ:cubic-bezier(.08, .82, .17, 1);--ccui-motion-ease-in-out-circ:cubic-bezier(.78, .14, .15, .86);--ccui-padding-xxs:4px;--ccui-padding-xs:8px;--ccui-padding-sm:12px;--ccui-padding:16px;--ccui-padding-md:20px;--ccui-padding-lg:24px;--ccui-padding-xl:32px;--ccui-margin-xxs:4px;--ccui-margin-xs:8px;--ccui-margin-sm:12px;--ccui-margin:16px;--ccui-margin-md:20px;--ccui-margin-lg:24px;--ccui-margin-xl:32px}.ccui-popconfirm__inner{min-width:220px;padding:4px 0}.ccui-popconfirm__header{align-items:flex-start;margin-bottom:8px;display:flex}.ccui-popconfirm__icon{margin-inline-end:8px;color:var(--ccui-color-warning,#faad14);flex:none;margin-top:2px}.ccui-popconfirm__warning{color:#fff;background:var(--ccui-color-warning,#faad14);border-radius:50%;justify-content:center;align-items:center;width:16px;height:16px;font-size:12px;font-weight:700;line-height:1;display:inline-flex}.ccui-popconfirm__text{flex:1;min-width:0}.ccui-popconfirm__title{color:var(--ccui-color-text,#000000e0);font-size:var(--ccui-font-size,14px);font-weight:500;line-height:var(--ccui-line-height-base,1.57143);word-break:break-word}.ccui-popconfirm__description{color:var(--ccui-color-text-secondary,#000000a6);font-size:var(--ccui-font-size,14px);line-height:var(--ccui-line-height-base,1.57143);margin-top:4px}.ccui-popconfirm__actions{justify-content:flex-end;gap:8px;margin-top:8px;display:flex}.ccui-popconfirm__btn{height:24px;font-size:var(--ccui-font-size-sm,12px);color:var(--ccui-color-text,#000000e0);background-color:var(--ccui-color-bg-container,#fff);border:1px solid var(--ccui-color-border,#d9d9d9);border-radius:var(--ccui-border-radius-sm,4px);cursor:pointer;transition:all var(--ccui-motion-duration-mid,.2s);padding:0 12px;line-height:22px}.ccui-popconfirm__btn:hover{color:var(--ccui-color-primary,#1677ff);border-color:var(--ccui-color-primary,#1677ff)}.ccui-popconfirm__btn--primary{color:#fff;background-color:var(--ccui-color-primary,#1677ff);border-color:var(--ccui-color-primary,#1677ff)}.ccui-popconfirm__btn--primary:hover{color:#fff;background-color:var(--ccui-color-primary-hover,#4096ff);border-color:var(--ccui-color-primary-hover,#4096ff)}.ccui-popconfirm__btn--danger{color:#fff;background-color:var(--ccui-color-error,#ff4d4f);border-color:var(--ccui-color-error,#ff4d4f)}.ccui-popconfirm__btn--danger:hover{color:#fff;background-color:var(--ccui-color-error-hover,#ff7875);border-color:var(--ccui-color-error-hover,#ff7875)}
|
|
2
|
+
/*$vite$:1*/
|