Browse Source

master

master
邓宏 3 years ago
parent
commit
f6a7afa5b9
  1. 2
      package.json
  2. 14
      pnpm-lock.yaml
  3. 9
      src/view/home.vue
  4. 3
      vite.config.js

2
package.json

@ -16,7 +16,7 @@
"devDependencies": { "devDependencies": {
"@vitejs/plugin-vue": "^2.3.3", "@vitejs/plugin-vue": "^2.3.3",
"@vitejs/plugin-vue-jsx": "^1.3.10", "@vitejs/plugin-vue-jsx": "^1.3.10",
"black-knight": "1.2.18", "black-knight": "1.3.1",
"less": "^4.1.2", "less": "^4.1.2",
"less-loader": "~7.3.0", "less-loader": "~7.3.0",
"sass-resources-loader": "^2.2.5", "sass-resources-loader": "^2.2.5",

14
pnpm-lock.yaml

@ -3,7 +3,7 @@ lockfileVersion: 5.3
specifiers: specifiers:
'@vitejs/plugin-vue': ^2.3.3 '@vitejs/plugin-vue': ^2.3.3
'@vitejs/plugin-vue-jsx': ^1.3.10 '@vitejs/plugin-vue-jsx': ^1.3.10
black-knight: 1.2.18 black-knight: 1.3.1
element-plus: ^2.2.1 element-plus: ^2.2.1
less: ^4.1.2 less: ^4.1.2
less-loader: ~7.3.0 less-loader: ~7.3.0
@ -24,7 +24,7 @@ dependencies:
devDependencies: devDependencies:
'@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36 '@vitejs/plugin-vue': 2.3.3_vite@2.9.9+vue@3.2.36
'@vitejs/plugin-vue-jsx': 1.3.10 '@vitejs/plugin-vue-jsx': 1.3.10
black-knight: 1.2.18 black-knight: 1.3.1
less: 4.1.2 less: 4.1.2
less-loader: 7.3.0_less@4.1.2 less-loader: 7.3.0_less@4.1.2
sass-resources-loader: 2.2.5 sass-resources-loader: 2.2.5
@ -594,8 +594,8 @@ packages:
resolution: {integrity: sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==} resolution: {integrity: sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==}
dev: true dev: true
/black-knight/1.2.18: /black-knight/1.3.1:
resolution: {integrity: sha512-CSsXtt+2VZpZ+Yb9ndTheSOCN9mt58FJSZ7yhZDDu3qecUMQG91fniUte7ad/zQRQ+YxCiniPlyTHxbqnICNoQ==} resolution: {integrity: sha512-O13JfhCD3g1KLDuyPb5rwZN3d6qy9QdxbtfuHTlOM3b5PatQy9fF7utm5RtJkTa86Zzs/8i8IcPZYb0JrgTqFA==}
dev: true dev: true
/brace-expansion/1.1.11: /brace-expansion/1.1.11:
@ -1305,8 +1305,8 @@ packages:
supports-preserve-symlinks-flag: 1.0.0 supports-preserve-symlinks-flag: 1.0.0
dev: true dev: true
/rollup/2.70.1: /rollup/2.75.0:
resolution: {integrity: sha512-CRYsI5EuzLbXdxC6RnYhOuRdtz4bhejPMSWjsFLfVM/7w/85n2szZv6yExqUXsBdz5KT8eoubeyDUDjhLHEslA==} resolution: {integrity: sha512-1/wxtweHJ7YwI2AIK3ZgCBU3nbW8sLnBIFwN46cwOTnVzt8f1o6J8zPKjwoiuADvzSjmnLqJce31p0q2vQ+dqw==}
engines: {node: '>=10.0.0'} engines: {node: '>=10.0.0'}
hasBin: true hasBin: true
optionalDependencies: optionalDependencies:
@ -1439,7 +1439,7 @@ packages:
less: 4.1.2 less: 4.1.2
postcss: 8.4.14 postcss: 8.4.14
resolve: 1.22.0 resolve: 1.22.0
rollup: 2.70.1 rollup: 2.75.0
optionalDependencies: optionalDependencies:
fsevents: 2.3.2 fsevents: 2.3.2
dev: true dev: true

9
src/view/home.vue

@ -15,18 +15,19 @@
<div>{{foo}}</div> <div>{{foo}}</div>
</template> </template>
</hello-world> </hello-world>
<!-- <dInput v-model="value"/> --> <dInput v-model.digit="value"/>
<dScrollBoard></dScrollBoard>
</div> </div>
</template> </template>
<script setup> <script setup>
import { inject, onMounted, onUnmounted, ref } from 'vue' import { inject, onMounted, onUnmounted, ref } from 'vue'
import HelloWorld from "@/components/HelloWorld.vue" import HelloWorld from "@/components/HelloWorld.vue"
// import {dInput} from 'black-knight/lib/components' import {dInput, dScrollBoard} from 'black-knight/lib/components'
// var event = inject("event") var event = inject("event")
var value = ref('') var value = ref('')
onMounted(()=>{ onMounted(()=>{
// onUnmounted(event.on("home",data=>{console.log(data,'=======event----------home--1111--')})) onUnmounted(event.on("home",data=>{console.log(data,'=======event----------home--1111--')}))
}) })
</script> </script>

3
vite.config.js

@ -26,7 +26,8 @@ export default defineConfig({
cssCodeSplit:true, // 拆分css代码 cssCodeSplit:true, // 拆分css代码
rollupOptions:{ rollupOptions:{
input:{ // 多项目打包 input:{ // 多项目打包
index: path.resolve(__dirname, 'index.html') index: path.resolve(__dirname, 'index.html'),
// demo: path.resolve(__dirname, './src/demo.js'),
}, },
// external:['vue'], // 控制插件不编译 // external:['vue'], // 控制插件不编译
output: { output: {

Loading…
Cancel
Save