Skip to content

Commit

Permalink
feat: 修改组件引入方式命名
Browse files Browse the repository at this point in the history
  • Loading branch information
weishuodan committed Nov 17, 2023
1 parent 0152f57 commit 8537219
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions components/license-plate-keyboard/index.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<template>
<div class="md-license-plate-keyboard">
<div v-if="keyboardType === 1">
<shortcut-view
<md-shortcut-row
:shortcuts="shortcuts"
@enter="$_onEnter"
/>
</div>
<div v-else>
<keyboard-view
<md-mixed-key-board
:mixedKeyboard="mixedKeyboard"
@enter="$_onEnter"
@delete="$_onDelete"
Expand All @@ -17,15 +17,15 @@
</div>
</template>

<script>import keyboardView from './key-board-view'
import shortcutView from './short-cut-view'
<script>import MixedKeyBoard from './key-board-view'
import ShortcutRow from './short-cut-view'
export default {
name: 'md-license-plate-keyboard',
components: {
keyboardView,
shortcutView,
[MixedKeyBoard.name]: MixedKeyBoard,
[ShortcutRow.name]: ShortcutRow,
},
props: {
Expand Down
16 changes: 8 additions & 8 deletions components/license-plate/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class="md-license-plate-input-container division"
:id="inputViewId"
>
<license-plate-input
<md-license-plate-input
:keyArray="keyArray"
:selectedIndex="dyCurrentIndex"
@keyMapping="keyMapping"
Expand All @@ -16,7 +16,7 @@
class="md-license-plate-keyboard-container division"
:id="keyboardViewId"
>
<license-plate-keyboard
<md-license-plate-keyboard
:keyboard="dyKeyboard"
@enter="$_onEnter"
@delete="$_onDelete"
Expand All @@ -41,14 +41,14 @@
></md-popup-title-bar>
<div class="md-popup-content">
<div class="md-license-plate-input-container popUp">
<license-plate-input
<md-license-plate-input
:keyArray="keyArray"
:selectedIndex="dyCurrentIndex"
@keyMapping="keyMapping"
/>
</div>
<div class="md-license-plate-keyboard-container popUp">
<license-plate-keyboard
<md-license-plate-keyboard
:keyboard="dyKeyboard"
@enter="$_onEnter"
@delete="$_onDelete"
Expand All @@ -61,8 +61,8 @@
</div>
</template>

<script>import licensePlateKeyboard from '../license-plate-keyboard'
import licensePlateInput from '../license-plate-input'
<script>import LicensePlateKeyboard from '../license-plate-keyboard'
import LicensePlateInput from '../license-plate-input'
import Popup from '../popup'
import PopupTitlebar from '../popup/title-bar'
import {directiveInit, queryCurParentNode, unique} from './util'
Expand All @@ -71,8 +71,8 @@ export default {
name: 'md-license-plate',
components: {
licensePlateKeyboard,
licensePlateInput,
[LicensePlateKeyboard.name]: LicensePlateKeyboard,
[LicensePlateInput.name]: LicensePlateInput,
[Popup.name]: Popup,
[PopupTitlebar.name]: PopupTitlebar,
},
Expand Down

0 comments on commit 8537219

Please sign in to comment.