Compare commits
2 Commits
11712c0419
...
d6a5246f17
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d6a5246f17 | ||
|
|
37c4ff83cb |
14
bin/comps.js
Normal file
14
bin/comps.js
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
const { findPages, copyFiles } = require('./tools')
|
||||||
|
const fse = require('fs-extra')
|
||||||
|
function handleComps() {
|
||||||
|
findPages('components', file => {
|
||||||
|
const match = file.match(/(?<pre>(Ai|V))(?<name>[^\\\/]+)\.vue$/)
|
||||||
|
if(match?.groups){
|
||||||
|
const {pre,name} = match.groups
|
||||||
|
const dest = `components/${pre}${name}`
|
||||||
|
fse.emptyDirSync(dest)
|
||||||
|
fse.moveSync(file,`${dest}/${pre}${name}.vue`)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
handleComps()
|
||||||
@@ -7,7 +7,6 @@ const init = require("./build")
|
|||||||
const json = {
|
const json = {
|
||||||
easycom: {
|
easycom: {
|
||||||
"^u-(.*)": "uview-ui/components/u-$1/u-$1.vue",
|
"^u-(.*)": "uview-ui/components/u-$1/u-$1.vue",
|
||||||
"^(Ai|V)(.*)": "components/$1$2.vue",
|
|
||||||
},
|
},
|
||||||
pages: [
|
pages: [
|
||||||
{path: 'pages/loading', style: {navigationBarTitleText: "欢迎使用"}},
|
{path: 'pages/loading', style: {navigationBarTitleText: "欢迎使用"}},
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import tree from "./AiSelectEnterprise/tree";
|
import tree from "./tree";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "AiSelectEnterprise",
|
name: "AiSelectEnterprise",
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
import dict from "./dict"
|
import dict from "./dict"
|
||||||
import dayjs from './monent'
|
import dayjs from './monent'
|
||||||
import qs from 'query-string'
|
import qs from 'query-string'
|
||||||
import reg from "./regular";
|
|
||||||
import tree from "./tree";
|
import tree from "./tree";
|
||||||
|
|
||||||
const confirm = (content, title, config) => {
|
const confirm = (content, title, config) => {
|
||||||
@@ -309,7 +308,6 @@ export default {
|
|||||||
qs,
|
qs,
|
||||||
permissions,
|
permissions,
|
||||||
copy,
|
copy,
|
||||||
reg,
|
|
||||||
arr2tree(list, config = {}) {
|
arr2tree(list, config = {}) {
|
||||||
const {key = 'id', parent = 'parentId', children = 'children'} = config
|
const {key = 'id', parent = 'parentId', children = 'children'} = config
|
||||||
const result = []
|
const result = []
|
||||||
|
|||||||
Reference in New Issue
Block a user