dfish-widget 0.1.493 → 0.1.494

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/lib/index.esm.js CHANGED
@@ -2335,11 +2335,11 @@ const templateHooks = {
2335
2335
  let props = $$1.lodash.omit(this.p.cmd, 'template');
2336
2336
  if (t && typeof t === 'string') {
2337
2337
  let sfx = '.vue';
2338
- t = t.startsWith('@/') ? t.slice(2) : $$1.x.templateDir + t;
2338
+ t = t.startsWith('@/') ? t.slice(2) : ($$1.x.templateDir || '') + t;
2339
2339
  if (!t.endsWith(sfx)) t += sfx;
2340
2340
  com = defineAsyncComponent({
2341
- errorComponent: h(script$1j, {text: `${t} 不存在`, icon: 'error', title: '操作提示'}),
2342
- loader: () => import(/* @vite-ignore */`@/${t}`),
2341
+ loader: () => import(/* @vite-ignore */`/src/${t}`),
2342
+ errorComponent: h(script$1j, {text: `${t} 不存在`, icon: 'error', title: '操作提示', style: {width: 'auto', height: 'auto'}})
2343
2343
  });
2344
2344
  } else {
2345
2345
  com = toRaw(t || templateHooks[this.p.cmd.type]);