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": {
"@vitejs/plugin-vue": "^2.3.3",
"@vitejs/plugin-vue-jsx": "^1.3.10",
"black-knight": "1.2.18",
"black-knight": "1.3.1",
"less": "^4.1.2",
"less-loader": "~7.3.0",
"sass-resources-loader": "^2.2.5",

14
pnpm-lock.yaml

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

9
src/view/home.vue

@ -15,18 +15,19 @@
<div>{{foo}}</div>
</template>
</hello-world>
<!-- <dInput v-model="value"/> -->
<dInput v-model.digit="value"/>
<dScrollBoard></dScrollBoard>
</div>
</template>
<script setup>
import { inject, onMounted, onUnmounted, ref } from '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('')
onMounted(()=>{
// onUnmounted(event.on("home",data=>{console.log(data,'=======event----------home--1111--')}))
onUnmounted(event.on("home",data=>{console.log(data,'=======event----------home--1111--')}))
})
</script>

3
vite.config.js

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

Loading…
Cancel
Save