@dao-style/core 0.0.1-beta.13 → 0.0.1-beta.14
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/dao-style.es.js +16 -17
- package/dist/dao-style.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/dao-style.es.js
CHANGED
|
@@ -2684,7 +2684,7 @@ const _sfc_main$v = defineComponent({
|
|
|
2684
2684
|
const reference2 = ref(null);
|
|
2685
2685
|
const popper2 = ref(null);
|
|
2686
2686
|
const isOpen = ref(false);
|
|
2687
|
-
const actualAppendTo = ref("
|
|
2687
|
+
const actualAppendTo = ref("body");
|
|
2688
2688
|
const isTelDisabled = ref(false);
|
|
2689
2689
|
watch(appendTo, () => {
|
|
2690
2690
|
const unrefAppendTo = unref(appendTo);
|
|
@@ -5399,6 +5399,7 @@ const _sfc_main$b = defineComponent({
|
|
|
5399
5399
|
const onSelectFn = inject("onSelect");
|
|
5400
5400
|
const removeFn = inject("remove");
|
|
5401
5401
|
const selectState = inject("selectState");
|
|
5402
|
+
const { label, disabled, value } = toRefs(props);
|
|
5402
5403
|
const labelValue = computed(() => {
|
|
5403
5404
|
if (props.label === null || props.label === void 0) {
|
|
5404
5405
|
return props.value;
|
|
@@ -5406,10 +5407,10 @@ const _sfc_main$b = defineComponent({
|
|
|
5406
5407
|
return props.label;
|
|
5407
5408
|
});
|
|
5408
5409
|
const instance = reactive({
|
|
5409
|
-
label
|
|
5410
|
-
value
|
|
5411
|
-
disabled
|
|
5412
|
-
labelValue
|
|
5410
|
+
label,
|
|
5411
|
+
value,
|
|
5412
|
+
disabled,
|
|
5413
|
+
labelValue,
|
|
5413
5414
|
visible: true,
|
|
5414
5415
|
setVisible(val) {
|
|
5415
5416
|
instance.visible = val;
|
|
@@ -5421,8 +5422,8 @@ const _sfc_main$b = defineComponent({
|
|
|
5421
5422
|
return ((_a2 = selectState == null ? void 0 : selectState.selectedOption) == null ? void 0 : _a2.value) === instance.value;
|
|
5422
5423
|
});
|
|
5423
5424
|
const isFocus = computed(() => {
|
|
5424
|
-
var _a2;
|
|
5425
|
-
const index2 = (_a2 = selectState == null ? void 0 : selectState.options.indexOf(instance)) != null ?
|
|
5425
|
+
var _a2, _b2;
|
|
5426
|
+
const index2 = (_b2 = (_a2 = selectState == null ? void 0 : selectState.options) == null ? void 0 : _a2.indexOf(instance)) != null ? _b2 : -1;
|
|
5426
5427
|
return index2 === (selectState == null ? void 0 : selectState.optionFocusIndex);
|
|
5427
5428
|
});
|
|
5428
5429
|
watch(isFocus, (val) => {
|
|
@@ -5563,13 +5564,11 @@ const _sfc_main$a = defineComponent({
|
|
|
5563
5564
|
emit("update:current-page", value);
|
|
5564
5565
|
emit("page-change", value);
|
|
5565
5566
|
};
|
|
5566
|
-
watch(currentPage, (
|
|
5567
|
-
currentShowPage.value =
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
currentShowPage.value = val;
|
|
5572
|
-
emit("update:current-page", val);
|
|
5567
|
+
watch([currentPage, totalPage], () => {
|
|
5568
|
+
currentShowPage.value = props.currentPage;
|
|
5569
|
+
if (currentShowPage.value > totalPage.value) {
|
|
5570
|
+
currentShowPage.value = totalPage.value;
|
|
5571
|
+
emit("update:current-page", totalPage.value);
|
|
5573
5572
|
}
|
|
5574
5573
|
});
|
|
5575
5574
|
const updatePageSize = (val) => {
|
|
@@ -5616,14 +5615,14 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5616
5615
|
class: normalizeClass([
|
|
5617
5616
|
"icon-arrow-previous",
|
|
5618
5617
|
"dao-pagination__pager-prev",
|
|
5619
|
-
{ "dao-pagination__pager-icon--disabled": _ctx.currentPage
|
|
5618
|
+
{ "dao-pagination__pager-icon--disabled": _ctx.currentPage <= 1 }
|
|
5620
5619
|
]),
|
|
5621
5620
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.prevPage && _ctx.prevPage(...args))
|
|
5622
5621
|
}, null, 2),
|
|
5623
5622
|
withDirectives(createElementVNode("input", {
|
|
5624
5623
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.currentShowPage = $event),
|
|
5625
5624
|
class: "dao-pagination__pager-current",
|
|
5626
|
-
disabled: _ctx.totalPage
|
|
5625
|
+
disabled: _ctx.totalPage <= 1,
|
|
5627
5626
|
onKeydown: _cache[2] || (_cache[2] = withKeys((...args) => _ctx.targetPage && _ctx.targetPage(...args), ["enter"])),
|
|
5628
5627
|
onInput: _cache[3] || (_cache[3] = (...args) => _ctx.currentShowPageFormat && _ctx.currentShowPageFormat(...args))
|
|
5629
5628
|
}, null, 40, _hoisted_1$6), [
|
|
@@ -5634,7 +5633,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5634
5633
|
class: normalizeClass([
|
|
5635
5634
|
"icon-arrow-next",
|
|
5636
5635
|
"dao-pagination__pager-next",
|
|
5637
|
-
{ "dao-pagination__pager-icon--disabled": _ctx.currentPage
|
|
5636
|
+
{ "dao-pagination__pager-icon--disabled": _ctx.currentPage >= _ctx.totalPage }
|
|
5638
5637
|
]),
|
|
5639
5638
|
onClick: _cache[4] || (_cache[4] = (...args) => _ctx.nextPage && _ctx.nextPage(...args))
|
|
5640
5639
|
}, null, 2)
|