jky-component-lib 0.0.37 → 0.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/_virtual/_plugin-vue_export-helper.js +10 -0
- package/dist/es/components.d.ts +1 -0
- package/dist/es/components.js +4 -1
- package/dist/es/form/Form.vue.d.ts +237 -0
- package/dist/es/form/Form.vue.js +178 -0
- package/dist/es/form/Form.vue3.js +5 -0
- package/dist/es/form/FormItem.vue.d.ts +6 -0
- package/dist/es/form/FormItem.vue.js +243 -0
- package/dist/es/form/FormItem.vue3.js +5 -0
- package/dist/es/form/index.d.ts +4 -0
- package/dist/es/form/index.js +8 -0
- package/dist/es/form/style.css +14 -0
- package/dist/es/index.js +2 -0
- package/dist/es/menu/Aside.vue.d.ts +17 -0
- package/dist/es/menu/Aside.vue.js +26 -0
- package/dist/es/menu/Menu.vue.d.ts +6 -17
- package/dist/es/menu/Menu.vue.js +25 -7
- package/dist/es/package.json.js +1 -1
- package/dist/es/page-header/PageHeader.vue.js +1 -1
- package/dist/es/page-header/PopoverMenu.vue.d.ts +4 -3
- package/dist/es/page-header/PopoverMenu.vue.js +4 -4
- package/dist/es/style.css +165 -0
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +10 -0
- package/dist/lib/components.d.ts +1 -0
- package/dist/lib/components.js +12 -9
- package/dist/lib/form/Form.vue.d.ts +237 -0
- package/dist/lib/form/Form.vue.js +178 -0
- package/dist/lib/form/Form.vue3.js +5 -0
- package/dist/lib/form/FormItem.vue.d.ts +6 -0
- package/dist/lib/form/FormItem.vue.js +243 -0
- package/dist/lib/form/FormItem.vue3.js +5 -0
- package/dist/lib/form/index.d.ts +4 -0
- package/dist/lib/form/index.js +8 -0
- package/dist/lib/form/style.css +14 -0
- package/dist/lib/index.js +8 -6
- package/dist/lib/menu/Aside.vue.d.ts +17 -0
- package/dist/lib/menu/Aside.vue.js +26 -0
- package/dist/lib/menu/Menu.vue.d.ts +6 -17
- package/dist/lib/menu/Menu.vue.js +24 -6
- package/dist/lib/package.json.js +1 -1
- package/dist/lib/page-header/PageHeader.vue.js +1 -1
- package/dist/lib/page-header/PopoverMenu.vue.d.ts +4 -3
- package/dist/lib/page-header/PopoverMenu.vue.js +4 -4
- package/dist/lib/style.css +165 -0
- package/dist/umd/index.js +637 -29
- package/package.json +1 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { TooltipTriggerType } from 'element-plus';
|
|
2
2
|
import { Arrayable } from 'element-plus/es/utils';
|
|
3
|
-
import { PageHeaderPopoverMenuProps } from './types';
|
|
3
|
+
import { PageHeaderPopoverMenuItem, PageHeaderPopoverMenuProps } from './types';
|
|
4
4
|
declare const _default: import('vue').DefineComponent<PageHeaderPopoverMenuProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PageHeaderPopoverMenuProps> & Readonly<{}>, {
|
|
5
5
|
trigger: Arrayable<TooltipTriggerType>;
|
|
6
|
-
|
|
7
|
-
buttonClass: string;
|
|
6
|
+
placement: import('element-plus').Placement;
|
|
8
7
|
width: number;
|
|
8
|
+
menus: PageHeaderPopoverMenuItem[];
|
|
9
|
+
buttonClass: string;
|
|
9
10
|
highlightCurrent: boolean;
|
|
10
11
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
12
|
export default _default;
|
|
@@ -24,7 +24,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
24
24
|
elButtonType: {},
|
|
25
25
|
width: { default: 400 },
|
|
26
26
|
trigger: { default: "click" },
|
|
27
|
-
highlightCurrent: { type: Boolean, default: true }
|
|
27
|
+
highlightCurrent: { type: Boolean, default: true },
|
|
28
|
+
placement: { default: "bottom-start" }
|
|
28
29
|
},
|
|
29
30
|
setup(__props) {
|
|
30
31
|
const props = __props;
|
|
@@ -40,8 +41,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
40
41
|
var _a;
|
|
41
42
|
return ((_a = __props.menus) == null ? void 0 : _a.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
42
43
|
vue.createVNode(vue.unref(ElementPlus.ElPopover), {
|
|
43
|
-
|
|
44
|
-
placement: "bottom-start",
|
|
44
|
+
placement: __props.placement,
|
|
45
45
|
class: "h-full",
|
|
46
46
|
trigger: __props.trigger,
|
|
47
47
|
width: __props.width
|
|
@@ -81,7 +81,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
81
81
|
])
|
|
82
82
|
]),
|
|
83
83
|
_: 1
|
|
84
|
-
}, 8, ["trigger", "width"])
|
|
84
|
+
}, 8, ["placement", "trigger", "width"])
|
|
85
85
|
])) : vue.createCommentVNode("", true);
|
|
86
86
|
};
|
|
87
87
|
}
|
package/dist/lib/style.css
CHANGED
|
@@ -11,6 +11,19 @@
|
|
|
11
11
|
--tw-border-style: solid;
|
|
12
12
|
--tw-font-weight: initial;
|
|
13
13
|
--tw-outline-style: solid;
|
|
14
|
+
--tw-blur: initial;
|
|
15
|
+
--tw-brightness: initial;
|
|
16
|
+
--tw-contrast: initial;
|
|
17
|
+
--tw-grayscale: initial;
|
|
18
|
+
--tw-hue-rotate: initial;
|
|
19
|
+
--tw-invert: initial;
|
|
20
|
+
--tw-opacity: initial;
|
|
21
|
+
--tw-saturate: initial;
|
|
22
|
+
--tw-sepia: initial;
|
|
23
|
+
--tw-drop-shadow: initial;
|
|
24
|
+
--tw-drop-shadow-color: initial;
|
|
25
|
+
--tw-drop-shadow-alpha: 100%;
|
|
26
|
+
--tw-drop-shadow-size: initial;
|
|
14
27
|
}
|
|
15
28
|
}
|
|
16
29
|
}
|
|
@@ -23,9 +36,11 @@
|
|
|
23
36
|
"Courier New", monospace;
|
|
24
37
|
--color-red-500: oklch(63.7% .237 25.331);
|
|
25
38
|
--color-green-500: oklch(72.3% .219 149.579);
|
|
39
|
+
--color-blue-500: oklch(62.3% .214 259.815);
|
|
26
40
|
--color-blue-600: oklch(54.6% .245 262.881);
|
|
27
41
|
--color-purple-500: oklch(62.7% .265 303.9);
|
|
28
42
|
--color-gray-100: oklch(96.7% .003 264.542);
|
|
43
|
+
--color-gray-300: oklch(87.2% .01 258.338);
|
|
29
44
|
--color-gray-600: oklch(44.6% .03 256.802);
|
|
30
45
|
--color-white: #fff;
|
|
31
46
|
--spacing: .25rem;
|
|
@@ -39,7 +54,9 @@
|
|
|
39
54
|
--text-xl--line-height: calc(1.75 / 1.25);
|
|
40
55
|
--text-2xl: 1.5rem;
|
|
41
56
|
--text-2xl--line-height: calc(2 / 1.5);
|
|
57
|
+
--font-weight-medium: 500;
|
|
42
58
|
--font-weight-semibold: 600;
|
|
59
|
+
--radius-md: .375rem;
|
|
43
60
|
--default-transition-duration: .15s;
|
|
44
61
|
--default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
|
|
45
62
|
--default-font-family: var(--font-sans);
|
|
@@ -301,6 +318,10 @@
|
|
|
301
318
|
visibility: collapse;
|
|
302
319
|
}
|
|
303
320
|
|
|
321
|
+
.fixed {
|
|
322
|
+
position: fixed;
|
|
323
|
+
}
|
|
324
|
+
|
|
304
325
|
.sticky {
|
|
305
326
|
position: sticky;
|
|
306
327
|
}
|
|
@@ -309,10 +330,26 @@
|
|
|
309
330
|
inset-inline-start: var(--spacing);
|
|
310
331
|
}
|
|
311
332
|
|
|
333
|
+
.top-0 {
|
|
334
|
+
top: calc(var(--spacing) * 0);
|
|
335
|
+
}
|
|
336
|
+
|
|
312
337
|
.top-2 {
|
|
313
338
|
top: calc(var(--spacing) * 2);
|
|
314
339
|
}
|
|
315
340
|
|
|
341
|
+
.left-0 {
|
|
342
|
+
left: calc(var(--spacing) * 0);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.z-999 {
|
|
346
|
+
z-index: 999;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.mt-4 {
|
|
350
|
+
margin-top: calc(var(--spacing) * 4);
|
|
351
|
+
}
|
|
352
|
+
|
|
316
353
|
.mr-2 {
|
|
317
354
|
margin-right: calc(var(--spacing) * 2);
|
|
318
355
|
}
|
|
@@ -881,6 +918,10 @@
|
|
|
881
918
|
width: calc(var(--spacing) * 20);
|
|
882
919
|
}
|
|
883
920
|
|
|
921
|
+
.w-fit {
|
|
922
|
+
width: fit-content;
|
|
923
|
+
}
|
|
924
|
+
|
|
884
925
|
.w-fit\! {
|
|
885
926
|
width: fit-content !important;
|
|
886
927
|
}
|
|
@@ -889,6 +930,10 @@
|
|
|
889
930
|
width: 100%;
|
|
890
931
|
}
|
|
891
932
|
|
|
933
|
+
.flex-1 {
|
|
934
|
+
flex: 1;
|
|
935
|
+
}
|
|
936
|
+
|
|
892
937
|
.transform {
|
|
893
938
|
transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
|
|
894
939
|
}
|
|
@@ -917,6 +962,10 @@
|
|
|
917
962
|
justify-content: space-around;
|
|
918
963
|
}
|
|
919
964
|
|
|
965
|
+
.justify-end {
|
|
966
|
+
justify-content: flex-end;
|
|
967
|
+
}
|
|
968
|
+
|
|
920
969
|
.gap-2 {
|
|
921
970
|
gap: calc(var(--spacing) * 2);
|
|
922
971
|
}
|
|
@@ -937,10 +986,18 @@
|
|
|
937
986
|
margin-block-end: calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)));
|
|
938
987
|
}
|
|
939
988
|
|
|
989
|
+
.rounded {
|
|
990
|
+
border-radius: .25rem;
|
|
991
|
+
}
|
|
992
|
+
|
|
940
993
|
.rounded-full {
|
|
941
994
|
border-radius: 3.40282e38px;
|
|
942
995
|
}
|
|
943
996
|
|
|
997
|
+
.rounded-md {
|
|
998
|
+
border-radius: var(--radius-md);
|
|
999
|
+
}
|
|
1000
|
+
|
|
944
1001
|
.border {
|
|
945
1002
|
border-style: var(--tw-border-style);
|
|
946
1003
|
border-width: 1px;
|
|
@@ -950,10 +1007,22 @@
|
|
|
950
1007
|
background-color: var(--my-var);
|
|
951
1008
|
}
|
|
952
1009
|
|
|
1010
|
+
.bg-blue-500 {
|
|
1011
|
+
background-color: var(--color-blue-500);
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
.bg-gray-100 {
|
|
1015
|
+
background-color: var(--color-gray-100);
|
|
1016
|
+
}
|
|
1017
|
+
|
|
953
1018
|
.bg-gray-100\! {
|
|
954
1019
|
background-color: var(--color-gray-100) !important;
|
|
955
1020
|
}
|
|
956
1021
|
|
|
1022
|
+
.bg-gray-300 {
|
|
1023
|
+
background-color: var(--color-gray-300);
|
|
1024
|
+
}
|
|
1025
|
+
|
|
957
1026
|
.bg-green-500\! {
|
|
958
1027
|
background-color: var(--color-green-500) !important;
|
|
959
1028
|
}
|
|
@@ -966,6 +1035,10 @@
|
|
|
966
1035
|
background-color: var(--color-red-500) !important;
|
|
967
1036
|
}
|
|
968
1037
|
|
|
1038
|
+
.bg-white {
|
|
1039
|
+
background-color: var(--color-white);
|
|
1040
|
+
}
|
|
1041
|
+
|
|
969
1042
|
.p-2 {
|
|
970
1043
|
padding: calc(var(--spacing) * 2);
|
|
971
1044
|
}
|
|
@@ -974,6 +1047,22 @@
|
|
|
974
1047
|
padding: calc(var(--spacing) * 4);
|
|
975
1048
|
}
|
|
976
1049
|
|
|
1050
|
+
.px-4 {
|
|
1051
|
+
padding-inline: calc(var(--spacing) * 4);
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
.py-2 {
|
|
1055
|
+
padding-block: calc(var(--spacing) * 2);
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
.pr-0 {
|
|
1059
|
+
padding-right: calc(var(--spacing) * 0);
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
.pb-0 {
|
|
1063
|
+
padding-bottom: calc(var(--spacing) * 0);
|
|
1064
|
+
}
|
|
1065
|
+
|
|
977
1066
|
.text-center {
|
|
978
1067
|
text-align: center;
|
|
979
1068
|
}
|
|
@@ -1003,6 +1092,11 @@
|
|
|
1003
1092
|
line-height: var(--tw-leading, var(--text-xl--line-height));
|
|
1004
1093
|
}
|
|
1005
1094
|
|
|
1095
|
+
.font-medium {
|
|
1096
|
+
--tw-font-weight: var(--font-weight-medium);
|
|
1097
|
+
font-weight: var(--font-weight-medium);
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1006
1100
|
.font-semibold {
|
|
1007
1101
|
--tw-font-weight: var(--font-weight-semibold);
|
|
1008
1102
|
font-weight: var(--font-weight-semibold);
|
|
@@ -1045,6 +1139,11 @@
|
|
|
1045
1139
|
outline-width: 1px;
|
|
1046
1140
|
}
|
|
1047
1141
|
|
|
1142
|
+
.blur {
|
|
1143
|
+
--tw-blur: blur(8px);
|
|
1144
|
+
filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1048
1147
|
.transition {
|
|
1049
1148
|
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
|
|
1050
1149
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
@@ -1119,3 +1218,69 @@
|
|
|
1119
1218
|
inherits: false;
|
|
1120
1219
|
initial-value: solid;
|
|
1121
1220
|
}
|
|
1221
|
+
|
|
1222
|
+
@property --tw-blur {
|
|
1223
|
+
syntax: "*";
|
|
1224
|
+
inherits: false
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
@property --tw-brightness {
|
|
1228
|
+
syntax: "*";
|
|
1229
|
+
inherits: false
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
@property --tw-contrast {
|
|
1233
|
+
syntax: "*";
|
|
1234
|
+
inherits: false
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
@property --tw-grayscale {
|
|
1238
|
+
syntax: "*";
|
|
1239
|
+
inherits: false
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
@property --tw-hue-rotate {
|
|
1243
|
+
syntax: "*";
|
|
1244
|
+
inherits: false
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
@property --tw-invert {
|
|
1248
|
+
syntax: "*";
|
|
1249
|
+
inherits: false
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
@property --tw-opacity {
|
|
1253
|
+
syntax: "*";
|
|
1254
|
+
inherits: false
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
@property --tw-saturate {
|
|
1258
|
+
syntax: "*";
|
|
1259
|
+
inherits: false
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
@property --tw-sepia {
|
|
1263
|
+
syntax: "*";
|
|
1264
|
+
inherits: false
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
@property --tw-drop-shadow {
|
|
1268
|
+
syntax: "*";
|
|
1269
|
+
inherits: false
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
@property --tw-drop-shadow-color {
|
|
1273
|
+
syntax: "*";
|
|
1274
|
+
inherits: false
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
@property --tw-drop-shadow-alpha {
|
|
1278
|
+
syntax: "<percentage>";
|
|
1279
|
+
inherits: false;
|
|
1280
|
+
initial-value: 100%;
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
@property --tw-drop-shadow-size {
|
|
1284
|
+
syntax: "*";
|
|
1285
|
+
inherits: false
|
|
1286
|
+
}
|