Selaa lähdekoodia

添加iform框架

lex 1 vuosi sitten
vanhempi
commit
a723d941d9

+ 2 - 10
dev-dist/sw.js

@@ -67,7 +67,7 @@ if (!self.define) {
     });
   };
 }
-define(['./workbox-ab7aa862'], (function (workbox) { 'use strict';
+define(['./workbox-5357ef54'], (function (workbox) { 'use strict';
 
   self.skipWaiting();
   workbox.clientsClaim();
@@ -82,15 +82,7 @@ define(['./workbox-ab7aa862'], (function (workbox) { 'use strict';
     "revision": "3ca0b8505b4bec776b69afdba2768812"
   }, {
     "url": "index.html",
-<<<<<<< HEAD
-    "revision": "0.npjf49t2n6o"
-=======
-<<<<<<< Updated upstream
-    "revision": "0.d4djpv1e6ho"
-=======
-    "revision": "0.s7m31fjqcb8"
->>>>>>> Stashed changes
->>>>>>> startLogin
+    "revision": "0.5pln1ddsdpg"
   }], {});
   workbox.cleanupOutdatedCaches();
   workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {

+ 4 - 0
src/views/preview-window/index.module.less

@@ -0,0 +1,4 @@
+.previewWindow {
+  width: 100%;
+  height: 100%;
+}

+ 29 - 0
src/views/preview-window/index.tsx

@@ -0,0 +1,29 @@
+import { PropType, defineComponent, ref } from 'vue';
+import styles from './index.module.less';
+import { NModal } from 'naive-ui';
+
+export default defineComponent({
+  name: 'preview-window',
+  props: {
+    show: {
+      type: Boolean,
+      default: false
+    },
+    params: {
+      type: Object as PropType<any>,
+      default: () => ({})
+    }
+  },
+  setup() {
+    const show = ref(false);
+    return () => (
+      <NModal
+        v-model:show={show.value}
+        class={styles.previewWindow}
+        showIcon={false}
+        displayDirective="show">
+        232323
+      </NModal>
+    );
+  }
+});

+ 2 - 2
vite.config.ts

@@ -22,8 +22,8 @@ function resolve(dir: string) {
 }
 // https://vitejs.dev/config/
 // https://github.com/vitejs/vite/issues/1930 .env
-const proxyUrl = 'https://dev.kt.colexiu.com/';
-// const proxyUrl = 'https://test.lexiaoya.cn';
+// const proxyUrl = 'https://dev.kt.colexiu.com/';
+const proxyUrl = 'https://test.lexiaoya.cn';
 export default defineConfig({
   base: './',
   plugins: [