@newview/ui 1.1.49 → 1.1.51
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 +3 -0
- package/dist/newview-ui.js +25 -13
- package/dist/newview-ui.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/types/ComForm.d.ts +5 -1
package/README.md
CHANGED
package/dist/newview-ui.js
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField2 = (obj, key2, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
import { BaseInstance } from "@newview/base-vue";
|
|
8
|
-
import { openBlock, createElementBlock, normalizeStyle, defineComponent, ref, resolveComponent, createVNode, reactive, watch, onMounted, onUnmounted, createBlock, withCtx, createElementVNode, Fragment, renderList, normalizeClass, withDirectives, createTextVNode, toDisplayString, renderSlot,
|
|
8
|
+
import { openBlock, createElementBlock, normalizeStyle, defineComponent, ref, resolveComponent, createVNode, reactive, watch, onMounted, onUnmounted, createBlock, withCtx, createElementVNode, Fragment, renderList, normalizeClass, withDirectives, createTextVNode, toDisplayString, renderSlot, createSlots, createCommentVNode, vShow, h, mergeProps, toRaw, computed, nextTick, toHandlers, pushScopeId, popScopeId, withModifiers, createApp, getCurrentInstance, watchEffect, normalizeProps, guardReactiveProps } from "vue";
|
|
9
9
|
import { VxeColumn, VxeColgroup, VXETable, VxeGrid, VxeTable } from "vxe-table";
|
|
10
10
|
import { utilities } from "@newview/tools";
|
|
11
11
|
import { Space, Icon, Drawer, Button } from "view-ui-plus";
|
|
@@ -31279,15 +31279,16 @@ let ComFormInstance$1 = class ComFormInstance2 extends BaseInstance {
|
|
|
31279
31279
|
}
|
|
31280
31280
|
//#endregion 公开Api End
|
|
31281
31281
|
};
|
|
31282
|
-
const
|
|
31282
|
+
const ComForm_vue_vue_type_style_index_0_scoped_be8021fc_lang = "";
|
|
31283
31283
|
const _hoisted_1$f = { class: "comForm" };
|
|
31284
|
-
const _hoisted_2$c =
|
|
31285
|
-
const _hoisted_3$9 =
|
|
31286
|
-
const _hoisted_4$7 =
|
|
31284
|
+
const _hoisted_2$c = ["onClick"];
|
|
31285
|
+
const _hoisted_3$9 = { key: 1 };
|
|
31286
|
+
const _hoisted_4$7 = ["onClick"];
|
|
31287
|
+
const _hoisted_5$6 = {
|
|
31287
31288
|
key: 0,
|
|
31288
31289
|
class: "ivu-input-group-append"
|
|
31289
31290
|
};
|
|
31290
|
-
const
|
|
31291
|
+
const _hoisted_6$3 = ["onClick"];
|
|
31291
31292
|
function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
31292
31293
|
const _component_com_form = resolveComponent("com-form", true);
|
|
31293
31294
|
const _component_Card = resolveComponent("Card");
|
|
@@ -31360,7 +31361,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31360
31361
|
rules: item2.rules,
|
|
31361
31362
|
error: item2.error,
|
|
31362
31363
|
"show-message": item2["show-message"]
|
|
31363
|
-
}, {
|
|
31364
|
+
}, createSlots({
|
|
31364
31365
|
default: withCtx(() => [
|
|
31365
31366
|
item2.type == "Switch" ? (openBlock(), createBlock(_component_Switch, {
|
|
31366
31367
|
key: 0,
|
|
@@ -31376,7 +31377,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31376
31377
|
loading: _ctx.getPropValue(item2.switchProp, "loading"),
|
|
31377
31378
|
onOnChange: ($event) => _ctx.getPropEvent(item2.switchProp, "onChange")($event, item2)
|
|
31378
31379
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "size", "disabled", "true-value", "false-value", "true-color", "false-color", "before-change", "loading", "onOnChange"])) : createCommentVNode("", true),
|
|
31379
|
-
item2.type == "Label" ? (openBlock(), createElementBlock("span",
|
|
31380
|
+
item2.type == "Label" ? (openBlock(), createElementBlock("span", _hoisted_3$9, toDisplayString(_ctx.formModel[item2.model]), 1)) : createCommentVNode("", true),
|
|
31380
31381
|
item2.type == "Button" ? (openBlock(), createBlock(_component_Button, {
|
|
31381
31382
|
key: 2,
|
|
31382
31383
|
type: _ctx.getPropValue(item2.buttonProp, "type"),
|
|
@@ -31447,7 +31448,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31447
31448
|
createElementVNode("div", {
|
|
31448
31449
|
onClick: ($event) => _ctx.getPropEvent(item2.inputProp, "onTextClick")($event, item2),
|
|
31449
31450
|
style: { "cursor": "pointer", "color": "rgb(45, 140, 240)" }
|
|
31450
|
-
}, toDisplayString(_ctx.getPropValue(item2.inputProp, "append")), 9,
|
|
31451
|
+
}, toDisplayString(_ctx.getPropValue(item2.inputProp, "append")), 9, _hoisted_4$7)
|
|
31451
31452
|
]),
|
|
31452
31453
|
key: "1"
|
|
31453
31454
|
} : void 0
|
|
@@ -31477,11 +31478,11 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31477
31478
|
onOnFocus: ($event) => _ctx.getPropEvent(item2.inputNumberProp, "onFocus")($event, item2),
|
|
31478
31479
|
onOnBlur: ($event) => _ctx.getPropEvent(item2.inputNumberProp, "onBlur")($event, item2)
|
|
31479
31480
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "max", "min", "controls-outside", "step", "size", "disabled", "placeholder", "formatter", "parser", "readonly", "editable", "precision", "element-id", "active-change", "onOnChange", "onOnFocus", "onOnBlur"]),
|
|
31480
|
-
_ctx.getAppend(item2.inputNumberProp) != "" ? (openBlock(), createElementBlock("div",
|
|
31481
|
+
_ctx.getAppend(item2.inputNumberProp) != "" ? (openBlock(), createElementBlock("div", _hoisted_5$6, [
|
|
31481
31482
|
createElementVNode("div", {
|
|
31482
31483
|
onClick: ($event) => _ctx.getPropEvent(item2.inputNumberProp, "onTextClick")($event, item2),
|
|
31483
31484
|
style: { "cursor": "pointer", "color": "rgb(45, 140, 240)" }
|
|
31484
|
-
}, toDisplayString(_ctx.getPropValue(item2.inputNumberProp, "append")), 9,
|
|
31485
|
+
}, toDisplayString(_ctx.getPropValue(item2.inputNumberProp, "append")), 9, _hoisted_6$3)
|
|
31485
31486
|
])) : createCommentVNode("", true)
|
|
31486
31487
|
], 2)) : createCommentVNode("", true),
|
|
31487
31488
|
item2.type == "Select" ? (openBlock(), createBlock(_component_Select, {
|
|
@@ -31810,7 +31811,18 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31810
31811
|
renderSlot(_ctx.$slots, "extend", { item: item2 }, void 0, true)
|
|
31811
31812
|
]),
|
|
31812
31813
|
_: 2
|
|
31813
|
-
},
|
|
31814
|
+
}, [
|
|
31815
|
+
item2.label ? {
|
|
31816
|
+
name: "label",
|
|
31817
|
+
fn: withCtx(() => [
|
|
31818
|
+
item2.label ? (openBlock(), createElementBlock("span", {
|
|
31819
|
+
key: 0,
|
|
31820
|
+
onClick: ($event) => _ctx.getPropEvent(item2, "onLabelClick")($event, item2)
|
|
31821
|
+
}, toDisplayString(item2.label), 9, _hoisted_2$c)) : createCommentVNode("", true)
|
|
31822
|
+
]),
|
|
31823
|
+
key: "0"
|
|
31824
|
+
} : void 0
|
|
31825
|
+
]), 1032, ["prop", "label", "label-width", "label-for", "required", "rules", "error", "show-message"]))
|
|
31814
31826
|
]),
|
|
31815
31827
|
_: 2
|
|
31816
31828
|
}, 1032, ["span"])), [
|
|
@@ -31823,7 +31835,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31823
31835
|
], 2)
|
|
31824
31836
|
]);
|
|
31825
31837
|
}
|
|
31826
|
-
const ComForm = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-
|
|
31838
|
+
const ComForm = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-be8021fc"]]);
|
|
31827
31839
|
const style = "";
|
|
31828
31840
|
const propDefine$s = {
|
|
31829
31841
|
options: {
|