fantasia-ui 0.2.51 → 0.2.53
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/fantasia-ui.es.js +202 -215
- package/dist/fantasia-ui.umd.js +201 -214
- package/dist/index.d.ts +8 -5
- package/dist/types/global.d.ts +1 -2
- package/dist/types/packages/components/index.d.ts +0 -14
- package/dist/types/packages/components/modules/FAffix.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FAlert.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FAvatar.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FBadge.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FBreadcrumb.vue.d.ts +3 -3
- package/dist/types/packages/components/modules/FButton.vue.d.ts +2 -2
- package/dist/types/packages/components/modules/FButtonGroup.vue.d.ts +2 -2
- package/dist/types/packages/components/modules/FCard.vue.d.ts +2 -2
- package/dist/types/packages/components/modules/FCheckbox.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FCol.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FCollapse.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FCollapseItem.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FColorPicker.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FContainer.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FDialog.vue.d.ts +3 -3
- package/dist/types/packages/components/modules/FDivider.vue.d.ts +2 -2
- package/dist/types/packages/components/modules/FDropdown.vue.d.ts +2 -2
- package/dist/types/packages/components/modules/FEditor.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FEmpty.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FForm.vue.d.ts +3 -3
- package/dist/types/packages/components/modules/FFormItem.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FIcon.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FImage.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FInput.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FInputNumber.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FLink.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FLoading.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FMarquee.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FMask.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FMessage.vue.d.ts +2 -2
- package/dist/types/packages/components/modules/FNotification.vue.d.ts +3 -3
- package/dist/types/packages/components/modules/FPagination.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FProgress.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FRadio.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FRadioGroup.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FRate.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FResult.vue.d.ts +2 -2
- package/dist/types/packages/components/modules/FRow.vue.d.ts +2 -2
- package/dist/types/packages/components/modules/FScrollbar.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FSelect.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FSlider.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FSpace.vue.d.ts +3 -3
- package/dist/types/packages/components/modules/FSteps.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FSwitch.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FTable.vue.d.ts +4 -4
- package/dist/types/packages/components/modules/FTabs.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FTag.vue.d.ts +2 -2
- package/dist/types/packages/components/modules/FText.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FTooltip.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FTransfer.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FTreeSelect.vue.d.ts +1 -1
- package/dist/types/packages/components/modules/FTypography.vue.d.ts +1 -1
- package/dist/types/packages/composables/index.d.ts +3 -0
- package/dist/types/packages/composables/{FDialog.d.ts → modules/FDialog.d.ts} +1 -1
- package/dist/types/packages/composables/{FMessage.d.ts → modules/FMessage.d.ts} +1 -1
- package/dist/types/packages/composables/{FNotification.d.ts → modules/FNotification.d.ts} +1 -1
- package/dist/types/packages/index.d.ts +4 -2
- package/dist/types/packages/types/components/modules/f-menu.d.ts +1 -1
- package/dist/types/packages/types/components/modules/f-toolbar.d.ts +1 -1
- package/dist/types/packages/utils/validator.d.ts +1 -1
- package/dist/types/volar.d.ts +1 -2
- package/package.json +1 -1
package/dist/fantasia-ui.es.js
CHANGED
|
@@ -4569,6 +4569,131 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4569
4569
|
};
|
|
4570
4570
|
}
|
|
4571
4571
|
});
|
|
4572
|
+
const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4573
|
+
__proto__: null,
|
|
4574
|
+
FAffix,
|
|
4575
|
+
FAlert,
|
|
4576
|
+
FAvatar,
|
|
4577
|
+
FBadge,
|
|
4578
|
+
FBreadcrumb,
|
|
4579
|
+
FButton,
|
|
4580
|
+
FButtonGroup,
|
|
4581
|
+
FCard,
|
|
4582
|
+
FCheckbox,
|
|
4583
|
+
FCol,
|
|
4584
|
+
FCollapse: _sfc_main$d,
|
|
4585
|
+
FCollapseItem: _sfc_main$c,
|
|
4586
|
+
FColorPicker: _sfc_main$b,
|
|
4587
|
+
FContainer,
|
|
4588
|
+
FDialog: _sfc_main$2,
|
|
4589
|
+
FDivider,
|
|
4590
|
+
FDropdown,
|
|
4591
|
+
FEditor,
|
|
4592
|
+
FEmpty: _sfc_main$a,
|
|
4593
|
+
FForm,
|
|
4594
|
+
FFormItem,
|
|
4595
|
+
FIcon,
|
|
4596
|
+
FImage,
|
|
4597
|
+
FInput,
|
|
4598
|
+
FInputNumber,
|
|
4599
|
+
FLink,
|
|
4600
|
+
FLoading,
|
|
4601
|
+
FMarquee,
|
|
4602
|
+
FMask,
|
|
4603
|
+
FPagination,
|
|
4604
|
+
FProgress,
|
|
4605
|
+
FRadio,
|
|
4606
|
+
FRadioGroup,
|
|
4607
|
+
FRate,
|
|
4608
|
+
FResult,
|
|
4609
|
+
FRow,
|
|
4610
|
+
FScrollbar: _sfc_main$8,
|
|
4611
|
+
FSelect,
|
|
4612
|
+
FSlider: _sfc_main$9,
|
|
4613
|
+
FSpace,
|
|
4614
|
+
FSteps,
|
|
4615
|
+
FSwitch,
|
|
4616
|
+
FTable,
|
|
4617
|
+
FTabs,
|
|
4618
|
+
FTag,
|
|
4619
|
+
FText,
|
|
4620
|
+
FTooltip,
|
|
4621
|
+
FTransfer,
|
|
4622
|
+
FTreeSelect,
|
|
4623
|
+
FTypography,
|
|
4624
|
+
FUpload
|
|
4625
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
4626
|
+
const showDialog = (options) => {
|
|
4627
|
+
return new Promise((resolve) => {
|
|
4628
|
+
const container = document.createElement("div");
|
|
4629
|
+
document.body.appendChild(container);
|
|
4630
|
+
const visible = ref(true);
|
|
4631
|
+
const handleConfirm = () => {
|
|
4632
|
+
cleanup();
|
|
4633
|
+
resolve(true);
|
|
4634
|
+
};
|
|
4635
|
+
const handleCancel = () => {
|
|
4636
|
+
cleanup();
|
|
4637
|
+
resolve(false);
|
|
4638
|
+
};
|
|
4639
|
+
const cleanup = () => {
|
|
4640
|
+
visible.value = false;
|
|
4641
|
+
render(null, container);
|
|
4642
|
+
document.body.removeChild(container);
|
|
4643
|
+
};
|
|
4644
|
+
const vnode = h(_sfc_main$2, __spreadValues({
|
|
4645
|
+
modelValue: visible.value,
|
|
4646
|
+
"onUpdate:modelValue": (val) => {
|
|
4647
|
+
visible.value = val;
|
|
4648
|
+
if (!val) {
|
|
4649
|
+
cleanup();
|
|
4650
|
+
}
|
|
4651
|
+
},
|
|
4652
|
+
onConfirm: handleConfirm,
|
|
4653
|
+
onCancel: handleCancel
|
|
4654
|
+
}, options));
|
|
4655
|
+
render(vnode, container);
|
|
4656
|
+
});
|
|
4657
|
+
};
|
|
4658
|
+
const confirm = (content, title = "确认") => {
|
|
4659
|
+
return showDialog({
|
|
4660
|
+
title,
|
|
4661
|
+
content,
|
|
4662
|
+
type: "confirm",
|
|
4663
|
+
showCancel: true
|
|
4664
|
+
});
|
|
4665
|
+
};
|
|
4666
|
+
const alert = (content, title = "提示", type = "info") => {
|
|
4667
|
+
return showDialog({
|
|
4668
|
+
title,
|
|
4669
|
+
content,
|
|
4670
|
+
type,
|
|
4671
|
+
showCancel: false,
|
|
4672
|
+
confirmText: "知道了"
|
|
4673
|
+
});
|
|
4674
|
+
};
|
|
4675
|
+
const success = (content, title = "成功") => {
|
|
4676
|
+
return alert(content, title, "success");
|
|
4677
|
+
};
|
|
4678
|
+
const warning = (content, title = "警告") => {
|
|
4679
|
+
return alert(content, title, "warning");
|
|
4680
|
+
};
|
|
4681
|
+
const error = (content, title = "错误") => {
|
|
4682
|
+
return alert(content, title, "error");
|
|
4683
|
+
};
|
|
4684
|
+
const info = (content, title = "提示") => {
|
|
4685
|
+
return alert(content, title, "info");
|
|
4686
|
+
};
|
|
4687
|
+
const FDialog = (options) => {
|
|
4688
|
+
return showDialog(options);
|
|
4689
|
+
};
|
|
4690
|
+
FDialog.showDialog = showDialog;
|
|
4691
|
+
FDialog.confirm = confirm;
|
|
4692
|
+
FDialog.alert = alert;
|
|
4693
|
+
FDialog.success = success;
|
|
4694
|
+
FDialog.warning = warning;
|
|
4695
|
+
FDialog.error = error;
|
|
4696
|
+
FDialog.info = info;
|
|
4572
4697
|
const _hoisted_1$1 = { class: "f-message__content" };
|
|
4573
4698
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
4574
4699
|
__name: "FMessage",
|
|
@@ -4672,6 +4797,78 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4672
4797
|
}
|
|
4673
4798
|
});
|
|
4674
4799
|
const FMessageComp = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-97556afa"]]);
|
|
4800
|
+
const GAP$1 = 16;
|
|
4801
|
+
const BASE_OFFSET$1 = 20;
|
|
4802
|
+
let seed$1 = 0;
|
|
4803
|
+
const instances = [];
|
|
4804
|
+
const normalizeOptions$1 = (options) => {
|
|
4805
|
+
return typeof options === "string" ? { message: options } : options;
|
|
4806
|
+
};
|
|
4807
|
+
const repositionAll = () => {
|
|
4808
|
+
let offset = BASE_OFFSET$1;
|
|
4809
|
+
instances.forEach((item) => {
|
|
4810
|
+
const vm = item.vnode.component;
|
|
4811
|
+
if (vm) {
|
|
4812
|
+
vm.props.offset = offset;
|
|
4813
|
+
}
|
|
4814
|
+
offset += item.height + GAP$1;
|
|
4815
|
+
});
|
|
4816
|
+
};
|
|
4817
|
+
const removeInstance$1 = (id) => {
|
|
4818
|
+
const index = instances.findIndex((item) => item.id === id);
|
|
4819
|
+
if (index === -1) return;
|
|
4820
|
+
const { container } = instances[index];
|
|
4821
|
+
render(null, container);
|
|
4822
|
+
container.remove();
|
|
4823
|
+
instances.splice(index, 1);
|
|
4824
|
+
repositionAll();
|
|
4825
|
+
};
|
|
4826
|
+
const createInstance$1 = (options) => {
|
|
4827
|
+
var _a;
|
|
4828
|
+
const id = seed$1++;
|
|
4829
|
+
const container = document.createElement("div");
|
|
4830
|
+
const offset = instances.length === 0 ? BASE_OFFSET$1 : (() => {
|
|
4831
|
+
var _a2;
|
|
4832
|
+
const last = instances[instances.length - 1];
|
|
4833
|
+
return ((_a2 = last.vnode.component) == null ? void 0 : _a2.props.offset) + last.height + GAP$1;
|
|
4834
|
+
})();
|
|
4835
|
+
const vnode = createVNode(FMessageComp, __spreadProps(__spreadValues({}, options), {
|
|
4836
|
+
offset,
|
|
4837
|
+
onClose: () => {
|
|
4838
|
+
var _a2;
|
|
4839
|
+
(_a2 = options.onClose) == null ? void 0 : _a2.call(options);
|
|
4840
|
+
},
|
|
4841
|
+
onDestroy: () => {
|
|
4842
|
+
removeInstance$1(id);
|
|
4843
|
+
}
|
|
4844
|
+
}));
|
|
4845
|
+
render(vnode, container);
|
|
4846
|
+
document.body.appendChild(container);
|
|
4847
|
+
const el = vnode.el;
|
|
4848
|
+
const height = (_a = el == null ? void 0 : el.offsetHeight) != null ? _a : 44;
|
|
4849
|
+
instances.push({ id, vnode, container, height });
|
|
4850
|
+
return {
|
|
4851
|
+
id,
|
|
4852
|
+
close: () => {
|
|
4853
|
+
var _a2, _b, _c;
|
|
4854
|
+
(_c = (_b = (_a2 = vnode.component) == null ? void 0 : _a2.exposed) == null ? void 0 : _b.close) == null ? void 0 : _c.call(_b);
|
|
4855
|
+
}
|
|
4856
|
+
};
|
|
4857
|
+
};
|
|
4858
|
+
const FMessage = (options) => {
|
|
4859
|
+
return createInstance$1(normalizeOptions$1(options));
|
|
4860
|
+
};
|
|
4861
|
+
const withType$1 = (type) => (options) => createInstance$1(__spreadProps(__spreadValues({}, normalizeOptions$1(options)), { type }));
|
|
4862
|
+
FMessage.info = withType$1("info");
|
|
4863
|
+
FMessage.success = withType$1("success");
|
|
4864
|
+
FMessage.warning = withType$1("warning");
|
|
4865
|
+
FMessage.failed = withType$1("failed");
|
|
4866
|
+
FMessage.closeAll = () => {
|
|
4867
|
+
[...instances].forEach((item) => {
|
|
4868
|
+
var _a, _b, _c;
|
|
4869
|
+
(_c = (_b = (_a = item.vnode.component) == null ? void 0 : _a.exposed) == null ? void 0 : _b.close) == null ? void 0 : _c.call(_b);
|
|
4870
|
+
});
|
|
4871
|
+
};
|
|
4675
4872
|
const _hoisted_1 = { class: "f-notification__body" };
|
|
4676
4873
|
const _hoisted_2 = {
|
|
4677
4874
|
key: 0,
|
|
@@ -4790,149 +4987,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4790
4987
|
}
|
|
4791
4988
|
});
|
|
4792
4989
|
const FNotificationComp = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0a7315d6"]]);
|
|
4793
|
-
const showDialog = (options) => {
|
|
4794
|
-
return new Promise((resolve) => {
|
|
4795
|
-
const container = document.createElement("div");
|
|
4796
|
-
document.body.appendChild(container);
|
|
4797
|
-
const visible = ref(true);
|
|
4798
|
-
const handleConfirm = () => {
|
|
4799
|
-
cleanup();
|
|
4800
|
-
resolve(true);
|
|
4801
|
-
};
|
|
4802
|
-
const handleCancel = () => {
|
|
4803
|
-
cleanup();
|
|
4804
|
-
resolve(false);
|
|
4805
|
-
};
|
|
4806
|
-
const cleanup = () => {
|
|
4807
|
-
visible.value = false;
|
|
4808
|
-
render(null, container);
|
|
4809
|
-
document.body.removeChild(container);
|
|
4810
|
-
};
|
|
4811
|
-
const vnode = h(_sfc_main$2, __spreadValues({
|
|
4812
|
-
modelValue: visible.value,
|
|
4813
|
-
"onUpdate:modelValue": (val) => {
|
|
4814
|
-
visible.value = val;
|
|
4815
|
-
if (!val) {
|
|
4816
|
-
cleanup();
|
|
4817
|
-
}
|
|
4818
|
-
},
|
|
4819
|
-
onConfirm: handleConfirm,
|
|
4820
|
-
onCancel: handleCancel
|
|
4821
|
-
}, options));
|
|
4822
|
-
render(vnode, container);
|
|
4823
|
-
});
|
|
4824
|
-
};
|
|
4825
|
-
const confirm = (content, title = "确认") => {
|
|
4826
|
-
return showDialog({
|
|
4827
|
-
title,
|
|
4828
|
-
content,
|
|
4829
|
-
type: "confirm",
|
|
4830
|
-
showCancel: true
|
|
4831
|
-
});
|
|
4832
|
-
};
|
|
4833
|
-
const alert = (content, title = "提示", type = "info") => {
|
|
4834
|
-
return showDialog({
|
|
4835
|
-
title,
|
|
4836
|
-
content,
|
|
4837
|
-
type,
|
|
4838
|
-
showCancel: false,
|
|
4839
|
-
confirmText: "知道了"
|
|
4840
|
-
});
|
|
4841
|
-
};
|
|
4842
|
-
const success = (content, title = "成功") => {
|
|
4843
|
-
return alert(content, title, "success");
|
|
4844
|
-
};
|
|
4845
|
-
const warning = (content, title = "警告") => {
|
|
4846
|
-
return alert(content, title, "warning");
|
|
4847
|
-
};
|
|
4848
|
-
const error = (content, title = "错误") => {
|
|
4849
|
-
return alert(content, title, "error");
|
|
4850
|
-
};
|
|
4851
|
-
const info = (content, title = "提示") => {
|
|
4852
|
-
return alert(content, title, "info");
|
|
4853
|
-
};
|
|
4854
|
-
const FDialog = (options) => {
|
|
4855
|
-
return showDialog(options);
|
|
4856
|
-
};
|
|
4857
|
-
FDialog.showDialog = showDialog;
|
|
4858
|
-
FDialog.confirm = confirm;
|
|
4859
|
-
FDialog.alert = alert;
|
|
4860
|
-
FDialog.success = success;
|
|
4861
|
-
FDialog.warning = warning;
|
|
4862
|
-
FDialog.error = error;
|
|
4863
|
-
FDialog.info = info;
|
|
4864
|
-
const GAP$1 = 16;
|
|
4865
|
-
const BASE_OFFSET$1 = 20;
|
|
4866
|
-
let seed$1 = 0;
|
|
4867
|
-
const instances = [];
|
|
4868
|
-
const normalizeOptions$1 = (options) => {
|
|
4869
|
-
return typeof options === "string" ? { message: options } : options;
|
|
4870
|
-
};
|
|
4871
|
-
const repositionAll = () => {
|
|
4872
|
-
let offset = BASE_OFFSET$1;
|
|
4873
|
-
instances.forEach((item) => {
|
|
4874
|
-
const vm = item.vnode.component;
|
|
4875
|
-
if (vm) {
|
|
4876
|
-
vm.props.offset = offset;
|
|
4877
|
-
}
|
|
4878
|
-
offset += item.height + GAP$1;
|
|
4879
|
-
});
|
|
4880
|
-
};
|
|
4881
|
-
const removeInstance$1 = (id) => {
|
|
4882
|
-
const index = instances.findIndex((item) => item.id === id);
|
|
4883
|
-
if (index === -1) return;
|
|
4884
|
-
const { container } = instances[index];
|
|
4885
|
-
render(null, container);
|
|
4886
|
-
container.remove();
|
|
4887
|
-
instances.splice(index, 1);
|
|
4888
|
-
repositionAll();
|
|
4889
|
-
};
|
|
4890
|
-
const createInstance$1 = (options) => {
|
|
4891
|
-
var _a;
|
|
4892
|
-
const id = seed$1++;
|
|
4893
|
-
const container = document.createElement("div");
|
|
4894
|
-
const offset = instances.length === 0 ? BASE_OFFSET$1 : (() => {
|
|
4895
|
-
var _a2;
|
|
4896
|
-
const last = instances[instances.length - 1];
|
|
4897
|
-
return ((_a2 = last.vnode.component) == null ? void 0 : _a2.props.offset) + last.height + GAP$1;
|
|
4898
|
-
})();
|
|
4899
|
-
const vnode = createVNode(FMessageComp, __spreadProps(__spreadValues({}, options), {
|
|
4900
|
-
offset,
|
|
4901
|
-
onClose: () => {
|
|
4902
|
-
var _a2;
|
|
4903
|
-
(_a2 = options.onClose) == null ? void 0 : _a2.call(options);
|
|
4904
|
-
},
|
|
4905
|
-
onDestroy: () => {
|
|
4906
|
-
removeInstance$1(id);
|
|
4907
|
-
}
|
|
4908
|
-
}));
|
|
4909
|
-
render(vnode, container);
|
|
4910
|
-
document.body.appendChild(container);
|
|
4911
|
-
const el = vnode.el;
|
|
4912
|
-
const height = (_a = el == null ? void 0 : el.offsetHeight) != null ? _a : 44;
|
|
4913
|
-
instances.push({ id, vnode, container, height });
|
|
4914
|
-
return {
|
|
4915
|
-
id,
|
|
4916
|
-
close: () => {
|
|
4917
|
-
var _a2, _b, _c;
|
|
4918
|
-
(_c = (_b = (_a2 = vnode.component) == null ? void 0 : _a2.exposed) == null ? void 0 : _b.close) == null ? void 0 : _c.call(_b);
|
|
4919
|
-
}
|
|
4920
|
-
};
|
|
4921
|
-
};
|
|
4922
|
-
const FMessage = (options) => {
|
|
4923
|
-
return createInstance$1(normalizeOptions$1(options));
|
|
4924
|
-
};
|
|
4925
|
-
const withType$1 = (type) => (options) => createInstance$1(__spreadProps(__spreadValues({}, normalizeOptions$1(options)), { type }));
|
|
4926
|
-
FMessage.info = withType$1("info");
|
|
4927
|
-
FMessage.success = withType$1("success");
|
|
4928
|
-
FMessage.warning = withType$1("warning");
|
|
4929
|
-
FMessage.failed = withType$1("failed");
|
|
4930
|
-
FMessage.closeAll = () => {
|
|
4931
|
-
[...instances].forEach((item) => {
|
|
4932
|
-
var _a, _b, _c;
|
|
4933
|
-
(_c = (_b = (_a = item.vnode.component) == null ? void 0 : _a.exposed) == null ? void 0 : _b.close) == null ? void 0 : _c.call(_b);
|
|
4934
|
-
});
|
|
4935
|
-
};
|
|
4936
4990
|
const GAP = 16;
|
|
4937
4991
|
const BASE_OFFSET = 20;
|
|
4938
4992
|
let seed = 0;
|
|
@@ -5021,71 +5075,9 @@ FNotification.closeAll = (position) => {
|
|
|
5021
5075
|
});
|
|
5022
5076
|
});
|
|
5023
5077
|
};
|
|
5024
|
-
const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5025
|
-
__proto__: null,
|
|
5026
|
-
FAffix,
|
|
5027
|
-
FAlert,
|
|
5028
|
-
FAvatar,
|
|
5029
|
-
FBadge,
|
|
5030
|
-
FBreadcrumb,
|
|
5031
|
-
FButton,
|
|
5032
|
-
FButtonGroup,
|
|
5033
|
-
FCard,
|
|
5034
|
-
FCheckbox,
|
|
5035
|
-
FCol,
|
|
5036
|
-
FCollapse: _sfc_main$d,
|
|
5037
|
-
FCollapseItem: _sfc_main$c,
|
|
5038
|
-
FColorPicker: _sfc_main$b,
|
|
5039
|
-
FContainer,
|
|
5040
|
-
FDialog: _sfc_main$2,
|
|
5041
|
-
FDialogAPI: FDialog,
|
|
5042
|
-
FDivider,
|
|
5043
|
-
FDropdown,
|
|
5044
|
-
FEditor,
|
|
5045
|
-
FEmpty: _sfc_main$a,
|
|
5046
|
-
FForm,
|
|
5047
|
-
FFormItem,
|
|
5048
|
-
FIcon,
|
|
5049
|
-
FImage,
|
|
5050
|
-
FInput,
|
|
5051
|
-
FInputNumber,
|
|
5052
|
-
FLink,
|
|
5053
|
-
FLoading,
|
|
5054
|
-
FMarquee,
|
|
5055
|
-
FMask,
|
|
5056
|
-
FMessage: FMessageComp,
|
|
5057
|
-
FMessageAPI: FMessage,
|
|
5058
|
-
FNotification: FNotificationComp,
|
|
5059
|
-
FNotificationAPI: FNotification,
|
|
5060
|
-
FPagination,
|
|
5061
|
-
FProgress,
|
|
5062
|
-
FRadio,
|
|
5063
|
-
FRadioGroup,
|
|
5064
|
-
FRate,
|
|
5065
|
-
FResult,
|
|
5066
|
-
FRow,
|
|
5067
|
-
FScrollbar: _sfc_main$8,
|
|
5068
|
-
FSelect,
|
|
5069
|
-
FSlider: _sfc_main$9,
|
|
5070
|
-
FSpace,
|
|
5071
|
-
FSteps,
|
|
5072
|
-
FSwitch,
|
|
5073
|
-
FTable,
|
|
5074
|
-
FTabs,
|
|
5075
|
-
FTag,
|
|
5076
|
-
FText,
|
|
5077
|
-
FTooltip,
|
|
5078
|
-
FTransfer,
|
|
5079
|
-
FTreeSelect,
|
|
5080
|
-
FTypography,
|
|
5081
|
-
FUpload,
|
|
5082
|
-
dialog: FDialog,
|
|
5083
|
-
message: FMessage,
|
|
5084
|
-
notification: FNotification
|
|
5085
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
5086
5078
|
const install = (app) => {
|
|
5087
5079
|
Object.entries(components).forEach(([name, component]) => {
|
|
5088
|
-
if (
|
|
5080
|
+
if (name.startsWith("F")) {
|
|
5089
5081
|
app.component(name, component);
|
|
5090
5082
|
}
|
|
5091
5083
|
});
|
|
@@ -5106,7 +5098,7 @@ export {
|
|
|
5106
5098
|
_sfc_main$b as FColorPicker,
|
|
5107
5099
|
FContainer,
|
|
5108
5100
|
_sfc_main$2 as FDialog,
|
|
5109
|
-
FDialog as
|
|
5101
|
+
FDialog as FDialogBox,
|
|
5110
5102
|
FDivider,
|
|
5111
5103
|
FDropdown,
|
|
5112
5104
|
FEditor,
|
|
@@ -5121,10 +5113,8 @@ export {
|
|
|
5121
5113
|
FLoading,
|
|
5122
5114
|
FMarquee,
|
|
5123
5115
|
FMask,
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
FNotificationComp as FNotification,
|
|
5127
|
-
FNotification as FNotificationAPI,
|
|
5116
|
+
FMessage,
|
|
5117
|
+
FNotification,
|
|
5128
5118
|
FPagination,
|
|
5129
5119
|
FProgress,
|
|
5130
5120
|
FRadio,
|
|
@@ -5147,8 +5137,5 @@ export {
|
|
|
5147
5137
|
FTreeSelect,
|
|
5148
5138
|
FTypography,
|
|
5149
5139
|
FUpload,
|
|
5150
|
-
install as default
|
|
5151
|
-
FDialog as dialog,
|
|
5152
|
-
FMessage as message,
|
|
5153
|
-
FNotification as notification
|
|
5140
|
+
install as default
|
|
5154
5141
|
};
|