@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.esm.js
CHANGED
|
@@ -7655,7 +7655,10 @@ const PanelHandlerComponents = () => {
|
|
|
7655
7655
|
},
|
|
7656
7656
|
init() {
|
|
7657
7657
|
this.setStatus(this.$data.value);
|
|
7658
|
-
|
|
7658
|
+
let disabled = typeof formConfig.disabled === "function"
|
|
7659
|
+
? formConfig.disabled()
|
|
7660
|
+
: formConfig.disabled;
|
|
7661
|
+
if (disabled) {
|
|
7659
7662
|
this.disable();
|
|
7660
7663
|
}
|
|
7661
7664
|
this.setClickEvent();
|
|
@@ -8392,7 +8395,7 @@ const PanelHandlerComponents = () => {
|
|
|
8392
8395
|
<div class="pops-panel-item-left-text">
|
|
8393
8396
|
<p class="pops-panel-item-left-main-text">${formConfig.text}</p>${leftDescriptionText}</div>
|
|
8394
8397
|
<div class="pops-panel-input pops-user-select-none">
|
|
8395
|
-
<input type="${inputType}" placeholder="${formConfig.placeholder}">
|
|
8398
|
+
<input type="${inputType}" placeholder="${formConfig.placeholder ?? ""}">
|
|
8396
8399
|
</div>
|
|
8397
8400
|
`);
|
|
8398
8401
|
const PopsPanelInput = {
|
|
@@ -8424,7 +8427,11 @@ const PanelHandlerComponents = () => {
|
|
|
8424
8427
|
}
|
|
8425
8428
|
}
|
|
8426
8429
|
this.setInputChangeEvent();
|
|
8427
|
-
|
|
8430
|
+
// 是否禁用复选框
|
|
8431
|
+
let disabled = typeof formConfig.disabled === "function"
|
|
8432
|
+
? formConfig.disabled()
|
|
8433
|
+
: formConfig.disabled;
|
|
8434
|
+
if (disabled) {
|
|
8428
8435
|
this.disable();
|
|
8429
8436
|
}
|
|
8430
8437
|
if (typeof formConfig.handlerCallBack === "function") {
|
|
@@ -8602,7 +8609,10 @@ const PanelHandlerComponents = () => {
|
|
|
8602
8609
|
init() {
|
|
8603
8610
|
this.setValue(this.$data.value);
|
|
8604
8611
|
this.setChangeEvent();
|
|
8605
|
-
|
|
8612
|
+
let disabled = typeof formConfig.disabled === "function"
|
|
8613
|
+
? formConfig.disabled()
|
|
8614
|
+
: formConfig.disabled;
|
|
8615
|
+
if (disabled) {
|
|
8606
8616
|
this.disable();
|
|
8607
8617
|
}
|
|
8608
8618
|
},
|
|
@@ -8681,7 +8691,10 @@ const PanelHandlerComponents = () => {
|
|
|
8681
8691
|
this.initOption();
|
|
8682
8692
|
this.setChangeEvent();
|
|
8683
8693
|
this.setClickEvent();
|
|
8684
|
-
|
|
8694
|
+
let disabled = typeof formConfig.disabled === "function"
|
|
8695
|
+
? formConfig.disabled()
|
|
8696
|
+
: formConfig.disabled;
|
|
8697
|
+
if (disabled) {
|
|
8685
8698
|
this.disable();
|
|
8686
8699
|
}
|
|
8687
8700
|
},
|
|
@@ -11502,7 +11515,7 @@ class Pops {
|
|
|
11502
11515
|
/** 配置 */
|
|
11503
11516
|
config = {
|
|
11504
11517
|
/** 版本号 */
|
|
11505
|
-
version: "2025.7.
|
|
11518
|
+
version: "2025.7.15",
|
|
11506
11519
|
cssText: PopsCSS,
|
|
11507
11520
|
/** icon图标的svg代码 */
|
|
11508
11521
|
iconSVG: PopsIcon.$data,
|