@dao-style/core 0.2.2 → 0.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/dao-style.es.js +6 -3
- 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
|
@@ -3764,7 +3764,7 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3764
3764
|
return openBlock(), createElementBlock("div", {
|
|
3765
3765
|
class: normalizeClass([
|
|
3766
3766
|
"dao-form",
|
|
3767
|
-
|
|
3767
|
+
"dao-form__" + _ctx.type
|
|
3768
3768
|
])
|
|
3769
3769
|
}, [
|
|
3770
3770
|
renderSlot(_ctx.$slots, "default", { classNames: {
|
|
@@ -5520,7 +5520,7 @@ const _sfc_main$j = defineComponent({
|
|
|
5520
5520
|
provide("onSelect", onSelect);
|
|
5521
5521
|
provide("remove", remove);
|
|
5522
5522
|
provide("selectState", state);
|
|
5523
|
-
watch(modelValue, () => checkUpdatedOption());
|
|
5523
|
+
watch(modelValue, () => checkUpdatedOption(), { deep: true });
|
|
5524
5524
|
const bindTriggerEleOutsideClick = {
|
|
5525
5525
|
cleanup: void 0,
|
|
5526
5526
|
visible() {
|
|
@@ -5620,6 +5620,9 @@ const _sfc_main$j = defineComponent({
|
|
|
5620
5620
|
}
|
|
5621
5621
|
}
|
|
5622
5622
|
};
|
|
5623
|
+
onBeforeUnmount(() => {
|
|
5624
|
+
provide("remove", null);
|
|
5625
|
+
});
|
|
5623
5626
|
return {
|
|
5624
5627
|
popper: popper2,
|
|
5625
5628
|
searchInput,
|
|
@@ -5779,7 +5782,6 @@ const _sfc_main$i = defineComponent({
|
|
|
5779
5782
|
const optionRef = ref(null);
|
|
5780
5783
|
const addFn = inject("add");
|
|
5781
5784
|
const onSelectFn = inject("onSelect");
|
|
5782
|
-
const removeFn = inject("remove");
|
|
5783
5785
|
const selectState = inject("selectState");
|
|
5784
5786
|
const { label, disabled, value } = toRefs(props);
|
|
5785
5787
|
const labelValue = computed(() => {
|
|
@@ -5826,6 +5828,7 @@ const _sfc_main$i = defineComponent({
|
|
|
5826
5828
|
}
|
|
5827
5829
|
onBeforeUnmount(() => {
|
|
5828
5830
|
var _a2;
|
|
5831
|
+
const removeFn = inject("remove");
|
|
5829
5832
|
if (typeof removeFn === "function") {
|
|
5830
5833
|
const index2 = (_a2 = selectState == null ? void 0 : selectState.options.indexOf(instance)) != null ? _a2 : -1;
|
|
5831
5834
|
removeFn(index2);
|