zartui 3.2.2 → 3.2.4
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/es/action-sheet/ActionSheet.d.ts +1 -1
- package/es/action-sheet/ActionSheet.mjs +2 -3
- package/es/action-sheet/index.css +1 -1
- package/es/dialog/Dialog.d.ts +6 -6
- package/es/dialog/Dialog.mjs +4 -4
- package/es/dialog/index.d.ts +4 -4
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/switch/Switch.mjs +5 -1
- package/es/switch/index.css +1 -1
- package/es/tabs/Tabs.mjs +6 -2
- package/es/tabs/index.css +1 -1
- package/lib/action-sheet/ActionSheet.d.ts +1 -1
- package/lib/action-sheet/ActionSheet.js +2 -3
- package/lib/action-sheet/index.css +1 -1
- package/lib/dialog/Dialog.d.ts +6 -6
- package/lib/dialog/Dialog.js +4 -4
- package/lib/dialog/index.d.ts +4 -4
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/switch/Switch.js +5 -1
- package/lib/switch/index.css +1 -1
- package/lib/tabs/Tabs.js +6 -2
- package/lib/tabs/index.css +1 -1
- package/lib/web-types.json +1 -1
- package/lib/zartui.cjs.js +18 -11
- package/lib/zartui.es.js +18 -11
- package/lib/zartui.js +18 -11
- package/lib/zartui.min.js +1 -1
- package/package.json +5 -5
package/lib/zartui.cjs.js
CHANGED
|
@@ -1315,7 +1315,6 @@ var stdin_default$1R = vue.defineComponent({
|
|
|
1315
1315
|
"class": bem$1i("header")
|
|
1316
1316
|
}, [props.title, props.closeable && vue.createVNode(Icon, {
|
|
1317
1317
|
"name": props.closeIcon,
|
|
1318
|
-
"size": "16",
|
|
1319
1318
|
"class": [bem$1i("close"), HAPTICS_FEEDBACK],
|
|
1320
1319
|
"onClick": onCancel
|
|
1321
1320
|
}, null)]);
|
|
@@ -1351,7 +1350,7 @@ var stdin_default$1R = vue.defineComponent({
|
|
|
1351
1350
|
};
|
|
1352
1351
|
const renderAction = (action, index) => {
|
|
1353
1352
|
const {
|
|
1354
|
-
|
|
1353
|
+
background,
|
|
1355
1354
|
border,
|
|
1356
1355
|
loading,
|
|
1357
1356
|
callback,
|
|
@@ -1376,7 +1375,7 @@ var stdin_default$1R = vue.defineComponent({
|
|
|
1376
1375
|
return vue.createVNode("button", {
|
|
1377
1376
|
"type": "button",
|
|
1378
1377
|
"style": {
|
|
1379
|
-
background
|
|
1378
|
+
background,
|
|
1380
1379
|
border
|
|
1381
1380
|
},
|
|
1382
1381
|
"class": [
|
|
@@ -4568,6 +4567,12 @@ var stdin_default$1y = vue.defineComponent({
|
|
|
4568
4567
|
}
|
|
4569
4568
|
return 0;
|
|
4570
4569
|
});
|
|
4570
|
+
vue.watch(() => titleRefs.value, () => {
|
|
4571
|
+
if (navRef.value && scrollable.value) {
|
|
4572
|
+
state.showLeftOverlay = Math.floor(navRef.value.scrollLeft) > 0;
|
|
4573
|
+
state.showRightOverlay = hasScrollToEnd(navRef.value);
|
|
4574
|
+
}
|
|
4575
|
+
});
|
|
4571
4576
|
const scrollIntoView = (immediate) => {
|
|
4572
4577
|
const nav = navRef.value;
|
|
4573
4578
|
const titles = titleRefs.value;
|
|
@@ -4744,7 +4749,6 @@ var stdin_default$1y = vue.defineComponent({
|
|
|
4744
4749
|
"class": bem$16("indicator-left")
|
|
4745
4750
|
}, [vue.createVNode(Icon, {
|
|
4746
4751
|
"name": "back",
|
|
4747
|
-
"size": "16",
|
|
4748
4752
|
"class": bem$16("icon-indicator-left")
|
|
4749
4753
|
}, null)]);
|
|
4750
4754
|
}
|
|
@@ -4756,7 +4760,6 @@ var stdin_default$1y = vue.defineComponent({
|
|
|
4756
4760
|
"class": bem$16("indicator-right")
|
|
4757
4761
|
}, [vue.createVNode(Icon, {
|
|
4758
4762
|
"name": "arrow-right",
|
|
4759
|
-
"size": "16",
|
|
4760
4763
|
"class": bem$16("icon-indicator-right")
|
|
4761
4764
|
}, null)]);
|
|
4762
4765
|
}
|
|
@@ -7987,11 +7990,11 @@ const dialogProps = extend({}, popupSharedProps, {
|
|
|
7987
7990
|
showCancelButton: Boolean,
|
|
7988
7991
|
cancelButtonText: String,
|
|
7989
7992
|
cancelButtonColor: String,
|
|
7990
|
-
|
|
7993
|
+
cancelButtonBackground: String,
|
|
7991
7994
|
cancelButtonDisabled: Boolean,
|
|
7992
7995
|
confirmButtonText: String,
|
|
7993
7996
|
confirmButtonColor: String,
|
|
7994
|
-
|
|
7997
|
+
confirmButtonBackground: String,
|
|
7995
7998
|
confirmButtonDisabled: Boolean,
|
|
7996
7999
|
showConfirmButton: truthProp,
|
|
7997
8000
|
closeOnClickOverlay: Boolean
|
|
@@ -8127,7 +8130,7 @@ var stdin_default$19 = vue.defineComponent({
|
|
|
8127
8130
|
"class": bem$O("cancel"),
|
|
8128
8131
|
"style": {
|
|
8129
8132
|
color: props.cancelButtonColor,
|
|
8130
|
-
background: props.
|
|
8133
|
+
background: props.cancelButtonBackground
|
|
8131
8134
|
},
|
|
8132
8135
|
"loading": loading.cancel,
|
|
8133
8136
|
"disabled": props.cancelButtonDisabled,
|
|
@@ -8140,7 +8143,7 @@ var stdin_default$19 = vue.defineComponent({
|
|
|
8140
8143
|
}),
|
|
8141
8144
|
"style": {
|
|
8142
8145
|
color: props.confirmButtonColor,
|
|
8143
|
-
background: props.
|
|
8146
|
+
background: props.confirmButtonBackground
|
|
8144
8147
|
},
|
|
8145
8148
|
"loading": loading.confirm,
|
|
8146
8149
|
"disabled": props.confirmButtonDisabled,
|
|
@@ -18411,6 +18414,9 @@ var stdin_default$e = vue.defineComponent({
|
|
|
18411
18414
|
fontSize: addUnit(size),
|
|
18412
18415
|
backgroundColor: checked ? activeColor : inactiveColor
|
|
18413
18416
|
};
|
|
18417
|
+
const nodeStyle = {
|
|
18418
|
+
fontSize: addUnit(size)
|
|
18419
|
+
};
|
|
18414
18420
|
return vue.createVNode("div", {
|
|
18415
18421
|
"role": "switch",
|
|
18416
18422
|
"class": bem$7({
|
|
@@ -18423,7 +18429,8 @@ var stdin_default$e = vue.defineComponent({
|
|
|
18423
18429
|
"aria-checked": checked,
|
|
18424
18430
|
"onClick": onClick
|
|
18425
18431
|
}, [vue.createVNode("div", {
|
|
18426
|
-
"class": bem$7("node")
|
|
18432
|
+
"class": bem$7("node"),
|
|
18433
|
+
"style": nodeStyle
|
|
18427
18434
|
}, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
|
|
18428
18435
|
};
|
|
18429
18436
|
}
|
|
@@ -20982,7 +20989,7 @@ const Lazyload = {
|
|
|
20982
20989
|
});
|
|
20983
20990
|
}
|
|
20984
20991
|
};
|
|
20985
|
-
const version = "3.2.
|
|
20992
|
+
const version = "3.2.4";
|
|
20986
20993
|
function install(app) {
|
|
20987
20994
|
const components = [
|
|
20988
20995
|
ActionSheet,
|
package/lib/zartui.es.js
CHANGED
|
@@ -1313,7 +1313,6 @@ var stdin_default$1R = defineComponent({
|
|
|
1313
1313
|
"class": bem$1i("header")
|
|
1314
1314
|
}, [props.title, props.closeable && createVNode(Icon, {
|
|
1315
1315
|
"name": props.closeIcon,
|
|
1316
|
-
"size": "16",
|
|
1317
1316
|
"class": [bem$1i("close"), HAPTICS_FEEDBACK],
|
|
1318
1317
|
"onClick": onCancel
|
|
1319
1318
|
}, null)]);
|
|
@@ -1349,7 +1348,7 @@ var stdin_default$1R = defineComponent({
|
|
|
1349
1348
|
};
|
|
1350
1349
|
const renderAction = (action, index) => {
|
|
1351
1350
|
const {
|
|
1352
|
-
|
|
1351
|
+
background,
|
|
1353
1352
|
border,
|
|
1354
1353
|
loading,
|
|
1355
1354
|
callback,
|
|
@@ -1374,7 +1373,7 @@ var stdin_default$1R = defineComponent({
|
|
|
1374
1373
|
return createVNode("button", {
|
|
1375
1374
|
"type": "button",
|
|
1376
1375
|
"style": {
|
|
1377
|
-
background
|
|
1376
|
+
background,
|
|
1378
1377
|
border
|
|
1379
1378
|
},
|
|
1380
1379
|
"class": [
|
|
@@ -4566,6 +4565,12 @@ var stdin_default$1y = defineComponent({
|
|
|
4566
4565
|
}
|
|
4567
4566
|
return 0;
|
|
4568
4567
|
});
|
|
4568
|
+
watch(() => titleRefs.value, () => {
|
|
4569
|
+
if (navRef.value && scrollable.value) {
|
|
4570
|
+
state.showLeftOverlay = Math.floor(navRef.value.scrollLeft) > 0;
|
|
4571
|
+
state.showRightOverlay = hasScrollToEnd(navRef.value);
|
|
4572
|
+
}
|
|
4573
|
+
});
|
|
4569
4574
|
const scrollIntoView = (immediate) => {
|
|
4570
4575
|
const nav = navRef.value;
|
|
4571
4576
|
const titles = titleRefs.value;
|
|
@@ -4742,7 +4747,6 @@ var stdin_default$1y = defineComponent({
|
|
|
4742
4747
|
"class": bem$16("indicator-left")
|
|
4743
4748
|
}, [createVNode(Icon, {
|
|
4744
4749
|
"name": "back",
|
|
4745
|
-
"size": "16",
|
|
4746
4750
|
"class": bem$16("icon-indicator-left")
|
|
4747
4751
|
}, null)]);
|
|
4748
4752
|
}
|
|
@@ -4754,7 +4758,6 @@ var stdin_default$1y = defineComponent({
|
|
|
4754
4758
|
"class": bem$16("indicator-right")
|
|
4755
4759
|
}, [createVNode(Icon, {
|
|
4756
4760
|
"name": "arrow-right",
|
|
4757
|
-
"size": "16",
|
|
4758
4761
|
"class": bem$16("icon-indicator-right")
|
|
4759
4762
|
}, null)]);
|
|
4760
4763
|
}
|
|
@@ -7985,11 +7988,11 @@ const dialogProps = extend({}, popupSharedProps, {
|
|
|
7985
7988
|
showCancelButton: Boolean,
|
|
7986
7989
|
cancelButtonText: String,
|
|
7987
7990
|
cancelButtonColor: String,
|
|
7988
|
-
|
|
7991
|
+
cancelButtonBackground: String,
|
|
7989
7992
|
cancelButtonDisabled: Boolean,
|
|
7990
7993
|
confirmButtonText: String,
|
|
7991
7994
|
confirmButtonColor: String,
|
|
7992
|
-
|
|
7995
|
+
confirmButtonBackground: String,
|
|
7993
7996
|
confirmButtonDisabled: Boolean,
|
|
7994
7997
|
showConfirmButton: truthProp,
|
|
7995
7998
|
closeOnClickOverlay: Boolean
|
|
@@ -8125,7 +8128,7 @@ var stdin_default$19 = defineComponent({
|
|
|
8125
8128
|
"class": bem$O("cancel"),
|
|
8126
8129
|
"style": {
|
|
8127
8130
|
color: props.cancelButtonColor,
|
|
8128
|
-
background: props.
|
|
8131
|
+
background: props.cancelButtonBackground
|
|
8129
8132
|
},
|
|
8130
8133
|
"loading": loading.cancel,
|
|
8131
8134
|
"disabled": props.cancelButtonDisabled,
|
|
@@ -8138,7 +8141,7 @@ var stdin_default$19 = defineComponent({
|
|
|
8138
8141
|
}),
|
|
8139
8142
|
"style": {
|
|
8140
8143
|
color: props.confirmButtonColor,
|
|
8141
|
-
background: props.
|
|
8144
|
+
background: props.confirmButtonBackground
|
|
8142
8145
|
},
|
|
8143
8146
|
"loading": loading.confirm,
|
|
8144
8147
|
"disabled": props.confirmButtonDisabled,
|
|
@@ -18409,6 +18412,9 @@ var stdin_default$e = defineComponent({
|
|
|
18409
18412
|
fontSize: addUnit(size),
|
|
18410
18413
|
backgroundColor: checked ? activeColor : inactiveColor
|
|
18411
18414
|
};
|
|
18415
|
+
const nodeStyle = {
|
|
18416
|
+
fontSize: addUnit(size)
|
|
18417
|
+
};
|
|
18412
18418
|
return createVNode("div", {
|
|
18413
18419
|
"role": "switch",
|
|
18414
18420
|
"class": bem$7({
|
|
@@ -18421,7 +18427,8 @@ var stdin_default$e = defineComponent({
|
|
|
18421
18427
|
"aria-checked": checked,
|
|
18422
18428
|
"onClick": onClick
|
|
18423
18429
|
}, [createVNode("div", {
|
|
18424
|
-
"class": bem$7("node")
|
|
18430
|
+
"class": bem$7("node"),
|
|
18431
|
+
"style": nodeStyle
|
|
18425
18432
|
}, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
|
|
18426
18433
|
};
|
|
18427
18434
|
}
|
|
@@ -20980,7 +20987,7 @@ const Lazyload = {
|
|
|
20980
20987
|
});
|
|
20981
20988
|
}
|
|
20982
20989
|
};
|
|
20983
|
-
const version = "3.2.
|
|
20990
|
+
const version = "3.2.4";
|
|
20984
20991
|
function install(app) {
|
|
20985
20992
|
const components = [
|
|
20986
20993
|
ActionSheet,
|
package/lib/zartui.js
CHANGED
|
@@ -1585,7 +1585,6 @@
|
|
|
1585
1585
|
"class": bem$1i("header")
|
|
1586
1586
|
}, [props.title, props.closeable && vue.createVNode(Icon, {
|
|
1587
1587
|
"name": props.closeIcon,
|
|
1588
|
-
"size": "16",
|
|
1589
1588
|
"class": [bem$1i("close"), HAPTICS_FEEDBACK],
|
|
1590
1589
|
"onClick": onCancel
|
|
1591
1590
|
}, null)]);
|
|
@@ -1621,7 +1620,7 @@
|
|
|
1621
1620
|
};
|
|
1622
1621
|
const renderAction = (action, index2) => {
|
|
1623
1622
|
const {
|
|
1624
|
-
|
|
1623
|
+
background,
|
|
1625
1624
|
border,
|
|
1626
1625
|
loading,
|
|
1627
1626
|
callback,
|
|
@@ -1646,7 +1645,7 @@
|
|
|
1646
1645
|
return vue.createVNode("button", {
|
|
1647
1646
|
"type": "button",
|
|
1648
1647
|
"style": {
|
|
1649
|
-
background
|
|
1648
|
+
background,
|
|
1650
1649
|
border
|
|
1651
1650
|
},
|
|
1652
1651
|
"class": [
|
|
@@ -4835,6 +4834,12 @@
|
|
|
4835
4834
|
}
|
|
4836
4835
|
return 0;
|
|
4837
4836
|
});
|
|
4837
|
+
vue.watch(() => titleRefs.value, () => {
|
|
4838
|
+
if (navRef.value && scrollable.value) {
|
|
4839
|
+
state.showLeftOverlay = Math.floor(navRef.value.scrollLeft) > 0;
|
|
4840
|
+
state.showRightOverlay = hasScrollToEnd(navRef.value);
|
|
4841
|
+
}
|
|
4842
|
+
});
|
|
4838
4843
|
const scrollIntoView = (immediate) => {
|
|
4839
4844
|
const nav = navRef.value;
|
|
4840
4845
|
const titles = titleRefs.value;
|
|
@@ -5011,7 +5016,6 @@
|
|
|
5011
5016
|
"class": bem$16("indicator-left")
|
|
5012
5017
|
}, [vue.createVNode(Icon, {
|
|
5013
5018
|
"name": "back",
|
|
5014
|
-
"size": "16",
|
|
5015
5019
|
"class": bem$16("icon-indicator-left")
|
|
5016
5020
|
}, null)]);
|
|
5017
5021
|
}
|
|
@@ -5023,7 +5027,6 @@
|
|
|
5023
5027
|
"class": bem$16("indicator-right")
|
|
5024
5028
|
}, [vue.createVNode(Icon, {
|
|
5025
5029
|
"name": "arrow-right",
|
|
5026
|
-
"size": "16",
|
|
5027
5030
|
"class": bem$16("icon-indicator-right")
|
|
5028
5031
|
}, null)]);
|
|
5029
5032
|
}
|
|
@@ -8231,11 +8234,11 @@
|
|
|
8231
8234
|
showCancelButton: Boolean,
|
|
8232
8235
|
cancelButtonText: String,
|
|
8233
8236
|
cancelButtonColor: String,
|
|
8234
|
-
|
|
8237
|
+
cancelButtonBackground: String,
|
|
8235
8238
|
cancelButtonDisabled: Boolean,
|
|
8236
8239
|
confirmButtonText: String,
|
|
8237
8240
|
confirmButtonColor: String,
|
|
8238
|
-
|
|
8241
|
+
confirmButtonBackground: String,
|
|
8239
8242
|
confirmButtonDisabled: Boolean,
|
|
8240
8243
|
showConfirmButton: truthProp,
|
|
8241
8244
|
closeOnClickOverlay: Boolean
|
|
@@ -8371,7 +8374,7 @@
|
|
|
8371
8374
|
"class": bem$O("cancel"),
|
|
8372
8375
|
"style": {
|
|
8373
8376
|
color: props.cancelButtonColor,
|
|
8374
|
-
background: props.
|
|
8377
|
+
background: props.cancelButtonBackground
|
|
8375
8378
|
},
|
|
8376
8379
|
"loading": loading.cancel,
|
|
8377
8380
|
"disabled": props.cancelButtonDisabled,
|
|
@@ -8384,7 +8387,7 @@
|
|
|
8384
8387
|
}),
|
|
8385
8388
|
"style": {
|
|
8386
8389
|
color: props.confirmButtonColor,
|
|
8387
|
-
background: props.
|
|
8390
|
+
background: props.confirmButtonBackground
|
|
8388
8391
|
},
|
|
8389
8392
|
"loading": loading.confirm,
|
|
8390
8393
|
"disabled": props.confirmButtonDisabled,
|
|
@@ -22508,6 +22511,9 @@
|
|
|
22508
22511
|
fontSize: addUnit(size),
|
|
22509
22512
|
backgroundColor: checked ? activeColor : inactiveColor
|
|
22510
22513
|
};
|
|
22514
|
+
const nodeStyle = {
|
|
22515
|
+
fontSize: addUnit(size)
|
|
22516
|
+
};
|
|
22511
22517
|
return vue.createVNode("div", {
|
|
22512
22518
|
"role": "switch",
|
|
22513
22519
|
"class": bem$7({
|
|
@@ -22520,7 +22526,8 @@
|
|
|
22520
22526
|
"aria-checked": checked,
|
|
22521
22527
|
"onClick": onClick
|
|
22522
22528
|
}, [vue.createVNode("div", {
|
|
22523
|
-
"class": bem$7("node")
|
|
22529
|
+
"class": bem$7("node"),
|
|
22530
|
+
"style": nodeStyle
|
|
22524
22531
|
}, [renderLoading()]), (_a = slots.background) == null ? void 0 : _a.call(slots)]);
|
|
22525
22532
|
};
|
|
22526
22533
|
}
|
|
@@ -25059,7 +25066,7 @@
|
|
|
25059
25066
|
});
|
|
25060
25067
|
}
|
|
25061
25068
|
};
|
|
25062
|
-
const version = "3.2.
|
|
25069
|
+
const version = "3.2.4";
|
|
25063
25070
|
function install(app) {
|
|
25064
25071
|
const components = [
|
|
25065
25072
|
ActionSheet,
|