@whitesev/pops 2.2.2 → 2.2.3
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/index.amd.js +19 -6
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +19 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +19 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +19 -6
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +19 -6
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +19 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/components/panel/types/components-input.d.ts +9 -1
- package/dist/types/src/components/panel/types/components-select.d.ts +6 -1
- package/dist/types/src/components/panel/types/components-switch.d.ts +6 -1
- package/dist/types/src/components/panel/types/components-textarea.d.ts +8 -2
- package/package.json +1 -1
- package/src/Pops.ts +1 -1
- package/src/components/panel/handlerComponents.ts +25 -6
- package/src/components/panel/types/components-input.ts +9 -1
- package/src/components/panel/types/components-select.ts +6 -1
- package/src/components/panel/types/components-switch.ts +6 -1
- package/src/components/panel/types/components-textarea.ts +8 -2
package/dist/index.iife.js
CHANGED
|
@@ -7658,7 +7658,10 @@ var pops = (function () {
|
|
|
7658
7658
|
},
|
|
7659
7659
|
init() {
|
|
7660
7660
|
this.setStatus(this.$data.value);
|
|
7661
|
-
|
|
7661
|
+
let disabled = typeof formConfig.disabled === "function"
|
|
7662
|
+
? formConfig.disabled()
|
|
7663
|
+
: formConfig.disabled;
|
|
7664
|
+
if (disabled) {
|
|
7662
7665
|
this.disable();
|
|
7663
7666
|
}
|
|
7664
7667
|
this.setClickEvent();
|
|
@@ -8395,7 +8398,7 @@ var pops = (function () {
|
|
|
8395
8398
|
<div class="pops-panel-item-left-text">
|
|
8396
8399
|
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
8397
8400
|
<div class="pops-panel-input pops-user-select-none">
|
|
8398
|
-
<input type="${inputType}" placeholder="${formConfig.placeholder}">
|
|
8401
|
+
<input type="${inputType}" placeholder="${formConfig.placeholder ?? ""}">
|
|
8399
8402
|
</div>
|
|
8400
8403
|
`);
|
|
8401
8404
|
const PopsPanelInput = {
|
|
@@ -8427,7 +8430,11 @@ var pops = (function () {
|
|
|
8427
8430
|
}
|
|
8428
8431
|
}
|
|
8429
8432
|
this.setInputChangeEvent();
|
|
8430
|
-
|
|
8433
|
+
// 是否禁用复选框
|
|
8434
|
+
let disabled = typeof formConfig.disabled === "function"
|
|
8435
|
+
? formConfig.disabled()
|
|
8436
|
+
: formConfig.disabled;
|
|
8437
|
+
if (disabled) {
|
|
8431
8438
|
this.disable();
|
|
8432
8439
|
}
|
|
8433
8440
|
if (typeof formConfig.handlerCallBack === "function") {
|
|
@@ -8605,7 +8612,10 @@ var pops = (function () {
|
|
|
8605
8612
|
init() {
|
|
8606
8613
|
this.setValue(this.$data.value);
|
|
8607
8614
|
this.setChangeEvent();
|
|
8608
|
-
|
|
8615
|
+
let disabled = typeof formConfig.disabled === "function"
|
|
8616
|
+
? formConfig.disabled()
|
|
8617
|
+
: formConfig.disabled;
|
|
8618
|
+
if (disabled) {
|
|
8609
8619
|
this.disable();
|
|
8610
8620
|
}
|
|
8611
8621
|
},
|
|
@@ -8684,7 +8694,10 @@ var pops = (function () {
|
|
|
8684
8694
|
this.initOption();
|
|
8685
8695
|
this.setChangeEvent();
|
|
8686
8696
|
this.setClickEvent();
|
|
8687
|
-
|
|
8697
|
+
let disabled = typeof formConfig.disabled === "function"
|
|
8698
|
+
? formConfig.disabled()
|
|
8699
|
+
: formConfig.disabled;
|
|
8700
|
+
if (disabled) {
|
|
8688
8701
|
this.disable();
|
|
8689
8702
|
}
|
|
8690
8703
|
},
|
|
@@ -11505,7 +11518,7 @@ var pops = (function () {
|
|
|
11505
11518
|
/** 配置 */
|
|
11506
11519
|
config = {
|
|
11507
11520
|
/** 版本号 */
|
|
11508
|
-
version: "2025.7.
|
|
11521
|
+
version: "2025.7.15",
|
|
11509
11522
|
cssText: PopsCSS,
|
|
11510
11523
|
/** icon图标的svg代码 */
|
|
11511
11524
|
iconSVG: PopsIcon.$data,
|