vue-devui 1.6.3-markdown.2 → 1.6.3-markdown.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-devui",
3
- "version": "1.6.3-markdown.2",
3
+ "version": "1.6.3-markdown.3",
4
4
  "license": "MIT",
5
5
  "description": "DevUI components based on Vite and Vue3",
6
6
  "keywords": [
package/vue-devui.es.js CHANGED
@@ -23221,8 +23221,14 @@ function useSelect$3(dropdownRef, props, states, setSoftFocus, ctx2) {
23221
23221
  const app = getCurrentInstance();
23222
23222
  const t = createI18nTranslate("DEditableSelect", app);
23223
23223
  const cachedOptions = ref(props.options);
23224
+ const hasCustomFilter = () => {
23225
+ return props.remote && lodash.exports.isFunction(props.remoteMethod) || lodash.exports.isFunction(props.filterMethod);
23226
+ };
23224
23227
  const filteredOptions = computed(() => {
23225
23228
  return cachedOptions.value.filter((option2) => {
23229
+ if (hasCustomFilter()) {
23230
+ return true;
23231
+ }
23226
23232
  return option2.label.toLocaleLowerCase().includes(states.query.toLocaleLowerCase().trim());
23227
23233
  });
23228
23234
  });
@@ -25557,7 +25563,7 @@ function useEditorMd(props, ctx2) {
25557
25563
  const startPos = value.lastIndexOf(nowPrefix, cursor.ch);
25558
25564
  const endPos = value.indexOf(" ", cursor.ch) > -1 ? value.indexOf(" ", cursor.ch) : value.length;
25559
25565
  hint = value.slice(startPos, cursor.ch);
25560
- if (startPos > 0 && value[startPos - 1] !== " " || startPos < 0 || !hint.includes(nowPrefix) || hint.endsWith(" ") || isImgRegx.test(hint)) {
25566
+ if (startPos < 0 || !hint.includes(nowPrefix) || hint.endsWith(" ") || isImgRegx.test(hint)) {
25561
25567
  cursorHint = "";
25562
25568
  cursorHintStart = -1;
25563
25569
  cursorHintEnd = -1;
@@ -44089,7 +44095,7 @@ const installs = [
44089
44095
  VirtualListInstall
44090
44096
  ];
44091
44097
  var vueDevui = {
44092
- version: "1.6.3-markdown.2",
44098
+ version: "1.6.3-markdown.3",
44093
44099
  install(app) {
44094
44100
  installs.forEach((p) => app.use(p));
44095
44101
  }