yd-admin 0.1.8 → 0.1.10
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/README.md +7 -0
- package/dist/index.js +472 -610
- package/dist/style.css +109 -109
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18,9 +18,14 @@ var __exportAll = (all, no_symbols) => {
|
|
|
18
18
|
/**
|
|
19
19
|
* Web Crypto API 加密工具
|
|
20
20
|
* 使用 AES-GCM 算法进行对称加密
|
|
21
|
+
*
|
|
22
|
+
* 环境变量:
|
|
23
|
+
* - VITE_CRYPTO_SALT: 自定义盐值 (允许使用项目覆盖)
|
|
24
|
+
* 示例: VITE_CRYPTO_SALT=your-project-salt
|
|
21
25
|
*/
|
|
22
26
|
const encoder = new TextEncoder();
|
|
23
27
|
const decoder = new TextDecoder();
|
|
28
|
+
const CRYPTO_SALT = import.meta.env.VITE_CRYPTO_SALT || "yd-admin-salt-fixed";
|
|
24
29
|
/**
|
|
25
30
|
* 密钥派生缓存
|
|
26
31
|
* 避免每次加密/解密都重新派生密钥 (PBKDF2 100000 次迭代开销较大)
|
|
@@ -41,7 +46,7 @@ async function deriveKey(password) {
|
|
|
41
46
|
const cached = keyCache.get(password);
|
|
42
47
|
if (cached) return cached.key;
|
|
43
48
|
const keyMaterial = await crypto.subtle.importKey("raw", encoder.encode(password), { name: "PBKDF2" }, false, ["deriveKey"]);
|
|
44
|
-
const salt = encoder.encode(
|
|
49
|
+
const salt = encoder.encode(CRYPTO_SALT);
|
|
45
50
|
const key = await crypto.subtle.deriveKey({
|
|
46
51
|
name: "PBKDF2",
|
|
47
52
|
salt,
|
|
@@ -675,12 +680,12 @@ var export_helper_default = (sfc, props) => {
|
|
|
675
680
|
};
|
|
676
681
|
//#endregion
|
|
677
682
|
//#region src/components/base/button/button.vue
|
|
678
|
-
const _hoisted_1$
|
|
679
|
-
const _hoisted_2$
|
|
683
|
+
const _hoisted_1$57 = ["disabled", "type"];
|
|
684
|
+
const _hoisted_2$37 = {
|
|
680
685
|
key: 0,
|
|
681
686
|
class: "yd-button__loading"
|
|
682
687
|
};
|
|
683
|
-
const _hoisted_3$
|
|
688
|
+
const _hoisted_3$28 = { class: "yd-button__content" };
|
|
684
689
|
var button_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
685
690
|
name: "YdButton",
|
|
686
691
|
__name: "button",
|
|
@@ -725,7 +730,7 @@ var button_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defin
|
|
|
725
730
|
disabled: __props.disabled || __props.loading,
|
|
726
731
|
type: __props.nativeType,
|
|
727
732
|
onClick: handleClick
|
|
728
|
-
}, [__props.loading ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
733
|
+
}, [__props.loading ? (openBlock(), createElementBlock("span", _hoisted_2$37, [..._cache[0] || (_cache[0] = [createElementVNode("svg", {
|
|
729
734
|
class: "yd-button__spinner",
|
|
730
735
|
viewBox: "0 0 24 24"
|
|
731
736
|
}, [createElementVNode("circle", {
|
|
@@ -737,7 +742,7 @@ var button_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defin
|
|
|
737
742
|
"stroke-width": "3",
|
|
738
743
|
"stroke-dasharray": "31.4 31.4",
|
|
739
744
|
"stroke-linecap": "round"
|
|
740
|
-
})], -1)])])) : createCommentVNode("v-if", true), createElementVNode("span", _hoisted_3$
|
|
745
|
+
})], -1)])])) : createCommentVNode("v-if", true), createElementVNode("span", _hoisted_3$28, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])], 10, _hoisted_1$57);
|
|
741
746
|
};
|
|
742
747
|
}
|
|
743
748
|
}), [["__scopeId", "data-v-08fa2dc1"]]);
|
|
@@ -753,7 +758,11 @@ const iconRegistry = ref({
|
|
|
753
758
|
search: "<path d=\"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>",
|
|
754
759
|
menu: "<path d=\"M4 6h16M4 12h16M4 18h16\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>",
|
|
755
760
|
user: "<path d=\"M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/><circle cx=\"12\" cy=\"7\" r=\"4\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>",
|
|
756
|
-
settings: "<path d=\"M12 15a3 3 0 100-6 3 3 0 000 6z\" stroke=\"currentColor\" stroke-width=\"2\"/><path d=\"M19.4 15a1.65 1.65 0 00.33 1.82l.06.06a2 2 0 010 2.83 2 2 0 01-2.83 0l-.06-.06a1.65 1.65 0 00-1.82-.33 1.65 1.65 0 00-1 1.51V21a2 2 0 01-2 2 2 2 0 01-2-2v-.09A1.65 1.65 0 009 19.4a1.65 1.65 0 00-1.82.33l-.06.06a2 2 0 01-2.83 0 2 2 0 010-2.83l.06-.06a1.65 1.65 0 00.33-1.82 1.65 1.65 0 00-1.51-1H3a2 2 0 01-2-2 2 2 0 012-2h.09A1.65 1.65 0 004.6 9a1.65 1.65 0 00-.33-1.82l-.06-.06a2 2 0 010-2.83 2 2 0 012.83 0l.06.06a1.65 1.65 0 001.82.33H9a1.65 1.65 0 001-1.51V3a2 2 0 012-2 2 2 0 012 2v.09a1.65 1.65 0 001 1.51 1.65 1.65 0 001.82-.33l.06-.06a2 2 0 012.83 0 2 2 0 010 2.83l-.06.06a1.65 1.65
|
|
761
|
+
settings: "<path d=\"M12 15a3 3 0 100-6 3 3 0 000 6z\" stroke=\"currentColor\" stroke-width=\"2\"/><path d=\"M19.4 15a1.65 1.65 0 00.33 1.82l.06.06a2 2 0 010 2.83 2 2 0 01-2.83 0l-.06-.06a1.65 1.65 0 00-1.82-.33 1.65 1.65 0 00-1 1.51V21a2 2 0 01-2 2 2 2 0 01-2-2v-.09A1.65 1.65 0 009 19.4a1.65 1.65 0 00-1.82.33l-.06.06a2 2 0 01-2.83 0 2 2 0 010-2.83l.06-.06a1.65 1.65 0 00.33-1.82 1.65 1.65 0 00-1.51-1H3a2 2 0 01-2-2 2 2 0 012-2h.09A1.65 1.65 0 004.6 9a1.65 1.65 0 00-.33-1.82l-.06-.06a2 2 0 010-2.83 2 2 0 012.83 0l.06.06a1.65 1.65 0 001.82.33H9a1.65 1.65 0 001-1.51V3a2 2 0 012-2 2 2 0 012 2v.09a1.65 1.65 0 001 1.51 1.65 1.65 0 001.82-.33l.06-.06a2 2 0 012.83 0 2 2 0 010 2.83l-.06.06a1.65 1.65 00-.33 1.82V9a1.65 1.65 0 001.51 1H21a2 2 0 012 2 2 2 0 01-2 2h-.09a1.65 1.65 0 00-1.51 1z\" stroke=\"currentColor\" stroke-width=\"2\"/>",
|
|
762
|
+
"info-circle": "<circle cx=\"12\" cy=\"12\" r=\"10\" stroke=\"currentColor\" stroke-width=\"2\"/><line x1=\"12\" y1=\"16\" x2=\"12\" y2=\"12\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"/><line x1=\"12\" y1=\"8\" x2=\"12.01\" y2=\"8\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"/>",
|
|
763
|
+
"success-circle": "<path d=\"M22 11.08V12a10 10 0 1 1-5.93-9.14\" stroke=\"currentColor\" stroke-width=\"2\"/><polyline points=\"22 4 12 14.01 9 11.01\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>",
|
|
764
|
+
"warning-circle": "<path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z\" stroke=\"currentColor\" stroke-width=\"2\"/><line x1=\"12\" y1=\"9\" x2=\"12\" y2=\"13\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"/><line x1=\"12\" y1=\"17\" x2=\"12.01\" y2=\"17\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"/>",
|
|
765
|
+
"error-circle": "<circle cx=\"12\" cy=\"12\" r=\"10\" stroke=\"currentColor\" stroke-width=\"2\"/><line x1=\"15\" y1=\"9\" x2=\"9\" y2=\"15\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"/><line x1=\"9\" y1=\"9\" x2=\"15\" y2=\"15\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"/>"
|
|
757
766
|
});
|
|
758
767
|
function registerIcon(name, svg) {
|
|
759
768
|
iconRegistry.value[name] = svg;
|
|
@@ -766,7 +775,7 @@ function getIconRegistry() {
|
|
|
766
775
|
}
|
|
767
776
|
//#endregion
|
|
768
777
|
//#region src/components/base/icon/icon.vue
|
|
769
|
-
const _hoisted_1$
|
|
778
|
+
const _hoisted_1$56 = ["innerHTML"];
|
|
770
779
|
var icon_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
771
780
|
name: "YdIcon",
|
|
772
781
|
inheritAttrs: false,
|
|
@@ -816,13 +825,13 @@ var icon_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineC
|
|
|
816
825
|
fill: "none",
|
|
817
826
|
xmlns: "http://www.w3.org/2000/svg",
|
|
818
827
|
innerHTML: svgContent.value
|
|
819
|
-
}, null, 10, _hoisted_1$
|
|
828
|
+
}, null, 10, _hoisted_1$56)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" Slot Fallback "), renderSlot(_ctx.$slots, "default", {}, void 0, true)], 2112))], 16);
|
|
820
829
|
};
|
|
821
830
|
}
|
|
822
831
|
}), [["__scopeId", "data-v-20774ae9"]]);
|
|
823
832
|
//#endregion
|
|
824
833
|
//#region src/components/base/input/input.vue
|
|
825
|
-
const _hoisted_1$
|
|
834
|
+
const _hoisted_1$55 = [
|
|
826
835
|
"type",
|
|
827
836
|
"value",
|
|
828
837
|
"placeholder",
|
|
@@ -931,32 +940,15 @@ var input_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ define
|
|
|
931
940
|
onFocus: handleFocus,
|
|
932
941
|
onBlur: handleBlur,
|
|
933
942
|
onKeydown: handleKeydown
|
|
934
|
-
}, null, 42, _hoisted_1$
|
|
943
|
+
}, null, 42, _hoisted_1$55),
|
|
935
944
|
__props.clearable && __props.modelValue && !__props.disabled ? (openBlock(), createElementBlock("span", {
|
|
936
945
|
key: 1,
|
|
937
946
|
class: normalizeClass(e("clear")),
|
|
938
947
|
onClick: handleClear
|
|
939
|
-
}, [
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
viewBox: "0 0 24 24",
|
|
944
|
-
fill: "none",
|
|
945
|
-
stroke: "currentColor",
|
|
946
|
-
"stroke-width": "2",
|
|
947
|
-
"stroke-linecap": "round",
|
|
948
|
-
"stroke-linejoin": "round"
|
|
949
|
-
}, [createElementVNode("line", {
|
|
950
|
-
x1: "18",
|
|
951
|
-
y1: "6",
|
|
952
|
-
x2: "6",
|
|
953
|
-
y2: "18"
|
|
954
|
-
}), createElementVNode("line", {
|
|
955
|
-
x1: "6",
|
|
956
|
-
y1: "6",
|
|
957
|
-
x2: "18",
|
|
958
|
-
y2: "18"
|
|
959
|
-
})], -1)])], 2)) : createCommentVNode("v-if", true),
|
|
948
|
+
}, [createVNode(icon_default, {
|
|
949
|
+
name: "close",
|
|
950
|
+
size: 14
|
|
951
|
+
})], 2)) : createCommentVNode("v-if", true),
|
|
960
952
|
_ctx.$slots.suffix || __props.suffixIcon ? (openBlock(), createElementBlock("div", {
|
|
961
953
|
key: 2,
|
|
962
954
|
class: normalizeClass(e("suffix"))
|
|
@@ -968,10 +960,10 @@ var input_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ define
|
|
|
968
960
|
], 2);
|
|
969
961
|
};
|
|
970
962
|
}
|
|
971
|
-
}), [["__scopeId", "data-v-
|
|
963
|
+
}), [["__scopeId", "data-v-5c21184f"]]);
|
|
972
964
|
//#endregion
|
|
973
965
|
//#region src/components/base/textarea/textarea.vue
|
|
974
|
-
const _hoisted_1$
|
|
966
|
+
const _hoisted_1$54 = [
|
|
975
967
|
"value",
|
|
976
968
|
"placeholder",
|
|
977
969
|
"disabled",
|
|
@@ -1065,7 +1057,7 @@ var textarea_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ def
|
|
|
1065
1057
|
onChange: handleChange,
|
|
1066
1058
|
onFocus: handleFocus,
|
|
1067
1059
|
onBlur: handleBlur
|
|
1068
|
-
}, null, 42, _hoisted_1$
|
|
1060
|
+
}, null, 42, _hoisted_1$54), __props.showWordLimit && __props.maxlength ? (openBlock(), createElementBlock("span", {
|
|
1069
1061
|
key: 0,
|
|
1070
1062
|
class: normalizeClass(e("word-limit"))
|
|
1071
1063
|
}, toDisplayString(String(__props.modelValue).length) + "/" + toDisplayString(__props.maxlength), 3)) : createCommentVNode("v-if", true)], 2);
|
|
@@ -1074,9 +1066,9 @@ var textarea_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ def
|
|
|
1074
1066
|
}), [["__scopeId", "data-v-13af2da6"]]);
|
|
1075
1067
|
//#endregion
|
|
1076
1068
|
//#region src/components/base/input-number/input-number.vue
|
|
1077
|
-
const _hoisted_1$
|
|
1078
|
-
const _hoisted_2$
|
|
1079
|
-
const _hoisted_3$
|
|
1069
|
+
const _hoisted_1$53 = ["disabled"];
|
|
1070
|
+
const _hoisted_2$36 = ["value", "disabled"];
|
|
1071
|
+
const _hoisted_3$27 = ["disabled"];
|
|
1080
1072
|
var input_number_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
1081
1073
|
name: "YdInputNumber",
|
|
1082
1074
|
__name: "input-number",
|
|
@@ -1171,7 +1163,7 @@ var input_number_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */
|
|
|
1171
1163
|
y1: "12",
|
|
1172
1164
|
x2: "19",
|
|
1173
1165
|
y2: "12"
|
|
1174
|
-
})], -1)])], 10, _hoisted_1$
|
|
1166
|
+
})], -1)])], 10, _hoisted_1$53),
|
|
1175
1167
|
createElementVNode("input", {
|
|
1176
1168
|
ref_key: "inputRef",
|
|
1177
1169
|
ref: inputRef,
|
|
@@ -1182,7 +1174,7 @@ var input_number_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */
|
|
|
1182
1174
|
onInput: handleInput,
|
|
1183
1175
|
onBlur: handleBlur,
|
|
1184
1176
|
onKeydown: handleKeydown
|
|
1185
|
-
}, null, 42, _hoisted_2$
|
|
1177
|
+
}, null, 42, _hoisted_2$36),
|
|
1186
1178
|
createElementVNode("button", {
|
|
1187
1179
|
class: normalizeClass(e("btn")),
|
|
1188
1180
|
disabled: __props.disabled || __props.modelValue >= __props.max,
|
|
@@ -1207,7 +1199,7 @@ var input_number_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */
|
|
|
1207
1199
|
y1: "12",
|
|
1208
1200
|
x2: "19",
|
|
1209
1201
|
y2: "12"
|
|
1210
|
-
})], -1)])], 10, _hoisted_3$
|
|
1202
|
+
})], -1)])], 10, _hoisted_3$27)
|
|
1211
1203
|
], 2)], 2);
|
|
1212
1204
|
};
|
|
1213
1205
|
}
|
|
@@ -1259,13 +1251,13 @@ var empty_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ define
|
|
|
1259
1251
|
}), [["__scopeId", "data-v-ed413d74"]]);
|
|
1260
1252
|
//#endregion
|
|
1261
1253
|
//#region src/components/base/select/select.vue
|
|
1262
|
-
const _hoisted_1$
|
|
1254
|
+
const _hoisted_1$52 = [
|
|
1263
1255
|
"value",
|
|
1264
1256
|
"placeholder",
|
|
1265
1257
|
"disabled"
|
|
1266
1258
|
];
|
|
1267
|
-
const _hoisted_2$
|
|
1268
|
-
const _hoisted_3$
|
|
1259
|
+
const _hoisted_2$35 = ["onClick"];
|
|
1260
|
+
const _hoisted_3$26 = ["onClick"];
|
|
1269
1261
|
var select_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
1270
1262
|
name: "YdSelect",
|
|
1271
1263
|
inheritAttrs: false,
|
|
@@ -1492,7 +1484,7 @@ var select_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defin
|
|
|
1492
1484
|
onFocus: handleFocus,
|
|
1493
1485
|
onBlur: handleBlur,
|
|
1494
1486
|
onKeydown: _cache[0] || (_cache[0] = withModifiers(() => {}, ["stop"]))
|
|
1495
|
-
}, null, 42, _hoisted_1$
|
|
1487
|
+
}, null, 42, _hoisted_1$52)) : (openBlock(), createElementBlock("div", {
|
|
1496
1488
|
key: 1,
|
|
1497
1489
|
class: normalizeClass([e("display"), { [e("display--placeholder")]: !selectedLabel.value }])
|
|
1498
1490
|
}, toDisplayString(selectedLabel.value || __props.placeholder), 3)),
|
|
@@ -1500,38 +1492,14 @@ var select_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defin
|
|
|
1500
1492
|
key: 2,
|
|
1501
1493
|
class: normalizeClass(e("clear")),
|
|
1502
1494
|
onClick: withModifiers(handleClear, ["stop"])
|
|
1503
|
-
}, [
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
"stroke-linecap": "round",
|
|
1512
|
-
"stroke-linejoin": "round"
|
|
1513
|
-
}, [createElementVNode("line", {
|
|
1514
|
-
x1: "18",
|
|
1515
|
-
y1: "6",
|
|
1516
|
-
x2: "6",
|
|
1517
|
-
y2: "18"
|
|
1518
|
-
}), createElementVNode("line", {
|
|
1519
|
-
x1: "6",
|
|
1520
|
-
y1: "6",
|
|
1521
|
-
x2: "18",
|
|
1522
|
-
y2: "18"
|
|
1523
|
-
})], -1)])], 2)) : createCommentVNode("v-if", true),
|
|
1524
|
-
createElementVNode("span", { class: normalizeClass(e("arrow")) }, [..._cache[3] || (_cache[3] = [createElementVNode("svg", {
|
|
1525
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1526
|
-
width: "12",
|
|
1527
|
-
height: "12",
|
|
1528
|
-
viewBox: "0 0 24 24",
|
|
1529
|
-
fill: "none",
|
|
1530
|
-
stroke: "currentColor",
|
|
1531
|
-
"stroke-width": "2",
|
|
1532
|
-
"stroke-linecap": "round",
|
|
1533
|
-
"stroke-linejoin": "round"
|
|
1534
|
-
}, [createElementVNode("polyline", { points: "6 9 12 15 18 9" })], -1)])], 2)
|
|
1495
|
+
}, [createVNode(icon_default, {
|
|
1496
|
+
name: "close",
|
|
1497
|
+
size: 14
|
|
1498
|
+
})], 2)) : createCommentVNode("v-if", true),
|
|
1499
|
+
createElementVNode("span", { class: normalizeClass(e("arrow")) }, [createVNode(icon_default, {
|
|
1500
|
+
name: "chevronDown",
|
|
1501
|
+
size: 12
|
|
1502
|
+
})], 2)
|
|
1535
1503
|
], 2),
|
|
1536
1504
|
__props.error || __props.hint ? (openBlock(), createElementBlock("div", {
|
|
1537
1505
|
key: 1,
|
|
@@ -1569,7 +1537,7 @@ var select_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defin
|
|
|
1569
1537
|
}, [createElementVNode("span", null, toDisplayString(opt.label), 1), isSelected(opt.value) ? (openBlock(), createElementBlock("span", {
|
|
1570
1538
|
key: 0,
|
|
1571
1539
|
class: normalizeClass(e("check"))
|
|
1572
|
-
}, "✓", 2)) : createCommentVNode("v-if", true)], 10, _hoisted_2$
|
|
1540
|
+
}, "✓", 2)) : createCommentVNode("v-if", true)], 10, _hoisted_2$35);
|
|
1573
1541
|
}), 128))], 2)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" Option "), createElementVNode("div", {
|
|
1574
1542
|
class: normalizeClass([e("option"), {
|
|
1575
1543
|
[e("option--active")]: isSelected(option.value),
|
|
@@ -1579,17 +1547,17 @@ var select_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defin
|
|
|
1579
1547
|
}, [createElementVNode("span", null, toDisplayString(option.label), 1), isSelected(option.value) ? (openBlock(), createElementBlock("span", {
|
|
1580
1548
|
key: 0,
|
|
1581
1549
|
class: normalizeClass(e("check"))
|
|
1582
|
-
}, "✓", 2)) : createCommentVNode("v-if", true)], 10, _hoisted_3$
|
|
1550
|
+
}, "✓", 2)) : createCommentVNode("v-if", true)], 10, _hoisted_3$26)], 2112))], 64);
|
|
1583
1551
|
}), 128))], 6))], 6)) : createCommentVNode("v-if", true)]),
|
|
1584
1552
|
_: 1
|
|
1585
1553
|
})]))
|
|
1586
1554
|
], 2);
|
|
1587
1555
|
};
|
|
1588
1556
|
}
|
|
1589
|
-
}), [["__scopeId", "data-v-
|
|
1557
|
+
}), [["__scopeId", "data-v-64b103da"]]);
|
|
1590
1558
|
//#endregion
|
|
1591
1559
|
//#region src/components/base/switch/switch.vue
|
|
1592
|
-
const _hoisted_1$
|
|
1560
|
+
const _hoisted_1$51 = ["aria-checked", "disabled"];
|
|
1593
1561
|
var switch_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
1594
1562
|
name: "YdSwitch",
|
|
1595
1563
|
__name: "switch",
|
|
@@ -1625,13 +1593,13 @@ var switch_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defin
|
|
|
1625
1593
|
class: normalizeClass(switchClasses.value),
|
|
1626
1594
|
disabled: __props.disabled,
|
|
1627
1595
|
onClick: toggle
|
|
1628
|
-
}, [createElementVNode("span", { class: normalizeClass(e("thumb")) }, null, 2)], 10, _hoisted_1$
|
|
1596
|
+
}, [createElementVNode("span", { class: normalizeClass(e("thumb")) }, null, 2)], 10, _hoisted_1$51);
|
|
1629
1597
|
};
|
|
1630
1598
|
}
|
|
1631
1599
|
}), [["__scopeId", "data-v-178da0de"]]);
|
|
1632
1600
|
//#endregion
|
|
1633
1601
|
//#region src/components/base/checkbox/checkbox.vue
|
|
1634
|
-
const _hoisted_1$
|
|
1602
|
+
const _hoisted_1$50 = [
|
|
1635
1603
|
"checked",
|
|
1636
1604
|
"disabled",
|
|
1637
1605
|
"value"
|
|
@@ -1684,7 +1652,7 @@ var checkbox_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ def
|
|
|
1684
1652
|
disabled: __props.disabled,
|
|
1685
1653
|
value: __props.value,
|
|
1686
1654
|
onChange: handleChange
|
|
1687
|
-
}, null, 42, _hoisted_1$
|
|
1655
|
+
}, null, 42, _hoisted_1$50),
|
|
1688
1656
|
createElementVNode("span", { class: normalizeClass(e("box")) }, [__props.modelValue ? (openBlock(), createElementBlock("svg", {
|
|
1689
1657
|
key: 0,
|
|
1690
1658
|
class: normalizeClass(e("icon")),
|
|
@@ -1751,7 +1719,7 @@ var checkbox_group_default = /* @__PURE__ */ export_helper_default(/* @__PURE__
|
|
|
1751
1719
|
}), [["__scopeId", "data-v-3dce3e2c"]]);
|
|
1752
1720
|
//#endregion
|
|
1753
1721
|
//#region src/components/base/radio/radio.vue
|
|
1754
|
-
const _hoisted_1$
|
|
1722
|
+
const _hoisted_1$49 = [
|
|
1755
1723
|
"checked",
|
|
1756
1724
|
"disabled",
|
|
1757
1725
|
"value",
|
|
@@ -1807,7 +1775,7 @@ var radio_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ define
|
|
|
1807
1775
|
value: __props.value,
|
|
1808
1776
|
name: __props.name,
|
|
1809
1777
|
onChange: handleChange
|
|
1810
|
-
}, null, 42, _hoisted_1$
|
|
1778
|
+
}, null, 42, _hoisted_1$49),
|
|
1811
1779
|
createElementVNode("span", { class: normalizeClass(e("dot")) }, null, 2),
|
|
1812
1780
|
_ctx.$slots.default || __props.label ? (openBlock(), createElementBlock("span", {
|
|
1813
1781
|
key: 0,
|
|
@@ -1927,7 +1895,7 @@ var tag_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineCo
|
|
|
1927
1895
|
}), [["__scopeId", "data-v-ae4235fd"]]);
|
|
1928
1896
|
//#endregion
|
|
1929
1897
|
//#region src/components/base/avatar/avatar.vue
|
|
1930
|
-
const _hoisted_1$
|
|
1898
|
+
const _hoisted_1$48 = ["src", "alt"];
|
|
1931
1899
|
var avatar_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
1932
1900
|
name: "YdAvatar",
|
|
1933
1901
|
__name: "avatar",
|
|
@@ -1955,7 +1923,7 @@ var avatar_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defin
|
|
|
1955
1923
|
src: __props.src,
|
|
1956
1924
|
alt: __props.alt,
|
|
1957
1925
|
onError: handleError
|
|
1958
|
-
}, null, 40, _hoisted_1$
|
|
1926
|
+
}, null, 40, _hoisted_1$48)) : _ctx.$slots.default ? (openBlock(), createElementBlock("span", {
|
|
1959
1927
|
key: 1,
|
|
1960
1928
|
class: normalizeClass(e("text"))
|
|
1961
1929
|
}, [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 2)) : (openBlock(), createElementBlock("span", {
|
|
@@ -2015,7 +1983,7 @@ var badge_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ define
|
|
|
2015
1983
|
}), [["__scopeId", "data-v-9b63f1ae"]]);
|
|
2016
1984
|
//#endregion
|
|
2017
1985
|
//#region src/components/base/rate/rate.vue
|
|
2018
|
-
const _hoisted_1$
|
|
1986
|
+
const _hoisted_1$47 = ["onClick", "onMouseenter"];
|
|
2019
1987
|
var rate_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
2020
1988
|
name: "YdRate",
|
|
2021
1989
|
__name: "rate",
|
|
@@ -2080,7 +2048,7 @@ var rate_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineC
|
|
|
2080
2048
|
viewBox: "0 0 24 24",
|
|
2081
2049
|
fill: "currentColor",
|
|
2082
2050
|
stroke: "none"
|
|
2083
|
-
}, [..._cache[1] || (_cache[1] = [createElementVNode("polygon", { points: "12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2" }, null, -1)])], 2))], 42, _hoisted_1$
|
|
2051
|
+
}, [..._cache[1] || (_cache[1] = [createElementVNode("polygon", { points: "12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2" }, null, -1)])], 2))], 42, _hoisted_1$47);
|
|
2084
2052
|
}), 128)), __props.showText ? (openBlock(), createElementBlock("span", {
|
|
2085
2053
|
key: 0,
|
|
2086
2054
|
class: normalizeClass(e("text"))
|
|
@@ -2169,14 +2137,14 @@ var slider_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defin
|
|
|
2169
2137
|
}), [["__scopeId", "data-v-51e82523"]]);
|
|
2170
2138
|
//#endregion
|
|
2171
2139
|
//#region src/components/base/date-picker/date-picker.vue
|
|
2172
|
-
const _hoisted_1$
|
|
2140
|
+
const _hoisted_1$46 = [
|
|
2173
2141
|
"value",
|
|
2174
2142
|
"placeholder",
|
|
2175
2143
|
"disabled"
|
|
2176
2144
|
];
|
|
2177
|
-
const _hoisted_2$
|
|
2178
|
-
const _hoisted_3$
|
|
2179
|
-
const _hoisted_4$
|
|
2145
|
+
const _hoisted_2$34 = ["onClick"];
|
|
2146
|
+
const _hoisted_3$25 = ["onClick"];
|
|
2147
|
+
const _hoisted_4$23 = ["disabled", "onClick"];
|
|
2180
2148
|
var date_picker_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
2181
2149
|
name: "YdDatePicker",
|
|
2182
2150
|
__name: "date-picker",
|
|
@@ -2380,7 +2348,7 @@ var date_picker_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */
|
|
|
2380
2348
|
disabled: __props.disabled,
|
|
2381
2349
|
readonly: "",
|
|
2382
2350
|
onClick: withModifiers(togglePicker, ["stop"])
|
|
2383
|
-
}, null, 10, _hoisted_1$
|
|
2351
|
+
}, null, 10, _hoisted_1$46),
|
|
2384
2352
|
createElementVNode("span", {
|
|
2385
2353
|
class: normalizeClass(e("icon")),
|
|
2386
2354
|
onClick: withModifiers(togglePicker, ["stop"])
|
|
@@ -2404,13 +2372,13 @@ var date_picker_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */
|
|
|
2404
2372
|
key: y,
|
|
2405
2373
|
class: normalizeClass([e("year"), { [e("year--selected")]: selectedYear.value === y }]),
|
|
2406
2374
|
onClick: withModifiers(($event) => selectYear(y), ["stop"])
|
|
2407
|
-
}, toDisplayString(y), 11, _hoisted_2$
|
|
2375
|
+
}, toDisplayString(y), 11, _hoisted_2$34);
|
|
2408
2376
|
}), 128))], 2)], 2)) : view.value === "month" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" Month selection "), createElementVNode("div", { class: normalizeClass(e("view")) }, [createElementVNode("div", { class: normalizeClass(e("view-header")) }, [createElementVNode("button", { onClick: _cache[0] || (_cache[0] = withModifiers(($event) => view.value = "year", ["stop"])) }, toDisplayString(selectedYear.value), 1)], 2), createElementVNode("div", { class: normalizeClass(e("months")) }, [(openBlock(), createElementBlock(Fragment, null, renderList(months, (m, i) => {
|
|
2409
2377
|
return createElementVNode("button", {
|
|
2410
2378
|
key: i,
|
|
2411
2379
|
class: normalizeClass([e("month"), { [e("month--selected")]: selectedMonth.value === i }]),
|
|
2412
2380
|
onClick: withModifiers(($event) => selectMonth(i), ["stop"])
|
|
2413
|
-
}, toDisplayString(m), 11, _hoisted_3$
|
|
2381
|
+
}, toDisplayString(m), 11, _hoisted_3$25);
|
|
2414
2382
|
}), 64))], 2)], 2)], 2112)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [createCommentVNode(" Date selection "), createElementVNode("div", { class: normalizeClass(e("view")) }, [
|
|
2415
2383
|
createElementVNode("div", { class: normalizeClass(e("header")) }, [
|
|
2416
2384
|
createElementVNode("button", { onClick: withModifiers(prevMonth, ["stop"]) }, "‹"),
|
|
@@ -2441,7 +2409,7 @@ var date_picker_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */
|
|
|
2441
2409
|
}]),
|
|
2442
2410
|
disabled: !day.current,
|
|
2443
2411
|
onClick: withModifiers(($event) => selectDate(day), ["stop"])
|
|
2444
|
-
}, toDisplayString(day.date.getDate()), 11, _hoisted_4$
|
|
2412
|
+
}, toDisplayString(day.date.getDate()), 11, _hoisted_4$23);
|
|
2445
2413
|
}), 128))], 2)
|
|
2446
2414
|
], 2)], 2112))], 38)) : createCommentVNode("v-if", true)]))
|
|
2447
2415
|
], 2);
|
|
@@ -2450,12 +2418,12 @@ var date_picker_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */
|
|
|
2450
2418
|
}), [["__scopeId", "data-v-6e664fd9"]]);
|
|
2451
2419
|
//#endregion
|
|
2452
2420
|
//#region src/components/base/date-picker/date-range-picker.vue
|
|
2453
|
-
const _hoisted_1$
|
|
2421
|
+
const _hoisted_1$45 = [
|
|
2454
2422
|
"value",
|
|
2455
2423
|
"placeholder",
|
|
2456
2424
|
"disabled"
|
|
2457
2425
|
];
|
|
2458
|
-
const _hoisted_2$
|
|
2426
|
+
const _hoisted_2$33 = [
|
|
2459
2427
|
"disabled",
|
|
2460
2428
|
"onClick",
|
|
2461
2429
|
"onMouseenter"
|
|
@@ -2621,7 +2589,7 @@ var date_range_picker_default = /* @__PURE__ */ export_helper_default(/* @__PURE
|
|
|
2621
2589
|
placeholder: __props.placeholder,
|
|
2622
2590
|
disabled: __props.disabled,
|
|
2623
2591
|
readonly: ""
|
|
2624
|
-
}, null, 10, _hoisted_1$
|
|
2592
|
+
}, null, 10, _hoisted_1$45),
|
|
2625
2593
|
createElementVNode("span", { class: normalizeClass(e("icon")) }, "📅", 2),
|
|
2626
2594
|
(openBlock(), createBlock(Teleport, { to: "body" }, [visible.value ? (openBlock(), createElementBlock("div", {
|
|
2627
2595
|
key: 0,
|
|
@@ -2659,7 +2627,7 @@ var date_range_picker_default = /* @__PURE__ */ export_helper_default(/* @__PURE
|
|
|
2659
2627
|
onClick: withModifiers(($event) => selectDate(day), ["stop"]),
|
|
2660
2628
|
onMouseenter: ($event) => hoverDate.value = formatDate(day.date),
|
|
2661
2629
|
onMouseleave: _cache[0] || (_cache[0] = ($event) => hoverDate.value = "")
|
|
2662
|
-
}, toDisplayString(day.date.getDate()), 43, _hoisted_2$
|
|
2630
|
+
}, toDisplayString(day.date.getDate()), 43, _hoisted_2$33);
|
|
2663
2631
|
}), 128))], 2)
|
|
2664
2632
|
], 6)) : createCommentVNode("v-if", true)]))
|
|
2665
2633
|
], 2);
|
|
@@ -2668,14 +2636,14 @@ var date_range_picker_default = /* @__PURE__ */ export_helper_default(/* @__PURE
|
|
|
2668
2636
|
}), [["__scopeId", "data-v-c307df48"]]);
|
|
2669
2637
|
//#endregion
|
|
2670
2638
|
//#region src/components/base/time-picker/time-picker.vue
|
|
2671
|
-
const _hoisted_1$
|
|
2639
|
+
const _hoisted_1$44 = [
|
|
2672
2640
|
"value",
|
|
2673
2641
|
"placeholder",
|
|
2674
2642
|
"disabled"
|
|
2675
2643
|
];
|
|
2676
|
-
const _hoisted_2$
|
|
2677
|
-
const _hoisted_3$
|
|
2678
|
-
const _hoisted_4$
|
|
2644
|
+
const _hoisted_2$32 = ["onClick"];
|
|
2645
|
+
const _hoisted_3$24 = ["onClick"];
|
|
2646
|
+
const _hoisted_4$22 = ["onClick"];
|
|
2679
2647
|
var time_picker_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
2680
2648
|
name: "YdTimePicker",
|
|
2681
2649
|
__name: "time-picker",
|
|
@@ -2752,7 +2720,7 @@ var time_picker_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */
|
|
|
2752
2720
|
placeholder: __props.placeholder,
|
|
2753
2721
|
disabled: __props.disabled,
|
|
2754
2722
|
readonly: ""
|
|
2755
|
-
}, null, 10, _hoisted_1$
|
|
2723
|
+
}, null, 10, _hoisted_1$44), (openBlock(), createBlock(Teleport, { to: "body" }, [visible.value ? (openBlock(), createElementBlock("div", {
|
|
2756
2724
|
key: 0,
|
|
2757
2725
|
class: normalizeClass(e("panel")),
|
|
2758
2726
|
style: normalizeStyle(panelStyle.value)
|
|
@@ -2762,14 +2730,14 @@ var time_picker_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */
|
|
|
2762
2730
|
key: h - 1,
|
|
2763
2731
|
class: normalizeClass([e("item"), { [e("item--active")]: selectedHour.value === h - 1 }]),
|
|
2764
2732
|
onClick: ($event) => selectHour(h - 1)
|
|
2765
|
-
}, toDisplayString(String(h - 1).padStart(2, "0")), 11, _hoisted_2$
|
|
2733
|
+
}, toDisplayString(String(h - 1).padStart(2, "0")), 11, _hoisted_2$32);
|
|
2766
2734
|
}), 64))], 2),
|
|
2767
2735
|
createElementVNode("div", { class: normalizeClass(e("column")) }, [(openBlock(), createElementBlock(Fragment, null, renderList(60, (m) => {
|
|
2768
2736
|
return createElementVNode("div", {
|
|
2769
2737
|
key: m - 1,
|
|
2770
2738
|
class: normalizeClass([e("item"), { [e("item--active")]: selectedMinute.value === m - 1 }]),
|
|
2771
2739
|
onClick: ($event) => selectMinute(m - 1)
|
|
2772
|
-
}, toDisplayString(String(m - 1).padStart(2, "0")), 11, _hoisted_3$
|
|
2740
|
+
}, toDisplayString(String(m - 1).padStart(2, "0")), 11, _hoisted_3$24);
|
|
2773
2741
|
}), 64))], 2),
|
|
2774
2742
|
__props.showSeconds ? (openBlock(), createElementBlock("div", {
|
|
2775
2743
|
key: 0,
|
|
@@ -2779,7 +2747,7 @@ var time_picker_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */
|
|
|
2779
2747
|
key: s - 1,
|
|
2780
2748
|
class: normalizeClass([e("item"), { [e("item--active")]: selectedSecond.value === s - 1 }]),
|
|
2781
2749
|
onClick: ($event) => selectSecond(s - 1)
|
|
2782
|
-
}, toDisplayString(String(s - 1).padStart(2, "0")), 11, _hoisted_4$
|
|
2750
|
+
}, toDisplayString(String(s - 1).padStart(2, "0")), 11, _hoisted_4$22);
|
|
2783
2751
|
}), 64))], 2)) : createCommentVNode("v-if", true)
|
|
2784
2752
|
], 2)], 6)) : createCommentVNode("v-if", true)]))], 2);
|
|
2785
2753
|
};
|
|
@@ -2787,15 +2755,15 @@ var time_picker_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */
|
|
|
2787
2755
|
}), [["__scopeId", "data-v-a6fe401a"]]);
|
|
2788
2756
|
//#endregion
|
|
2789
2757
|
//#region src/components/base/cascader/cascader.vue
|
|
2790
|
-
const _hoisted_1$
|
|
2758
|
+
const _hoisted_1$43 = [
|
|
2791
2759
|
"value",
|
|
2792
2760
|
"placeholder",
|
|
2793
2761
|
"disabled",
|
|
2794
2762
|
"readonly"
|
|
2795
2763
|
];
|
|
2796
|
-
const _hoisted_2$
|
|
2797
|
-
const _hoisted_3$
|
|
2798
|
-
const _hoisted_4$
|
|
2764
|
+
const _hoisted_2$31 = ["onClick"];
|
|
2765
|
+
const _hoisted_3$23 = ["onClick"];
|
|
2766
|
+
const _hoisted_4$21 = ["onClick"];
|
|
2799
2767
|
var cascader_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
2800
2768
|
name: "YdCascader",
|
|
2801
2769
|
__name: "cascader",
|
|
@@ -3008,7 +2976,7 @@ var cascader_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ def
|
|
|
3008
2976
|
onInput: handleSearch,
|
|
3009
2977
|
onFocus: handleFocus,
|
|
3010
2978
|
onBlur: handleBlur
|
|
3011
|
-
}, null, 42, _hoisted_1$
|
|
2979
|
+
}, null, 42, _hoisted_1$43), (openBlock(), createBlock(Teleport, { to: "body" }, [visible.value ? (openBlock(), createElementBlock("div", {
|
|
3012
2980
|
key: 0,
|
|
3013
2981
|
class: normalizeClass(e("dropdown")),
|
|
3014
2982
|
style: normalizeStyle(dropdownStyle.value),
|
|
@@ -3031,7 +2999,7 @@ var cascader_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ def
|
|
|
3031
2999
|
}), 128)), __props.multiple ? (openBlock(), createElementBlock("span", {
|
|
3032
3000
|
key: 0,
|
|
3033
3001
|
class: normalizeClass(e("checkmark"))
|
|
3034
|
-
}, toDisplayString(isPathSelected(item.path) ? "✓" : ""), 3)) : createCommentVNode("v-if", true)], 10, _hoisted_2$
|
|
3002
|
+
}, toDisplayString(isPathSelected(item.path) ? "✓" : ""), 3)) : createCommentVNode("v-if", true)], 10, _hoisted_2$31);
|
|
3035
3003
|
}), 128)), searchResults.value.length === 0 ? (openBlock(), createElementBlock("div", {
|
|
3036
3004
|
key: 0,
|
|
3037
3005
|
class: normalizeClass(e("empty"))
|
|
@@ -3043,7 +3011,7 @@ var cascader_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ def
|
|
|
3043
3011
|
}, [createTextVNode(toDisplayString(option.label) + " ", 1), option.children?.length ? (openBlock(), createElementBlock("span", {
|
|
3044
3012
|
key: 0,
|
|
3045
3013
|
class: normalizeClass(e("arrow"))
|
|
3046
|
-
}, "›", 2)) : createCommentVNode("v-if", true)], 10, _hoisted_3$
|
|
3014
|
+
}, "›", 2)) : createCommentVNode("v-if", true)], 10, _hoisted_3$23);
|
|
3047
3015
|
}), 128))], 2), (openBlock(true), createElementBlock(Fragment, null, renderList(activePath.value.length, (level) => {
|
|
3048
3016
|
return openBlock(), createElementBlock(Fragment, { key: level }, [activePath.value[level - 1]?.children?.length ? (openBlock(), createElementBlock("div", {
|
|
3049
3017
|
key: 0,
|
|
@@ -3056,7 +3024,7 @@ var cascader_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ def
|
|
|
3056
3024
|
}, [createTextVNode(toDisplayString(option.label) + " ", 1), option.children?.length ? (openBlock(), createElementBlock("span", {
|
|
3057
3025
|
key: 0,
|
|
3058
3026
|
class: normalizeClass(e("arrow"))
|
|
3059
|
-
}, "›", 2)) : createCommentVNode("v-if", true)], 10, _hoisted_4$
|
|
3027
|
+
}, "›", 2)) : createCommentVNode("v-if", true)], 10, _hoisted_4$21);
|
|
3060
3028
|
}), 128))], 2)) : createCommentVNode("v-if", true)], 64);
|
|
3061
3029
|
}), 128))], 2)], 2112))], 38)) : createCommentVNode("v-if", true)]))], 2);
|
|
3062
3030
|
};
|
|
@@ -3064,7 +3032,7 @@ var cascader_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ def
|
|
|
3064
3032
|
}), [["__scopeId", "data-v-01225c10"]]);
|
|
3065
3033
|
//#endregion
|
|
3066
3034
|
//#region src/components/base/auto-complete/auto-complete.vue
|
|
3067
|
-
const _hoisted_1$
|
|
3035
|
+
const _hoisted_1$42 = ["onClick", "onMouseenter"];
|
|
3068
3036
|
var auto_complete_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
3069
3037
|
name: "YdAutoComplete",
|
|
3070
3038
|
__name: "auto-complete",
|
|
@@ -3148,15 +3116,15 @@ var auto_complete_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ *
|
|
|
3148
3116
|
class: normalizeClass([e("option"), { [e("option--active")]: index === activeIndex.value }]),
|
|
3149
3117
|
onClick: ($event) => selectOption(option),
|
|
3150
3118
|
onMouseenter: ($event) => activeIndex.value = index
|
|
3151
|
-
}, toDisplayString(option.label), 43, _hoisted_1$
|
|
3119
|
+
}, toDisplayString(option.label), 43, _hoisted_1$42);
|
|
3152
3120
|
}), 128))], 6)) : createCommentVNode("v-if", true)]))], 2);
|
|
3153
3121
|
};
|
|
3154
3122
|
}
|
|
3155
3123
|
}), [["__scopeId", "data-v-0251e526"]]);
|
|
3156
3124
|
//#endregion
|
|
3157
3125
|
//#region src/components/base/transfer/transfer.vue
|
|
3158
|
-
const _hoisted_1$
|
|
3159
|
-
const _hoisted_2$
|
|
3126
|
+
const _hoisted_1$41 = ["onClick"];
|
|
3127
|
+
const _hoisted_2$30 = ["onClick"];
|
|
3160
3128
|
var transfer_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
3161
3129
|
name: "YdTransfer",
|
|
3162
3130
|
__name: "transfer",
|
|
@@ -3231,7 +3199,7 @@ var transfer_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ def
|
|
|
3231
3199
|
"model-value",
|
|
3232
3200
|
"disabled",
|
|
3233
3201
|
"onChange"
|
|
3234
|
-
])], 10, _hoisted_1$
|
|
3202
|
+
])], 10, _hoisted_1$41);
|
|
3235
3203
|
}), 128)), sourceOptions.value.length === 0 ? (openBlock(), createBlock(empty_default, {
|
|
3236
3204
|
key: 0,
|
|
3237
3205
|
description: "暂无数据"
|
|
@@ -3279,7 +3247,7 @@ var transfer_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ def
|
|
|
3279
3247
|
"model-value",
|
|
3280
3248
|
"disabled",
|
|
3281
3249
|
"onChange"
|
|
3282
|
-
])], 10, _hoisted_2$
|
|
3250
|
+
])], 10, _hoisted_2$30);
|
|
3283
3251
|
}), 128)), targetOptions.value.length === 0 ? (openBlock(), createBlock(empty_default, {
|
|
3284
3252
|
key: 0,
|
|
3285
3253
|
description: "暂无数据"
|
|
@@ -3290,7 +3258,7 @@ var transfer_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ def
|
|
|
3290
3258
|
}), [["__scopeId", "data-v-a2e1ecd2"]]);
|
|
3291
3259
|
//#endregion
|
|
3292
3260
|
//#region src/components/feedback/spin/spin.vue
|
|
3293
|
-
const _hoisted_1$
|
|
3261
|
+
const _hoisted_1$40 = ["width", "height"];
|
|
3294
3262
|
var spin_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
3295
3263
|
name: "YdSpin",
|
|
3296
3264
|
__name: "spin",
|
|
@@ -3328,7 +3296,7 @@ var spin_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineC
|
|
|
3328
3296
|
"stroke-width": "2",
|
|
3329
3297
|
"stroke-linecap": "round",
|
|
3330
3298
|
"stroke-linejoin": "round"
|
|
3331
|
-
}, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }, null, -1)])], 8, _hoisted_1$
|
|
3299
|
+
}, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }, null, -1)])], 8, _hoisted_1$40))], true)], 6), _ctx.$slots.default || __props.tip ? (openBlock(), createElementBlock("div", {
|
|
3332
3300
|
key: 0,
|
|
3333
3301
|
class: normalizeClass(e("text"))
|
|
3334
3302
|
}, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.tip), 1)], true)], 2)) : createCommentVNode("v-if", true)], 2);
|
|
@@ -3337,8 +3305,8 @@ var spin_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineC
|
|
|
3337
3305
|
}), [["__scopeId", "data-v-f72fb3d9"]]);
|
|
3338
3306
|
//#endregion
|
|
3339
3307
|
//#region src/components/base/upload/upload.vue
|
|
3340
|
-
const _hoisted_1$
|
|
3341
|
-
const _hoisted_2$
|
|
3308
|
+
const _hoisted_1$39 = ["onClick"];
|
|
3309
|
+
const _hoisted_2$29 = [
|
|
3342
3310
|
"multiple",
|
|
3343
3311
|
"accept",
|
|
3344
3312
|
"disabled"
|
|
@@ -3470,7 +3438,7 @@ var upload_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defin
|
|
|
3470
3438
|
key: 3,
|
|
3471
3439
|
class: normalizeClass(e("file-remove")),
|
|
3472
3440
|
onClick: ($event) => handleRemove(index)
|
|
3473
|
-
}, "✕", 10, _hoisted_1$
|
|
3441
|
+
}, "✕", 10, _hoisted_1$39)) : createCommentVNode("v-if", true)
|
|
3474
3442
|
], 2);
|
|
3475
3443
|
}), 128))], 2),
|
|
3476
3444
|
createElementVNode("div", {
|
|
@@ -3491,7 +3459,7 @@ var upload_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defin
|
|
|
3491
3459
|
disabled: __props.disabled,
|
|
3492
3460
|
hidden: "",
|
|
3493
3461
|
onChange: handleFileChange
|
|
3494
|
-
}, null, 40, _hoisted_2$
|
|
3462
|
+
}, null, 40, _hoisted_2$29), renderSlot(_ctx.$slots, "default", {}, () => [createElementVNode("div", { class: normalizeClass(e("trigger-content")) }, [_cache[2] || (_cache[2] = createElementVNode("svg", {
|
|
3495
3463
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3496
3464
|
width: "32",
|
|
3497
3465
|
height: "32",
|
|
@@ -3521,8 +3489,8 @@ var upload_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defin
|
|
|
3521
3489
|
}), [["__scopeId", "data-v-30cb3c39"]]);
|
|
3522
3490
|
//#endregion
|
|
3523
3491
|
//#region src/components/base/captcha/captcha.vue
|
|
3524
|
-
const _hoisted_1$
|
|
3525
|
-
const _hoisted_2$
|
|
3492
|
+
const _hoisted_1$38 = ["width", "height"];
|
|
3493
|
+
const _hoisted_2$28 = [
|
|
3526
3494
|
"src",
|
|
3527
3495
|
"alt",
|
|
3528
3496
|
"width",
|
|
@@ -3640,22 +3608,22 @@ var captcha_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defi
|
|
|
3640
3608
|
class: normalizeClass(e("canvas")),
|
|
3641
3609
|
width: __props.width,
|
|
3642
3610
|
height: __props.height
|
|
3643
|
-
}, null, 10, _hoisted_1$
|
|
3611
|
+
}, null, 10, _hoisted_1$38)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" 后端提供的图片验证码 "), createElementVNode("img", {
|
|
3644
3612
|
class: normalizeClass(e("image")),
|
|
3645
3613
|
src: __props.src,
|
|
3646
3614
|
alt: __props.code || "验证码",
|
|
3647
3615
|
width: __props.width,
|
|
3648
3616
|
height: __props.height
|
|
3649
|
-
}, null, 10, _hoisted_2$
|
|
3617
|
+
}, null, 10, _hoisted_2$28)], 2112))], 2);
|
|
3650
3618
|
};
|
|
3651
3619
|
}
|
|
3652
3620
|
}), [["__scopeId", "data-v-0ad64f93"]]);
|
|
3653
3621
|
//#endregion
|
|
3654
3622
|
//#region src/components/base/login/login.vue
|
|
3655
|
-
const _hoisted_1$
|
|
3656
|
-
const _hoisted_2$
|
|
3657
|
-
const _hoisted_3$
|
|
3658
|
-
const _hoisted_4$
|
|
3623
|
+
const _hoisted_1$37 = ["onClick"];
|
|
3624
|
+
const _hoisted_2$27 = ["placeholder"];
|
|
3625
|
+
const _hoisted_3$22 = ["type", "placeholder"];
|
|
3626
|
+
const _hoisted_4$20 = ["placeholder"];
|
|
3659
3627
|
const _hoisted_5$14 = ["placeholder"];
|
|
3660
3628
|
const _hoisted_6$13 = ["placeholder"];
|
|
3661
3629
|
const _hoisted_7$12 = ["disabled"];
|
|
@@ -3891,7 +3859,7 @@ var login_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ define
|
|
|
3891
3859
|
key: tab.key,
|
|
3892
3860
|
class: normalizeClass([e("tab"), { [e("tab--active")]: activeTab.value === tab.key }]),
|
|
3893
3861
|
onClick: ($event) => activeTab.value = tab.key
|
|
3894
|
-
}, toDisplayString(tab.label), 11, _hoisted_1$
|
|
3862
|
+
}, toDisplayString(tab.label), 11, _hoisted_1$37);
|
|
3895
3863
|
}), 128))], 2)) : createCommentVNode("v-if", true),
|
|
3896
3864
|
createElementVNode("form", {
|
|
3897
3865
|
class: normalizeClass(e("form")),
|
|
@@ -3904,7 +3872,7 @@ var login_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ define
|
|
|
3904
3872
|
class: normalizeClass(e("input")),
|
|
3905
3873
|
placeholder: __props.usernamePlaceholder,
|
|
3906
3874
|
autocomplete: "username"
|
|
3907
|
-
}, null, 10, _hoisted_2$
|
|
3875
|
+
}, null, 10, _hoisted_2$27), [[vModelText, formData.username]])], 2)], 2),
|
|
3908
3876
|
createElementVNode("div", { class: normalizeClass(e("field")) }, [createElementVNode("div", { class: normalizeClass(e("input-wrapper")) }, [
|
|
3909
3877
|
createElementVNode("span", { class: normalizeClass(e("input-icon")) }, "🔒", 2),
|
|
3910
3878
|
withDirectives(createElementVNode("input", {
|
|
@@ -3913,7 +3881,7 @@ var login_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ define
|
|
|
3913
3881
|
class: normalizeClass(e("input")),
|
|
3914
3882
|
placeholder: __props.passwordPlaceholder,
|
|
3915
3883
|
autocomplete: "current-password"
|
|
3916
|
-
}, null, 10, _hoisted_3$
|
|
3884
|
+
}, null, 10, _hoisted_3$22), [[vModelDynamic, formData.password]]),
|
|
3917
3885
|
createElementVNode("button", {
|
|
3918
3886
|
type: "button",
|
|
3919
3887
|
class: normalizeClass(e("toggle-pwd")),
|
|
@@ -3933,7 +3901,7 @@ var login_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ define
|
|
|
3933
3901
|
type: "text",
|
|
3934
3902
|
maxlength: "4",
|
|
3935
3903
|
autocomplete: "off"
|
|
3936
|
-
}, null, 10, _hoisted_4$
|
|
3904
|
+
}, null, 10, _hoisted_4$20), [[vModelText, formData.captchaCode]])], 2), (openBlock(), createBlock(captcha_default, {
|
|
3937
3905
|
class: normalizeClass(e("captcha-img")),
|
|
3938
3906
|
src: __props.captchaSrc,
|
|
3939
3907
|
code: captchaCode.value,
|
|
@@ -4066,10 +4034,10 @@ var login_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ define
|
|
|
4066
4034
|
}), [["__scopeId", "data-v-6981722d"]]);
|
|
4067
4035
|
//#endregion
|
|
4068
4036
|
//#region src/components/base/login/login-centered.vue
|
|
4069
|
-
const _hoisted_1$
|
|
4070
|
-
const _hoisted_2$
|
|
4071
|
-
const _hoisted_3$
|
|
4072
|
-
const _hoisted_4$
|
|
4037
|
+
const _hoisted_1$36 = ["fill"];
|
|
4038
|
+
const _hoisted_2$26 = ["onClick"];
|
|
4039
|
+
const _hoisted_3$21 = ["placeholder"];
|
|
4040
|
+
const _hoisted_4$19 = ["type", "placeholder"];
|
|
4073
4041
|
const _hoisted_5$13 = {
|
|
4074
4042
|
key: 0,
|
|
4075
4043
|
width: "18",
|
|
@@ -4307,7 +4275,7 @@ var login_centered_default = /* @__PURE__ */ export_helper_default(/* @__PURE__
|
|
|
4307
4275
|
height: "40",
|
|
4308
4276
|
rx: "8",
|
|
4309
4277
|
fill: __props.theme === "dark" ? "#6366f1" : "#4f46e5"
|
|
4310
|
-
}, null, 8, _hoisted_1$
|
|
4278
|
+
}, null, 8, _hoisted_1$36), _cache[8] || (_cache[8] = createElementVNode("path", {
|
|
4311
4279
|
d: "M12 20L18 26L28 14",
|
|
4312
4280
|
stroke: "#fff",
|
|
4313
4281
|
"stroke-width": "3",
|
|
@@ -4325,7 +4293,7 @@ var login_centered_default = /* @__PURE__ */ export_helper_default(/* @__PURE__
|
|
|
4325
4293
|
key: tab.key,
|
|
4326
4294
|
class: normalizeClass([e("tab"), { [e("tab--active")]: activeTab.value === tab.key }]),
|
|
4327
4295
|
onClick: ($event) => activeTab.value = tab.key
|
|
4328
|
-
}, toDisplayString(tab.label), 11, _hoisted_2$
|
|
4296
|
+
}, toDisplayString(tab.label), 11, _hoisted_2$26);
|
|
4329
4297
|
}), 128))], 2)) : createCommentVNode("v-if", true),
|
|
4330
4298
|
createElementVNode("form", {
|
|
4331
4299
|
class: normalizeClass(e("form")),
|
|
@@ -4348,7 +4316,7 @@ var login_centered_default = /* @__PURE__ */ export_helper_default(/* @__PURE__
|
|
|
4348
4316
|
class: normalizeClass(e("input")),
|
|
4349
4317
|
placeholder: __props.usernamePlaceholder,
|
|
4350
4318
|
autocomplete: "username"
|
|
4351
|
-
}, null, 10, _hoisted_3$
|
|
4319
|
+
}, null, 10, _hoisted_3$21), [[vModelText, formData.username]])], 2)], 2), createElementVNode("div", { class: normalizeClass(e("field")) }, [createElementVNode("label", { class: normalizeClass(e("label")) }, toDisplayString(__props.passwordLabel), 3), createElementVNode("div", { class: normalizeClass(e("input-group")) }, [
|
|
4352
4320
|
createElementVNode("span", { class: normalizeClass(e("input-prefix")) }, [..._cache[10] || (_cache[10] = [createElementVNode("svg", {
|
|
4353
4321
|
width: "18",
|
|
4354
4322
|
height: "18",
|
|
@@ -4370,7 +4338,7 @@ var login_centered_default = /* @__PURE__ */ export_helper_default(/* @__PURE__
|
|
|
4370
4338
|
class: normalizeClass(e("input")),
|
|
4371
4339
|
placeholder: __props.passwordPlaceholder,
|
|
4372
4340
|
autocomplete: "current-password"
|
|
4373
|
-
}, null, 10, _hoisted_4$
|
|
4341
|
+
}, null, 10, _hoisted_4$19), [[vModelDynamic, formData.password]]),
|
|
4374
4342
|
createElementVNode("button", {
|
|
4375
4343
|
type: "button",
|
|
4376
4344
|
class: normalizeClass(e("input-suffix")),
|
|
@@ -4536,7 +4504,7 @@ var login_centered_default = /* @__PURE__ */ export_helper_default(/* @__PURE__
|
|
|
4536
4504
|
}), [["__scopeId", "data-v-267a78de"]]);
|
|
4537
4505
|
//#endregion
|
|
4538
4506
|
//#region src/components/base/pin-input/pin-input.vue
|
|
4539
|
-
const _hoisted_1$
|
|
4507
|
+
const _hoisted_1$35 = [
|
|
4540
4508
|
"value",
|
|
4541
4509
|
"disabled",
|
|
4542
4510
|
"onInput",
|
|
@@ -4646,7 +4614,7 @@ var pin_input_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ de
|
|
|
4646
4614
|
onFocus: ($event) => focusedIndex.value = i - 1,
|
|
4647
4615
|
onBlur: _cache[0] || (_cache[0] = ($event) => focusedIndex.value = -1),
|
|
4648
4616
|
onPaste: handlePaste
|
|
4649
|
-
}, null, 42, _hoisted_1$
|
|
4617
|
+
}, null, 42, _hoisted_1$35);
|
|
4650
4618
|
}), 128))], 2), __props.error ? (openBlock(), createElementBlock("div", {
|
|
4651
4619
|
key: 0,
|
|
4652
4620
|
class: normalizeClass(e("error"))
|
|
@@ -4656,14 +4624,14 @@ var pin_input_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ de
|
|
|
4656
4624
|
}), [["__scopeId", "data-v-fd187d50"]]);
|
|
4657
4625
|
//#endregion
|
|
4658
4626
|
//#region src/components/base/tree-select/tree-select.vue
|
|
4659
|
-
const _hoisted_1$
|
|
4627
|
+
const _hoisted_1$34 = [
|
|
4660
4628
|
"value",
|
|
4661
4629
|
"placeholder",
|
|
4662
4630
|
"disabled"
|
|
4663
4631
|
];
|
|
4664
|
-
const _hoisted_2$
|
|
4665
|
-
const _hoisted_3$
|
|
4666
|
-
const _hoisted_4$
|
|
4632
|
+
const _hoisted_2$25 = ["onClick"];
|
|
4633
|
+
const _hoisted_3$20 = ["onClick"];
|
|
4634
|
+
const _hoisted_4$18 = ["onClick"];
|
|
4667
4635
|
const _hoisted_5$12 = [
|
|
4668
4636
|
"checked",
|
|
4669
4637
|
"indeterminate",
|
|
@@ -4991,7 +4959,7 @@ var tree_select_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */
|
|
|
4991
4959
|
onFocus: handleFocus,
|
|
4992
4960
|
onBlur: handleBlur,
|
|
4993
4961
|
onKeydown: _cache[0] || (_cache[0] = withModifiers(() => {}, ["stop"]))
|
|
4994
|
-
}, null, 42, _hoisted_1$
|
|
4962
|
+
}, null, 42, _hoisted_1$34)) : (openBlock(), createElementBlock("div", {
|
|
4995
4963
|
key: 1,
|
|
4996
4964
|
class: normalizeClass([e("display"), { [e("display--placeholder")]: !selectedTitle.value }])
|
|
4997
4965
|
}, toDisplayString(selectedTitle.value || __props.placeholder), 3)),
|
|
@@ -5067,7 +5035,7 @@ var tree_select_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */
|
|
|
5067
5035
|
key: 0,
|
|
5068
5036
|
class: normalizeClass(e("node-toggle")),
|
|
5069
5037
|
onClick: withModifiers(($event) => handleToggle(node), ["stop"])
|
|
5070
|
-
}, toDisplayString(expandedKeys.value.includes(node.key) ? "▾" : "▸"), 11, _hoisted_3$
|
|
5038
|
+
}, toDisplayString(expandedKeys.value.includes(node.key) ? "▾" : "▸"), 11, _hoisted_3$20)) : (openBlock(), createElementBlock("span", {
|
|
5071
5039
|
key: 1,
|
|
5072
5040
|
class: normalizeClass(e("node-leaf"))
|
|
5073
5041
|
}, "•", 2)),
|
|
@@ -5080,9 +5048,9 @@ var tree_select_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */
|
|
|
5080
5048
|
checked: checkedKeys.value.includes(node.key),
|
|
5081
5049
|
indeterminate: indeterminateKeys.value.includes(node.key),
|
|
5082
5050
|
disabled: node.disabled
|
|
5083
|
-
}, null, 8, _hoisted_5$12)], 10, _hoisted_4$
|
|
5051
|
+
}, null, 8, _hoisted_5$12)], 10, _hoisted_4$18)) : createCommentVNode("v-if", true),
|
|
5084
5052
|
createElementVNode("span", { class: normalizeClass(e("node-title")) }, toDisplayString(node.title), 3)
|
|
5085
|
-
], 14, _hoisted_2$
|
|
5053
|
+
], 14, _hoisted_2$25);
|
|
5086
5054
|
}), 128))], 38)], 6)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" Normal mode "), createElementVNode("div", { class: normalizeClass(e("tree-container")) }, [(openBlock(true), createElementBlock(Fragment, null, renderList(filteredNodes.value, (node) => {
|
|
5087
5055
|
return openBlock(), createElementBlock("div", {
|
|
5088
5056
|
key: node.key,
|
|
@@ -5151,12 +5119,12 @@ var tree_select_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */
|
|
|
5151
5119
|
}), [["__scopeId", "data-v-f36bc312"]]);
|
|
5152
5120
|
//#endregion
|
|
5153
5121
|
//#region src/components/base/color-picker/color-picker.vue
|
|
5154
|
-
const _hoisted_1$
|
|
5122
|
+
const _hoisted_1$33 = [
|
|
5155
5123
|
"value",
|
|
5156
5124
|
"placeholder",
|
|
5157
5125
|
"disabled"
|
|
5158
5126
|
];
|
|
5159
|
-
const _hoisted_2$
|
|
5127
|
+
const _hoisted_2$24 = {
|
|
5160
5128
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5161
5129
|
width: "14",
|
|
5162
5130
|
height: "14",
|
|
@@ -5165,8 +5133,8 @@ const _hoisted_2$25 = {
|
|
|
5165
5133
|
stroke: "currentColor",
|
|
5166
5134
|
"stroke-width": "2"
|
|
5167
5135
|
};
|
|
5168
|
-
const _hoisted_3$
|
|
5169
|
-
const _hoisted_4$
|
|
5136
|
+
const _hoisted_3$19 = ["fill"];
|
|
5137
|
+
const _hoisted_4$17 = ["value"];
|
|
5170
5138
|
const _hoisted_5$11 = ["value"];
|
|
5171
5139
|
const _hoisted_6$10 = ["value"];
|
|
5172
5140
|
const _hoisted_7$9 = ["value"];
|
|
@@ -5592,7 +5560,7 @@ var color_picker_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */
|
|
|
5592
5560
|
onInput: handleInput,
|
|
5593
5561
|
onFocus: handleFocus,
|
|
5594
5562
|
onBlur: handleBlur
|
|
5595
|
-
}, null, 42, _hoisted_1$
|
|
5563
|
+
}, null, 42, _hoisted_1$33)) : createCommentVNode("v-if", true),
|
|
5596
5564
|
createCommentVNode(" Clear button "),
|
|
5597
5565
|
__props.clearable && __props.modelValue && !__props.disabled ? (openBlock(), createElementBlock("span", {
|
|
5598
5566
|
key: 2,
|
|
@@ -5620,14 +5588,14 @@ var color_picker_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */
|
|
|
5620
5588
|
y2: "18"
|
|
5621
5589
|
})], -1)])], 2)) : createCommentVNode("v-if", true),
|
|
5622
5590
|
createCommentVNode(" Trigger button "),
|
|
5623
|
-
createElementVNode("span", { class: normalizeClass(e("trigger")) }, [(openBlock(), createElementBlock("svg", _hoisted_2$
|
|
5591
|
+
createElementVNode("span", { class: normalizeClass(e("trigger")) }, [(openBlock(), createElementBlock("svg", _hoisted_2$24, [_cache[5] || (_cache[5] = createElementVNode("circle", {
|
|
5624
5592
|
cx: "12",
|
|
5625
5593
|
cy: "12",
|
|
5626
5594
|
r: "10"
|
|
5627
5595
|
}, null, -1)), createElementVNode("path", {
|
|
5628
5596
|
d: "M12 2a10 10 0 0 1 0 20",
|
|
5629
5597
|
fill: __props.modelValue || "#ffffff"
|
|
5630
|
-
}, null, 8, _hoisted_3$
|
|
5598
|
+
}, null, 8, _hoisted_3$19)]))], 2)
|
|
5631
5599
|
], 2),
|
|
5632
5600
|
__props.error || __props.hint ? (openBlock(), createElementBlock("div", {
|
|
5633
5601
|
key: 1,
|
|
@@ -5696,7 +5664,7 @@ var color_picker_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */
|
|
|
5696
5664
|
class: normalizeClass(e("value-input")),
|
|
5697
5665
|
value: hexValue.value,
|
|
5698
5666
|
onInput: handleHexInput
|
|
5699
|
-
}, null, 42, _hoisted_4$
|
|
5667
|
+
}, null, 42, _hoisted_4$17)], 2),
|
|
5700
5668
|
createElementVNode("div", { class: normalizeClass(e("value-item")) }, [createElementVNode("span", { class: normalizeClass(e("value-label")) }, "R", 2), createElementVNode("input", {
|
|
5701
5669
|
class: normalizeClass(e("value-input")),
|
|
5702
5670
|
type: "number",
|
|
@@ -5754,9 +5722,9 @@ var color_picker_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */
|
|
|
5754
5722
|
}), [["__scopeId", "data-v-24772c45"]]);
|
|
5755
5723
|
//#endregion
|
|
5756
5724
|
//#region src/components/base/calendar/calendar.vue
|
|
5757
|
-
const _hoisted_1$
|
|
5758
|
-
const _hoisted_2$
|
|
5759
|
-
const _hoisted_3$
|
|
5725
|
+
const _hoisted_1$32 = ["onClick"];
|
|
5726
|
+
const _hoisted_2$23 = ["onClick"];
|
|
5727
|
+
const _hoisted_3$18 = ["onClick"];
|
|
5760
5728
|
var calendar_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
5761
5729
|
name: "YdCalendar",
|
|
5762
5730
|
__name: "calendar",
|
|
@@ -5968,7 +5936,7 @@ var calendar_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ def
|
|
|
5968
5936
|
[e("year-cell--today")]: y === currentYear.value
|
|
5969
5937
|
}]),
|
|
5970
5938
|
onClick: ($event) => selectYear(y)
|
|
5971
|
-
}, toDisplayString(y), 11, _hoisted_1$
|
|
5939
|
+
}, toDisplayString(y), 11, _hoisted_1$32);
|
|
5972
5940
|
}), 128))], 2)], 2)) : view.value === "month" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" Month View "), createElementVNode("div", { class: normalizeClass(e("view")) }, [createElementVNode("div", { class: normalizeClass(e("month-grid")) }, [(openBlock(), createElementBlock(Fragment, null, renderList(months, (m, i) => {
|
|
5973
5941
|
return createElementVNode("button", {
|
|
5974
5942
|
key: i,
|
|
@@ -5977,7 +5945,7 @@ var calendar_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ def
|
|
|
5977
5945
|
[e("month-cell--today")]: selectedYear.value === currentYear.value && i === currentMonth.value
|
|
5978
5946
|
}]),
|
|
5979
5947
|
onClick: ($event) => selectMonth(i)
|
|
5980
|
-
}, toDisplayString(m) + "月 ", 11, _hoisted_2$
|
|
5948
|
+
}, toDisplayString(m) + "月 ", 11, _hoisted_2$23);
|
|
5981
5949
|
}), 64))], 2)], 2)], 2112)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [createCommentVNode(" Month View (Calendar) "), createElementVNode("div", { class: normalizeClass(e("view")) }, [
|
|
5982
5950
|
createCommentVNode(" Weekdays header "),
|
|
5983
5951
|
createElementVNode("div", { class: normalizeClass(e("weekdays")) }, [(openBlock(), createElementBlock(Fragment, null, renderList(weekdays, (w) => {
|
|
@@ -5998,7 +5966,7 @@ var calendar_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ def
|
|
|
5998
5966
|
}, [renderSlot(_ctx.$slots, "date-cell", {
|
|
5999
5967
|
day,
|
|
6000
5968
|
currentMonth: day.currentMonth
|
|
6001
|
-
}, () => [createTextVNode(toDisplayString(day.date.getDate()), 1)], true)], 14, _hoisted_3$
|
|
5969
|
+
}, () => [createTextVNode(toDisplayString(day.date.getDate()), 1)], true)], 14, _hoisted_3$18);
|
|
6002
5970
|
}), 128))], 2)
|
|
6003
5971
|
], 2)], 2112)),
|
|
6004
5972
|
createCommentVNode(" Footer "),
|
|
@@ -6015,10 +5983,10 @@ var calendar_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ def
|
|
|
6015
5983
|
}), [["__scopeId", "data-v-b7db4b77"]]);
|
|
6016
5984
|
//#endregion
|
|
6017
5985
|
//#region src/components/base/chat-page/chat-page.vue
|
|
6018
|
-
const _hoisted_1$
|
|
6019
|
-
const _hoisted_2$
|
|
6020
|
-
const _hoisted_3$
|
|
6021
|
-
const _hoisted_4$
|
|
5986
|
+
const _hoisted_1$31 = { class: "yd-chat-page__header" };
|
|
5987
|
+
const _hoisted_2$22 = { class: "yd-chat-page__header-left" };
|
|
5988
|
+
const _hoisted_3$17 = { class: "yd-chat-page__title" };
|
|
5989
|
+
const _hoisted_4$16 = { class: "yd-chat-page__header-right" };
|
|
6022
5990
|
const _hoisted_5$10 = {
|
|
6023
5991
|
key: 0,
|
|
6024
5992
|
class: "yd-chat-page__model-selector"
|
|
@@ -6179,7 +6147,7 @@ var chat_page_default = /* @__PURE__ */ export_helper_default({
|
|
|
6179
6147
|
return (_ctx, _cache) => {
|
|
6180
6148
|
return openBlock(), createElementBlock("div", { class: normalizeClass(classes.value) }, [
|
|
6181
6149
|
createCommentVNode(" Header "),
|
|
6182
|
-
createElementVNode("header", _hoisted_1$
|
|
6150
|
+
createElementVNode("header", _hoisted_1$31, [createElementVNode("div", _hoisted_2$22, [__props.showSidebar ? (openBlock(), createElementBlock("button", {
|
|
6183
6151
|
key: 0,
|
|
6184
6152
|
class: "yd-chat-page__menu-btn",
|
|
6185
6153
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("toggle-sidebar"))
|
|
@@ -6188,7 +6156,7 @@ var chat_page_default = /* @__PURE__ */ export_helper_default({
|
|
|
6188
6156
|
fill: "currentColor",
|
|
6189
6157
|
width: "20",
|
|
6190
6158
|
height: "20"
|
|
6191
|
-
}, [createElementVNode("path", { d: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" })], -1)])])) : createCommentVNode("v-if", true), createElementVNode("h1", _hoisted_3$
|
|
6159
|
+
}, [createElementVNode("path", { d: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" })], -1)])])) : createCommentVNode("v-if", true), createElementVNode("h1", _hoisted_3$17, toDisplayString(__props.title), 1)]), createElementVNode("div", _hoisted_4$16, [
|
|
6192
6160
|
createCommentVNode(" Model Selector "),
|
|
6193
6161
|
__props.showModelSelector ? (openBlock(), createElementBlock("div", _hoisted_5$10, [createElementVNode("button", _hoisted_6$9, [_cache[10] || (_cache[10] = createElementVNode("svg", {
|
|
6194
6162
|
viewBox: "0 0 24 24",
|
|
@@ -6340,16 +6308,16 @@ var chat_page_default = /* @__PURE__ */ export_helper_default({
|
|
|
6340
6308
|
}, [["__scopeId", "data-v-281b025e"]]);
|
|
6341
6309
|
//#endregion
|
|
6342
6310
|
//#region src/components/base/chat-bubble/chat-bubble.vue
|
|
6343
|
-
const _hoisted_1$
|
|
6311
|
+
const _hoisted_1$30 = {
|
|
6344
6312
|
key: 0,
|
|
6345
6313
|
class: "yd-chat-bubble__avatar"
|
|
6346
6314
|
};
|
|
6347
|
-
const _hoisted_2$
|
|
6348
|
-
const _hoisted_3$
|
|
6315
|
+
const _hoisted_2$21 = { class: "yd-chat-bubble__content" };
|
|
6316
|
+
const _hoisted_3$16 = {
|
|
6349
6317
|
key: 0,
|
|
6350
6318
|
class: "yd-chat-bubble__name"
|
|
6351
6319
|
};
|
|
6352
|
-
const _hoisted_4$
|
|
6320
|
+
const _hoisted_4$15 = { class: "yd-chat-bubble__bubble" };
|
|
6353
6321
|
const _hoisted_5$9 = {
|
|
6354
6322
|
key: 1,
|
|
6355
6323
|
class: "yd-chat-bubble__time"
|
|
@@ -6399,7 +6367,7 @@ var chat_bubble_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */
|
|
|
6399
6367
|
return (_ctx, _cache) => {
|
|
6400
6368
|
return openBlock(), createElementBlock("div", { class: normalizeClass(classes.value) }, [
|
|
6401
6369
|
createCommentVNode(" Avatar "),
|
|
6402
|
-
__props.showAvatar ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
6370
|
+
__props.showAvatar ? (openBlock(), createElementBlock("div", _hoisted_1$30, [__props.role === "assistant" ? (openBlock(), createBlock(avatar_default, {
|
|
6403
6371
|
key: 0,
|
|
6404
6372
|
size: avatarSize.value
|
|
6405
6373
|
}, {
|
|
@@ -6419,11 +6387,11 @@ var chat_bubble_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */
|
|
|
6419
6387
|
_: 1
|
|
6420
6388
|
}, 8, ["size"]))])) : createCommentVNode("v-if", true),
|
|
6421
6389
|
createCommentVNode(" Content "),
|
|
6422
|
-
createElementVNode("div", _hoisted_2$
|
|
6390
|
+
createElementVNode("div", _hoisted_2$21, [
|
|
6423
6391
|
createCommentVNode(" Name "),
|
|
6424
|
-
__props.name || __props.showName ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
6392
|
+
__props.name || __props.showName ? (openBlock(), createElementBlock("div", _hoisted_3$16, toDisplayString(__props.name || (__props.role === "assistant" ? "AI" : "You")), 1)) : createCommentVNode("v-if", true),
|
|
6425
6393
|
createCommentVNode(" Message bubble "),
|
|
6426
|
-
createElementVNode("div", _hoisted_4$
|
|
6394
|
+
createElementVNode("div", _hoisted_4$15, [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
6427
6395
|
createCommentVNode(" Timestamp "),
|
|
6428
6396
|
__props.showTimestamp ? (openBlock(), createElementBlock("div", _hoisted_5$9, toDisplayString(formattedTime.value), 1)) : createCommentVNode("v-if", true)
|
|
6429
6397
|
])
|
|
@@ -6493,13 +6461,13 @@ var conversation_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */
|
|
|
6493
6461
|
}), [["__scopeId", "data-v-8fa39578"]]);
|
|
6494
6462
|
//#endregion
|
|
6495
6463
|
//#region src/components/base/prompt-input/prompt-input.vue
|
|
6496
|
-
const _hoisted_1$
|
|
6464
|
+
const _hoisted_1$29 = {
|
|
6497
6465
|
key: 0,
|
|
6498
6466
|
class: "yd-prompt-input__attachments"
|
|
6499
6467
|
};
|
|
6500
|
-
const _hoisted_2$
|
|
6501
|
-
const _hoisted_3$
|
|
6502
|
-
const _hoisted_4$
|
|
6468
|
+
const _hoisted_2$20 = { class: "yd-prompt-input__attachment-name" };
|
|
6469
|
+
const _hoisted_3$15 = ["onClick"];
|
|
6470
|
+
const _hoisted_4$14 = { class: "yd-prompt-input__container" };
|
|
6503
6471
|
const _hoisted_5$8 = ["disabled"];
|
|
6504
6472
|
const _hoisted_6$8 = ["placeholder", "disabled"];
|
|
6505
6473
|
const _hoisted_7$7 = {
|
|
@@ -6641,7 +6609,7 @@ var prompt_input_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */
|
|
|
6641
6609
|
return (_ctx, _cache) => {
|
|
6642
6610
|
return openBlock(), createElementBlock("div", { class: normalizeClass(classes.value) }, [
|
|
6643
6611
|
createCommentVNode(" Attachments preview "),
|
|
6644
|
-
__props.modelValue && __props.modelValue.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
6612
|
+
__props.modelValue && __props.modelValue.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$29, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.modelValue, (file, index) => {
|
|
6645
6613
|
return openBlock(), createElementBlock("div", {
|
|
6646
6614
|
key: index,
|
|
6647
6615
|
class: "yd-prompt-input__attachment"
|
|
@@ -6652,7 +6620,7 @@ var prompt_input_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */
|
|
|
6652
6620
|
width: "16",
|
|
6653
6621
|
height: "16"
|
|
6654
6622
|
}, [createElementVNode("path", { d: "M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z" })], -1)),
|
|
6655
|
-
createElementVNode("span", _hoisted_2$
|
|
6623
|
+
createElementVNode("span", _hoisted_2$20, toDisplayString(file.name), 1),
|
|
6656
6624
|
createElementVNode("button", {
|
|
6657
6625
|
class: "yd-prompt-input__attachment-remove",
|
|
6658
6626
|
onClick: ($event) => removeAttachment(index)
|
|
@@ -6661,11 +6629,11 @@ var prompt_input_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */
|
|
|
6661
6629
|
fill: "currentColor",
|
|
6662
6630
|
width: "14",
|
|
6663
6631
|
height: "14"
|
|
6664
|
-
}, [createElementVNode("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })], -1)])], 8, _hoisted_3$
|
|
6632
|
+
}, [createElementVNode("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })], -1)])], 8, _hoisted_3$15)
|
|
6665
6633
|
]);
|
|
6666
6634
|
}), 128))])) : createCommentVNode("v-if", true),
|
|
6667
6635
|
createCommentVNode(" Input container "),
|
|
6668
|
-
createElementVNode("div", _hoisted_4$
|
|
6636
|
+
createElementVNode("div", _hoisted_4$14, [
|
|
6669
6637
|
createCommentVNode(" Attachments button "),
|
|
6670
6638
|
__props.allowAttachments ? (openBlock(), createElementBlock("button", {
|
|
6671
6639
|
key: 0,
|
|
@@ -6729,13 +6697,13 @@ var prompt_input_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */
|
|
|
6729
6697
|
}), [["__scopeId", "data-v-1bd77b28"]]);
|
|
6730
6698
|
//#endregion
|
|
6731
6699
|
//#region src/components/base/reasoning/reasoning.vue
|
|
6732
|
-
const _hoisted_1$
|
|
6733
|
-
const _hoisted_2$
|
|
6700
|
+
const _hoisted_1$28 = { class: "yd-reasoning__trigger-badge" };
|
|
6701
|
+
const _hoisted_2$19 = {
|
|
6734
6702
|
key: 0,
|
|
6735
6703
|
class: "yd-reasoning__content"
|
|
6736
6704
|
};
|
|
6737
|
-
const _hoisted_3$
|
|
6738
|
-
const _hoisted_4$
|
|
6705
|
+
const _hoisted_3$14 = { class: "yd-reasoning__label" };
|
|
6706
|
+
const _hoisted_4$13 = { class: "yd-reasoning__text" };
|
|
6739
6707
|
var reasoning_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
6740
6708
|
name: "YdReasoning",
|
|
6741
6709
|
__name: "reasoning",
|
|
@@ -6775,11 +6743,11 @@ var reasoning_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ de
|
|
|
6775
6743
|
class: "yd-reasoning__icon"
|
|
6776
6744
|
}, [createElementVNode("path", { d: "M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7zm2.85 11.1l-.85.6V16h-4v-2.3l-.85-.6A4.997 4.997 0 017 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.16-2.15 4.1z" })], -1)),
|
|
6777
6745
|
_cache[1] || (_cache[1] = createElementVNode("span", { class: "yd-reasoning__trigger-text" }, "Thinking...", -1)),
|
|
6778
|
-
createElementVNode("span", _hoisted_1$
|
|
6746
|
+
createElementVNode("span", _hoisted_1$28, toDisplayString(__props.label), 1)
|
|
6779
6747
|
])) : createCommentVNode("v-if", true),
|
|
6780
6748
|
createCommentVNode(" Content "),
|
|
6781
6749
|
createVNode(Transition, { name: "expand" }, {
|
|
6782
|
-
default: withCtx(() => [!__props.collapsible || isExpanded.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
6750
|
+
default: withCtx(() => [!__props.collapsible || isExpanded.value ? (openBlock(), createElementBlock("div", _hoisted_2$19, [
|
|
6783
6751
|
createCommentVNode(" Header "),
|
|
6784
6752
|
__props.collapsible ? (openBlock(), createElementBlock("div", {
|
|
6785
6753
|
key: 0,
|
|
@@ -6793,7 +6761,7 @@ var reasoning_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ de
|
|
|
6793
6761
|
height: "16",
|
|
6794
6762
|
class: "yd-reasoning__icon"
|
|
6795
6763
|
}, [createElementVNode("path", { d: "M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7zm2.85 11.1l-.85.6V16h-4v-2.3l-.85-.6A4.997 4.997 0 017 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.16-2.15 4.1z" })], -1)),
|
|
6796
|
-
createElementVNode("span", _hoisted_3$
|
|
6764
|
+
createElementVNode("span", _hoisted_3$14, toDisplayString(__props.label), 1),
|
|
6797
6765
|
_cache[3] || (_cache[3] = createElementVNode("svg", {
|
|
6798
6766
|
viewBox: "0 0 24 24",
|
|
6799
6767
|
fill: "currentColor",
|
|
@@ -6803,7 +6771,7 @@ var reasoning_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ de
|
|
|
6803
6771
|
}, [createElementVNode("path", { d: "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z" })], -1))
|
|
6804
6772
|
])) : createCommentVNode("v-if", true),
|
|
6805
6773
|
createCommentVNode(" Reasoning text "),
|
|
6806
|
-
createElementVNode("div", _hoisted_4$
|
|
6774
|
+
createElementVNode("div", _hoisted_4$13, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])
|
|
6807
6775
|
])) : createCommentVNode("v-if", true)]),
|
|
6808
6776
|
_: 3
|
|
6809
6777
|
})
|
|
@@ -6813,19 +6781,19 @@ var reasoning_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ de
|
|
|
6813
6781
|
}), [["__scopeId", "data-v-8cc82c4a"]]);
|
|
6814
6782
|
//#endregion
|
|
6815
6783
|
//#region src/components/base/code-block/code-block.vue
|
|
6816
|
-
const _hoisted_1$
|
|
6784
|
+
const _hoisted_1$27 = {
|
|
6817
6785
|
key: 0,
|
|
6818
6786
|
class: "yd-code-block__header"
|
|
6819
6787
|
};
|
|
6820
|
-
const _hoisted_2$
|
|
6788
|
+
const _hoisted_2$18 = {
|
|
6821
6789
|
key: 0,
|
|
6822
6790
|
class: "yd-code-block__language"
|
|
6823
6791
|
};
|
|
6824
|
-
const _hoisted_3$
|
|
6792
|
+
const _hoisted_3$13 = {
|
|
6825
6793
|
key: 1,
|
|
6826
6794
|
class: "yd-code-block__filename"
|
|
6827
6795
|
};
|
|
6828
|
-
const _hoisted_4$
|
|
6796
|
+
const _hoisted_4$12 = {
|
|
6829
6797
|
key: 0,
|
|
6830
6798
|
viewBox: "0 0 24 24",
|
|
6831
6799
|
fill: "currentColor",
|
|
@@ -6892,17 +6860,17 @@ var code_block_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ d
|
|
|
6892
6860
|
return (_ctx, _cache) => {
|
|
6893
6861
|
return openBlock(), createElementBlock("div", { class: normalizeClass(classes.value) }, [
|
|
6894
6862
|
createCommentVNode(" Header "),
|
|
6895
|
-
__props.showHeader ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
6863
|
+
__props.showHeader ? (openBlock(), createElementBlock("div", _hoisted_1$27, [
|
|
6896
6864
|
createCommentVNode(" Language badge "),
|
|
6897
|
-
__props.language ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
6865
|
+
__props.language ? (openBlock(), createElementBlock("span", _hoisted_2$18, toDisplayString(__props.language), 1)) : createCommentVNode("v-if", true),
|
|
6898
6866
|
createCommentVNode(" Filename "),
|
|
6899
|
-
__props.filename ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
6867
|
+
__props.filename ? (openBlock(), createElementBlock("span", _hoisted_3$13, toDisplayString(__props.filename), 1)) : createCommentVNode("v-if", true),
|
|
6900
6868
|
createCommentVNode(" Copy button "),
|
|
6901
6869
|
__props.copyable ? (openBlock(), createElementBlock("button", {
|
|
6902
6870
|
key: 2,
|
|
6903
6871
|
class: "yd-code-block__copy",
|
|
6904
6872
|
onClick: handleCopy
|
|
6905
|
-
}, [!copied.value ? (openBlock(), createElementBlock("svg", _hoisted_4$
|
|
6873
|
+
}, [!copied.value ? (openBlock(), createElementBlock("svg", _hoisted_4$12, [..._cache[0] || (_cache[0] = [createElementVNode("path", { d: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z" }, null, -1)])])) : (openBlock(), createElementBlock("svg", _hoisted_5$7, [..._cache[1] || (_cache[1] = [createElementVNode("path", { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" }, null, -1)])])), createElementVNode("span", null, toDisplayString(copied.value ? "Copied!" : "Copy"), 1)])) : createCommentVNode("v-if", true)
|
|
6906
6874
|
])) : createCommentVNode("v-if", true),
|
|
6907
6875
|
createCommentVNode(" Code content "),
|
|
6908
6876
|
createElementVNode("pre", _hoisted_6$7, [createElementVNode("code", { class: normalizeClass(codeClasses.value) }, [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 2)]),
|
|
@@ -6939,13 +6907,13 @@ var streaming_text_default = /* @__PURE__ */ export_helper_default(/* @__PURE__
|
|
|
6939
6907
|
}), [["__scopeId", "data-v-dfda321d"]]);
|
|
6940
6908
|
//#endregion
|
|
6941
6909
|
//#region src/components/base/ai-loader/ai-loader.vue
|
|
6942
|
-
const _hoisted_1$
|
|
6910
|
+
const _hoisted_1$26 = {
|
|
6943
6911
|
key: 0,
|
|
6944
6912
|
class: "yd-ai-loader__shimmer-wrapper"
|
|
6945
6913
|
};
|
|
6946
|
-
const _hoisted_2$
|
|
6947
|
-
const _hoisted_3$
|
|
6948
|
-
const _hoisted_4$
|
|
6914
|
+
const _hoisted_2$17 = { class: "yd-ai-loader__dots" };
|
|
6915
|
+
const _hoisted_3$12 = { class: "yd-ai-loader__typing" };
|
|
6916
|
+
const _hoisted_4$11 = {
|
|
6949
6917
|
key: 5,
|
|
6950
6918
|
class: "yd-ai-loader__text"
|
|
6951
6919
|
};
|
|
@@ -6965,13 +6933,13 @@ var ai_loader_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ de
|
|
|
6965
6933
|
return (_ctx, _cache) => {
|
|
6966
6934
|
return openBlock(), createElementBlock("div", { class: normalizeClass(classes.value) }, [
|
|
6967
6935
|
createCommentVNode(" Shimmer "),
|
|
6968
|
-
__props.variant === "shimmer" ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
6936
|
+
__props.variant === "shimmer" ? (openBlock(), createElementBlock("div", _hoisted_1$26, [..._cache[0] || (_cache[0] = [createElementVNode("div", { class: "yd-ai-loader__shimmer" }, null, -1)])])) : __props.variant === "dots" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" Dots "), createElementVNode("div", _hoisted_2$17, [(openBlock(), createElementBlock(Fragment, null, renderList(3, (i) => {
|
|
6969
6937
|
return createElementVNode("span", {
|
|
6970
6938
|
key: i,
|
|
6971
6939
|
class: "yd-ai-loader__dot",
|
|
6972
6940
|
style: normalizeStyle({ animationDelay: `${(i - 1) * .16}s` })
|
|
6973
6941
|
}, null, 4);
|
|
6974
|
-
}), 64))])], 64)) : __props.variant === "pulse" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [createCommentVNode(" Pulse "), _cache[1] || (_cache[1] = createElementVNode("div", { class: "yd-ai-loader__pulse" }, null, -1))], 64)) : __props.variant === "typing" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [createCommentVNode(" Typing "), createElementVNode("div", _hoisted_3$
|
|
6942
|
+
}), 64))])], 64)) : __props.variant === "pulse" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [createCommentVNode(" Pulse "), _cache[1] || (_cache[1] = createElementVNode("div", { class: "yd-ai-loader__pulse" }, null, -1))], 64)) : __props.variant === "typing" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [createCommentVNode(" Typing "), createElementVNode("div", _hoisted_3$12, [(openBlock(), createElementBlock(Fragment, null, renderList(3, (i) => {
|
|
6975
6943
|
return createElementVNode("span", {
|
|
6976
6944
|
key: i,
|
|
6977
6945
|
class: "yd-ai-loader__typing-dot",
|
|
@@ -6991,20 +6959,20 @@ var ai_loader_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ de
|
|
|
6991
6959
|
"stroke-linecap": "round"
|
|
6992
6960
|
})], -1))], 64)),
|
|
6993
6961
|
createCommentVNode(" Text "),
|
|
6994
|
-
__props.text ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
6962
|
+
__props.text ? (openBlock(), createElementBlock("span", _hoisted_4$11, toDisplayString(__props.text), 1)) : createCommentVNode("v-if", true)
|
|
6995
6963
|
], 2);
|
|
6996
6964
|
};
|
|
6997
6965
|
}
|
|
6998
6966
|
}), [["__scopeId", "data-v-15ae3772"]]);
|
|
6999
6967
|
//#endregion
|
|
7000
6968
|
//#region src/components/base/suggestion/suggestion.vue
|
|
7001
|
-
const _hoisted_1$
|
|
6969
|
+
const _hoisted_1$25 = {
|
|
7002
6970
|
key: 0,
|
|
7003
6971
|
class: "yd-suggestion__label"
|
|
7004
6972
|
};
|
|
7005
|
-
const _hoisted_2$
|
|
7006
|
-
const _hoisted_3$
|
|
7007
|
-
const _hoisted_4$
|
|
6973
|
+
const _hoisted_2$16 = { class: "yd-suggestion__list" };
|
|
6974
|
+
const _hoisted_3$11 = ["disabled", "onClick"];
|
|
6975
|
+
const _hoisted_4$10 = { class: "yd-suggestion__item-text" };
|
|
7008
6976
|
var suggestion_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
7009
6977
|
name: "YdSuggestion",
|
|
7010
6978
|
__name: "suggestion",
|
|
@@ -7032,9 +7000,9 @@ var suggestion_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ d
|
|
|
7032
7000
|
return (_ctx, _cache) => {
|
|
7033
7001
|
return openBlock(), createElementBlock("div", { class: normalizeClass(classes.value) }, [
|
|
7034
7002
|
createCommentVNode(" Label "),
|
|
7035
|
-
__props.label ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
7003
|
+
__props.label ? (openBlock(), createElementBlock("div", _hoisted_1$25, toDisplayString(__props.label), 1)) : createCommentVNode("v-if", true),
|
|
7036
7004
|
createCommentVNode(" Suggestions list "),
|
|
7037
|
-
createElementVNode("div", _hoisted_2$
|
|
7005
|
+
createElementVNode("div", _hoisted_2$16, [(openBlock(true), createElementBlock(Fragment, null, renderList(localSuggestions.value, (suggestion, index) => {
|
|
7038
7006
|
return openBlock(), createElementBlock("button", {
|
|
7039
7007
|
key: index,
|
|
7040
7008
|
class: "yd-suggestion__item",
|
|
@@ -7043,7 +7011,7 @@ var suggestion_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ d
|
|
|
7043
7011
|
}, [suggestion.icon ? (openBlock(), createBlock(resolveDynamicComponent(getIcon(suggestion.icon)), {
|
|
7044
7012
|
key: 0,
|
|
7045
7013
|
class: "yd-suggestion__item-icon"
|
|
7046
|
-
})) : createCommentVNode("v-if", true), createElementVNode("span", _hoisted_4$
|
|
7014
|
+
})) : createCommentVNode("v-if", true), createElementVNode("span", _hoisted_4$10, toDisplayString(suggestion.text), 1)], 8, _hoisted_3$11);
|
|
7047
7015
|
}), 128))])
|
|
7048
7016
|
], 2);
|
|
7049
7017
|
};
|
|
@@ -7051,13 +7019,13 @@ var suggestion_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ d
|
|
|
7051
7019
|
}), [["__scopeId", "data-v-74cdfdbd"]]);
|
|
7052
7020
|
//#endregion
|
|
7053
7021
|
//#region src/components/base/sources/sources.vue
|
|
7054
|
-
const _hoisted_1$
|
|
7022
|
+
const _hoisted_1$24 = {
|
|
7055
7023
|
key: 0,
|
|
7056
7024
|
class: "yd-sources__header"
|
|
7057
7025
|
};
|
|
7058
|
-
const _hoisted_2$
|
|
7059
|
-
const _hoisted_3$
|
|
7060
|
-
const _hoisted_4$
|
|
7026
|
+
const _hoisted_2$15 = { class: "yd-sources__label" };
|
|
7027
|
+
const _hoisted_3$10 = { class: "yd-sources__count" };
|
|
7028
|
+
const _hoisted_4$9 = { class: "yd-sources__list" };
|
|
7061
7029
|
const _hoisted_5$6 = [
|
|
7062
7030
|
"href",
|
|
7063
7031
|
"target",
|
|
@@ -7099,18 +7067,18 @@ var sources_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defi
|
|
|
7099
7067
|
return (_ctx, _cache) => {
|
|
7100
7068
|
return openBlock(), createElementBlock("div", { class: normalizeClass(classes.value) }, [
|
|
7101
7069
|
createCommentVNode(" Header "),
|
|
7102
|
-
__props.label || __props.sources.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
7070
|
+
__props.label || __props.sources.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$24, [
|
|
7103
7071
|
_cache[0] || (_cache[0] = createElementVNode("svg", {
|
|
7104
7072
|
viewBox: "0 0 24 24",
|
|
7105
7073
|
fill: "currentColor",
|
|
7106
7074
|
width: "14",
|
|
7107
7075
|
height: "14"
|
|
7108
7076
|
}, [createElementVNode("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z" })], -1)),
|
|
7109
|
-
createElementVNode("span", _hoisted_2$
|
|
7110
|
-
createElementVNode("span", _hoisted_3$
|
|
7077
|
+
createElementVNode("span", _hoisted_2$15, toDisplayString(__props.label), 1),
|
|
7078
|
+
createElementVNode("span", _hoisted_3$10, toDisplayString(__props.sources.length), 1)
|
|
7111
7079
|
])) : createCommentVNode("v-if", true),
|
|
7112
7080
|
createCommentVNode(" Sources list "),
|
|
7113
|
-
createElementVNode("ul", _hoisted_4$
|
|
7081
|
+
createElementVNode("ul", _hoisted_4$9, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.sources, (source, index) => {
|
|
7114
7082
|
return openBlock(), createElementBlock("li", {
|
|
7115
7083
|
key: index,
|
|
7116
7084
|
class: "yd-sources__item"
|
|
@@ -7132,19 +7100,19 @@ var sources_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defi
|
|
|
7132
7100
|
}), [["__scopeId", "data-v-db326a6c"]]);
|
|
7133
7101
|
//#endregion
|
|
7134
7102
|
//#region src/components/base/model-selector/model-selector.vue
|
|
7135
|
-
const _hoisted_1$
|
|
7136
|
-
const _hoisted_2$
|
|
7103
|
+
const _hoisted_1$23 = { class: "yd-model-selector__prefix" };
|
|
7104
|
+
const _hoisted_2$14 = {
|
|
7137
7105
|
key: 0,
|
|
7138
7106
|
viewBox: "0 0 24 24",
|
|
7139
7107
|
fill: "currentColor",
|
|
7140
7108
|
width: "16",
|
|
7141
7109
|
height: "16"
|
|
7142
7110
|
};
|
|
7143
|
-
const _hoisted_3$
|
|
7111
|
+
const _hoisted_3$9 = {
|
|
7144
7112
|
key: 1,
|
|
7145
7113
|
class: "yd-model-selector__model-icon"
|
|
7146
7114
|
};
|
|
7147
|
-
const _hoisted_4$
|
|
7115
|
+
const _hoisted_4$8 = {
|
|
7148
7116
|
key: 0,
|
|
7149
7117
|
class: "yd-model-selector__info"
|
|
7150
7118
|
};
|
|
@@ -7245,7 +7213,7 @@ var model_selector_default = /* @__PURE__ */ export_helper_default(/* @__PURE__
|
|
|
7245
7213
|
clearable: __props.clearable,
|
|
7246
7214
|
onChange: handleChange
|
|
7247
7215
|
}, {
|
|
7248
|
-
prefix: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
7216
|
+
prefix: withCtx(() => [createElementVNode("div", _hoisted_1$23, [__props.showIcon ? (openBlock(), createElementBlock("svg", _hoisted_2$14, [..._cache[1] || (_cache[1] = [createElementVNode("path", { d: "M21 11.5v-1c0-.8-.7-1.5-1.5-1.5H16V6c0-.8-.7-1.5-1.5-1.5h-3c-.8 0-1.5.7-1.5 1.5v3H8c-.8 0-1.5.7-1.5 1.5v1c-.6.4-1 1-1 1.5s.4 1.2 1 1.5v1c0 .8.7 1.5 1.5 1.5h3v3.5c0 .8.7 1.5 1.5 1.5h3c.8 0 1.5-.7 1.5-1.5V16h3c.8 0 1.5-.7 1.5-1.5zm-6.5 2.5h-3v-3h3v3zM12 4c.8 0 1.5.7 1.5 1.5v2c-.8-.5-1.5-1-1.5-2s.7-1.5 1.5-1.5z" }, null, -1)])])) : createCommentVNode("v-if", true), localModel.value ? (openBlock(), createElementBlock("span", _hoisted_3$9, toDisplayString(getProviderIcon(localModel.value)), 1)) : createCommentVNode("v-if", true)])]),
|
|
7249
7217
|
_: 1
|
|
7250
7218
|
}, 8, [
|
|
7251
7219
|
"modelValue",
|
|
@@ -7257,7 +7225,7 @@ var model_selector_default = /* @__PURE__ */ export_helper_default(/* @__PURE__
|
|
|
7257
7225
|
]),
|
|
7258
7226
|
createCommentVNode(" Model info "),
|
|
7259
7227
|
createVNode(Transition, { name: "fade" }, {
|
|
7260
|
-
default: withCtx(() => [localModel.value && __props.showInfo ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
7228
|
+
default: withCtx(() => [localModel.value && __props.showInfo ? (openBlock(), createElementBlock("div", _hoisted_4$8, [createElementVNode("div", _hoisted_5$5, [createElementVNode("span", _hoisted_6$5, toDisplayString(selectedModelName.value), 1), selectedModelDescription.value ? (openBlock(), createElementBlock("span", _hoisted_7$4, toDisplayString(selectedModelDescription.value), 1)) : createCommentVNode("v-if", true)]), selectedModelMeta.value ? (openBlock(), createElementBlock("div", _hoisted_8$4, [
|
|
7261
7229
|
selectedModelMeta.value.context_length ? (openBlock(), createElementBlock("span", _hoisted_9$4, toDisplayString(selectedModelMeta.value.context_length.toLocaleString()) + "k context ", 1)) : createCommentVNode("v-if", true),
|
|
7262
7230
|
selectedModelMeta.value.json_mode ? (openBlock(), createElementBlock("span", _hoisted_10$4, " JSON mode ")) : createCommentVNode("v-if", true),
|
|
7263
7231
|
selectedModelMeta.value.function_calling ? (openBlock(), createElementBlock("span", _hoisted_11$4, " Functions ")) : createCommentVNode("v-if", true)
|
|
@@ -8248,15 +8216,15 @@ var crud_page_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ de
|
|
|
8248
8216
|
}), [["__scopeId", "data-v-40a22073"]]);
|
|
8249
8217
|
//#endregion
|
|
8250
8218
|
//#region src/components/navigation/menu/menu.vue
|
|
8251
|
-
const _hoisted_1$
|
|
8252
|
-
const _hoisted_2$
|
|
8219
|
+
const _hoisted_1$22 = ["aria-orientation"];
|
|
8220
|
+
const _hoisted_2$13 = [
|
|
8253
8221
|
"aria-expanded",
|
|
8254
8222
|
"data-submenu",
|
|
8255
8223
|
"onMouseenter",
|
|
8256
8224
|
"onMouseleave"
|
|
8257
8225
|
];
|
|
8258
|
-
const _hoisted_3$
|
|
8259
|
-
const _hoisted_4$
|
|
8226
|
+
const _hoisted_3$8 = ["onClick", "onKeydown"];
|
|
8227
|
+
const _hoisted_4$7 = ["onMouseenter", "onMouseleave"];
|
|
8260
8228
|
const _hoisted_5$4 = ["data-many"];
|
|
8261
8229
|
const _hoisted_6$4 = ["onClick"];
|
|
8262
8230
|
const _hoisted_7$3 = ["onClick"];
|
|
@@ -8520,7 +8488,7 @@ var menu_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineC
|
|
|
8520
8488
|
"stroke-linecap": "round",
|
|
8521
8489
|
"stroke-linejoin": "round"
|
|
8522
8490
|
}, [createElementVNode("polyline", { points: "6 9 12 15 18 9" })], -1)])], 6)
|
|
8523
|
-
], 42, _hoisted_3$
|
|
8491
|
+
], 42, _hoisted_3$8),
|
|
8524
8492
|
createCommentVNode(" Vertical: inline submenu OR waterfall popup "),
|
|
8525
8493
|
__props.waterfall && __props.mode !== "horizontal" ? (openBlock(), createBlock(Teleport, {
|
|
8526
8494
|
key: 0,
|
|
@@ -8582,7 +8550,7 @@ var menu_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineC
|
|
|
8582
8550
|
class: normalizeClass([e("badge"), e(`badge--${child.badgeType || "primary"}`)])
|
|
8583
8551
|
}, toDisplayString(child.badge), 3)) : createCommentVNode("v-if", true)
|
|
8584
8552
|
], 2)], 10, _hoisted_7$3)], 2112))], 64);
|
|
8585
|
-
}), 128))], 2)], 46, _hoisted_4$
|
|
8553
|
+
}), 128))], 2)], 46, _hoisted_4$7)) : createCommentVNode("v-if", true)]),
|
|
8586
8554
|
_: 2
|
|
8587
8555
|
}, 1024)])) : __props.mode !== "horizontal" ? (openBlock(), createBlock(Transition, {
|
|
8588
8556
|
key: 1,
|
|
@@ -8694,7 +8662,7 @@ var menu_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineC
|
|
|
8694
8662
|
}), 128))], 2)], 46, _hoisted_12$3)) : createCommentVNode("v-if", true)]),
|
|
8695
8663
|
_: 2
|
|
8696
8664
|
}, 1024)]))], 2112))
|
|
8697
|
-
], 42, _hoisted_2$
|
|
8665
|
+
], 42, _hoisted_2$13)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" Regular item "), createElementVNode("div", {
|
|
8698
8666
|
class: normalizeClass([e("item"), {
|
|
8699
8667
|
[e("item--active")]: __props.modelValue === item.key,
|
|
8700
8668
|
[e("item--disabled")]: item.disabled
|
|
@@ -8704,7 +8672,7 @@ var menu_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineC
|
|
|
8704
8672
|
key: 0,
|
|
8705
8673
|
class: normalizeClass(e("icon"))
|
|
8706
8674
|
}, toDisplayString(item.icon), 3)) : createCommentVNode("v-if", true), createElementVNode("span", { class: normalizeClass(e("label")) }, toDisplayString(item.label), 3)], 10, _hoisted_16$1)], 2112))], 64);
|
|
8707
|
-
}), 128))], 10, _hoisted_1$
|
|
8675
|
+
}), 128))], 10, _hoisted_1$22);
|
|
8708
8676
|
};
|
|
8709
8677
|
}
|
|
8710
8678
|
}), [["__scopeId", "data-v-9dfb9940"]]);
|
|
@@ -8845,7 +8813,7 @@ function flattenMenuItems(items) {
|
|
|
8845
8813
|
}
|
|
8846
8814
|
//#endregion
|
|
8847
8815
|
//#region src/components/layout/layout/layout-sidebar.vue
|
|
8848
|
-
const _hoisted_1$
|
|
8816
|
+
const _hoisted_1$21 = ["src", "alt"];
|
|
8849
8817
|
var layout_sidebar_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
8850
8818
|
name: "YdLayoutSidebar",
|
|
8851
8819
|
__name: "layout-sidebar",
|
|
@@ -8994,7 +8962,7 @@ var layout_sidebar_default = /* @__PURE__ */ export_helper_default(/* @__PURE__
|
|
|
8994
8962
|
src: __props.logo,
|
|
8995
8963
|
class: normalizeClass(el("logo-image").value),
|
|
8996
8964
|
alt: __props.title
|
|
8997
|
-
}, null, 10, _hoisted_1$
|
|
8965
|
+
}, null, 10, _hoisted_1$21)) : (openBlock(), createElementBlock("div", {
|
|
8998
8966
|
key: 1,
|
|
8999
8967
|
class: normalizeClass(el("logo-icon").value)
|
|
9000
8968
|
}, [..._cache[2] || (_cache[2] = [createElementVNode("svg", {
|
|
@@ -9089,7 +9057,7 @@ var layout_sidebar_default = /* @__PURE__ */ export_helper_default(/* @__PURE__
|
|
|
9089
9057
|
}), [["__scopeId", "data-v-38d5b5bc"]]);
|
|
9090
9058
|
//#endregion
|
|
9091
9059
|
//#region src/components/navigation/tabs/tabs.vue
|
|
9092
|
-
const _hoisted_1$
|
|
9060
|
+
const _hoisted_1$20 = [
|
|
9093
9061
|
"data-key",
|
|
9094
9062
|
"data-index",
|
|
9095
9063
|
"onClick",
|
|
@@ -9101,7 +9069,7 @@ const _hoisted_1$21 = [
|
|
|
9101
9069
|
"onTouchstart",
|
|
9102
9070
|
"onTouchmove"
|
|
9103
9071
|
];
|
|
9104
|
-
const _hoisted_2$
|
|
9072
|
+
const _hoisted_2$12 = ["onClick"];
|
|
9105
9073
|
const AUTO_SCROLL_THRESHOLD = 50;
|
|
9106
9074
|
const AUTO_SCROLL_SPEED = 8;
|
|
9107
9075
|
const TOOLTIP_DELAY = 2e3;
|
|
@@ -9614,8 +9582,8 @@ var tabs_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineC
|
|
|
9614
9582
|
y1: "6",
|
|
9615
9583
|
x2: "18",
|
|
9616
9584
|
y2: "18"
|
|
9617
|
-
})], -1)])], 10, _hoisted_2$
|
|
9618
|
-
], 42, _hoisted_1$
|
|
9585
|
+
})], -1)])], 10, _hoisted_2$12)) : createCommentVNode("v-if", true)
|
|
9586
|
+
], 42, _hoisted_1$20);
|
|
9619
9587
|
}), 128)),
|
|
9620
9588
|
__props.editable ? (openBlock(), createElementBlock("button", {
|
|
9621
9589
|
key: 1,
|
|
@@ -9702,12 +9670,12 @@ var tabs_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineC
|
|
|
9702
9670
|
}), [["__scopeId", "data-v-783bcbbc"]]);
|
|
9703
9671
|
//#endregion
|
|
9704
9672
|
//#region src/components/navigation/dropdown/dropdown.vue
|
|
9705
|
-
const _hoisted_1$
|
|
9673
|
+
const _hoisted_1$19 = [
|
|
9706
9674
|
"aria-expanded",
|
|
9707
9675
|
"aria-label",
|
|
9708
9676
|
"onKeydown"
|
|
9709
9677
|
];
|
|
9710
|
-
const _hoisted_2$
|
|
9678
|
+
const _hoisted_2$11 = [
|
|
9711
9679
|
"aria-disabled",
|
|
9712
9680
|
"tabindex",
|
|
9713
9681
|
"onClick",
|
|
@@ -9865,16 +9833,16 @@ var dropdown_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ def
|
|
|
9865
9833
|
tabindex: item.disabled ? -1 : 0,
|
|
9866
9834
|
onClick: ($event) => handleClick(item),
|
|
9867
9835
|
onKeydown: withKeys(($event) => handleClick(item), ["enter"])
|
|
9868
|
-
}, toDisplayString(item.label), 43, _hoisted_2$
|
|
9836
|
+
}, toDisplayString(item.label), 43, _hoisted_2$11);
|
|
9869
9837
|
}), 128))], 38)) : createCommentVNode("v-if", true)]),
|
|
9870
9838
|
_: 1
|
|
9871
|
-
})]))], 42, _hoisted_1$
|
|
9839
|
+
})]))], 42, _hoisted_1$19);
|
|
9872
9840
|
};
|
|
9873
9841
|
}
|
|
9874
9842
|
}), [["__scopeId", "data-v-14532ff3"]]);
|
|
9875
9843
|
//#endregion
|
|
9876
9844
|
//#region src/components/layout/layout/layout-header.vue
|
|
9877
|
-
const _hoisted_1$
|
|
9845
|
+
const _hoisted_1$18 = ["title"];
|
|
9878
9846
|
var layout_header_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
9879
9847
|
name: "YdLayoutHeader",
|
|
9880
9848
|
__name: "layout-header",
|
|
@@ -10158,7 +10126,7 @@ var layout_header_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ *
|
|
|
10158
10126
|
y2: "12"
|
|
10159
10127
|
}),
|
|
10160
10128
|
createElementVNode("path", { d: "M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" })
|
|
10161
|
-
], -1)])], 10, _hoisted_1$
|
|
10129
|
+
], -1)])], 10, _hoisted_1$18)]),
|
|
10162
10130
|
_: 1
|
|
10163
10131
|
})], true),
|
|
10164
10132
|
createCommentVNode(" 消息通知 "),
|
|
@@ -10270,8 +10238,166 @@ var layout_content_default = /* @__PURE__ */ export_helper_default(/* @__PURE__
|
|
|
10270
10238
|
}
|
|
10271
10239
|
}), [["__scopeId", "data-v-254cc3f6"]]);
|
|
10272
10240
|
//#endregion
|
|
10241
|
+
//#region src/components/data-display/watermark/watermark.vue
|
|
10242
|
+
const _hoisted_1$17 = ["src"];
|
|
10243
|
+
var watermark_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
10244
|
+
name: "YdWatermark",
|
|
10245
|
+
__name: "watermark",
|
|
10246
|
+
props: {
|
|
10247
|
+
content: { default: "水印" },
|
|
10248
|
+
image: { default: void 0 },
|
|
10249
|
+
imageWidth: { default: 120 },
|
|
10250
|
+
imageHeight: { default: 64 },
|
|
10251
|
+
fontSize: { default: 14 },
|
|
10252
|
+
fontColor: { default: "rgba(0, 0, 0, 0.15)" },
|
|
10253
|
+
fontFamily: { default: "sans-serif" },
|
|
10254
|
+
fontWeight: { default: "normal" },
|
|
10255
|
+
rotate: { default: -30 },
|
|
10256
|
+
opacity: { default: 1 },
|
|
10257
|
+
gapX: { default: 100 },
|
|
10258
|
+
gapY: { default: 80 },
|
|
10259
|
+
offsetX: { default: 0 },
|
|
10260
|
+
offsetY: { default: 0 },
|
|
10261
|
+
position: { default: "left" },
|
|
10262
|
+
tiled: {
|
|
10263
|
+
type: Boolean,
|
|
10264
|
+
default: true
|
|
10265
|
+
},
|
|
10266
|
+
zIndex: { default: 1 },
|
|
10267
|
+
visible: {
|
|
10268
|
+
type: Boolean,
|
|
10269
|
+
default: true
|
|
10270
|
+
},
|
|
10271
|
+
disabled: {
|
|
10272
|
+
type: Boolean,
|
|
10273
|
+
default: false
|
|
10274
|
+
}
|
|
10275
|
+
},
|
|
10276
|
+
setup(__props) {
|
|
10277
|
+
const props = __props;
|
|
10278
|
+
const containerRef = ref(null);
|
|
10279
|
+
const containerWidth = ref(0);
|
|
10280
|
+
const containerHeight = ref(0);
|
|
10281
|
+
const updateSize = () => {
|
|
10282
|
+
if (containerRef.value) {
|
|
10283
|
+
containerWidth.value = containerRef.value.offsetWidth;
|
|
10284
|
+
containerHeight.value = containerRef.value.offsetHeight;
|
|
10285
|
+
}
|
|
10286
|
+
};
|
|
10287
|
+
const debouncedUpdateSize = debounce(updateSize, 300);
|
|
10288
|
+
onMounted(() => {
|
|
10289
|
+
updateSize();
|
|
10290
|
+
window.addEventListener("resize", debouncedUpdateSize);
|
|
10291
|
+
});
|
|
10292
|
+
onUnmounted(() => {
|
|
10293
|
+
window.removeEventListener("resize", debouncedUpdateSize);
|
|
10294
|
+
});
|
|
10295
|
+
const watermarkItems = computed(() => {
|
|
10296
|
+
if (props.disabled || !props.visible) return [];
|
|
10297
|
+
const items = [];
|
|
10298
|
+
const width = props.image ? props.imageWidth : props.fontSize * props.content.length * 1.2;
|
|
10299
|
+
const height = props.image ? props.imageHeight : props.fontSize * 2;
|
|
10300
|
+
const rotateRad = props.rotate * Math.PI / 180;
|
|
10301
|
+
const rotatedWidth = Math.abs(width * Math.cos(rotateRad)) + Math.abs(height * Math.sin(rotateRad));
|
|
10302
|
+
const rotatedHeight = Math.abs(width * Math.sin(rotateRad)) + Math.abs(height * Math.cos(rotateRad));
|
|
10303
|
+
if (!props.tiled) {
|
|
10304
|
+
let left = props.offsetX;
|
|
10305
|
+
let top = props.offsetY;
|
|
10306
|
+
if (props.position === "center") {
|
|
10307
|
+
left = (containerWidth.value - rotatedWidth) / 2 + props.offsetX;
|
|
10308
|
+
top = (containerHeight.value - rotatedHeight) / 2 + props.offsetY;
|
|
10309
|
+
} else if (props.position === "right") {
|
|
10310
|
+
left = containerWidth.value - rotatedWidth - props.offsetX;
|
|
10311
|
+
top = props.offsetY;
|
|
10312
|
+
}
|
|
10313
|
+
items.push({
|
|
10314
|
+
key: generateId("wm_"),
|
|
10315
|
+
style: {
|
|
10316
|
+
left: `${left}px`,
|
|
10317
|
+
top: `${top}px`
|
|
10318
|
+
}
|
|
10319
|
+
});
|
|
10320
|
+
return items;
|
|
10321
|
+
}
|
|
10322
|
+
const gapX = props.gapX + rotatedWidth;
|
|
10323
|
+
const gapY = props.gapY + rotatedHeight;
|
|
10324
|
+
const startX = props.offsetX;
|
|
10325
|
+
const startY = props.offsetY;
|
|
10326
|
+
const cols = Math.ceil(containerWidth.value / gapX) + 1;
|
|
10327
|
+
const rows = Math.ceil(containerHeight.value / gapY) + 1;
|
|
10328
|
+
for (let row = -1; row < rows; row++) for (let col = -1; col < cols; col++) {
|
|
10329
|
+
const x = startX + col * gapX;
|
|
10330
|
+
const y = startY + row * gapY;
|
|
10331
|
+
const offsetX = row % 2 === 0 ? gapX / 2 : 0;
|
|
10332
|
+
items.push({
|
|
10333
|
+
key: generateId("wm_"),
|
|
10334
|
+
style: {
|
|
10335
|
+
left: `${x + offsetX}px`,
|
|
10336
|
+
top: `${y}px`
|
|
10337
|
+
}
|
|
10338
|
+
});
|
|
10339
|
+
}
|
|
10340
|
+
return items;
|
|
10341
|
+
});
|
|
10342
|
+
const containerStyle = computed(() => ({ position: "relative" }));
|
|
10343
|
+
const overlayStyle = computed(() => ({
|
|
10344
|
+
position: "absolute",
|
|
10345
|
+
top: 0,
|
|
10346
|
+
left: 0,
|
|
10347
|
+
width: "100%",
|
|
10348
|
+
height: "100%",
|
|
10349
|
+
pointerEvents: "none",
|
|
10350
|
+
overflow: "hidden",
|
|
10351
|
+
zIndex: props.zIndex
|
|
10352
|
+
}));
|
|
10353
|
+
const imageStyle = computed(() => ({
|
|
10354
|
+
width: `${props.imageWidth}px`,
|
|
10355
|
+
height: `${props.imageHeight}px`,
|
|
10356
|
+
opacity: props.opacity,
|
|
10357
|
+
transform: `rotate(${props.rotate}deg)`
|
|
10358
|
+
}));
|
|
10359
|
+
const textStyle = computed(() => ({
|
|
10360
|
+
fontSize: `${props.fontSize}px`,
|
|
10361
|
+
fontFamily: props.fontFamily,
|
|
10362
|
+
fontWeight: props.fontWeight,
|
|
10363
|
+
color: props.fontColor,
|
|
10364
|
+
opacity: props.opacity,
|
|
10365
|
+
whiteSpace: "nowrap",
|
|
10366
|
+
transform: `rotate(${props.rotate}deg)`,
|
|
10367
|
+
display: "inline-block"
|
|
10368
|
+
}));
|
|
10369
|
+
return (_ctx, _cache) => {
|
|
10370
|
+
return openBlock(), createElementBlock("div", {
|
|
10371
|
+
ref_key: "containerRef",
|
|
10372
|
+
ref: containerRef,
|
|
10373
|
+
class: "yd-watermark",
|
|
10374
|
+
style: normalizeStyle(containerStyle.value)
|
|
10375
|
+
}, [renderSlot(_ctx.$slots, "default", {}, void 0, true), __props.visible ? (openBlock(), createElementBlock("div", {
|
|
10376
|
+
key: 0,
|
|
10377
|
+
class: "yd-watermark__overlay",
|
|
10378
|
+
style: normalizeStyle(overlayStyle.value)
|
|
10379
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(watermarkItems.value, (item) => {
|
|
10380
|
+
return openBlock(), createElementBlock("div", {
|
|
10381
|
+
key: item.key,
|
|
10382
|
+
class: "yd-watermark__item",
|
|
10383
|
+
style: normalizeStyle(item.style)
|
|
10384
|
+
}, [__props.image ? (openBlock(), createElementBlock("img", {
|
|
10385
|
+
key: 0,
|
|
10386
|
+
src: __props.image,
|
|
10387
|
+
class: "yd-watermark__image",
|
|
10388
|
+
style: normalizeStyle(imageStyle.value)
|
|
10389
|
+
}, null, 12, _hoisted_1$17)) : (openBlock(), createElementBlock("span", {
|
|
10390
|
+
key: 1,
|
|
10391
|
+
class: "yd-watermark__text",
|
|
10392
|
+
style: normalizeStyle(textStyle.value)
|
|
10393
|
+
}, toDisplayString(__props.content), 5))], 4);
|
|
10394
|
+
}), 128))], 4)) : createCommentVNode("v-if", true)], 4);
|
|
10395
|
+
};
|
|
10396
|
+
}
|
|
10397
|
+
}), [["__scopeId", "data-v-a4ad53e0"]]);
|
|
10398
|
+
//#endregion
|
|
10273
10399
|
//#region src/components/feedback/drawer/drawer.vue
|
|
10274
|
-
const _hoisted_1$
|
|
10400
|
+
const _hoisted_1$16 = ["aria-label"];
|
|
10275
10401
|
var drawer_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
10276
10402
|
name: "YdDrawer",
|
|
10277
10403
|
__name: "drawer",
|
|
@@ -10412,7 +10538,7 @@ var drawer_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defin
|
|
|
10412
10538
|
key: 1,
|
|
10413
10539
|
class: normalizeClass(e("footer"))
|
|
10414
10540
|
}, [renderSlot(_ctx.$slots, "footer", {}, void 0, true)], 2)) : createCommentVNode("v-if", true)
|
|
10415
|
-
], 6)], 42, _hoisted_1$
|
|
10541
|
+
], 6)], 42, _hoisted_1$16)) : createCommentVNode("v-if", true)]),
|
|
10416
10542
|
_: 3
|
|
10417
10543
|
})], 8, ["disabled"]);
|
|
10418
10544
|
};
|
|
@@ -10428,10 +10554,10 @@ const DEFAULT_LAYOUT_SIZE = {
|
|
|
10428
10554
|
};
|
|
10429
10555
|
//#endregion
|
|
10430
10556
|
//#region src/components/layout/layout/layout.vue
|
|
10431
|
-
const _hoisted_1$
|
|
10432
|
-
const _hoisted_2$
|
|
10433
|
-
const _hoisted_3$
|
|
10434
|
-
const _hoisted_4$
|
|
10557
|
+
const _hoisted_1$15 = ["data-theme"];
|
|
10558
|
+
const _hoisted_2$10 = { class: "yd-layout-settings" };
|
|
10559
|
+
const _hoisted_3$7 = { class: "yd-layout-settings__item" };
|
|
10560
|
+
const _hoisted_4$6 = { class: "yd-layout-settings__row" };
|
|
10435
10561
|
const _hoisted_5$3 = { class: "yd-layout-settings__item" };
|
|
10436
10562
|
const _hoisted_6$3 = { class: "yd-layout-settings__row" };
|
|
10437
10563
|
const _hoisted_7$2 = { class: "yd-layout-settings__item" };
|
|
@@ -10488,7 +10614,8 @@ var layout_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defin
|
|
|
10488
10614
|
siderResizable: {
|
|
10489
10615
|
type: Boolean,
|
|
10490
10616
|
default: true
|
|
10491
|
-
}
|
|
10617
|
+
},
|
|
10618
|
+
watermark: { default: void 0 }
|
|
10492
10619
|
},
|
|
10493
10620
|
emits: [
|
|
10494
10621
|
"update:collapsed",
|
|
@@ -10730,8 +10857,14 @@ var layout_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defin
|
|
|
10730
10857
|
"fixed"
|
|
10731
10858
|
])) : createCommentVNode("v-if", true),
|
|
10732
10859
|
createCommentVNode(" 内容区 "),
|
|
10733
|
-
__props.hasContent ? (openBlock(), createBlock(
|
|
10734
|
-
|
|
10860
|
+
__props.hasContent && __props.watermark ? (openBlock(), createBlock(watermark_default, normalizeProps(mergeProps({ key: 1 }, __props.watermark)), {
|
|
10861
|
+
default: withCtx(() => [createVNode(layout_content_default, { style: normalizeStyle(contentStyle.value) }, {
|
|
10862
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
10863
|
+
_: 3
|
|
10864
|
+
}, 8, ["style"])]),
|
|
10865
|
+
_: 3
|
|
10866
|
+
}, 16)) : __props.hasContent ? (openBlock(), createBlock(layout_content_default, {
|
|
10867
|
+
key: 2,
|
|
10735
10868
|
style: normalizeStyle(contentStyle.value)
|
|
10736
10869
|
}, {
|
|
10737
10870
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
@@ -10753,9 +10886,9 @@ var layout_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defin
|
|
|
10753
10886
|
closable: true,
|
|
10754
10887
|
"mask-closable": true
|
|
10755
10888
|
}, {
|
|
10756
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_2$
|
|
10889
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_2$10, [
|
|
10757
10890
|
createCommentVNode(" 主题切换 "),
|
|
10758
|
-
createElementVNode("div", _hoisted_3$
|
|
10891
|
+
createElementVNode("div", _hoisted_3$7, [createElementVNode("div", _hoisted_4$6, [_cache[15] || (_cache[15] = createElementVNode("span", { class: "yd-layout-settings__label" }, "主题", -1)), createVNode(space_default, {
|
|
10759
10892
|
size: 4,
|
|
10760
10893
|
direction: "horizontal"
|
|
10761
10894
|
}, {
|
|
@@ -10875,10 +11008,10 @@ var layout_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defin
|
|
|
10875
11008
|
])]),
|
|
10876
11009
|
_: 1
|
|
10877
11010
|
}, 8, ["modelValue"])
|
|
10878
|
-
], 14, _hoisted_1$
|
|
11011
|
+
], 14, _hoisted_1$15);
|
|
10879
11012
|
};
|
|
10880
11013
|
}
|
|
10881
|
-
}), [["__scopeId", "data-v-
|
|
11014
|
+
}), [["__scopeId", "data-v-2a960b8a"]]);
|
|
10882
11015
|
var card_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
10883
11016
|
name: "YdCard",
|
|
10884
11017
|
inheritAttrs: false,
|
|
@@ -11007,15 +11140,15 @@ var tooltip_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defi
|
|
|
11007
11140
|
}), [["__scopeId", "data-v-65560d25"]]);
|
|
11008
11141
|
//#endregion
|
|
11009
11142
|
//#region src/components/data-display/table/table.vue
|
|
11010
|
-
const _hoisted_1$
|
|
11011
|
-
const _hoisted_2$
|
|
11143
|
+
const _hoisted_1$14 = { key: 0 };
|
|
11144
|
+
const _hoisted_2$9 = [
|
|
11012
11145
|
"draggable",
|
|
11013
11146
|
"onDragstart",
|
|
11014
11147
|
"onDragover",
|
|
11015
11148
|
"onDrop"
|
|
11016
11149
|
];
|
|
11017
|
-
const _hoisted_3$
|
|
11018
|
-
const _hoisted_4$
|
|
11150
|
+
const _hoisted_3$6 = ["onClick"];
|
|
11151
|
+
const _hoisted_4$5 = ["onMousedown"];
|
|
11019
11152
|
const _hoisted_5$2 = ["onClick"];
|
|
11020
11153
|
const _hoisted_6$2 = ["onClick"];
|
|
11021
11154
|
const _hoisted_7$1 = [
|
|
@@ -11443,7 +11576,7 @@ var table_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ define
|
|
|
11443
11576
|
__props.skeleton ? (openBlock(), createElementBlock("div", {
|
|
11444
11577
|
key: 1,
|
|
11445
11578
|
class: normalizeClass(e("skeleton-wrapper"))
|
|
11446
|
-
}, [createElementVNode("table", { class: normalizeClass(e("skeleton-table")) }, [__props.stickyHeader || __props.columns.length > 0 ? (openBlock(), createElementBlock("thead", _hoisted_1$
|
|
11579
|
+
}, [createElementVNode("table", { class: normalizeClass(e("skeleton-table")) }, [__props.stickyHeader || __props.columns.length > 0 ? (openBlock(), createElementBlock("thead", _hoisted_1$14, [createElementVNode("tr", { class: normalizeClass(e("skeleton-header-row")) }, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (col, index) => {
|
|
11447
11580
|
return openBlock(), createElementBlock("th", {
|
|
11448
11581
|
key: index,
|
|
11449
11582
|
class: normalizeClass(e("skeleton-cell")),
|
|
@@ -11519,14 +11652,14 @@ var table_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ define
|
|
|
11519
11652
|
key: 0,
|
|
11520
11653
|
class: normalizeClass(e("sort-btn")),
|
|
11521
11654
|
onClick: ($event) => handleSort(col.key, $event)
|
|
11522
|
-
}, [createElementVNode("span", { class: normalizeClass([e("sort-icon"), { [e("sort-icon--active")]: isColumnSorted(col.key) }]) }, [getSortPriority(col.key) > 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(toDisplayString(getSortPriority(col.key)), 1)], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(isColumnSorted(col.key) ? getSortOrder(col.key) === "asc" ? "↑" : "↓" : "↕"), 1)], 64))], 2)], 10, _hoisted_3$
|
|
11655
|
+
}, [createElementVNode("span", { class: normalizeClass([e("sort-icon"), { [e("sort-icon--active")]: isColumnSorted(col.key) }]) }, [getSortPriority(col.key) > 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(toDisplayString(getSortPriority(col.key)), 1)], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(isColumnSorted(col.key) ? getSortOrder(col.key) === "asc" ? "↑" : "↓" : "↕"), 1)], 64))], 2)], 10, _hoisted_3$6)) : createCommentVNode("v-if", true)], 2),
|
|
11523
11656
|
createCommentVNode(" Resize handle "),
|
|
11524
11657
|
col.resizable ? (openBlock(), createElementBlock("div", {
|
|
11525
11658
|
key: 0,
|
|
11526
11659
|
class: normalizeClass(e("resize-handle")),
|
|
11527
11660
|
onMousedown: withModifiers(($event) => startResize($event, col.key), ["stop"])
|
|
11528
|
-
}, null, 42, _hoisted_4$
|
|
11529
|
-
], 46, _hoisted_2$
|
|
11661
|
+
}, null, 42, _hoisted_4$5)) : createCommentVNode("v-if", true)
|
|
11662
|
+
], 46, _hoisted_2$9);
|
|
11530
11663
|
}), 128))], 2)) : createCommentVNode("v-if", true),
|
|
11531
11664
|
createCommentVNode(" Visible rows "),
|
|
11532
11665
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleRows.value, (row, index) => {
|
|
@@ -11754,8 +11887,8 @@ var table_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ define
|
|
|
11754
11887
|
}), [["__scopeId", "data-v-0736270c"]]);
|
|
11755
11888
|
//#endregion
|
|
11756
11889
|
//#region src/components/data-display/progress/progress.vue
|
|
11757
|
-
const _hoisted_1$
|
|
11758
|
-
const _hoisted_2$
|
|
11890
|
+
const _hoisted_1$13 = ["stroke-width"];
|
|
11891
|
+
const _hoisted_2$8 = [
|
|
11759
11892
|
"stroke-width",
|
|
11760
11893
|
"stroke-dasharray",
|
|
11761
11894
|
"stroke-dashoffset",
|
|
@@ -11833,7 +11966,7 @@ var progress_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ def
|
|
|
11833
11966
|
r: radius,
|
|
11834
11967
|
fill: "none",
|
|
11835
11968
|
"stroke-width": strokeWidth.value
|
|
11836
|
-
}, null, 10, _hoisted_1$
|
|
11969
|
+
}, null, 10, _hoisted_1$13), createElementVNode("circle", {
|
|
11837
11970
|
class: normalizeClass(e("track")),
|
|
11838
11971
|
cx: "50",
|
|
11839
11972
|
cy: "50",
|
|
@@ -11844,7 +11977,7 @@ var progress_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ def
|
|
|
11844
11977
|
"stroke-dashoffset": dashOffset.value,
|
|
11845
11978
|
stroke: computedStrokeColor.value,
|
|
11846
11979
|
"stroke-linecap": "round"
|
|
11847
|
-
}, null, 10, _hoisted_2$
|
|
11980
|
+
}, null, 10, _hoisted_2$8)], 2)), __props.showInfo ? (openBlock(), createElementBlock("div", {
|
|
11848
11981
|
key: 0,
|
|
11849
11982
|
class: normalizeClass(e("circle-text"))
|
|
11850
11983
|
}, [renderSlot(_ctx.$slots, "format", { percent: __props.percent }, () => [createTextVNode(toDisplayString(__props.percent) + "%", 1)], true)], 2)) : createCommentVNode("v-if", true)], 2)], 64))], 6);
|
|
@@ -11931,7 +12064,7 @@ var statistic_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ de
|
|
|
11931
12064
|
}), [["__scopeId", "data-v-22e45987"]]);
|
|
11932
12065
|
//#endregion
|
|
11933
12066
|
//#region src/components/data-display/collapse/collapse.vue
|
|
11934
|
-
const _hoisted_1$
|
|
12067
|
+
const _hoisted_1$12 = ["onClick"];
|
|
11935
12068
|
var collapse_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
11936
12069
|
name: "YdCollapse",
|
|
11937
12070
|
__name: "collapse",
|
|
@@ -11973,7 +12106,7 @@ var collapse_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ def
|
|
|
11973
12106
|
[e("header--disabled")]: item.disabled
|
|
11974
12107
|
}]),
|
|
11975
12108
|
onClick: ($event) => handleToggle(item)
|
|
11976
|
-
}, [createElementVNode("span", { class: normalizeClass(e("title")) }, toDisplayString(item.title), 3), createElementVNode("span", { class: normalizeClass([e("arrow"), { [e("arrow--active")]: activeKeys.value.includes(item.key) }]) }, "▾", 2)], 10, _hoisted_1$
|
|
12109
|
+
}, [createElementVNode("span", { class: normalizeClass(e("title")) }, toDisplayString(item.title), 3), createElementVNode("span", { class: normalizeClass([e("arrow"), { [e("arrow--active")]: activeKeys.value.includes(item.key) }]) }, "▾", 2)], 10, _hoisted_1$12), createVNode(Transition, { name: "yd-collapse" }, {
|
|
11977
12110
|
default: withCtx(() => [activeKeys.value.includes(item.key) ? (openBlock(), createElementBlock("div", {
|
|
11978
12111
|
key: 0,
|
|
11979
12112
|
class: normalizeClass(e("content"))
|
|
@@ -12444,7 +12577,7 @@ var tree_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineC
|
|
|
12444
12577
|
}), [["__scopeId", "data-v-04e8b428"]]);
|
|
12445
12578
|
//#endregion
|
|
12446
12579
|
//#region src/components/data-display/list/list.vue
|
|
12447
|
-
const _hoisted_1$
|
|
12580
|
+
const _hoisted_1$11 = ["onClick"];
|
|
12448
12581
|
var list_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
12449
12582
|
name: "YdList",
|
|
12450
12583
|
__name: "list",
|
|
@@ -12522,7 +12655,7 @@ var list_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineC
|
|
|
12522
12655
|
}, toDisplayString(item.title), 3)) : createCommentVNode("v-if", true), item.description ? (openBlock(), createElementBlock("div", {
|
|
12523
12656
|
key: 1,
|
|
12524
12657
|
class: normalizeClass(e("item-desc"))
|
|
12525
|
-
}, toDisplayString(item.description), 3)) : createCommentVNode("v-if", true)], true)], 10, _hoisted_1$
|
|
12658
|
+
}, toDisplayString(item.description), 3)) : createCommentVNode("v-if", true)], true)], 10, _hoisted_1$11);
|
|
12526
12659
|
}), 128)), !__props.dataSource?.length ? (openBlock(), createBlock(empty_default, {
|
|
12527
12660
|
key: 0,
|
|
12528
12661
|
description: __props.emptyText
|
|
@@ -12537,12 +12670,12 @@ var list_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineC
|
|
|
12537
12670
|
}), [["__scopeId", "data-v-b3bbffb1"]]);
|
|
12538
12671
|
//#endregion
|
|
12539
12672
|
//#region src/components/data-display/image/image.vue
|
|
12540
|
-
const _hoisted_1$
|
|
12673
|
+
const _hoisted_1$10 = [
|
|
12541
12674
|
"src",
|
|
12542
12675
|
"alt",
|
|
12543
12676
|
"loading"
|
|
12544
12677
|
];
|
|
12545
|
-
const _hoisted_2$
|
|
12678
|
+
const _hoisted_2$7 = ["src"];
|
|
12546
12679
|
var image_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
12547
12680
|
name: "YdImage",
|
|
12548
12681
|
__name: "image",
|
|
@@ -12628,7 +12761,7 @@ var image_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ define
|
|
|
12628
12761
|
style: normalizeStyle(imageStyle.value),
|
|
12629
12762
|
onError: handleError,
|
|
12630
12763
|
onLoad: handleLoad
|
|
12631
|
-
}, null, 46, _hoisted_1$
|
|
12764
|
+
}, null, 46, _hoisted_1$10),
|
|
12632
12765
|
loading.value ? (openBlock(), createElementBlock("div", {
|
|
12633
12766
|
key: 0,
|
|
12634
12767
|
class: normalizeClass(e("loading"))
|
|
@@ -12699,7 +12832,7 @@ var image_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ define
|
|
|
12699
12832
|
src: currentPreviewSrc.value,
|
|
12700
12833
|
class: normalizeClass(e("preview-img")),
|
|
12701
12834
|
onClick: _cache[1] || (_cache[1] = withModifiers(() => {}, ["stop"]))
|
|
12702
|
-
}, null, 10, _hoisted_2$
|
|
12835
|
+
}, null, 10, _hoisted_2$7),
|
|
12703
12836
|
unref(previewGroup).length > 1 ? (openBlock(), createElementBlock("button", {
|
|
12704
12837
|
key: 1,
|
|
12705
12838
|
class: normalizeClass([e("preview-nav"), e("preview-nav--next")]),
|
|
@@ -12732,18 +12865,18 @@ var image_preview_group_default = /* @__PURE__ */ export_helper_default(/* @__PU
|
|
|
12732
12865
|
}), [["__scopeId", "data-v-87b1f954"]]);
|
|
12733
12866
|
//#endregion
|
|
12734
12867
|
//#region src/components/data-display/flow-chart/flow-chart.vue
|
|
12735
|
-
const _hoisted_1$
|
|
12868
|
+
const _hoisted_1$9 = [
|
|
12736
12869
|
"width",
|
|
12737
12870
|
"height",
|
|
12738
12871
|
"viewBox"
|
|
12739
12872
|
];
|
|
12740
|
-
const _hoisted_2$
|
|
12873
|
+
const _hoisted_2$6 = [
|
|
12741
12874
|
"d",
|
|
12742
12875
|
"stroke",
|
|
12743
12876
|
"stroke-dasharray"
|
|
12744
12877
|
];
|
|
12745
|
-
const _hoisted_3$
|
|
12746
|
-
const _hoisted_4$
|
|
12878
|
+
const _hoisted_3$5 = ["x", "y"];
|
|
12879
|
+
const _hoisted_4$4 = ["transform", "onClick"];
|
|
12747
12880
|
const _hoisted_5$1 = ["width", "height"];
|
|
12748
12881
|
const _hoisted_6$1 = ["x", "y"];
|
|
12749
12882
|
const _hoisted_7 = ["points"];
|
|
@@ -12861,13 +12994,13 @@ var flow_chart_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ d
|
|
|
12861
12994
|
fill: "none",
|
|
12862
12995
|
"stroke-dasharray": conn.dashed ? "5,5" : "none",
|
|
12863
12996
|
"marker-end": "url(#arrowhead)"
|
|
12864
|
-
}, null, 8, _hoisted_2$
|
|
12997
|
+
}, null, 8, _hoisted_2$6), conn.label ? (openBlock(), createElementBlock("text", {
|
|
12865
12998
|
key: 0,
|
|
12866
12999
|
x: getConnectionLabelPosition(conn).x,
|
|
12867
13000
|
y: getConnectionLabelPosition(conn).y,
|
|
12868
13001
|
class: normalizeClass(_ctx.e("connection-label")),
|
|
12869
13002
|
"text-anchor": "middle"
|
|
12870
|
-
}, toDisplayString(conn.label), 11, _hoisted_3$
|
|
13003
|
+
}, toDisplayString(conn.label), 11, _hoisted_3$5)) : createCommentVNode("v-if", true)], 2);
|
|
12871
13004
|
}), 128))], 2),
|
|
12872
13005
|
createCommentVNode(" Arrow marker definition "),
|
|
12873
13006
|
_cache[0] || (_cache[0] = createElementVNode("defs", null, [createElementVNode("marker", {
|
|
@@ -12979,169 +13112,12 @@ var flow_chart_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ d
|
|
|
12979
13112
|
"text-anchor": "middle",
|
|
12980
13113
|
"dominant-baseline": "middle"
|
|
12981
13114
|
}, toDisplayString(node.label), 11, _hoisted_13)
|
|
12982
|
-
], 64))], 10, _hoisted_4$
|
|
13115
|
+
], 64))], 10, _hoisted_4$4);
|
|
12983
13116
|
}), 128))], 2)
|
|
12984
|
-
], 10, _hoisted_1$
|
|
13117
|
+
], 10, _hoisted_1$9))], 2);
|
|
12985
13118
|
};
|
|
12986
13119
|
}
|
|
12987
13120
|
}), [["__scopeId", "data-v-1054bcc0"]]);
|
|
12988
|
-
//#endregion
|
|
12989
|
-
//#region src/components/data-display/watermark/watermark.vue
|
|
12990
|
-
const _hoisted_1$10 = ["src"];
|
|
12991
|
-
var watermark_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
12992
|
-
name: "YdWatermark",
|
|
12993
|
-
__name: "watermark",
|
|
12994
|
-
props: {
|
|
12995
|
-
content: { default: "水印" },
|
|
12996
|
-
image: { default: void 0 },
|
|
12997
|
-
imageWidth: { default: 120 },
|
|
12998
|
-
imageHeight: { default: 64 },
|
|
12999
|
-
fontSize: { default: 14 },
|
|
13000
|
-
fontColor: { default: "rgba(0, 0, 0, 0.15)" },
|
|
13001
|
-
fontFamily: { default: "sans-serif" },
|
|
13002
|
-
fontWeight: { default: "normal" },
|
|
13003
|
-
rotate: { default: -30 },
|
|
13004
|
-
opacity: { default: 1 },
|
|
13005
|
-
gapX: { default: 100 },
|
|
13006
|
-
gapY: { default: 80 },
|
|
13007
|
-
offsetX: { default: 0 },
|
|
13008
|
-
offsetY: { default: 0 },
|
|
13009
|
-
position: { default: "left" },
|
|
13010
|
-
tiled: {
|
|
13011
|
-
type: Boolean,
|
|
13012
|
-
default: true
|
|
13013
|
-
},
|
|
13014
|
-
zIndex: { default: 1 },
|
|
13015
|
-
visible: {
|
|
13016
|
-
type: Boolean,
|
|
13017
|
-
default: true
|
|
13018
|
-
},
|
|
13019
|
-
disabled: {
|
|
13020
|
-
type: Boolean,
|
|
13021
|
-
default: false
|
|
13022
|
-
}
|
|
13023
|
-
},
|
|
13024
|
-
setup(__props) {
|
|
13025
|
-
const props = __props;
|
|
13026
|
-
const containerRef = ref(null);
|
|
13027
|
-
const containerWidth = ref(0);
|
|
13028
|
-
const containerHeight = ref(0);
|
|
13029
|
-
const updateSize = () => {
|
|
13030
|
-
if (containerRef.value) {
|
|
13031
|
-
containerWidth.value = containerRef.value.offsetWidth;
|
|
13032
|
-
containerHeight.value = containerRef.value.offsetHeight;
|
|
13033
|
-
}
|
|
13034
|
-
};
|
|
13035
|
-
onMounted(() => {
|
|
13036
|
-
updateSize();
|
|
13037
|
-
window.addEventListener("resize", updateSize);
|
|
13038
|
-
});
|
|
13039
|
-
onUnmounted(() => {
|
|
13040
|
-
window.removeEventListener("resize", updateSize);
|
|
13041
|
-
});
|
|
13042
|
-
const watermarkItems = computed(() => {
|
|
13043
|
-
if (props.disabled || !props.visible) return [];
|
|
13044
|
-
const items = [];
|
|
13045
|
-
const width = props.image ? props.imageWidth : props.fontSize * props.content.length * 1.2;
|
|
13046
|
-
const height = props.image ? props.imageHeight : props.fontSize * 2;
|
|
13047
|
-
const rotateRad = props.rotate * Math.PI / 180;
|
|
13048
|
-
const rotatedWidth = Math.abs(width * Math.cos(rotateRad)) + Math.abs(height * Math.sin(rotateRad));
|
|
13049
|
-
const rotatedHeight = Math.abs(width * Math.sin(rotateRad)) + Math.abs(height * Math.cos(rotateRad));
|
|
13050
|
-
if (!props.tiled) {
|
|
13051
|
-
let left = props.offsetX;
|
|
13052
|
-
let top = props.offsetY;
|
|
13053
|
-
if (props.position === "center") {
|
|
13054
|
-
left = (containerWidth.value - rotatedWidth) / 2 + props.offsetX;
|
|
13055
|
-
top = (containerHeight.value - rotatedHeight) / 2 + props.offsetY;
|
|
13056
|
-
} else if (props.position === "right") {
|
|
13057
|
-
left = containerWidth.value - rotatedWidth - props.offsetX;
|
|
13058
|
-
top = props.offsetY;
|
|
13059
|
-
}
|
|
13060
|
-
items.push({
|
|
13061
|
-
key: generateId("wm_"),
|
|
13062
|
-
style: {
|
|
13063
|
-
left: `${left}px`,
|
|
13064
|
-
top: `${top}px`
|
|
13065
|
-
}
|
|
13066
|
-
});
|
|
13067
|
-
return items;
|
|
13068
|
-
}
|
|
13069
|
-
const gapX = props.gapX + rotatedWidth;
|
|
13070
|
-
const gapY = props.gapY + rotatedHeight;
|
|
13071
|
-
const startX = props.offsetX;
|
|
13072
|
-
const startY = props.offsetY;
|
|
13073
|
-
const cols = Math.ceil(containerWidth.value / gapX) + 1;
|
|
13074
|
-
const rows = Math.ceil(containerHeight.value / gapY) + 1;
|
|
13075
|
-
for (let row = -1; row < rows; row++) for (let col = -1; col < cols; col++) {
|
|
13076
|
-
const x = startX + col * gapX;
|
|
13077
|
-
const y = startY + row * gapY;
|
|
13078
|
-
const offsetX = row % 2 === 0 ? gapX / 2 : 0;
|
|
13079
|
-
items.push({
|
|
13080
|
-
key: generateId("wm_"),
|
|
13081
|
-
style: {
|
|
13082
|
-
left: `${x + offsetX}px`,
|
|
13083
|
-
top: `${y}px`
|
|
13084
|
-
}
|
|
13085
|
-
});
|
|
13086
|
-
}
|
|
13087
|
-
return items;
|
|
13088
|
-
});
|
|
13089
|
-
const containerStyle = computed(() => ({ position: "relative" }));
|
|
13090
|
-
const overlayStyle = computed(() => ({
|
|
13091
|
-
position: "absolute",
|
|
13092
|
-
top: 0,
|
|
13093
|
-
left: 0,
|
|
13094
|
-
width: "100%",
|
|
13095
|
-
height: "100%",
|
|
13096
|
-
pointerEvents: "none",
|
|
13097
|
-
overflow: "hidden",
|
|
13098
|
-
zIndex: props.zIndex
|
|
13099
|
-
}));
|
|
13100
|
-
const imageStyle = computed(() => ({
|
|
13101
|
-
width: `${props.imageWidth}px`,
|
|
13102
|
-
height: `${props.imageHeight}px`,
|
|
13103
|
-
opacity: props.opacity,
|
|
13104
|
-
transform: `rotate(${props.rotate}deg)`
|
|
13105
|
-
}));
|
|
13106
|
-
const textStyle = computed(() => ({
|
|
13107
|
-
fontSize: `${props.fontSize}px`,
|
|
13108
|
-
fontFamily: props.fontFamily,
|
|
13109
|
-
fontWeight: props.fontWeight,
|
|
13110
|
-
color: props.fontColor,
|
|
13111
|
-
opacity: props.opacity,
|
|
13112
|
-
whiteSpace: "nowrap",
|
|
13113
|
-
transform: `rotate(${props.rotate}deg)`,
|
|
13114
|
-
display: "inline-block"
|
|
13115
|
-
}));
|
|
13116
|
-
return (_ctx, _cache) => {
|
|
13117
|
-
return openBlock(), createElementBlock("div", {
|
|
13118
|
-
ref_key: "containerRef",
|
|
13119
|
-
ref: containerRef,
|
|
13120
|
-
class: "yd-watermark",
|
|
13121
|
-
style: normalizeStyle(containerStyle.value)
|
|
13122
|
-
}, [renderSlot(_ctx.$slots, "default", {}, void 0, true), __props.visible ? (openBlock(), createElementBlock("div", {
|
|
13123
|
-
key: 0,
|
|
13124
|
-
class: "yd-watermark__overlay",
|
|
13125
|
-
style: normalizeStyle(overlayStyle.value)
|
|
13126
|
-
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(watermarkItems.value, (item) => {
|
|
13127
|
-
return openBlock(), createElementBlock("div", {
|
|
13128
|
-
key: item.key,
|
|
13129
|
-
class: "yd-watermark__item",
|
|
13130
|
-
style: normalizeStyle(item.style)
|
|
13131
|
-
}, [__props.image ? (openBlock(), createElementBlock("img", {
|
|
13132
|
-
key: 0,
|
|
13133
|
-
src: __props.image,
|
|
13134
|
-
class: "yd-watermark__image",
|
|
13135
|
-
style: normalizeStyle(imageStyle.value)
|
|
13136
|
-
}, null, 12, _hoisted_1$10)) : (openBlock(), createElementBlock("span", {
|
|
13137
|
-
key: 1,
|
|
13138
|
-
class: "yd-watermark__text",
|
|
13139
|
-
style: normalizeStyle(textStyle.value)
|
|
13140
|
-
}, toDisplayString(__props.content), 5))], 4);
|
|
13141
|
-
}), 128))], 4)) : createCommentVNode("v-if", true)], 4);
|
|
13142
|
-
};
|
|
13143
|
-
}
|
|
13144
|
-
}), [["__scopeId", "data-v-7040979a"]]);
|
|
13145
13121
|
var breadcrumb_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
13146
13122
|
name: "YdBreadcrumb",
|
|
13147
13123
|
__name: "breadcrumb",
|
|
@@ -13184,10 +13160,10 @@ var breadcrumb_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ d
|
|
|
13184
13160
|
}), [["__scopeId", "data-v-5ce89066"]]);
|
|
13185
13161
|
//#endregion
|
|
13186
13162
|
//#region src/components/navigation/pagination/pagination.vue
|
|
13187
|
-
const _hoisted_1$
|
|
13188
|
-
const _hoisted_2$
|
|
13189
|
-
const _hoisted_3$
|
|
13190
|
-
const _hoisted_4$
|
|
13163
|
+
const _hoisted_1$8 = ["disabled"];
|
|
13164
|
+
const _hoisted_2$5 = ["onClick"];
|
|
13165
|
+
const _hoisted_3$4 = ["disabled"];
|
|
13166
|
+
const _hoisted_4$3 = ["value"];
|
|
13191
13167
|
const _hoisted_5 = ["value"];
|
|
13192
13168
|
const _hoisted_6 = ["value"];
|
|
13193
13169
|
var pagination_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -13276,7 +13252,7 @@ var pagination_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ d
|
|
|
13276
13252
|
"stroke-width": "2",
|
|
13277
13253
|
"stroke-linecap": "round",
|
|
13278
13254
|
"stroke-linejoin": "round"
|
|
13279
|
-
}, [createElementVNode("polyline", { points: "15 18 9 12 15 6" })], -1)])], 10, _hoisted_1$
|
|
13255
|
+
}, [createElementVNode("polyline", { points: "15 18 9 12 15 6" })], -1)])], 10, _hoisted_1$8),
|
|
13280
13256
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visiblePages.value, (page) => {
|
|
13281
13257
|
return openBlock(), createElementBlock(Fragment, { key: page }, [page === "..." ? (openBlock(), createElementBlock("button", {
|
|
13282
13258
|
key: 0,
|
|
@@ -13286,7 +13262,7 @@ var pagination_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ d
|
|
|
13286
13262
|
key: 1,
|
|
13287
13263
|
class: normalizeClass([e("btn"), { [e("btn--active")]: page === __props.currentPage }]),
|
|
13288
13264
|
onClick: ($event) => handlePageChange(page)
|
|
13289
|
-
}, toDisplayString(page), 11, _hoisted_2$
|
|
13265
|
+
}, toDisplayString(page), 11, _hoisted_2$5))], 64);
|
|
13290
13266
|
}), 128)),
|
|
13291
13267
|
createElementVNode("button", {
|
|
13292
13268
|
class: normalizeClass(e("btn")),
|
|
@@ -13302,7 +13278,7 @@ var pagination_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ d
|
|
|
13302
13278
|
"stroke-width": "2",
|
|
13303
13279
|
"stroke-linecap": "round",
|
|
13304
13280
|
"stroke-linejoin": "round"
|
|
13305
|
-
}, [createElementVNode("polyline", { points: "9 18 15 12 9 6" })], -1)])], 10, _hoisted_3$
|
|
13281
|
+
}, [createElementVNode("polyline", { points: "9 18 15 12 9 6" })], -1)])], 10, _hoisted_3$4),
|
|
13306
13282
|
__props.showTotal ? (openBlock(), createElementBlock("span", {
|
|
13307
13283
|
key: 0,
|
|
13308
13284
|
class: normalizeClass(e("total"))
|
|
@@ -13317,7 +13293,7 @@ var pagination_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ d
|
|
|
13317
13293
|
key: size,
|
|
13318
13294
|
value: size
|
|
13319
13295
|
}, toDisplayString(size) + " 条/页", 9, _hoisted_5);
|
|
13320
|
-
}), 128))], 42, _hoisted_4$
|
|
13296
|
+
}), 128))], 42, _hoisted_4$3)) : createCommentVNode("v-if", true),
|
|
13321
13297
|
__props.showQuickJumper ? (openBlock(), createElementBlock("div", {
|
|
13322
13298
|
key: 2,
|
|
13323
13299
|
class: normalizeClass(e("jumper"))
|
|
@@ -13338,9 +13314,9 @@ var pagination_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ d
|
|
|
13338
13314
|
}), [["__scopeId", "data-v-9e7079e4"]]);
|
|
13339
13315
|
//#endregion
|
|
13340
13316
|
//#region src/components/navigation/steps/steps.vue
|
|
13341
|
-
const _hoisted_1$
|
|
13342
|
-
const _hoisted_2$
|
|
13343
|
-
const _hoisted_3$
|
|
13317
|
+
const _hoisted_1$7 = { key: 0 };
|
|
13318
|
+
const _hoisted_2$4 = { key: 1 };
|
|
13319
|
+
const _hoisted_3$3 = { key: 2 };
|
|
13344
13320
|
var steps_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
13345
13321
|
name: "YdSteps",
|
|
13346
13322
|
__name: "steps",
|
|
@@ -13366,7 +13342,7 @@ var steps_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ define
|
|
|
13366
13342
|
[e("item--error")]: item.status === "error"
|
|
13367
13343
|
}])
|
|
13368
13344
|
}, [
|
|
13369
|
-
createElementVNode("div", { class: normalizeClass(e("icon")) }, [index < __props.current && item.status !== "error" ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
13345
|
+
createElementVNode("div", { class: normalizeClass(e("icon")) }, [index < __props.current && item.status !== "error" ? (openBlock(), createElementBlock("span", _hoisted_1$7, "✓")) : item.status === "error" ? (openBlock(), createElementBlock("span", _hoisted_2$4, "!")) : (openBlock(), createElementBlock("span", _hoisted_3$3, toDisplayString(index + 1), 1))], 2),
|
|
13370
13346
|
index < __props.items.length - 1 ? (openBlock(), createElementBlock("div", {
|
|
13371
13347
|
key: 0,
|
|
13372
13348
|
class: normalizeClass(e("line"))
|
|
@@ -13382,10 +13358,10 @@ var steps_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ define
|
|
|
13382
13358
|
}), [["__scopeId", "data-v-a824bf63"]]);
|
|
13383
13359
|
//#endregion
|
|
13384
13360
|
//#region src/components/navigation/stepper/stepper.vue
|
|
13385
|
-
const _hoisted_1$
|
|
13386
|
-
const _hoisted_2$
|
|
13387
|
-
const _hoisted_3$
|
|
13388
|
-
const _hoisted_4$
|
|
13361
|
+
const _hoisted_1$6 = ["onClick"];
|
|
13362
|
+
const _hoisted_2$3 = { key: 0 };
|
|
13363
|
+
const _hoisted_3$2 = { key: 1 };
|
|
13364
|
+
const _hoisted_4$2 = { key: 2 };
|
|
13389
13365
|
var stepper_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
13390
13366
|
name: "YdStepper",
|
|
13391
13367
|
__name: "stepper",
|
|
@@ -13430,7 +13406,7 @@ var stepper_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defi
|
|
|
13430
13406
|
}]),
|
|
13431
13407
|
onClick: ($event) => handleClick(index)
|
|
13432
13408
|
}, [
|
|
13433
|
-
createElementVNode("div", { class: normalizeClass(e("icon")) }, [index < __props.current && item.status !== "error" ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
13409
|
+
createElementVNode("div", { class: normalizeClass(e("icon")) }, [index < __props.current && item.status !== "error" ? (openBlock(), createElementBlock("span", _hoisted_2$3, "✓")) : item.status === "error" ? (openBlock(), createElementBlock("span", _hoisted_3$2, "!")) : (openBlock(), createElementBlock("span", _hoisted_4$2, toDisplayString(index + 1), 1))], 2),
|
|
13434
13410
|
index < __props.items.length - 1 ? (openBlock(), createElementBlock("div", {
|
|
13435
13411
|
key: 0,
|
|
13436
13412
|
class: normalizeClass(e("line"))
|
|
@@ -13439,15 +13415,15 @@ var stepper_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defi
|
|
|
13439
13415
|
key: 0,
|
|
13440
13416
|
class: normalizeClass(e("description"))
|
|
13441
13417
|
}, toDisplayString(item.description), 3)) : createCommentVNode("v-if", true)], 2)
|
|
13442
|
-
], 10, _hoisted_1$
|
|
13418
|
+
], 10, _hoisted_1$6);
|
|
13443
13419
|
}), 128))], 2);
|
|
13444
13420
|
};
|
|
13445
13421
|
}
|
|
13446
13422
|
}), [["__scopeId", "data-v-774c1ca4"]]);
|
|
13447
13423
|
//#endregion
|
|
13448
13424
|
//#region src/components/navigation/anchor/anchor.vue
|
|
13449
|
-
const _hoisted_1$
|
|
13450
|
-
const _hoisted_2$
|
|
13425
|
+
const _hoisted_1$5 = ["href", "onClick"];
|
|
13426
|
+
const _hoisted_2$2 = ["href", "onClick"];
|
|
13451
13427
|
var anchor_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
13452
13428
|
name: "YdAnchor",
|
|
13453
13429
|
__name: "anchor",
|
|
@@ -13472,7 +13448,7 @@ var anchor_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defin
|
|
|
13472
13448
|
href: item.href,
|
|
13473
13449
|
class: normalizeClass([e("title"), { [e("title--active")]: activeHref.value === item.href }]),
|
|
13474
13450
|
onClick: withModifiers(($event) => handleClick(item), ["prevent"])
|
|
13475
|
-
}, toDisplayString(item.title), 11, _hoisted_1$
|
|
13451
|
+
}, toDisplayString(item.title), 11, _hoisted_1$5), item.children?.length ? (openBlock(), createElementBlock("div", {
|
|
13476
13452
|
key: 0,
|
|
13477
13453
|
class: normalizeClass(e("children"))
|
|
13478
13454
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(item.children, (child) => {
|
|
@@ -13481,7 +13457,7 @@ var anchor_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defin
|
|
|
13481
13457
|
href: child.href,
|
|
13482
13458
|
class: normalizeClass([e("child"), { [e("child--active")]: activeHref.value === child.href }]),
|
|
13483
13459
|
onClick: withModifiers(($event) => handleClick(child), ["prevent"])
|
|
13484
|
-
}, toDisplayString(child.title), 11, _hoisted_2$
|
|
13460
|
+
}, toDisplayString(child.title), 11, _hoisted_2$2);
|
|
13485
13461
|
}), 128))], 2)) : createCommentVNode("v-if", true)], 2);
|
|
13486
13462
|
}), 128))], 2);
|
|
13487
13463
|
};
|
|
@@ -13489,7 +13465,7 @@ var anchor_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defin
|
|
|
13489
13465
|
}), [["__scopeId", "data-v-120824da"]]);
|
|
13490
13466
|
//#endregion
|
|
13491
13467
|
//#region src/components/feedback/modal/modal.vue
|
|
13492
|
-
const _hoisted_1$
|
|
13468
|
+
const _hoisted_1$4 = ["aria-labelledby"];
|
|
13493
13469
|
var modal_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
13494
13470
|
name: "YdModal",
|
|
13495
13471
|
__name: "modal",
|
|
@@ -13660,62 +13636,12 @@ var modal_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ define
|
|
|
13660
13636
|
default: withCtx(() => [createTextVNode(toDisplayString(__props.confirmText), 1)]),
|
|
13661
13637
|
_: 1
|
|
13662
13638
|
}, 8, ["loading"])], true)], 2)) : createCommentVNode("v-if", true)
|
|
13663
|
-
], 6)], 42, _hoisted_1$
|
|
13639
|
+
], 6)], 42, _hoisted_1$4)) : createCommentVNode("v-if", true)]),
|
|
13664
13640
|
_: 3
|
|
13665
13641
|
})], 8, ["disabled"]);
|
|
13666
13642
|
};
|
|
13667
13643
|
}
|
|
13668
13644
|
}), [["__scopeId", "data-v-9c8fa661"]]);
|
|
13669
|
-
//#endregion
|
|
13670
|
-
//#region src/components/feedback/message/message.vue
|
|
13671
|
-
const _hoisted_1$4 = {
|
|
13672
|
-
key: 0,
|
|
13673
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13674
|
-
width: "16",
|
|
13675
|
-
height: "16",
|
|
13676
|
-
viewBox: "0 0 24 24",
|
|
13677
|
-
fill: "none",
|
|
13678
|
-
stroke: "currentColor",
|
|
13679
|
-
"stroke-width": "2",
|
|
13680
|
-
"stroke-linecap": "round",
|
|
13681
|
-
"stroke-linejoin": "round"
|
|
13682
|
-
};
|
|
13683
|
-
const _hoisted_2$2 = {
|
|
13684
|
-
key: 1,
|
|
13685
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13686
|
-
width: "16",
|
|
13687
|
-
height: "16",
|
|
13688
|
-
viewBox: "0 0 24 24",
|
|
13689
|
-
fill: "none",
|
|
13690
|
-
stroke: "currentColor",
|
|
13691
|
-
"stroke-width": "2",
|
|
13692
|
-
"stroke-linecap": "round",
|
|
13693
|
-
"stroke-linejoin": "round"
|
|
13694
|
-
};
|
|
13695
|
-
const _hoisted_3$2 = {
|
|
13696
|
-
key: 2,
|
|
13697
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13698
|
-
width: "16",
|
|
13699
|
-
height: "16",
|
|
13700
|
-
viewBox: "0 0 24 24",
|
|
13701
|
-
fill: "none",
|
|
13702
|
-
stroke: "currentColor",
|
|
13703
|
-
"stroke-width": "2",
|
|
13704
|
-
"stroke-linecap": "round",
|
|
13705
|
-
"stroke-linejoin": "round"
|
|
13706
|
-
};
|
|
13707
|
-
const _hoisted_4$2 = {
|
|
13708
|
-
key: 3,
|
|
13709
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13710
|
-
width: "16",
|
|
13711
|
-
height: "16",
|
|
13712
|
-
viewBox: "0 0 24 24",
|
|
13713
|
-
fill: "none",
|
|
13714
|
-
stroke: "currentColor",
|
|
13715
|
-
"stroke-width": "2",
|
|
13716
|
-
"stroke-linecap": "round",
|
|
13717
|
-
"stroke-linejoin": "round"
|
|
13718
|
-
};
|
|
13719
13645
|
var message_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defineComponent({
|
|
13720
13646
|
name: "YdMessage",
|
|
13721
13647
|
__name: "message",
|
|
@@ -13760,89 +13686,25 @@ var message_default = /* @__PURE__ */ export_helper_default(/* @__PURE__ */ defi
|
|
|
13760
13686
|
class: normalizeClass(messageClasses.value),
|
|
13761
13687
|
style: normalizeStyle(messageStyle.value)
|
|
13762
13688
|
}, [
|
|
13763
|
-
createElementVNode("span", { class: normalizeClass(e("icon")) }, [
|
|
13764
|
-
|
|
13765
|
-
|
|
13766
|
-
|
|
13767
|
-
y1: "9",
|
|
13768
|
-
x2: "12",
|
|
13769
|
-
y2: "13"
|
|
13770
|
-
}, null, -1),
|
|
13771
|
-
createElementVNode("line", {
|
|
13772
|
-
x1: "12",
|
|
13773
|
-
y1: "17",
|
|
13774
|
-
x2: "12.01",
|
|
13775
|
-
y2: "17"
|
|
13776
|
-
}, null, -1)
|
|
13777
|
-
])])) : __props.type === "error" ? (openBlock(), createElementBlock("svg", _hoisted_3$2, [..._cache[2] || (_cache[2] = [
|
|
13778
|
-
createElementVNode("circle", {
|
|
13779
|
-
cx: "12",
|
|
13780
|
-
cy: "12",
|
|
13781
|
-
r: "10"
|
|
13782
|
-
}, null, -1),
|
|
13783
|
-
createElementVNode("line", {
|
|
13784
|
-
x1: "15",
|
|
13785
|
-
y1: "9",
|
|
13786
|
-
x2: "9",
|
|
13787
|
-
y2: "15"
|
|
13788
|
-
}, null, -1),
|
|
13789
|
-
createElementVNode("line", {
|
|
13790
|
-
x1: "9",
|
|
13791
|
-
y1: "9",
|
|
13792
|
-
x2: "15",
|
|
13793
|
-
y2: "15"
|
|
13794
|
-
}, null, -1)
|
|
13795
|
-
])])) : (openBlock(), createElementBlock("svg", _hoisted_4$2, [..._cache[3] || (_cache[3] = [
|
|
13796
|
-
createElementVNode("circle", {
|
|
13797
|
-
cx: "12",
|
|
13798
|
-
cy: "12",
|
|
13799
|
-
r: "10"
|
|
13800
|
-
}, null, -1),
|
|
13801
|
-
createElementVNode("line", {
|
|
13802
|
-
x1: "12",
|
|
13803
|
-
y1: "16",
|
|
13804
|
-
x2: "12",
|
|
13805
|
-
y2: "12"
|
|
13806
|
-
}, null, -1),
|
|
13807
|
-
createElementVNode("line", {
|
|
13808
|
-
x1: "12",
|
|
13809
|
-
y1: "8",
|
|
13810
|
-
x2: "12.01",
|
|
13811
|
-
y2: "8"
|
|
13812
|
-
}, null, -1)
|
|
13813
|
-
])]))], 2),
|
|
13689
|
+
createElementVNode("span", { class: normalizeClass(e("icon")) }, [createVNode(icon_default, {
|
|
13690
|
+
name: __props.type === "success" ? "success-circle" : __props.type === "warning" ? "warning-circle" : __props.type === "error" ? "error-circle" : "info-circle",
|
|
13691
|
+
size: 16
|
|
13692
|
+
}, null, 8, ["name"])], 2),
|
|
13814
13693
|
createElementVNode("span", { class: normalizeClass(e("content")) }, toDisplayString(__props.content), 3),
|
|
13815
13694
|
__props.closable ? (openBlock(), createElementBlock("button", {
|
|
13816
13695
|
key: 0,
|
|
13817
13696
|
class: normalizeClass(e("close")),
|
|
13818
13697
|
onClick: close
|
|
13819
|
-
}, [
|
|
13820
|
-
|
|
13821
|
-
|
|
13822
|
-
|
|
13823
|
-
viewBox: "0 0 24 24",
|
|
13824
|
-
fill: "none",
|
|
13825
|
-
stroke: "currentColor",
|
|
13826
|
-
"stroke-width": "2",
|
|
13827
|
-
"stroke-linecap": "round",
|
|
13828
|
-
"stroke-linejoin": "round"
|
|
13829
|
-
}, [createElementVNode("line", {
|
|
13830
|
-
x1: "18",
|
|
13831
|
-
y1: "6",
|
|
13832
|
-
x2: "6",
|
|
13833
|
-
y2: "18"
|
|
13834
|
-
}), createElementVNode("line", {
|
|
13835
|
-
x1: "6",
|
|
13836
|
-
y1: "6",
|
|
13837
|
-
x2: "18",
|
|
13838
|
-
y2: "18"
|
|
13839
|
-
})], -1)])], 2)) : createCommentVNode("v-if", true)
|
|
13698
|
+
}, [createVNode(icon_default, {
|
|
13699
|
+
name: "close",
|
|
13700
|
+
size: 14
|
|
13701
|
+
})], 2)) : createCommentVNode("v-if", true)
|
|
13840
13702
|
], 6)) : createCommentVNode("v-if", true)]),
|
|
13841
13703
|
_: 1
|
|
13842
13704
|
});
|
|
13843
13705
|
};
|
|
13844
13706
|
}
|
|
13845
|
-
}), [["__scopeId", "data-v-
|
|
13707
|
+
}), [["__scopeId", "data-v-c4f6fea7"]]);
|
|
13846
13708
|
//#endregion
|
|
13847
13709
|
//#region src/components/feedback/message/index.ts
|
|
13848
13710
|
const instances$1 = ref([]);
|
|
@@ -15016,16 +14878,16 @@ function createWatermark(container, options = {}) {
|
|
|
15016
14878
|
if (originalPosition !== "absolute" && originalPosition !== "relative") containerEl.style.position = "relative";
|
|
15017
14879
|
}
|
|
15018
14880
|
update();
|
|
15019
|
-
const
|
|
14881
|
+
const debouncedHandleResize = debounce(() => {
|
|
15020
14882
|
if (config.mode === "tiled") update();
|
|
15021
|
-
};
|
|
15022
|
-
window.addEventListener("resize",
|
|
14883
|
+
}, THROTTLE_DEFAULTS.resize);
|
|
14884
|
+
window.addEventListener("resize", debouncedHandleResize);
|
|
15023
14885
|
onUnmounted(() => {
|
|
15024
|
-
window.removeEventListener("resize",
|
|
14886
|
+
window.removeEventListener("resize", debouncedHandleResize);
|
|
15025
14887
|
remove();
|
|
15026
14888
|
});
|
|
15027
14889
|
const cleanup = () => {
|
|
15028
|
-
window.removeEventListener("resize",
|
|
14890
|
+
window.removeEventListener("resize", debouncedHandleResize);
|
|
15029
14891
|
remove();
|
|
15030
14892
|
};
|
|
15031
14893
|
return {
|