-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix bug: At.vue insertHtml 'suffix' is not defined !! also other esli…
…nt warnings -- #137 bug regression commit: 725d7a1#diff-11090ff0a927c36112fd70be4c32aa3841151637c37309ea0f8c429f00c9ed61L335
- Loading branch information
Showing
7 changed files
with
87 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
module.exports = { | ||
root: true, | ||
env: {}, | ||
extends: [ | ||
'plugin:vue/vue3-recommended', | ||
'@vue/standard' | ||
], | ||
parserOptions: { | ||
}, | ||
rules: { | ||
'vue/multiline-html-element-content-newline': 'off', | ||
'vue/first-attribute-linebreak': 'off', | ||
'vue/max-attributes-per-line': 'off', | ||
'vue/component-tags-order': 'off', | ||
'vue/order-in-components': 'off', | ||
'vue/html-self-closing': 'off', | ||
'vue/attributes-order': 'off', | ||
'vue/html-indent': 'off', | ||
'space-before-function-paren': ['error', { | ||
anonymous: 'always', | ||
named: 'always', | ||
asyncArrow: 'always' | ||
}], | ||
'no-irregular-whitespace': 'off', | ||
'no-mixed-operators': 'off', | ||
'no-unused-vars': 'off', | ||
'prefer-const': 'off', | ||
'comma-dangle': 'off', | ||
'max-len': 'off', | ||
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
"author": "Fritz Lin <[email protected]>", | ||
"repository": "https://github.com/fritx/vue-at", | ||
"scripts": { | ||
"lint:fix": "vue-cli-service lint", | ||
"lint": "vue-cli-service lint --no-fix", | ||
"dev": "vue-cli-service serve", | ||
"demo": "vue-cli-service build", | ||
"build:at": "vue-cli-service build ./src/At.vue --target lib --name vue-at", | ||
|
@@ -21,9 +23,13 @@ | |
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.18.9", | ||
"@vue/cli-plugin-eslint": "^5.0.8", | ||
"@vue/cli-service": "^5.0.8", | ||
"@vue/compat": "^3.1.0", | ||
"@vue/compiler-sfc": "^3.1.0", | ||
"@vue/eslint-config-standard": "^8.0.1", | ||
"eslint": "^8.21.0", | ||
"eslint-plugin-vue": "^9.3.0", | ||
"npm-run-all": "^4.1.5", | ||
"rimraf": "^3.0.2", | ||
"sass": "^1.53.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,51 @@ | ||
<style lang="scss" src="./At.scss"></style> | ||
|
||
<template> | ||
<div ref="wrap" | ||
<div | ||
ref="wrap" | ||
class="atwho-wrap" | ||
@compositionstart="handleCompositionStart" | ||
@compositionend="handleCompositionEnd" | ||
@input="handleInput()" | ||
@keydown.capture="handleKeyDown" | ||
> | ||
<div v-if="atwho" | ||
<div | ||
v-if="atwho" | ||
class="atwho-panel" | ||
:style="style" | ||
> | ||
<div class="atwho-inner"> | ||
<div class="atwho-view"> | ||
<ul class="atwho-ul"> | ||
<li v-for="(item, index) in atwho.list" | ||
<li | ||
v-for="(item, index) in atwho.list" | ||
class="atwho-li" | ||
:key="index" | ||
:class="isCur(index) && 'atwho-cur'" | ||
:data-index="index" | ||
@mouseenter="handleItemHover" | ||
@click="handleItemClick" | ||
> | ||
<slot name="item" :item="item"> | ||
<span v-text="itemName(item)"></span> | ||
<slot | ||
name="item" | ||
:item="item" | ||
> | ||
<span v-text="itemName(item)" /> | ||
</slot> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
<span v-show="false" ref="embeddedItem"> | ||
<slot name="embeddedItem" :current="currentItem"></slot> | ||
<span | ||
v-show="false" | ||
ref="embeddedItem" | ||
> | ||
<slot | ||
name="embeddedItem" | ||
:current="currentItem" | ||
/> | ||
</span> | ||
<slot></slot> | ||
<slot /> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters