zzz-pc-view 0.0.45 → 0.0.47
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/package.json
CHANGED
package/src/index.es.js
CHANGED
|
@@ -5,7 +5,7 @@ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
|
5
5
|
import CryptoJS from "crypto-js";
|
|
6
6
|
import qs from "qs";
|
|
7
7
|
import axios, { CanceledError } from "axios";
|
|
8
|
-
import { openBlock, createElementBlock, createElementVNode, ref, computed, shallowRef, nextTick, watch, onBeforeUnmount, onDeactivated, onActivated, reactive, defineComponent, h, resolveComponent, renderSlot, createVNode, withCtx, createBlock, createCommentVNode,
|
|
8
|
+
import { openBlock, createElementBlock, createElementVNode, ref, computed, shallowRef, nextTick, watch, onBeforeUnmount, onDeactivated, onActivated, reactive, defineComponent, h, resolveComponent, renderSlot, createVNode, withCtx, createBlock, createCommentVNode, unref, resolveDynamicComponent, createTextVNode, toDisplayString, Fragment, mergeProps, toHandlers, renderList, resolveDirective, withDirectives, withModifiers, isRef, createSlots, withKeys, normalizeStyle, normalizeClass, normalizeProps, guardReactiveProps, Transition, KeepAlive } from "vue";
|
|
9
9
|
import { useRoute, useRouter } from "vue-router";
|
|
10
10
|
import Mock from "mockjs";
|
|
11
11
|
import ElementPlus, { ElNotification, ElMessageBox } from "element-plus";
|
|
@@ -10348,10 +10348,10 @@ class CurdViewHandler extends CurdHandler {
|
|
|
10348
10348
|
* 当创建按钮被点击时,调用 `openEditor` 方法打开编辑器,进入创建数据的模式。
|
|
10349
10349
|
* 此方法会传递编辑类型为创建,并使用 `CurdTarget` 类创建一个新的创建类型实例。
|
|
10350
10350
|
*/
|
|
10351
|
-
__publicField(this, "onCreateBtnClick", () => {
|
|
10351
|
+
__publicField(this, "onCreateBtnClick", (data) => {
|
|
10352
10352
|
this.openEditor(
|
|
10353
10353
|
EditTypeEnum.CREATE,
|
|
10354
|
-
new this.CurdTarget(CreateTypeEnum.CREATE)
|
|
10354
|
+
new this.CurdTarget(CreateTypeEnum.CREATE, data)
|
|
10355
10355
|
);
|
|
10356
10356
|
});
|
|
10357
10357
|
/**
|
|
@@ -10610,8 +10610,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
10610
10610
|
icon: "Plus",
|
|
10611
10611
|
circle: "",
|
|
10612
10612
|
plain: "",
|
|
10613
|
-
onClick: _ctx.viewHandler.onCreateBtnClick
|
|
10614
|
-
}, null, 8, ["title"
|
|
10613
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.viewHandler.onCreateBtnClick())
|
|
10614
|
+
}, null, 8, ["title"])) : createCommentVNode("", true);
|
|
10615
10615
|
};
|
|
10616
10616
|
}
|
|
10617
10617
|
});
|
|
@@ -10672,7 +10672,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
10672
10672
|
const props = __props;
|
|
10673
10673
|
const mappingComputed = useMappingOption(props, void 0, void 0);
|
|
10674
10674
|
return (_ctx, _cache) => {
|
|
10675
|
-
return props.component ? (openBlock(), createBlock(resolveDynamicComponent(unref(mappingComputed).is), {
|
|
10675
|
+
return props.component && unref(mappingComputed).text !== void 0 ? (openBlock(), createBlock(resolveDynamicComponent(unref(mappingComputed).is), {
|
|
10676
10676
|
key: 0,
|
|
10677
10677
|
value: _ctx.model[_ctx.prop]
|
|
10678
10678
|
}, {
|
|
@@ -10893,7 +10893,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
10893
10893
|
};
|
|
10894
10894
|
}
|
|
10895
10895
|
});
|
|
10896
|
-
const _hoisted_1$8 = { class: "flex center
|
|
10896
|
+
const _hoisted_1$8 = { class: "flex center curd-operator" };
|
|
10897
10897
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
10898
10898
|
__name: "CurdTableOperatorView",
|
|
10899
10899
|
props: {
|