yxuse 3.0.58 → 3.0.60
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/lib/index.cjs12.js +1 -1
- package/lib/index.cjs12.js.gz +0 -0
- package/lib/index.cjs12.js.map +1 -1
- package/lib/index.cjs2.js +1 -1
- package/lib/index.cjs2.js.map +1 -1
- package/lib/index.cjs3.js +1 -1
- package/lib/index.cjs3.js.map +1 -1
- package/lib/index.cjs5.js +2 -2
- package/lib/index.cjs5.js.gz +0 -0
- package/lib/index.cjs5.js.map +1 -1
- package/lib/index.cjs6.js +2 -2
- package/lib/index.cjs6.js.gz +0 -0
- package/lib/index.cjs6.js.map +1 -1
- package/lib/index.cjs7.js +1 -16
- package/lib/index.cjs7.js.map +1 -1
- package/lib/index.es12.js +6 -0
- package/lib/index.es12.js.gz +0 -0
- package/lib/index.es12.js.map +1 -1
- package/lib/index.es2.js +1 -0
- package/lib/index.es2.js.map +1 -1
- package/lib/index.es3.js +1 -0
- package/lib/index.es3.js.map +1 -1
- package/lib/index.es5.js +9 -4
- package/lib/index.es5.js.gz +0 -0
- package/lib/index.es5.js.map +1 -1
- package/lib/index.es6.js +29 -11
- package/lib/index.es6.js.gz +0 -0
- package/lib/index.es6.js.map +1 -1
- package/lib/index.es7.js +1 -5361
- package/lib/index.es7.js.map +1 -1
- package/lib/mqtt.min.cjs.js +1 -1
- package/lib/mqtt.min.cjs.js.gz +0 -0
- package/lib/mqtt.min.cjs.js.map +1 -1
- package/lib/mqtt.min.es.js +3 -2
- package/lib/mqtt.min.es.js.gz +0 -0
- package/lib/mqtt.min.es.js.map +1 -1
- package/lib/style.css +1 -1
- package/lib/theme.cjs.js +1 -1
- package/lib/theme.es.js +4 -0
- package/lib/theme.es.js.map +1 -1
- package/lib/translate.cjs.js +1 -1
- package/lib/translate.es.js +6 -1
- package/lib/translate.es.js.map +1 -1
- package/lib/yxIcon.cjs.js +1 -1
- package/lib/yxIcon.es.js +1 -0
- package/lib/yxIcon.es.js.map +1 -1
- package/lib/yxi18n.cjs.js +1 -1
- package/lib/yxi18n.es.js +2 -1
- package/lib/yxi18n.es.js.map +1 -1
- package/package.json +4 -4
- package/types/components/YxForm/index.vue.d.ts +3 -3
- package/types/components/YxForm/type.d.ts +1 -1
- package/lib/index.cjs7.js.gz +0 -0
- package/lib/index.es7.js.gz +0 -0
- package/lib/style.css.gz +0 -0
package/lib/index.es6.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent, reactive, resolveComponent, createBlock, openBlock, createSlots, withCtx, renderSlot, createElementVNode, createVNode, createTextVNode, watch, resolveDynamicComponent, mergeProps, createElementBlock, createCommentVNode, Fragment, renderList, useSlots, useAttrs, ref, onMounted, nextTick, onBeforeMount, withModifiers, isVNode, toDisplayString, unref, normalizeStyle, normalizeClass, version, createApp } from "vue";
|
|
1
|
+
import { defineComponent, reactive, resolveComponent, createBlock, openBlock, createSlots, withCtx, renderSlot, createElementVNode, createVNode, createTextVNode, watch, resolveDynamicComponent, mergeProps, createElementBlock, createCommentVNode, Fragment, renderList, useSlots, useAttrs, ref, onMounted, nextTick, onBeforeMount, withModifiers, isVNode, onUnmounted, toDisplayString, unref, normalizeStyle, normalizeClass, version, createApp } from "vue";
|
|
2
2
|
import { S as Sortable, _ as _export_sfc, T as Toolbar } from "./index.es5.js";
|
|
3
3
|
import { genFileId } from "element-plus";
|
|
4
4
|
import { j as jumpToHome, b as getUserConfig } from "./index.es12.js";
|
|
5
|
+
import "element-plus/es/components/message/style/index";
|
|
5
6
|
import { u as uploadResourceApi } from "./index.es13.js";
|
|
6
7
|
const _hoisted_1$4 = { class: "dialog-footer flex justify-end" };
|
|
7
8
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
@@ -20682,7 +20683,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
20682
20683
|
};
|
|
20683
20684
|
const handleLinkOptions = (item) => {
|
|
20684
20685
|
var _a, _b;
|
|
20685
|
-
if (!((_a = item.config) == null ? void 0 : _a.linkOptions)) return;
|
|
20686
|
+
if (!((_a = item.config) == null ? void 0 : _a.linkOptions) || (item == null ? void 0 : item._linkedHandled)) return;
|
|
20686
20687
|
const linkOptions = item.config.linkOptions;
|
|
20687
20688
|
const originOnChange = (_b = item.event) == null ? void 0 : _b.onChange;
|
|
20688
20689
|
const newOnChange = async (e) => {
|
|
@@ -20699,6 +20700,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
20699
20700
|
...item.event,
|
|
20700
20701
|
onChange: newOnChange
|
|
20701
20702
|
};
|
|
20703
|
+
item._linkedHandled = true;
|
|
20702
20704
|
};
|
|
20703
20705
|
const hasLoadOptions = () => {
|
|
20704
20706
|
return formColumn.value.some((item) => {
|
|
@@ -20711,12 +20713,26 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
20711
20713
|
prop
|
|
20712
20714
|
}) => {
|
|
20713
20715
|
var _a;
|
|
20714
|
-
if (config
|
|
20715
|
-
|
|
20716
|
-
|
|
20717
|
-
|
|
20718
|
-
|
|
20716
|
+
if (!config || config.notAutoLoadOptions) return;
|
|
20717
|
+
const {
|
|
20718
|
+
loadOptions: loadOptions2,
|
|
20719
|
+
options
|
|
20720
|
+
} = config;
|
|
20721
|
+
if (!options || typeof loadOptions2 !== "function") return;
|
|
20722
|
+
const {
|
|
20723
|
+
formParams
|
|
20724
|
+
} = props;
|
|
20725
|
+
const parentProp = (_a = formColumn.value.find((item) => {
|
|
20726
|
+
var _a2;
|
|
20727
|
+
return ((_a2 = item == null ? void 0 : item.config) == null ? void 0 : _a2.linkOptions) === prop;
|
|
20728
|
+
})) == null ? void 0 : _a.prop;
|
|
20729
|
+
const parentValue = parentProp ? formParams == null ? void 0 : formParams[parentProp] : void 0;
|
|
20730
|
+
try {
|
|
20731
|
+
config.options = await loadOptions2(parentValue);
|
|
20732
|
+
if (prop && (formParams == null ? void 0 : formParams[prop])) {
|
|
20733
|
+
formData.value[prop] = formParams[prop];
|
|
20719
20734
|
}
|
|
20735
|
+
} catch (err) {
|
|
20720
20736
|
}
|
|
20721
20737
|
};
|
|
20722
20738
|
const slots = useSlots();
|
|
@@ -20765,6 +20781,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
20765
20781
|
getRules();
|
|
20766
20782
|
}
|
|
20767
20783
|
});
|
|
20784
|
+
onUnmounted(() => {
|
|
20785
|
+
});
|
|
20768
20786
|
const formRef = ref();
|
|
20769
20787
|
const getFormStyle = () => {
|
|
20770
20788
|
const {
|
|
@@ -20812,11 +20830,11 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
20812
20830
|
if (!prop) return;
|
|
20813
20831
|
const Component = resolveComponent("el-" + renderType);
|
|
20814
20832
|
const renderChildComponent = () => {
|
|
20815
|
-
if (renderType === "select") return config == null ? void 0 : config.options.map((item) => createVNode(resolveComponent("el-option"), {
|
|
20833
|
+
if (renderType === "select" && (config == null ? void 0 : config.options)) return config == null ? void 0 : config.options.map((item) => createVNode(resolveComponent("el-option"), {
|
|
20816
20834
|
"label": item.label,
|
|
20817
20835
|
"value": item.value
|
|
20818
20836
|
}, null));
|
|
20819
|
-
if (renderType === "radio-group") return config == null ? void 0 : config.options.map((item) => createVNode(resolveComponent("el-radio"), {
|
|
20837
|
+
if (renderType === "radio-group" && (config == null ? void 0 : config.options)) return config == null ? void 0 : config.options.map((item) => createVNode(resolveComponent("el-radio"), {
|
|
20820
20838
|
"label": item.label,
|
|
20821
20839
|
"value": item.value
|
|
20822
20840
|
}, null));
|
|
@@ -20934,7 +20952,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
20934
20952
|
};
|
|
20935
20953
|
}
|
|
20936
20954
|
});
|
|
20937
|
-
const index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
20955
|
+
const index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-99f2b938"]]);
|
|
20938
20956
|
let versionKey, curVersion, updateApp;
|
|
20939
20957
|
const updateSysVersion = () => {
|
|
20940
20958
|
localStorage.setItem(versionKey, curVersion);
|
|
@@ -21023,7 +21041,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21023
21041
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
21024
21042
|
], 4);
|
|
21025
21043
|
}
|
|
21026
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
21044
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$1], ["__scopeId", "data-v-a90cbe2e"]]);
|
|
21027
21045
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
21028
21046
|
__name: "index",
|
|
21029
21047
|
props: {
|
package/lib/index.es6.js.gz
CHANGED
|
Binary file
|