/**
 * ldesign v0.4.2
 * (c) 2023 ldesign
 * @license MIT
 */

import { ref, provide, onUpdated } from 'vue';

var TDisplayNoneElementRefresh = "t-display-none-element-refresh";
function useDestroyOnClose() {
  var refresh = ref(0);
  provide(TDisplayNoneElementRefresh, refresh);
  onUpdated(function () {
    refresh.value += 1;
  });
}

export { TDisplayNoneElementRefresh, useDestroyOnClose as default };
//# sourceMappingURL=useDestroyOnClose.mjs.map
