@web-utils/component 2.7.5 → 2.7.6
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/chunks/{WidgetConfig.vue_vue_type_template_lang.fbbbff76.js → WidgetConfig.vue_vue_type_template_lang.b4bf56e9.js} +1 -1
- package/dist/components/fy-form-design/index.js +4 -4
- package/dist/components/widget-config/index.js +4 -4
- package/dist/index.es.js +5 -5
- package/package.json +1 -1
- package/web-types.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as staticRenderFns$3, r as render$3, C as ConfigCustom, a as ConfigInput, b as ConfigTextarea, c as ConfigNumber, d as ConfigDynamic, e as ConfigSwitch, f as ConfigRate, g as ConfigSlider, h as ConfigColor, i as ConfigSelect, j as ConfigTree, k as ConfigDate, l as ConfigUpload, m as ConfigUEditor, n as ConfigMap, o as ConfigGroup, p as ConfigArray, q as ConfigTitle, t as ConfigEvent, u as ConfigTable, v as fields } from "../../chunks/WidgetConfig.vue_vue_type_template_lang.
|
|
1
|
+
import { s as staticRenderFns$3, r as render$3, C as ConfigCustom, a as ConfigInput, b as ConfigTextarea, c as ConfigNumber, d as ConfigDynamic, e as ConfigSwitch, f as ConfigRate, g as ConfigSlider, h as ConfigColor, i as ConfigSelect, j as ConfigTree, k as ConfigDate, l as ConfigUpload, m as ConfigUEditor, n as ConfigMap, o as ConfigGroup, p as ConfigArray, q as ConfigTitle, t as ConfigEvent, u as ConfigTable, v as fields } from "../../chunks/WidgetConfig.vue_vue_type_template_lang.b4bf56e9.js";
|
|
2
2
|
import { isBlank } from "@web-utils/core";
|
|
3
3
|
import { c as convert, M as MonacoEditor } from "../../chunks/monaco.1dbdc960.js";
|
|
4
4
|
import { d as deepClone } from "../../chunks/util.80e28481.js";
|
|
@@ -183,7 +183,7 @@ const FormConfig = /* @__PURE__ */ function() {
|
|
|
183
183
|
computed: {
|
|
184
184
|
getComponent() {
|
|
185
185
|
const t = "config-", { type: n, component: o } = this.data;
|
|
186
|
-
if ((!n || o) && n
|
|
186
|
+
if ((!n || o) && n !== "u-editor")
|
|
187
187
|
return t + "custom";
|
|
188
188
|
let s = "input";
|
|
189
189
|
return [void 0, "input", "password", "url"].includes(n) ? s = "input" : dateArr.includes(n) ? s = "date" : ["array", "img"].includes(n) ? s = "array" : ["tree", "cascader"].includes(n) ? s = "tree" : ["radio", "checkbox", "select"].includes(n) ? s = "select" : s = n, t + s;
|
|
@@ -203,7 +203,7 @@ const FormConfig = /* @__PURE__ */ function() {
|
|
|
203
203
|
return;
|
|
204
204
|
let n;
|
|
205
205
|
for (let o of this.fields)
|
|
206
|
-
if (n = o.list.find((s) => s.type
|
|
206
|
+
if (n = o.list.find((s) => s.type === t), n)
|
|
207
207
|
break;
|
|
208
208
|
if (n)
|
|
209
209
|
for (let o in n)
|
|
@@ -213,7 +213,7 @@ const FormConfig = /* @__PURE__ */ function() {
|
|
|
213
213
|
const t = [];
|
|
214
214
|
Object.keys(this.validator).forEach((n) => {
|
|
215
215
|
this.validator[n] && t.push(this.validator[n]);
|
|
216
|
-
}), t.length
|
|
216
|
+
}), t.length === 0 ? delete this.data.rules : this.data.rules = t;
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
}, __cssModules$1 = {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s, r, C as o, a as l, b as d, c as f, d as u, e as c, f as g, g as p, h, i as C, j as m, k as v, l as y, m as _, n as b, o as x, p as q, q as w, t as R, u as k, v as T } from "../../chunks/WidgetConfig.vue_vue_type_template_lang.
|
|
1
|
+
import { s, r, C as o, a as l, b as d, c as f, d as u, e as c, f as g, g as p, h, i as C, j as m, k as v, l as y, m as _, n as b, o as x, p as q, q as w, t as R, u as k, v as T } from "../../chunks/WidgetConfig.vue_vue_type_template_lang.b4bf56e9.js";
|
|
2
2
|
import { n as j } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
3
3
|
const E = [
|
|
4
4
|
"year",
|
|
@@ -51,7 +51,7 @@ const E = [
|
|
|
51
51
|
computed: {
|
|
52
52
|
getComponent() {
|
|
53
53
|
const t = "config-", { type: e, component: i } = this.data;
|
|
54
|
-
if ((!e || i) && e
|
|
54
|
+
if ((!e || i) && e !== "u-editor")
|
|
55
55
|
return t + "custom";
|
|
56
56
|
let a = "input";
|
|
57
57
|
return [void 0, "input", "password", "url"].includes(e) ? a = "input" : E.includes(e) ? a = "date" : ["array", "img"].includes(e) ? a = "array" : ["tree", "cascader"].includes(e) ? a = "tree" : ["radio", "checkbox", "select"].includes(e) ? a = "select" : a = e, t + a;
|
|
@@ -71,7 +71,7 @@ const E = [
|
|
|
71
71
|
return;
|
|
72
72
|
let e;
|
|
73
73
|
for (let i of this.fields)
|
|
74
|
-
if (e = i.list.find((a) => a.type
|
|
74
|
+
if (e = i.list.find((a) => a.type === t), e)
|
|
75
75
|
break;
|
|
76
76
|
if (e)
|
|
77
77
|
for (let i in e)
|
|
@@ -81,7 +81,7 @@ const E = [
|
|
|
81
81
|
const t = [];
|
|
82
82
|
Object.keys(this.validator).forEach((e) => {
|
|
83
83
|
this.validator[e] && t.push(this.validator[e]);
|
|
84
|
-
}), t.length
|
|
84
|
+
}), t.length === 0 ? delete this.data.rules : this.data.rules = t;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
}, n = {};
|
package/dist/index.es.js
CHANGED
|
@@ -16211,7 +16211,7 @@ const FyForm = /* @__PURE__ */ function() {
|
|
|
16211
16211
|
{
|
|
16212
16212
|
title: "插件字段(需单独引入依赖)",
|
|
16213
16213
|
list: [{
|
|
16214
|
-
type: "
|
|
16214
|
+
type: "u-editor",
|
|
16215
16215
|
component: "avue-ueditor",
|
|
16216
16216
|
label: "富文本",
|
|
16217
16217
|
icon: "icon-richtext",
|
|
@@ -22452,7 +22452,7 @@ const dateArr = [
|
|
|
22452
22452
|
computed: {
|
|
22453
22453
|
getComponent() {
|
|
22454
22454
|
const t = "config-", { type: n, component: s } = this.data;
|
|
22455
|
-
if ((!n || s) && n
|
|
22455
|
+
if ((!n || s) && n !== "u-editor")
|
|
22456
22456
|
return t + "custom";
|
|
22457
22457
|
let a = "input";
|
|
22458
22458
|
return [void 0, "input", "password", "url"].includes(n) ? a = "input" : dateArr.includes(n) ? a = "date" : ["array", "img"].includes(n) ? a = "array" : ["tree", "cascader"].includes(n) ? a = "tree" : ["radio", "checkbox", "select"].includes(n) ? a = "select" : a = n, t + a;
|
|
@@ -22472,7 +22472,7 @@ const dateArr = [
|
|
|
22472
22472
|
return;
|
|
22473
22473
|
let n;
|
|
22474
22474
|
for (let s of this.fields)
|
|
22475
|
-
if (n = s.list.find((a) => a.type
|
|
22475
|
+
if (n = s.list.find((a) => a.type === t), n)
|
|
22476
22476
|
break;
|
|
22477
22477
|
if (n)
|
|
22478
22478
|
for (let s in n)
|
|
@@ -22482,7 +22482,7 @@ const dateArr = [
|
|
|
22482
22482
|
const t = [];
|
|
22483
22483
|
Object.keys(this.validator).forEach((n) => {
|
|
22484
22484
|
this.validator[n] && t.push(this.validator[n]);
|
|
22485
|
-
}), t.length
|
|
22485
|
+
}), t.length === 0 ? delete this.data.rules : this.data.rules = t;
|
|
22486
22486
|
}
|
|
22487
22487
|
}
|
|
22488
22488
|
}, __cssModules$1a = {};
|
|
@@ -35219,7 +35219,7 @@ function __vue2_injectStyles(t) {
|
|
|
35219
35219
|
}
|
|
35220
35220
|
const Watermark = /* @__PURE__ */ function() {
|
|
35221
35221
|
return __component__.exports;
|
|
35222
|
-
}(), version = "2.7.
|
|
35222
|
+
}(), version = "2.7.6";
|
|
35223
35223
|
function index(t) {
|
|
35224
35224
|
t.component(AddressInput.name, AddressInput), t.component(Affix.name, Affix), t.component(Article.name, Article), t.component(AsideMenu.name, AsideMenu), t.component(Avatar.name, Avatar), t.component(AwesomeButton.name, AwesomeButton), t.component(CapsuleTab.name, CapsuleTab), t.component(Card.name, Card), t.component(Carousel.name, Carousel), t.component(Chat.name, Chat), t.component(ChunkFileUploader.name, ChunkFileUploader), t.component(ChunkFileUploaderButton.name, ChunkFileUploaderButton), t.component(ChunkFileUploaderDrop.name, ChunkFileUploaderDrop), t.component(ChunkFileUploaderFile.name, ChunkFileUploaderFile), t.component(ChunkFileUploaderFiles.name, ChunkFileUploaderFiles), t.component(ChunkFileUploaderList.name, ChunkFileUploaderList), t.component(ChunkFileUploaderUnSupport.name, ChunkFileUploaderUnSupport), t.component(Code.name, Code), t.component(CodeMirrorEditor.name, CodeMirrorEditor), t.component(ColorPicker.name, ColorPicker), t.component(Column.name, Column), t.component(ColumnDefault.name, ColumnDefault), t.component(ColumnDynamic.name, ColumnDynamic), t.component(ColumnMenu.name, ColumnMenu), t.component(ColumnSlot.name, ColumnSlot), t.component(Comment.name, Comment), t.component(Confirmable.name, Confirmable), t.component(ConfirmButton.name, ConfirmButton), t.component(ContextMenu.name, ContextMenu), t.component(CountUp.name, CountUp), t.component(CustomScrollbar.name, CustomScrollbar), t.component(DataBox.name, DataBox), t.component(DataCard.name, DataCard), t.component(DataCardtext.name, DataCardtext), t.component(DataDisplay.name, DataDisplay), t.component(DataIcons.name, DataIcons), t.component(DataImgtext.name, DataImgtext), t.component(DataOperatext.name, DataOperatext), t.component(DataPanel.name, DataPanel), t.component(DataPay.name, DataPay), t.component(DataPrice.name, DataPrice), t.component(DataProgress.name, DataProgress), t.component(DataRotate.name, DataRotate), t.component(DataTablePicker.name, DataTablePicker), t.component(DataTabs.name, DataTabs), t.component(DialogColumn.name, DialogColumn), t.component(DialogExcel.name, DialogExcel), t.component(DialogFilter.name, DialogFilter), t.component(DialogForm.name, DialogForm), t.component(DynamicTable.name, DynamicTable), t.component(ECharts.name, ECharts), t.component(EditableProgress.name, EditableProgress), t.component(EditableTree.name, EditableTree), t.component(EgdCollapse.name, EgdCollapse), t.component(EgdCollapseItem.name, EgdCollapseItem), t.component(ElementDialog.name, ElementDialog), t.component(EmptyView.name, EmptyView), t.component(ErrorView.name, ErrorView), t.component(FlexColumn.name, FlexColumn), t.component(FlexItem.name, FlexItem), t.component(FlexRow.name, FlexRow), t.component(FlexScroller.name, FlexScroller), t.component(Flow.name, Flow), t.component(FlowNode.name, FlowNode), t.component(FormButton.name, FormButton), t.component(FormCascader.name, FormCascader), t.component(FormCheckboxGroup.name, FormCheckboxGroup), t.component(FormDatePicker.name, FormDatePicker), t.component(FormGroup.name, FormGroup), t.component(FormHolder.name, FormHolder), t.component(FormInput.name, FormInput), t.component(FormInputEmail.name, FormInputEmail), t.component(FormInputIdCard.name, FormInputIdCard), t.component(FormInputNumber.name, FormInputNumber), t.component(FormInputPhoneNumber.name, FormInputPhoneNumber), t.component(FormInputTime.name, FormInputTime), t.component(FormItem.name, FormItem), t.component(FormItemConfigProvider.name, FormItemConfigProvider), t.component(FormItemGroup.name, FormItemGroup), t.component(FormRadioGroup.name, FormRadioGroup), t.component(FormSelect.name, FormSelect), t.component(FormSwitch.name, FormSwitch), t.component(FormTemp.name, FormTemp), t.component(FormTextarea.name, FormTextarea), t.component(FormView.name, FormView), t.component(FyArray.name, FyArray), t.component(FyCascader.name, FyCascader), t.component(FyCheckbox.name, FyCheckbox), t.component(FyCurd.name, FyCurd), t.component(FyDate.name, FyDate), t.component(FyDialogForm.name, FyDialogForm), t.component(FyDraggable.name, FyDraggable), t.component(FyDynamic.name, FyDynamic), t.component(FyEmpty.name, FyEmpty), t.component(FyForm.name, FyForm), t.component(FyFormDesign.name, FyFormDesign), t.component(FyFormMenu.name, FyFormMenu), t.component(FyInput.name, FyInput), t.component(FyInputColor.name, FyInputColor), t.component(FyInputIcon.name, FyInputIcon), t.component(FyInputMap.name, FyInputMap), t.component(FyInputNumber.name, FyInputNumber), t.component(FyInputTable.name, FyInputTable), t.component(FyInputTree.name, FyInputTree), t.component(FyRadio.name, FyRadio), t.component(FyRate.name, FyRate), t.component(FySelect.name, FySelect), t.component(FySlider.name, FySlider), t.component(FySwitch.name, FySwitch), t.component(FyTabs.name, FyTabs), t.component(FyTime.name, FyTime), t.component(FyTitle.name, FyTitle), t.component(FyTree.name, FyTree), t.component(FyUpload.name, FyUpload), t.component(GuideSteps.name, GuideSteps), t.component(HeaderMenu.name, HeaderMenu), t.component(HeaderSearch.name, HeaderSearch), t.component(IconCard.name, IconCard), t.component(IconTemp.name, IconTemp), t.component(IframeWindow.name, IframeWindow), t.component(ImageViewer.name, ImageViewer), t.component(InputNumber.name, InputNumber), t.component(InputNumberRange.name, InputNumberRange), t.component(JSXComponent.name, JSXComponent), t.component(KeepViewAlive.name, KeepViewAlive), t.component(Keyboard.name, Keyboard), t.component(License.name, License), t.component(LoadingView.name, LoadingView), t.component(Login.name, Login), t.component(NameAvatar.name, NameAvatar), t.component(NavBar.name, NavBar), t.component(Notice.name, Notice), t.component(NotImplement.name, NotImplement), t.component(Page.name, Page), t.component(PageableTable.name, PageableTable), t.component(PageableView.name, PageableView), t.component(PageHeader.name, PageHeader), t.component(PageIndex.name, PageIndex), t.component(PageIndexTop.name, PageIndexTop), t.component(PageSkeleton.name, PageSkeleton), t.component(PageSkeletonNew.name, PageSkeletonNew), t.component(PhotoSwipe.name, PhotoSwipe), t.component(Progress.name, Progress), t.component(Queue.name, Queue), t.component(RecordVideo.name, RecordVideo), t.component(ResizeObserver.name, ResizeObserver), t.component(Search.name, Search), t.component(SearchPopover.name, SearchPopover), t.component(Sign.name, Sign), t.component(SignPanel.name, SignPanel), t.component(Skeleton.name, Skeleton), t.component(SplitPane.name, SplitPane), t.component(Stateful.name, Stateful), t.component(StaticPageableTable.name, StaticPageableTable), t.component(Swiper.name, Swiper), t.component(Tab.name, Tab), t.component(TabItem.name, TabItem), t.component(TableColumn.name, TableColumn), t.component(TablePage.name, TablePage), t.component(TableView.name, TableView), t.component(TagRender.name, TagRender), t.component(TextEllipsis.name, TextEllipsis), t.component(TinymceEditor.name, TinymceEditor), t.component(TinymceWrapper.name, TinymceWrapper), t.component(Toolbar.name, Toolbar), t.component(ToolbarButton.name, ToolbarButton), t.component(Trigger.name, Trigger), t.component(Verify.name, Verify), t.component(VueTagsInput.name, VueTagsInput), t.component(Watermark.name, Watermark);
|
|
35225
35225
|
}
|
package/package.json
CHANGED