hcui-package 1.9.61 → 1.9.62
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/hcui-package.es.js +59 -2
- package/dist/hcui-package.umd.js +8 -8
- package/package.json +1 -1
package/dist/hcui-package.es.js
CHANGED
|
@@ -78779,6 +78779,62 @@ function nee(e = {}, t, n, o) {
|
|
|
78779
78779
|
fetchLoading: m
|
|
78780
78780
|
};
|
|
78781
78781
|
}
|
|
78782
|
+
function oee() {
|
|
78783
|
+
const e = (n) => {
|
|
78784
|
+
const o = /<\/?(?:div|span|p|br|strong|b|i|em|u|ul|ol|li|a|img|h[1-6]|table|tr|td|th|thead|tbody|tfoot|input|button|form|label|select|option|textarea|hr|pre|code|blockquote|address|article|aside|footer|header|nav|section|time|mark|small|del|ins|sub|sup)[^>]*>/i, r = /<(?:br|hr|img|input|area|base|col|embed|link|meta|param|source|track|wbr)\s*\/?>/i, i = /&(?:amp|lt|gt|quot|apos|#\d+|#x[0-9a-fA-F]+);/;
|
|
78785
|
+
return o.test(n) || r.test(n) || i.test(n);
|
|
78786
|
+
};
|
|
78787
|
+
return {
|
|
78788
|
+
showCenterDialog: (n) => {
|
|
78789
|
+
const {
|
|
78790
|
+
title: o,
|
|
78791
|
+
warningText: r,
|
|
78792
|
+
description: i,
|
|
78793
|
+
positiveText: l = "确定",
|
|
78794
|
+
negativeText: s = "取消",
|
|
78795
|
+
type: c = "primary",
|
|
78796
|
+
onConfirm: f,
|
|
78797
|
+
onCancel: d = () => Promise.resolve()
|
|
78798
|
+
} = n, u = `center-${c}-dialog`, p = () => i ? typeof i == "function" ? a("div", { class: "description" }, [i()]) : typeof i == "object" ? a("div", { class: "description" }, [i]) : typeof i == "string" ? e(i) ? a("div", { class: "description" }, [
|
|
78799
|
+
a("div", {
|
|
78800
|
+
class: "description-text",
|
|
78801
|
+
innerHTML: i
|
|
78802
|
+
})
|
|
78803
|
+
]) : a("div", { class: "description" }, [
|
|
78804
|
+
a("div", { class: "description-text" }, i)
|
|
78805
|
+
]) : null : null, g = c === "primary" ? "info" : c;
|
|
78806
|
+
window.$dialog[g]({
|
|
78807
|
+
showIcon: !1,
|
|
78808
|
+
class: u,
|
|
78809
|
+
content: () => a("div", { class: "dialog-content" }, [
|
|
78810
|
+
// 警告图标
|
|
78811
|
+
a("div", { class: "icon-container" }, [
|
|
78812
|
+
a("i", { class: "iconfont icon-jingshi warning-icon" })
|
|
78813
|
+
]),
|
|
78814
|
+
// title
|
|
78815
|
+
a("div", { class: "title" }, o),
|
|
78816
|
+
// 红色边框的警告信息(只有当warningText存在时才渲染)
|
|
78817
|
+
r && a("div", { class: "warning-box", style: { whiteSpace: "pre-line" } }, [
|
|
78818
|
+
a("div", { class: "warning-text" }, r)
|
|
78819
|
+
]),
|
|
78820
|
+
// 底部说明
|
|
78821
|
+
p()
|
|
78822
|
+
]),
|
|
78823
|
+
positiveText: l,
|
|
78824
|
+
negativeText: s,
|
|
78825
|
+
positiveButtonProps: {
|
|
78826
|
+
type: c,
|
|
78827
|
+
size: "large"
|
|
78828
|
+
},
|
|
78829
|
+
negativeButtonProps: {
|
|
78830
|
+
size: "large"
|
|
78831
|
+
},
|
|
78832
|
+
onPositiveClick: f,
|
|
78833
|
+
onNegativeClick: d
|
|
78834
|
+
});
|
|
78835
|
+
}
|
|
78836
|
+
};
|
|
78837
|
+
}
|
|
78782
78838
|
const UJ = {
|
|
78783
78839
|
placeholder: "请输入",
|
|
78784
78840
|
width: "100%",
|
|
@@ -78786,7 +78842,7 @@ const UJ = {
|
|
|
78786
78842
|
padding: "0 0 0 10px",
|
|
78787
78843
|
fontSize: "14px"
|
|
78788
78844
|
};
|
|
78789
|
-
class
|
|
78845
|
+
class ree extends HTMLElement {
|
|
78790
78846
|
constructor() {
|
|
78791
78847
|
super(), this.inputTimestamps = [], this.timer = null, Object.assign(this, UJ), this.attachShadow({ mode: "open" });
|
|
78792
78848
|
}
|
|
@@ -78898,10 +78954,11 @@ class oee extends HTMLElement {
|
|
|
78898
78954
|
export {
|
|
78899
78955
|
tee as BaseForm,
|
|
78900
78956
|
QJ as BaseTable,
|
|
78901
|
-
|
|
78957
|
+
ree as CodeScannerInput,
|
|
78902
78958
|
AF as ColumnsDrawSetting,
|
|
78903
78959
|
eee as HcVxeTable,
|
|
78904
78960
|
m8 as InputTree,
|
|
78905
78961
|
ZJ as RangeInput,
|
|
78962
|
+
oee as useCenterDialog,
|
|
78906
78963
|
nee as usePagination
|
|
78907
78964
|
};
|