build: update deps

pull/4/head
bqy_fe 4 years ago
parent 9d555d41da
commit 04b9910a56
  1. 35
      package.json
  2. 9
      src/App.vue
  3. 8
      src/packages/base-widgets/divider/index.tsx
  4. 3
      src/visual-editor/components/left-aside/components/base-widgets/index.tsx
  5. 3
      src/visual-editor/components/left-aside/components/container-component/index.tsx
  6. 4
      src/visual-editor/components/simulator-editor/draggable-transition-group.vue
  7. 1
      src/visual.config.tsx
  8. 6
      vite.config.ts
  9. 885
      yarn.lock

@ -16,52 +16,53 @@
}, },
"dependencies": { "dependencies": {
"@vant/touch-emulator": "^1.2.0", "@vant/touch-emulator": "^1.2.0",
"@vueuse/core": "^4.9.3", "@vueuse/core": "^4.11.0",
"@vueuse/integrations": "^4.9.3", "@vueuse/integrations": "^4.11.0",
"axios": "^0.21.1", "axios": "^0.21.1",
"dayjs": "^1.10.4", "dayjs": "^1.10.4",
"dexie": "^3.0.3", "dexie": "^3.0.3",
"element-plus": "^1.0.2-beta.44", "element-plus": "^1.0.2-beta.44",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"monaco-editor": "^0.23.0", "monaco-editor": "^0.24.0",
"normalize.css": "^8.0.1", "normalize.css": "^8.0.1",
"nprogress": "^1.0.0-1", "nprogress": "^1.0.0-1",
"qrcode": "^1.4.4", "qrcode": "^1.4.4",
"vant": "^3.0.16", "vant": "^3.0.16",
"vue": "^3.1.0-beta.2", "vue": "^3.1.0-beta.3",
"vue-router": "^4.0.6", "vue-router": "^4.0.8",
"vuedraggable": "^4.0.1", "vuedraggable": "^4.0.1",
"vuex": "^4.0.0" "vuex": "^4.0.0"
}, },
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^12.1.1", "@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.1", "@commitlint/config-conventional": "^12.1.4",
"@types/node": "^14.14.44", "@types/node": "^14.17.0",
"@typescript-eslint/eslint-plugin": "^4.23.0", "@typescript-eslint/eslint-plugin": "^4.24.0",
"@typescript-eslint/parser": "^4.23.0", "@typescript-eslint/parser": "^4.24.0",
"@vitejs/plugin-legacy": "^1.4.0",
"@vitejs/plugin-vue": "^1.2.2", "@vitejs/plugin-vue": "^1.2.2",
"@vitejs/plugin-vue-jsx": "^1.1.4", "@vitejs/plugin-vue-jsx": "^1.1.4",
"@vue/compiler-sfc": "^3.1.0-beta.2", "@vue/compiler-sfc": "^3.1.0-beta.3",
"commitizen": "^4.2.4", "commitizen": "^4.2.4",
"cz-conventional-changelog": "^3.3.0", "cz-conventional-changelog": "^3.3.0",
"cz-customizable": "^6.3.0", "cz-customizable": "^6.3.0",
"eslint": "^7.26.0", "eslint": "^7.26.0",
"eslint-config-prettier": "^8.3.0", "eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.22.1", "eslint-plugin-import": "^2.23.2",
"eslint-plugin-prettier": "^3.4.0", "eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-vue": "^7.9.0", "eslint-plugin-vue": "^7.9.0",
"gh-pages": "^3.1.0", "gh-pages": "^3.1.0",
"husky": "^6.0.0", "husky": "^6.0.0",
"lint-staged": "^10.5.4", "lint-staged": "^10.5.4",
"prettier": "^2.3.0", "prettier": "^2.3.0",
"sass": "^1.32.12", "sass": "^1.32.13",
"typescript": "^4.2.4", "typescript": "^4.2.4",
"vite": "2.2.4", "vite": "2.3.3",
"vite-plugin-components": "^0.9.0", "vite-plugin-components": "^0.9.1",
"vite-plugin-style-import": "^0.10.0", "vite-plugin-style-import": "^0.10.0",
"vite-plugin-windicss": "^0.16.0-beta.14", "vite-plugin-windicss": "^0.16.0-beta.17",
"vue-eslint-parser": "^7.6.0", "vue-eslint-parser": "^7.6.0",
"vue-tsc": "^0.1.2", "vue-tsc": "^0.1.4",
"windicss": "^2.5.14" "windicss": "^2.5.14"
}, },
"repository": { "repository": {

@ -4,13 +4,10 @@
</router-view> </router-view>
</template> </template>
<script lang="ts"> <script setup lang="ts">
import { defineComponent, provide } from 'vue' import { provide } from 'vue'
import { initVisualData, injectKey, localKey } from '@/visual-editor/hooks/useVisualData' import { initVisualData, injectKey, localKey } from '@/visual-editor/hooks/useVisualData'
export default defineComponent({
name: 'App',
setup() {
const visualData = initVisualData() const visualData = initVisualData()
// //
provide(injectKey, visualData) provide(injectKey, visualData)
@ -20,8 +17,6 @@ export default defineComponent({
window.addEventListener('beforeunload', () => { window.addEventListener('beforeunload', () => {
sessionStorage.setItem(localKey, JSON.stringify(jsonData)) sessionStorage.setItem(localKey, JSON.stringify(jsonData))
}) })
}
})
</script> </script>
<style lang="scss"> <style lang="scss">

@ -14,12 +14,12 @@ export default {
preview: () => <Divider style="width:190px"></Divider>, preview: () => <Divider style="width:190px"></Divider>,
render: ({ props }) => { render: ({ props }) => {
const style = `color:${props['text-color']};borderColor:${props['divider-color']}` const style = `color:${props['text-color']};borderColor:${props['divider-color']}`
return props.text ? ( return (
<Divider {...props} style={style}> <Divider {...props} style={style}>
{props.text} {{
default: () => props.text
}}
</Divider> </Divider>
) : (
<Divider {...props} style={style}></Divider>
) )
}, },
props: { props: {

@ -1,7 +1,8 @@
import { defineComponent } from 'vue' import { defineComponent } from 'vue'
import { cloneDeep } from 'lodash' import { cloneDeep } from 'lodash'
import { visualConfig } from '@/visual.config' import { visualConfig } from '@/visual.config'
import Draggable from 'vuedraggable' // @ts-ignore 暂时方案 待官方修复
import Draggable from 'vuedraggable/src/vuedraggable'
import styles from './index.module.scss' import styles from './index.module.scss'
import { createNewBlock } from '@/visual-editor/visual-editor.utils' import { createNewBlock } from '@/visual-editor/visual-editor.utils'

@ -1,7 +1,8 @@
import { defineComponent } from 'vue' import { defineComponent } from 'vue'
import { cloneDeep } from 'lodash' import { cloneDeep } from 'lodash'
import { visualConfig } from '@/visual.config' import { visualConfig } from '@/visual.config'
import Draggable from 'vuedraggable' // @ts-ignore 暂时方案 待官方修复
import Draggable from 'vuedraggable/src/vuedraggable'
import styles from './index.module.scss' import styles from './index.module.scss'
import { createNewBlock } from '@/visual-editor/visual-editor.utils' import { createNewBlock } from '@/visual-editor/visual-editor.utils'

@ -33,7 +33,8 @@
* @update: 2021/5/1 23:15 * @update: 2021/5/1 23:15
*/ */
import { computed, defineComponent, reactive, toRefs, SetupContext } from 'vue' import { computed, defineComponent, reactive, toRefs, SetupContext } from 'vue'
import draggable from 'vuedraggable' // @ts-ignore
import draggable from 'vuedraggable/src/vuedraggable'
import { useVModel } from '@vueuse/core' import { useVModel } from '@vueuse/core'
export default defineComponent({ export default defineComponent({
@ -55,6 +56,7 @@ export default defineComponent({
list: useVModel(props, 'moduleValue', emit), list: useVModel(props, 'moduleValue', emit),
isDrag: useVModel(props, 'drag', emit) isDrag: useVModel(props, 'drag', emit)
}) })
const dragOptions = computed(() => ({ const dragOptions = computed(() => ({
animation: 200, animation: 200,
group: 'components', group: 'components',

@ -1,5 +1,4 @@
import { createVisualEditorConfig } from './visual-editor/visual-editor.utils' import { createVisualEditorConfig } from './visual-editor/visual-editor.utils'
// import './visual.config.scss'
import baseWidgets from '@/packages/base-widgets' import baseWidgets from '@/packages/base-widgets'
import containerComponent from '@/packages/container-component' import containerComponent from '@/packages/container-component'

@ -1,6 +1,7 @@
import { ConfigEnv, loadEnv, UserConfig } from 'vite' import { ConfigEnv, loadEnv, UserConfig } from 'vite'
import vue from '@vitejs/plugin-vue' import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx' import vueJsx from '@vitejs/plugin-vue-jsx'
import legacy from '@vitejs/plugin-legacy'
import { resolve } from 'path' import { resolve } from 'path'
import ViteComponents, { ElementPlusResolver, VantResolver } from 'vite-plugin-components' import ViteComponents, { ElementPlusResolver, VantResolver } from 'vite-plugin-components'
import styleImport from 'vite-plugin-style-import' import styleImport from 'vite-plugin-style-import'
@ -22,6 +23,9 @@ export default ({ mode }: ConfigEnv): UserConfig => {
vue(), vue(),
vueJsx(), vueJsx(),
WindiCSS(), WindiCSS(),
legacy({
targets: ['defaults', 'not IE 11']
}),
ViteComponents({ ViteComponents({
// 自动导入组件(还不够完善,可能会有样式丢失) // 自动导入组件(还不够完善,可能会有样式丢失)
// valid file extensions for components. // valid file extensions for components.
@ -68,7 +72,7 @@ export default ({ mode }: ConfigEnv): UserConfig => {
'element-plus', 'element-plus',
'vant', 'vant',
'lodash', 'lodash',
'vuedraggable' 'vuedraggable/src/vuedraggable'
], ],
exclude: ['vue-demi'] exclude: ['vue-demi']
}, },

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save