hldesigner 0.0.140 → 0.0.142
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/{_pdf-6c2babb0.js → _pdf-c57afba9.js} +13 -13
- package/{_share_image-ff895d90.js → _share_image-ecc9a39b.js} +2 -2
- package/{_share_size.vue_vue_type_script_setup_true_lang-85484dad.js → _share_size.vue_vue_type_script_setup_true_lang-0e359abc.js} +3 -3
- package/{_txt-9a9b7760.js → _txt-690d85b0.js} +13 -13
- package/{_unsupport-757c8fb8.js → _unsupport-a2fc8423.js} +1 -1
- package/{affix-widget-e9f4ff92.js → affix-widget-7330f0cf.js} +18 -18
- package/{alert-widget-f8492541.js → alert-widget-4cef7c5d.js} +18 -18
- package/{anchor-widget-cfb56783.js → anchor-widget-48474c50.js} +15 -15
- package/{auto-complete-widget-a0b415cf.js → auto-complete-widget-499bda61.js} +18 -18
- package/{avatar-widget-74be258b.js → avatar-widget-dac88b81.js} +18 -18
- package/{backtop-widget-929ee9da.js → backtop-widget-ed923f76.js} +18 -18
- package/{badge-widget-f50f4050.js → badge-widget-28796939.js} +18 -18
- package/{barcode-widget-1e3d9b65.js → barcode-widget-8b24f8dd.js} +15 -15
- package/{baseImp-b5857827.js → baseImp-b4e447b7.js} +5 -5
- package/{breadcrumb-widget-1081ab6a.js → breadcrumb-widget-d5d5f555.js} +15 -15
- package/{button-widget-5bfdf6f0.js → button-widget-b3d4d46a.js} +18 -18
- package/{cache-widget-dd3e3d3f.js → cache-widget-49deb80a.js} +17 -17
- package/{card-widget-3dbbe25c.js → card-widget-40c2633d.js} +16 -16
- package/{carousel-widget-d139cc2c.js → carousel-widget-43fc6005.js} +16 -16
- package/{cascader-widget-183c6fc9.js → cascader-widget-3cf501c6.js} +17 -17
- package/{chart-widget-778c4cb2.js → chart-widget-43d3ed43.js} +15 -15
- package/{checkbox-widget-1a5821a0.js → checkbox-widget-b3366a0b.js} +17 -17
- package/{collapse-widget-b66ec539.js → collapse-widget-a9c8e068.js} +16 -16
- package/{color-picker-widget-cc95d8b2.js → color-picker-widget-dd01c7f0.js} +17 -17
- package/common-editor-9ecbac29.js +26 -0
- package/{common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-b53b8bec.js → common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-f8a3f0d1.js} +2 -2
- package/{configItem-19135463.js → configItem-bf9f69a3.js} +35 -35
- package/{cont-cell-widget-36e95947.js → cont-cell-widget-abf05b77.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-8f80a9ab.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-340fc972.js} +5 -5
- package/{cont-widget-d6937503.js → cont-widget-405cbec3.js} +5 -5
- package/{content-wrapper-fba9f902.js → content-wrapper-4f972be5.js} +6 -6
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-c29a2dd2.js → content-wrapper.vue_vue_type_script_setup_true_lang-365335ac.js} +3 -3
- package/{css-editor-30e20e0f.js → css-editor-15915d49.js} +17 -17
- package/{customClass-editor-1c7fd33d.js → customClass-editor-3b7877ee.js} +15 -15
- package/{date-picker-range-widget-fa283fb3.js → date-picker-range-widget-20d0da66.js} +17 -17
- package/{date-picker-widget-27455499.js → date-picker-widget-6713b2f0.js} +17 -17
- package/default-slot-widget-01a842dd.js +28 -0
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-d044b7b5.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-5477ca7d.js} +7 -7
- package/{descriptions-widget-a956acce.js → descriptions-widget-11729686.js} +16 -16
- package/designer.es.js +32 -32
- package/designer.style.css +1 -1
- package/designer.umd.js +62 -62
- package/{dialog-0c8f5b0b.js → dialog-5df45e80.js} +2 -2
- package/{dialog-widget-9cc2e435.js → dialog-widget-bf37ba18.js} +17 -17
- package/{divider-widget-c9f020f4.js → divider-widget-eb0e4988.js} +18 -18
- package/{drag-wrapper-dcfb2b05.js → drag-wrapper-93832c04.js} +6 -6
- package/{drawer-widget-1411c746.js → drawer-widget-b94523a0.js} +17 -17
- package/{dropdown-widget-3afb9a01.js → dropdown-widget-380763fa.js} +16 -16
- package/{editor-wrapper-808b06fb.js → editor-wrapper-23296dbb.js} +11 -11
- package/{emitter-10592b70.js → emitter-2c5e2764.js} +1 -1
- package/{empty-widget-b0561328.js → empty-widget-c0710106.js} +18 -18
- package/{enum-type-f5b76bdf.js → enum-type-6d4d22ca.js} +1 -1
- package/{enum-type-b832ec8a.js → enum-type-c4586c03.js} +15 -13
- package/{expression-8b88cd21.js → expression-e50eb078.js} +1 -1
- package/feedback-widget-404c27ac.js +29 -0
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-0279221b.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-d997d16d.js} +5 -5
- package/{field-editor-dfb0e5f9.js → field-editor-99a115c6.js} +14 -14
- package/{fieldobj-26f8789d.js → fieldobj-b45f0fac.js} +1 -1
- package/{file-upload-widget-91226370.js → file-upload-widget-b80d1da2.js} +22 -22
- package/{form-item-wrapper-a20bfca7.js → form-item-wrapper-5706f6e9.js} +12 -12
- package/{form-widget-2b6b1df1.js → form-widget-9f141256.js} +11 -11
- package/{grid-col-widget-4c2b63ae.js → grid-col-widget-397078d8.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-1910398b.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-6c41f8e0.js} +5 -5
- package/{grid-widget-62a6b660.js → grid-widget-c01dbca0.js} +5 -5
- package/{html-text-widget-9cc2ede7.js → html-text-widget-c3176546.js} +16 -16
- package/{icon-widget-00f5bbb3.js → icon-widget-dbb7db5e.js} +15 -15
- package/{iframe-widget-c7b2d6c4.js → iframe-widget-d9dbadc9.js} +15 -15
- package/{image-editor-820d8bbe.js → image-editor-75c977d2.js} +15 -15
- package/{image-widget-5ba7d98d.js → image-widget-c034a669.js} +15 -15
- package/{index-1607f749.js → index-26a4d1ea.js} +71 -67
- package/{index-3b597f56.js → index-37d868f7.js} +6 -6
- package/{index-1f1feb30.js → index-559094da.js} +5 -5
- package/{index-2ee58a8f.js → index-57cb7f26.js} +36 -36
- package/{index-ec56a786.js → index-6d15ea79.js} +7 -7
- package/{index-57792223.js → index-7499b88e.js} +1 -1
- package/{index-3a612fb4.js → index-7f7f4fd8.js} +7 -7
- package/{index-1b5851a0.js → index-8ac54fa8.js} +8 -8
- package/{index-14efe18d.js → index-8f89e38d.js} +1 -1
- package/{index-3e51d8e3.js → index-94e572fe.js} +36 -36
- package/{index-25b3dc9f.js → index-961fd78e.js} +8 -8
- package/{index-31cb80e4.js → index-96517a1e.js} +10 -10
- package/{index-8d909f9a.js → index-aec7935b.js} +3 -3
- package/{index-c84c0cb2.js → index-bf96678f.js} +36 -36
- package/{index-cf34606a.js → index-c3445560.js} +7 -7
- package/{index-acf8943a.js → index-cd026047.js} +9 -9
- package/{index-47b32fcf.js → index-d6012bf0.js} +5 -5
- package/{index-f04f299e.js → index-d6ee5270.js} +13 -13
- package/{index-74922c1a.js → index-de6df0af.js} +1 -1
- package/{index-8cf6b672.js → index-e26b0c48.js} +5 -5
- package/{index-0b521e17.js → index-e2da79b7.js} +5 -5
- package/{index-708c1623.js → index-f2a52f17.js} +10 -10
- package/{index-9741d171.js → index-f3307484.js} +16 -16
- package/{index-2edf2e79.js → index-f8b92516.js} +11 -11
- package/{input-number-widget-b1350662.js → input-number-widget-7808e154.js} +17 -17
- package/{input-widget-9d1f6020.js → input-widget-1753b1f7.js} +18 -18
- package/{install-designer-aa026b32.js → install-designer-f454d7fd.js} +27 -27
- package/{item-45931742.js → item-4cac58e1.js} +2 -2
- package/{itemDetail-6dd3b0e7.js → itemDetail-03d08f47.js} +2 -2
- package/{label-wrapper-70df4533.js → label-wrapper-9ae96132.js} +5 -5
- package/{label-wrapper.vue_vue_type_style_index_0_lang-77382f96.js → label-wrapper.vue_vue_type_style_index_0_lang-8da6b4a9.js} +3 -3
- package/{link-widget-110d5e19.js → link-widget-1759877e.js} +18 -18
- package/{ltable-col-widget-ae1dc811.js → ltable-col-widget-fb9e0fde.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-84dd9037.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-18adc04f.js} +9 -9
- package/{ltable-widget-5f1c760b.js → ltable-widget-10543207.js} +5 -5
- package/{menu-widget-36617350.js → menu-widget-01bac421.js} +16 -16
- package/{model-widget-31324395.js → model-widget-1304597b.js} +15 -15
- package/{multirow-4ef86b7f.js → multirow-aee16d4d.js} +6 -6
- package/{multirow-widget-011cdfbf.js → multirow-widget-7f5ad264.js} +17 -17
- package/{name-editor-d6b8867b.js → name-editor-8a808247.js} +14 -14
- package/{optionItem-6a935391.js → optionItem-718ec8eb.js} +12 -4
- package/package.json +1 -1
- package/{pagination-widget-ee76b0dd.js → pagination-widget-11dc56a0.js} +15 -15
- package/{picture-upload-widget-097158a7.js → picture-upload-widget-19f803fc.js} +18 -18
- package/{progress-widget-124785f6.js → progress-widget-5bbc564c.js} +16 -16
- package/{property-base-9b77b978.js → property-base-c186b184.js} +3 -3
- package/{propresult-e568c3b6.js → propresult-9fa27ced.js} +1 -1
- package/{qrcode-widget-7489dab7.js → qrcode-widget-f89717ab.js} +15 -15
- package/{radio-widget-25c8a8b6.js → radio-widget-dcfc4e32.js} +17 -17
- package/{range-widget-4f193377.js → range-widget-4cf159e7.js} +18 -18
- package/{rate-widget-0074e53c.js → rate-widget-73ec3eed.js} +17 -17
- package/{reg-editor.vue_vue_type_script_setup_true_lang-76a91eb8.js → reg-editor.vue_vue_type_script_setup_true_lang-e9efc2fa.js} +3 -3
- package/{result-widget-d2757f64.js → result-widget-c7757cbf.js} +16 -16
- package/{rich-editor-widget-3b61516b.js → rich-editor-widget-7683dbb4.js} +17 -17
- package/{router-widget-18fc1f39.js → router-widget-5dfd34d9.js} +15 -15
- package/{schemaData-a67bb8e8.js → schemaData-a6694a71.js} +4 -4
- package/{select-widget-acab3a8f.js → select-widget-a8924d12.js} +17 -17
- package/{sfc-f69a7de8.js → sfc-05eb5059.js} +9 -9
- package/{sfcview-b1449e78.js → sfcview-7f049591.js} +8 -8
- package/{share-editor-e86d7583.js → share-editor-ffe2091a.js} +4 -4
- package/{share-event-9856acb6.js → share-event-22a4310f.js} +2 -2
- package/{share-field-ec11e3b0.js → share-field-586b136d.js} +8 -8
- package/{share-file-a07016cc.js → share-file-ee677596.js} +5 -5
- package/{size-editor-d11337b4.js → size-editor-06f96a00.js} +16 -16
- package/{slider-widget-5f92a171.js → slider-widget-3ba77f57.js} +17 -17
- package/{slot-55c73c2d.js → slot-72f0670a.js} +3 -3
- package/{static-text-widget-37289d89.js → static-text-widget-a0f5dab4.js} +16 -16
- package/{steps-widget-338c221b.js → steps-widget-887f6116.js} +15 -15
- package/{subMenu-widget-9476918c.js → subMenu-widget-bace23eb.js} +7 -7
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-63c315d9.js → subMenu-widget.vue_vue_type_script_setup_true_lang-9cca99d4.js} +3 -3
- package/{switch-widget-e4a43519.js → switch-widget-fda8e76f.js} +17 -17
- package/{tab-pane-widget-a1afe582.js → tab-pane-widget-7c2997f9.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-9fd91ccc.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-0ac11cc1.js} +5 -5
- package/table-col-widget-57832ccd.js +25 -0
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-5c9ac743.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-fa01cba4.js} +5 -5
- package/{table-widget-76d6a54a.js → table-widget-797c2fe6.js} +17 -17
- package/{tabs-widget-1965abaf.js → tabs-widget-012cbdfe.js} +7 -7
- package/{tag-widget-02fd305d.js → tag-widget-bc4d23dd.js} +18 -18
- package/{target-code-3b80dca0.js → target-code-80b4019c.js} +7 -7
- package/{target-datasource-6b8f0618.js → target-datasource-58388c22.js} +37 -37
- package/{target-link-d5ead8dd.js → target-link-9b504614.js} +36 -36
- package/{target-saveForm-1983d67d.js → target-saveForm-cd0da9ba.js} +36 -36
- package/{target-widget-8a983d09.js → target-widget-576e5a3f.js} +1 -1
- package/{target-window-7dfc5481.js → target-window-02822dd4.js} +8 -8
- package/{text-widget-b6abb538.js → text-widget-f154af5e.js} +18 -18
- package/{textarea-widget-61f204b4.js → textarea-widget-a494af2e.js} +17 -17
- package/{time-picker-range-widget-e54bec8f.js → time-picker-range-widget-6646d30b.js} +17 -17
- package/{time-picker-widget-752752c8.js → time-picker-widget-6fcbc883.js} +17 -17
- package/{time-select-widget-fdb3a8d5.js → time-select-widget-f32e0fa8.js} +17 -17
- package/{tmpl-widget-e4b998b0.js → tmpl-widget-b22fa63c.js} +16 -16
- package/{tree-select-widget-1e823992.js → tree-select-widget-065136d4.js} +17 -17
- package/{tree-widget-b63a726e.js → tree-widget-35614e42.js} +15 -15
- package/{value-editor-1a704941.js → value-editor-f240ad4e.js} +14 -14
- package/verifycode-widget-a48b906f.js +170 -0
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-1f903af2.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-9f89a457.js} +6 -6
- package/{wrapper-widget-12384540.js → wrapper-widget-4d08de93.js} +6 -6
- package/common-editor-fa521ced.js +0 -26
- package/default-slot-widget-4313bee1.js +0 -28
- package/feedback-widget-b3b7a152.js +0 -29
- package/table-col-widget-bdd697a6.js +0 -25
- package/verifycode-widget-480504a1.js +0 -166
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { defineComponent as T, computed as s, resolveComponent as ee, openBlock as p, createBlock as d, mergeProps as j, unref as e, withCtx as a, isRef as W, toHandlers as A, createSlots as B, resolveDynamicComponent as i, createCommentVNode as g } from "vue";
|
|
2
|
-
import { y as f, t as D } from "./enum-type-
|
|
2
|
+
import { y as f, t as D } from "./enum-type-c4586c03.js";
|
|
3
3
|
import { I as te } from "./field-base-5547436d.js";
|
|
4
|
-
import { c as oe } from "./share-field-
|
|
5
|
-
import re from "./form-item-wrapper-
|
|
6
|
-
import { e as y, w as le } from "./expression-
|
|
4
|
+
import { c as oe } from "./share-field-586b136d.js";
|
|
5
|
+
import re from "./form-item-wrapper-5706f6e9.js";
|
|
6
|
+
import { e as y, w as le } from "./expression-e50eb078.js";
|
|
7
7
|
import "./widget-base-4c2d6265.js";
|
|
8
|
-
import "./emitter-
|
|
8
|
+
import "./emitter-2c5e2764.js";
|
|
9
9
|
import "./icon-6342f929.js";
|
|
10
|
-
import "./baseImp-
|
|
11
|
-
import "./enum-type-
|
|
12
|
-
import "./dialog-
|
|
10
|
+
import "./baseImp-b4e447b7.js";
|
|
11
|
+
import "./enum-type-6d4d22ca.js";
|
|
12
|
+
import "./dialog-5df45e80.js";
|
|
13
13
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
14
14
|
import "./uuid-009aae31.js";
|
|
15
15
|
import "element-plus";
|
|
16
|
-
import "./slot-
|
|
17
|
-
import "./index-
|
|
18
|
-
import "./optionItem-
|
|
19
|
-
import "./index-
|
|
20
|
-
import "./multirow-
|
|
21
|
-
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
22
|
-
import "./index-
|
|
16
|
+
import "./slot-72f0670a.js";
|
|
17
|
+
import "./index-37d868f7.js";
|
|
18
|
+
import "./optionItem-718ec8eb.js";
|
|
19
|
+
import "./index-de6df0af.js";
|
|
20
|
+
import "./multirow-aee16d4d.js";
|
|
21
|
+
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-9f89a457.js";
|
|
22
|
+
import "./index-8f89e38d.js";
|
|
23
23
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
24
|
-
import "./fieldobj-
|
|
25
|
-
import "./label-wrapper.vue_vue_type_style_index_0_lang-
|
|
24
|
+
import "./fieldobj-b45f0fac.js";
|
|
25
|
+
import "./label-wrapper.vue_vue_type_style_index_0_lang-8da6b4a9.js";
|
|
26
26
|
import "./source-map-b04aec4a.js";
|
|
27
27
|
import "./esprima-e8d15055.js";
|
|
28
28
|
const se = T({ componentName: le.FieldWidget }), Ie = /* @__PURE__ */ T({
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { defineComponent as h, computed as l, resolveComponent as $, openBlock as u, createBlock as c, mergeProps as P, unref as t, withCtx as K, isRef as A, toHandlers as H, createSlots as M, resolveDynamicComponent as b } from "vue";
|
|
2
2
|
import { I as R } from "./field-base-5547436d.js";
|
|
3
|
-
import { c as U } from "./share-field-
|
|
4
|
-
import { _ as q } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
5
|
-
import { e as n, w as G } from "./expression-
|
|
6
|
-
import { y as i } from "./enum-type-
|
|
3
|
+
import { c as U } from "./share-field-586b136d.js";
|
|
4
|
+
import { _ as q } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-9f89a457.js";
|
|
5
|
+
import { e as n, w as G } from "./expression-e50eb078.js";
|
|
6
|
+
import { y as i } from "./enum-type-c4586c03.js";
|
|
7
7
|
import "./widget-base-4c2d6265.js";
|
|
8
|
-
import "./emitter-
|
|
8
|
+
import "./emitter-2c5e2764.js";
|
|
9
9
|
import "./icon-6342f929.js";
|
|
10
|
-
import "./baseImp-
|
|
11
|
-
import "./enum-type-
|
|
12
|
-
import "./dialog-
|
|
10
|
+
import "./baseImp-b4e447b7.js";
|
|
11
|
+
import "./enum-type-6d4d22ca.js";
|
|
12
|
+
import "./dialog-5df45e80.js";
|
|
13
13
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
14
14
|
import "./uuid-009aae31.js";
|
|
15
15
|
import "element-plus";
|
|
16
|
-
import "./slot-
|
|
17
|
-
import "./index-
|
|
18
|
-
import "./optionItem-
|
|
19
|
-
import "./index-
|
|
20
|
-
import "./multirow-
|
|
21
|
-
import "./index-
|
|
16
|
+
import "./slot-72f0670a.js";
|
|
17
|
+
import "./index-37d868f7.js";
|
|
18
|
+
import "./optionItem-718ec8eb.js";
|
|
19
|
+
import "./index-de6df0af.js";
|
|
20
|
+
import "./multirow-aee16d4d.js";
|
|
21
|
+
import "./index-8f89e38d.js";
|
|
22
22
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
23
|
-
import "./fieldobj-
|
|
23
|
+
import "./fieldobj-b45f0fac.js";
|
|
24
24
|
import "./source-map-b04aec4a.js";
|
|
25
25
|
import "./esprima-e8d15055.js";
|
|
26
26
|
const J = h({ componentName: G.FieldWidget }), Ce = /* @__PURE__ */ h({
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { defineComponent as $, ref as x, openBlock as n, createBlock as s, normalizeProps as B, guardReactiveProps as T, withCtx as h, createVNode as _, mergeProps as d, unref as o, createElementVNode as b, createElementBlock as N, Fragment as O, renderList as j, createCommentVNode as E, pushScopeId as z, popScopeId as J } from "vue";
|
|
2
2
|
import { ElSelect as L, ElOption as R } from "element-plus";
|
|
3
|
-
import { I as U } from "./property-base-
|
|
4
|
-
import { E as W, O as m } from "./editor-wrapper-
|
|
5
|
-
import { d as q, j as u, e as f } from "./enum-type-
|
|
6
|
-
import { aj as y, aJ as r, C as P } from "./enum-type-
|
|
7
|
-
import { u as A } from "./share-editor-
|
|
3
|
+
import { I as U } from "./property-base-c186b184.js";
|
|
4
|
+
import { E as W, O as m } from "./editor-wrapper-23296dbb.js";
|
|
5
|
+
import { d as q, j as u, e as f } from "./enum-type-c4586c03.js";
|
|
6
|
+
import { aj as y, aJ as r, C as P } from "./enum-type-6d4d22ca.js";
|
|
7
|
+
import { u as A } from "./share-editor-ffe2091a.js";
|
|
8
8
|
import { _ as F } from "./_plugin-vue_export-helper-dad06003.js";
|
|
9
|
-
import "./baseImp-
|
|
10
|
-
import "./expression-
|
|
9
|
+
import "./baseImp-b4e447b7.js";
|
|
10
|
+
import "./expression-e50eb078.js";
|
|
11
11
|
import "./source-map-b04aec4a.js";
|
|
12
12
|
import "./uuid-009aae31.js";
|
|
13
13
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
14
14
|
import "./esprima-e8d15055.js";
|
|
15
15
|
import "./icon-6342f929.js";
|
|
16
|
-
import "./dialog-
|
|
17
|
-
import "./share-event-
|
|
18
|
-
import "./emitter-
|
|
19
|
-
import "./index-
|
|
20
|
-
import "./optionItem-
|
|
21
|
-
import "./index-
|
|
22
|
-
import "./index-
|
|
16
|
+
import "./dialog-5df45e80.js";
|
|
17
|
+
import "./share-event-22a4310f.js";
|
|
18
|
+
import "./emitter-2c5e2764.js";
|
|
19
|
+
import "./index-37d868f7.js";
|
|
20
|
+
import "./optionItem-718ec8eb.js";
|
|
21
|
+
import "./index-de6df0af.js";
|
|
22
|
+
import "./index-8f89e38d.js";
|
|
23
23
|
const G = (a) => (z("data-v-3a398de0"), a = a(), J(), a), H = /* @__PURE__ */ G(() => /* @__PURE__ */ b("div", { class: "divider" }, null, -1)), K = /* @__PURE__ */ $({
|
|
24
24
|
__name: "value-editor",
|
|
25
25
|
props: { ...U },
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { defineComponent as g, ref as v, onMounted as N, watch as k, openBlock as S, createElementBlock as w, createElementVNode as x, computed as C, nextTick as H, createBlock as P, mergeProps as b, unref as u, withCtx as W, createVNode as I } from "vue";
|
|
2
|
+
import { w as V } from "./expression-e50eb078.js";
|
|
3
|
+
import { I as z } from "./field-base-5547436d.js";
|
|
4
|
+
import { c as T } from "./share-field-586b136d.js";
|
|
5
|
+
import { _ as B } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-9f89a457.js";
|
|
6
|
+
import { S as E } from "./enum-type-c4586c03.js";
|
|
7
|
+
import { _ as F } from "./_plugin-vue_export-helper-dad06003.js";
|
|
8
|
+
import "./source-map-b04aec4a.js";
|
|
9
|
+
import "./uuid-009aae31.js";
|
|
10
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
11
|
+
import "./esprima-e8d15055.js";
|
|
12
|
+
import "./widget-base-4c2d6265.js";
|
|
13
|
+
import "./emitter-2c5e2764.js";
|
|
14
|
+
import "./icon-6342f929.js";
|
|
15
|
+
import "./baseImp-b4e447b7.js";
|
|
16
|
+
import "./enum-type-6d4d22ca.js";
|
|
17
|
+
import "./dialog-5df45e80.js";
|
|
18
|
+
import "element-plus";
|
|
19
|
+
import "./slot-72f0670a.js";
|
|
20
|
+
import "./index-37d868f7.js";
|
|
21
|
+
import "./optionItem-718ec8eb.js";
|
|
22
|
+
import "./index-de6df0af.js";
|
|
23
|
+
import "./multirow-aee16d4d.js";
|
|
24
|
+
import "./index-8f89e38d.js";
|
|
25
|
+
import "./fieldobj-b45f0fac.js";
|
|
26
|
+
const L = { class: "s-canvas" }, R = ["width", "height"], $ = /* @__PURE__ */ g({
|
|
27
|
+
__name: "_index",
|
|
28
|
+
props: {
|
|
29
|
+
identifyCode: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: "1234"
|
|
32
|
+
},
|
|
33
|
+
fontSizeMin: {
|
|
34
|
+
type: Number,
|
|
35
|
+
default: 25
|
|
36
|
+
},
|
|
37
|
+
fontSizeMax: {
|
|
38
|
+
type: Number,
|
|
39
|
+
default: 35
|
|
40
|
+
},
|
|
41
|
+
backgroundColorMin: {
|
|
42
|
+
type: Number,
|
|
43
|
+
default: 255
|
|
44
|
+
},
|
|
45
|
+
backgroundColorMax: {
|
|
46
|
+
type: Number,
|
|
47
|
+
default: 255
|
|
48
|
+
},
|
|
49
|
+
colorMin: {
|
|
50
|
+
type: Number,
|
|
51
|
+
default: 0
|
|
52
|
+
},
|
|
53
|
+
colorMax: {
|
|
54
|
+
type: Number,
|
|
55
|
+
default: 160
|
|
56
|
+
},
|
|
57
|
+
lineColorMin: {
|
|
58
|
+
type: Number,
|
|
59
|
+
default: 40
|
|
60
|
+
},
|
|
61
|
+
lineColorMax: {
|
|
62
|
+
type: Number,
|
|
63
|
+
default: 180
|
|
64
|
+
},
|
|
65
|
+
dotColorMin: {
|
|
66
|
+
type: Number,
|
|
67
|
+
default: 0
|
|
68
|
+
},
|
|
69
|
+
dotColorMax: {
|
|
70
|
+
type: Number,
|
|
71
|
+
default: 255
|
|
72
|
+
},
|
|
73
|
+
contentWidth: {
|
|
74
|
+
type: Number,
|
|
75
|
+
default: 112
|
|
76
|
+
},
|
|
77
|
+
contentHeight: {
|
|
78
|
+
type: Number,
|
|
79
|
+
default: 40
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
setup(d) {
|
|
83
|
+
const t = d, m = v(), n = (e, o) => Math.floor(Math.random() * (o - e) + e), s = (e, o) => {
|
|
84
|
+
let i = n(e, o), l = n(e, o), f = n(e, o);
|
|
85
|
+
return "rgb(" + i + "," + l + "," + f + ")";
|
|
86
|
+
}, c = (e) => {
|
|
87
|
+
for (let o = 0; o < 5; o++)
|
|
88
|
+
e.strokeStyle = s(t.lineColorMin, t.lineColorMax), e.beginPath(), e.moveTo(n(0, t.contentWidth), n(0, t.contentHeight)), e.lineTo(n(0, t.contentWidth), n(0, t.contentHeight)), e.stroke();
|
|
89
|
+
}, _ = (e, o, i) => {
|
|
90
|
+
e.fillStyle = s(t.colorMin, t.colorMax), e.font = n(t.fontSizeMin, t.fontSizeMax) + "px SimHei";
|
|
91
|
+
let l = (i + 1) * (t.contentWidth / (t.identifyCode.length + 1)), f = n(t.fontSizeMax, t.contentHeight - 5);
|
|
92
|
+
var h = n(-45, 45);
|
|
93
|
+
e.translate(l, f), e.rotate(h * Math.PI / 180), e.fillText(o, 0, 0), e.rotate(-h * Math.PI / 180), e.translate(-l, -f);
|
|
94
|
+
}, y = (e) => {
|
|
95
|
+
for (let o = 0; o < 80; o++)
|
|
96
|
+
e.fillStyle = s(0, 255), e.beginPath(), e.arc(n(0, t.contentWidth), n(0, t.contentHeight), 1, 0, 2 * Math.PI), e.fill();
|
|
97
|
+
}, a = () => {
|
|
98
|
+
let e = m.value, o = e == null ? void 0 : e.getContext("2d");
|
|
99
|
+
o.textBaseline = "bottom", o.fillStyle = s(t.backgroundColorMin, t.backgroundColorMax), o.fillRect(0, 0, t.contentWidth, t.contentHeight);
|
|
100
|
+
for (let i = 0; i < t.identifyCode.length; i++)
|
|
101
|
+
_(o, t.identifyCode[i], i);
|
|
102
|
+
c(o), y(o);
|
|
103
|
+
};
|
|
104
|
+
return N(() => {
|
|
105
|
+
a();
|
|
106
|
+
}), k(
|
|
107
|
+
() => t.identifyCode,
|
|
108
|
+
(e) => {
|
|
109
|
+
e && a();
|
|
110
|
+
}
|
|
111
|
+
), (e, o) => (S(), w("div", L, [
|
|
112
|
+
x("canvas", {
|
|
113
|
+
ref_key: "canavsRef",
|
|
114
|
+
ref: m,
|
|
115
|
+
width: t.contentWidth,
|
|
116
|
+
height: t.contentHeight
|
|
117
|
+
}, null, 8, R)
|
|
118
|
+
]));
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
const j = /* @__PURE__ */ F($, [["__scopeId", "data-v-10737829"]]), A = (d, t) => (t = t + 1, Math.floor(Math.random() * (t - d) + d)), O = g({ componentName: V.FieldWidget }), _e = /* @__PURE__ */ g({
|
|
122
|
+
...O,
|
|
123
|
+
__name: "verifycode-widget",
|
|
124
|
+
props: { ...z },
|
|
125
|
+
setup(d, { expose: t }) {
|
|
126
|
+
const m = d, { fieldEditor: n, exposed: s, extendAttrs: c, attrs: _, fieldObj: y } = T(m);
|
|
127
|
+
let a = v(""), e = C(() => {
|
|
128
|
+
var r;
|
|
129
|
+
return (r = c.value) == null ? void 0 : r.content;
|
|
130
|
+
}), o = C(() => {
|
|
131
|
+
var r;
|
|
132
|
+
return (r = c.value) == null ? void 0 : r.identifyCodeLen;
|
|
133
|
+
});
|
|
134
|
+
const i = (r, M) => {
|
|
135
|
+
for (let p = 0; p < M; p++)
|
|
136
|
+
a.value += r[A(0, r.length)];
|
|
137
|
+
}, l = () => {
|
|
138
|
+
a.value = "", i(e.value, o.value);
|
|
139
|
+
}, f = () => a.value, h = (r) => {
|
|
140
|
+
a.value = r;
|
|
141
|
+
};
|
|
142
|
+
return k(() => _.value, (r) => {
|
|
143
|
+
H(() => {
|
|
144
|
+
l();
|
|
145
|
+
});
|
|
146
|
+
}), N(() => {
|
|
147
|
+
l();
|
|
148
|
+
}), t({ ...s, refresh: l, getValue: f, setValue: h }), (r, M) => (S(), P(B, b(r.$props, {
|
|
149
|
+
"prop-options": { fieldObj: u(y) }
|
|
150
|
+
}), {
|
|
151
|
+
default: W(() => {
|
|
152
|
+
var p;
|
|
153
|
+
return [
|
|
154
|
+
I(j, b({
|
|
155
|
+
ref_key: "fieldEditor",
|
|
156
|
+
ref: n
|
|
157
|
+
}, u(_), {
|
|
158
|
+
"identify-code": u(a),
|
|
159
|
+
class: u(E)((p = u(c)) == null ? void 0 : p.customClass),
|
|
160
|
+
onClick: l
|
|
161
|
+
}), null, 16, ["identify-code", "class"])
|
|
162
|
+
];
|
|
163
|
+
}),
|
|
164
|
+
_: 1
|
|
165
|
+
}, 16, ["prop-options"]));
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
export {
|
|
169
|
+
_e as default
|
|
170
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as de, resolveComponent as U, openBlock as l, createElementBlock as v, Fragment as N, createVNode as o, createCommentVNode as y, createBlock as W, createSlots as ee, withCtx as a, createElementVNode as V, renderList as te, createTextVNode as C, toDisplayString as k, withModifiers as w, unref as n, renderSlot as T, computed as b, ref as ne, resolveDynamicComponent as ie, mergeProps as z, toHandlers as re } from "vue";
|
|
2
|
-
import { e as g, c as pe, S as se } from "./enum-type-
|
|
2
|
+
import { e as g, c as pe, S as se } from "./enum-type-c4586c03.js";
|
|
3
3
|
import { I as ue, a as me } from "./widget-base-4c2d6265.js";
|
|
4
|
-
import { u as oe, j as ge, k as fe, l as we, b as ve } from "./index-
|
|
5
|
-
import { S as m } from "./index-
|
|
6
|
-
import { f as ye } from "./baseImp-
|
|
7
|
-
import { d as Q, S as We } from "./enum-type-
|
|
8
|
-
import { u as he } from "./fieldobj-
|
|
4
|
+
import { u as oe, j as ge, k as fe, l as we, b as ve } from "./index-37d868f7.js";
|
|
5
|
+
import { S as m } from "./index-8f89e38d.js";
|
|
6
|
+
import { f as ye } from "./baseImp-b4e447b7.js";
|
|
7
|
+
import { d as Q, S as We } from "./enum-type-6d4d22ca.js";
|
|
8
|
+
import { u as he } from "./fieldobj-b45f0fac.js";
|
|
9
9
|
const ce = { key: 0 }, Ce = { class: "clWhite" }, ke = { class: "clWhite" }, be = ["title"], Le = ["title"], $e = ["title"], Se = ["title"], Te = /* @__PURE__ */ de({
|
|
10
10
|
__name: "drag-handler",
|
|
11
11
|
props: { ...ue, parentTree: { type: Object, default: null }, hidden: { type: Boolean, default: !1 }, simple: { type: Boolean } },
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ref as y, watch as L, defineComponent as h, resolveDirective as j, openBlock as W, createBlock as D, mergeProps as b, unref as s, withCtx as O, withDirectives as P, createElementBlock as x, normalizeClass as z, createVNode as R, createCommentVNode as S } from "vue";
|
|
2
2
|
import { I as k } from "./widget-base-4c2d6265.js";
|
|
3
|
-
import { D as A } from "./drag-wrapper-
|
|
4
|
-
import { _ as B } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
5
|
-
import { w as F } from "./expression-
|
|
6
|
-
import { W as v } from "./enum-type-
|
|
7
|
-
import { c as N, a as $ } from "./share-field-
|
|
8
|
-
import { c as E } from "./slot-
|
|
3
|
+
import { D as A } from "./drag-wrapper-93832c04.js";
|
|
4
|
+
import { _ as B } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-9f89a457.js";
|
|
5
|
+
import { w as F } from "./expression-e50eb078.js";
|
|
6
|
+
import { W as v } from "./enum-type-6d4d22ca.js";
|
|
7
|
+
import { c as N, a as $ } from "./share-field-586b136d.js";
|
|
8
|
+
import { c as E } from "./slot-72f0670a.js";
|
|
9
9
|
function H(i) {
|
|
10
10
|
const n = y({}), { componentWrapperClass: c, customClass: a } = E({ widget: i.widget }), { exposed: t, attrs: d, extendAttrs: m, fieldKey: f, fieldObj: g } = N(i), { setAllRefList: l } = $(n.value), p = (o = !1) => {
|
|
11
11
|
l(v.setDisabled, { flag: o });
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { _ as o } from "./common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-b53b8bec.js";
|
|
2
|
-
import "vue";
|
|
3
|
-
import "./property-base-9b77b978.js";
|
|
4
|
-
import "./enum-type-f5b76bdf.js";
|
|
5
|
-
import "./enum-type-b832ec8a.js";
|
|
6
|
-
import "./baseImp-b5857827.js";
|
|
7
|
-
import "./expression-8b88cd21.js";
|
|
8
|
-
import "./source-map-b04aec4a.js";
|
|
9
|
-
import "./uuid-009aae31.js";
|
|
10
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
11
|
-
import "./esprima-e8d15055.js";
|
|
12
|
-
import "./icon-6342f929.js";
|
|
13
|
-
import "./dialog-0c8f5b0b.js";
|
|
14
|
-
import "element-plus";
|
|
15
|
-
import "./editor-wrapper-808b06fb.js";
|
|
16
|
-
import "./share-event-9856acb6.js";
|
|
17
|
-
import "./emitter-10592b70.js";
|
|
18
|
-
import "./share-editor-e86d7583.js";
|
|
19
|
-
import "./index-3b597f56.js";
|
|
20
|
-
import "./optionItem-6a935391.js";
|
|
21
|
-
import "./index-74922c1a.js";
|
|
22
|
-
import "./index-14efe18d.js";
|
|
23
|
-
import "./_plugin-vue_export-helper-dad06003.js";
|
|
24
|
-
export {
|
|
25
|
-
o as default
|
|
26
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { _ as o } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-d044b7b5.js";
|
|
2
|
-
import "vue";
|
|
3
|
-
import "./enum-type-b832ec8a.js";
|
|
4
|
-
import "./field-base-5547436d.js";
|
|
5
|
-
import "./widget-base-4c2d6265.js";
|
|
6
|
-
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-1f903af2.js";
|
|
7
|
-
import "./index-3b597f56.js";
|
|
8
|
-
import "./uuid-009aae31.js";
|
|
9
|
-
import "./enum-type-f5b76bdf.js";
|
|
10
|
-
import "./optionItem-6a935391.js";
|
|
11
|
-
import "./baseImp-b5857827.js";
|
|
12
|
-
import "./expression-8b88cd21.js";
|
|
13
|
-
import "./source-map-b04aec4a.js";
|
|
14
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
15
|
-
import "./esprima-e8d15055.js";
|
|
16
|
-
import "./icon-6342f929.js";
|
|
17
|
-
import "./dialog-0c8f5b0b.js";
|
|
18
|
-
import "element-plus";
|
|
19
|
-
import "./index-74922c1a.js";
|
|
20
|
-
import "./index-14efe18d.js";
|
|
21
|
-
import "./_plugin-vue_export-helper-dad06003.js";
|
|
22
|
-
import "./fieldobj-26f8789d.js";
|
|
23
|
-
import "./slot-55c73c2d.js";
|
|
24
|
-
import "./content-wrapper.vue_vue_type_script_setup_true_lang-c29a2dd2.js";
|
|
25
|
-
import "./drag-wrapper-dcfb2b05.js";
|
|
26
|
-
export {
|
|
27
|
-
o as default
|
|
28
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { _ as o } from "./feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-0279221b.js";
|
|
2
|
-
import "vue";
|
|
3
|
-
import "./widget-base-4c2d6265.js";
|
|
4
|
-
import "./drag-wrapper-dcfb2b05.js";
|
|
5
|
-
import "./baseImp-b5857827.js";
|
|
6
|
-
import "./enum-type-b832ec8a.js";
|
|
7
|
-
import "./enum-type-f5b76bdf.js";
|
|
8
|
-
import "./expression-8b88cd21.js";
|
|
9
|
-
import "./source-map-b04aec4a.js";
|
|
10
|
-
import "./uuid-009aae31.js";
|
|
11
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
12
|
-
import "./esprima-e8d15055.js";
|
|
13
|
-
import "./icon-6342f929.js";
|
|
14
|
-
import "./dialog-0c8f5b0b.js";
|
|
15
|
-
import "element-plus";
|
|
16
|
-
import "./index-3b597f56.js";
|
|
17
|
-
import "./optionItem-6a935391.js";
|
|
18
|
-
import "./index-74922c1a.js";
|
|
19
|
-
import "./slot-55c73c2d.js";
|
|
20
|
-
import "./_plugin-vue_export-helper-dad06003.js";
|
|
21
|
-
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-1f903af2.js";
|
|
22
|
-
import "./index-14efe18d.js";
|
|
23
|
-
import "./fieldobj-26f8789d.js";
|
|
24
|
-
import "./share-field-ec11e3b0.js";
|
|
25
|
-
import "./emitter-10592b70.js";
|
|
26
|
-
import "./multirow-4ef86b7f.js";
|
|
27
|
-
export {
|
|
28
|
-
o as default
|
|
29
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { _ as o } from "./table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-5c9ac743.js";
|
|
2
|
-
import "vue";
|
|
3
|
-
import "./enum-type-b832ec8a.js";
|
|
4
|
-
import "./baseImp-b5857827.js";
|
|
5
|
-
import "./enum-type-f5b76bdf.js";
|
|
6
|
-
import "./expression-8b88cd21.js";
|
|
7
|
-
import "./source-map-b04aec4a.js";
|
|
8
|
-
import "./uuid-009aae31.js";
|
|
9
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
10
|
-
import "./esprima-e8d15055.js";
|
|
11
|
-
import "./icon-6342f929.js";
|
|
12
|
-
import "./dialog-0c8f5b0b.js";
|
|
13
|
-
import "element-plus";
|
|
14
|
-
import "./drag-wrapper-dcfb2b05.js";
|
|
15
|
-
import "./widget-base-4c2d6265.js";
|
|
16
|
-
import "./index-3b597f56.js";
|
|
17
|
-
import "./optionItem-6a935391.js";
|
|
18
|
-
import "./index-74922c1a.js";
|
|
19
|
-
import "./slot-55c73c2d.js";
|
|
20
|
-
import "./_plugin-vue_export-helper-dad06003.js";
|
|
21
|
-
import "./multirow-4ef86b7f.js";
|
|
22
|
-
import "./emitter-10592b70.js";
|
|
23
|
-
export {
|
|
24
|
-
o as default
|
|
25
|
-
};
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { defineComponent as y, onMounted as S, watch as b, openBlock as v, createElementBlock as k, createElementVNode as w, ref as x, computed as M, nextTick as H, createBlock as P, mergeProps as C, unref as f, withCtx as W, createVNode as I } from "vue";
|
|
2
|
-
import { w as V } from "./expression-8b88cd21.js";
|
|
3
|
-
import { I as z } from "./field-base-5547436d.js";
|
|
4
|
-
import { c as B } from "./share-field-ec11e3b0.js";
|
|
5
|
-
import { _ as E } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-1f903af2.js";
|
|
6
|
-
import { S as T } from "./enum-type-b832ec8a.js";
|
|
7
|
-
import { _ as F } from "./_plugin-vue_export-helper-dad06003.js";
|
|
8
|
-
import "./source-map-b04aec4a.js";
|
|
9
|
-
import "./uuid-009aae31.js";
|
|
10
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
11
|
-
import "./esprima-e8d15055.js";
|
|
12
|
-
import "./widget-base-4c2d6265.js";
|
|
13
|
-
import "./emitter-10592b70.js";
|
|
14
|
-
import "./icon-6342f929.js";
|
|
15
|
-
import "./baseImp-b5857827.js";
|
|
16
|
-
import "./enum-type-f5b76bdf.js";
|
|
17
|
-
import "./dialog-0c8f5b0b.js";
|
|
18
|
-
import "element-plus";
|
|
19
|
-
import "./slot-55c73c2d.js";
|
|
20
|
-
import "./index-3b597f56.js";
|
|
21
|
-
import "./optionItem-6a935391.js";
|
|
22
|
-
import "./index-74922c1a.js";
|
|
23
|
-
import "./multirow-4ef86b7f.js";
|
|
24
|
-
import "./index-14efe18d.js";
|
|
25
|
-
import "./fieldobj-26f8789d.js";
|
|
26
|
-
const L = { class: "s-canvas" }, $ = ["width", "height"], j = /* @__PURE__ */ y({
|
|
27
|
-
__name: "_index",
|
|
28
|
-
props: {
|
|
29
|
-
identifyCode: {
|
|
30
|
-
type: String,
|
|
31
|
-
default: "1234"
|
|
32
|
-
},
|
|
33
|
-
fontSizeMin: {
|
|
34
|
-
type: Number,
|
|
35
|
-
default: 25
|
|
36
|
-
},
|
|
37
|
-
fontSizeMax: {
|
|
38
|
-
type: Number,
|
|
39
|
-
default: 35
|
|
40
|
-
},
|
|
41
|
-
backgroundColorMin: {
|
|
42
|
-
type: Number,
|
|
43
|
-
default: 255
|
|
44
|
-
},
|
|
45
|
-
backgroundColorMax: {
|
|
46
|
-
type: Number,
|
|
47
|
-
default: 255
|
|
48
|
-
},
|
|
49
|
-
colorMin: {
|
|
50
|
-
type: Number,
|
|
51
|
-
default: 0
|
|
52
|
-
},
|
|
53
|
-
colorMax: {
|
|
54
|
-
type: Number,
|
|
55
|
-
default: 160
|
|
56
|
-
},
|
|
57
|
-
lineColorMin: {
|
|
58
|
-
type: Number,
|
|
59
|
-
default: 40
|
|
60
|
-
},
|
|
61
|
-
lineColorMax: {
|
|
62
|
-
type: Number,
|
|
63
|
-
default: 180
|
|
64
|
-
},
|
|
65
|
-
dotColorMin: {
|
|
66
|
-
type: Number,
|
|
67
|
-
default: 0
|
|
68
|
-
},
|
|
69
|
-
dotColorMax: {
|
|
70
|
-
type: Number,
|
|
71
|
-
default: 255
|
|
72
|
-
},
|
|
73
|
-
contentWidth: {
|
|
74
|
-
type: Number,
|
|
75
|
-
default: 112
|
|
76
|
-
},
|
|
77
|
-
contentHeight: {
|
|
78
|
-
type: Number,
|
|
79
|
-
default: 40
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
setup(a) {
|
|
83
|
-
const t = a, n = (e, o) => Math.floor(Math.random() * (o - e) + e), d = (e, o) => {
|
|
84
|
-
let i = n(e, o), s = n(e, o), l = n(e, o);
|
|
85
|
-
return "rgb(" + i + "," + s + "," + l + ")";
|
|
86
|
-
}, h = (e) => {
|
|
87
|
-
for (let o = 0; o < 5; o++)
|
|
88
|
-
e.strokeStyle = d(t.lineColorMin, t.lineColorMax), e.beginPath(), e.moveTo(n(0, t.contentWidth), n(0, t.contentHeight)), e.lineTo(n(0, t.contentWidth), n(0, t.contentHeight)), e.stroke();
|
|
89
|
-
}, c = (e, o, i) => {
|
|
90
|
-
e.fillStyle = d(t.colorMin, t.colorMax), e.font = n(t.fontSizeMin, t.fontSizeMax) + "px SimHei";
|
|
91
|
-
let s = (i + 1) * (t.contentWidth / (t.identifyCode.length + 1)), l = n(t.fontSizeMax, t.contentHeight - 5);
|
|
92
|
-
var _ = n(-45, 45);
|
|
93
|
-
e.translate(s, l), e.rotate(_ * Math.PI / 180), e.fillText(o, 0, 0), e.rotate(-_ * Math.PI / 180), e.translate(-s, -l);
|
|
94
|
-
}, u = (e) => {
|
|
95
|
-
for (let o = 0; o < 80; o++)
|
|
96
|
-
e.fillStyle = d(0, 255), e.beginPath(), e.arc(n(0, t.contentWidth), n(0, t.contentHeight), 1, 0, 2 * Math.PI), e.fill();
|
|
97
|
-
}, m = () => {
|
|
98
|
-
let e = document.getElementById("s-canvas"), o = e == null ? void 0 : e.getContext("2d");
|
|
99
|
-
o.textBaseline = "bottom", o.fillStyle = d(t.backgroundColorMin, t.backgroundColorMax), o.fillRect(0, 0, t.contentWidth, t.contentHeight);
|
|
100
|
-
for (let i = 0; i < t.identifyCode.length; i++)
|
|
101
|
-
c(o, t.identifyCode[i], i);
|
|
102
|
-
h(o), u(o);
|
|
103
|
-
};
|
|
104
|
-
return S(() => {
|
|
105
|
-
m();
|
|
106
|
-
}), b(
|
|
107
|
-
() => t.identifyCode,
|
|
108
|
-
() => {
|
|
109
|
-
m();
|
|
110
|
-
}
|
|
111
|
-
), (e, o) => (v(), k("div", L, [
|
|
112
|
-
w("canvas", {
|
|
113
|
-
id: "s-canvas",
|
|
114
|
-
width: t.contentWidth,
|
|
115
|
-
height: t.contentHeight
|
|
116
|
-
}, null, 8, $)
|
|
117
|
-
]));
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
const A = /* @__PURE__ */ F(j, [["__scopeId", "data-v-176289d1"]]), O = (a, t) => (t = t + 1, Math.floor(Math.random() * (t - a) + a)), D = y({ componentName: V.FieldWidget }), _e = /* @__PURE__ */ y({
|
|
121
|
-
...D,
|
|
122
|
-
__name: "verifycode-widget",
|
|
123
|
-
props: { ...z },
|
|
124
|
-
setup(a, { expose: t }) {
|
|
125
|
-
const n = a, { fieldEditor: d, exposed: h, extendAttrs: c, attrs: u, fieldObj: m } = B(n);
|
|
126
|
-
let e = x(""), o = M(() => {
|
|
127
|
-
var r;
|
|
128
|
-
return (r = c.value) == null ? void 0 : r.content;
|
|
129
|
-
}), i = M(() => {
|
|
130
|
-
var r;
|
|
131
|
-
return (r = c.value) == null ? void 0 : r.identifyCodeLen;
|
|
132
|
-
});
|
|
133
|
-
const s = (r, g) => {
|
|
134
|
-
for (let p = 0; p < g; p++)
|
|
135
|
-
e.value += r[O(0, r.length)];
|
|
136
|
-
}, l = () => {
|
|
137
|
-
e.value = "", s(o.value, i.value);
|
|
138
|
-
}, _ = () => e.value, N = (r) => {
|
|
139
|
-
e.value = r;
|
|
140
|
-
};
|
|
141
|
-
return b(() => u.value, (r) => {
|
|
142
|
-
H(() => {
|
|
143
|
-
l();
|
|
144
|
-
});
|
|
145
|
-
}, { immediate: !0 }), t({ ...h, refresh: l, getValue: _, setValue: N }), (r, g) => (v(), P(E, C(r.$props, {
|
|
146
|
-
"prop-options": { fieldObj: f(m) }
|
|
147
|
-
}), {
|
|
148
|
-
default: W(() => {
|
|
149
|
-
var p;
|
|
150
|
-
return [
|
|
151
|
-
I(A, C({
|
|
152
|
-
ref_key: "fieldEditor",
|
|
153
|
-
ref: d
|
|
154
|
-
}, f(u), {
|
|
155
|
-
"identify-code": f(e),
|
|
156
|
-
class: f(T)((p = f(c)) == null ? void 0 : p.customClass)
|
|
157
|
-
}), null, 16, ["identify-code", "class"])
|
|
158
|
-
];
|
|
159
|
-
}),
|
|
160
|
-
_: 1
|
|
161
|
-
}, 16, ["prop-options"]));
|
|
162
|
-
}
|
|
163
|
-
});
|
|
164
|
-
export {
|
|
165
|
-
_e as default
|
|
166
|
-
};
|