night-cherry 1 месяц назад
Родитель
Сommit
822332536d
5 измененных файлов с 23 добавлено и 47 удалено
  1. 0 1
      dist/bundle.js
  2. 0 31
      dist/bundle.js.LICENSE.txt
  3. 0 1
      dist/index.html
  4. 17 13
      index.html
  5. 6 1
      webpack.config.js

Разница между файлами не показана из-за своего большого размера
+ 0 - 1
dist/bundle.js


+ 0 - 31
dist/bundle.js.LICENSE.txt

@@ -1,31 +0,0 @@
-/*!
-  * shared v11.1.3
-  * (c) 2025 kazuya kawaguchi
-  * Released under the MIT License.
-  */
-
-/*!
-  * vue-router v4.5.0
-  * (c) 2024 Eduardo San Martin Morote
-  * @license MIT
-  */
-
-/*! #__NO_SIDE_EFFECTS__ */
-
-/**
-* @vue/runtime-core v3.5.13
-* (c) 2018-present Yuxi (Evan) You and Vue contributors
-* @license MIT
-**/
-
-/**
-* @vue/runtime-dom v3.5.13
-* (c) 2018-present Yuxi (Evan) You and Vue contributors
-* @license MIT
-**/
-
-/**
-* @vue/shared v3.5.13
-* (c) 2018-present Yuxi (Evan) You and Vue contributors
-* @license MIT
-**/

+ 0 - 1
dist/index.html

@@ -1 +0,0 @@
-<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>index</title></head><body><h3>this is node -> Vue test</h3><div id="app" style="color:red; font-size:20px; font-weight:bold;">this is app node</div><template id="my-app"><div v-html="info"></div><home @op="add">home vue</home><h5 style="color:oranged">{{number}}</h5><about>this is About</about><test></test><p>before i18n label</p><div v-t="'messages.username'"></div>{{$t('messages.login')}}<p>after i18n label</p><button @click="changelang('zh')">中文</button> <button @click="changelang('en')">english</button><p><router-link to="/home">首页</router-link><router-link to="/test">test</router-link><router-link to="/about">关于</router-link></p><router-view></router-view></template><template style="width:100%; backgroud-color:oranged;"><home @op="add">home vue</home><h2>{{number}}</h2></template><script defer="defer" src="bundle.js"></script></body></html>

+ 17 - 13
index.html

@@ -14,24 +14,28 @@
 		<h5 style="color:oranged">{{number}}</h5>
 		<About>this is About</About>
 		<test></test>-->
+		<div class="flex flex-wrap gap-4 item-center">
+			<el-select
+				v-model="value"
+				placeholder="Select"
+				size="large"
+				style="width: 240px"
+			>
+				<el-option
+					v-for="item in options"
+					:key="item.value"
+					:label="item.label"
+					:value="item.value"
+				/>
+			</el-select>
+		</div>
+
+	  <br/>
 	<!--避免使用单标签,组件按照双标签规范用;    js代码相对位置导入后可以直接使用 -->
 		<p>before i18n label</p>
 		<div v-t="'messages.username'"></div>
 		{{$t('messages.login')}}
 		<p>after i18n label</p>
-		<el-select
-		v-model="value"
-		placeholder="Select"
-		size="large"
-		style="width: 240px"
-	  >
-		<el-option
-		  v-for="item in options"
-		  :key="item.value"
-		  :label="item.label"
-		  :value="item.value"
-		/>
-	  </el-select>
 		<label @click="changelang('zh')">中文</label>
 		<label @click="changelang('en')">english</label>
 		<!--<input type="button" text="中文" @click="changelang('zh')"/>

+ 6 - 1
webpack.config.js

@@ -17,7 +17,12 @@ module.exports={
     }
   },
   module:{
-    rules:[{
+    rules:[
+      {
+        test:/\.css$/i,
+        use:["style-loader","css-loader"]
+      },
+     {
       test:/\.vue$/,
       use:[
         { loader:"vue-loader" }

Некоторые файлы не были показаны из-за большого количества измененных файлов