address-book-shell 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.browserslistrc +3 -0
- package/.eslintrc.js +14 -0
- package/.prettierrc.js +16 -0
- package/README.md +20 -0
- package/babel.config.js +3 -0
- package/docs/.vuepress/components/demo-1.vue +14 -0
- package/docs/.vuepress/config.js +24 -0
- package/docs/README.md +37 -0
- package/docs/assets/imgs/tray.png +0 -0
- package/docs/page/README.md +1 -0
- package/docs/page/install.md +10 -0
- package/docs/page/register.md +11 -0
- package/lib/address-book-shell.common.js +5367 -0
- package/lib/address-book-shell.umd.js +5377 -0
- package/lib/address-book-shell.umd.min.js +1 -0
- package/lib/demo.html +8 -0
- package/lib/fonts/element-icons.535877f5.woff +0 -0
- package/lib/fonts/element-icons.732389de.ttf +0 -0
- package/lib/fonts/iconfont.0ebb200a.ttf +0 -0
- package/lib/fonts/iconfont.75f80b2a.woff2 +0 -0
- package/lib/fonts/iconfont.b7064d58.eot +0 -0
- package/lib/fonts/iconfont.f3953641.woff +0 -0
- package/lib/img/iconfont.0956fc20.svg +493 -0
- package/package.json +39 -0
- package/packages/address-book/filters/index.js +17 -0
- package/packages/address-book/index.js +6 -0
- package/packages/address-book/src/components/address-aside.vue +453 -0
- package/packages/address-book/src/components/address-content.vue +1048 -0
- package/packages/address-book/src/components/address-current-list.vue +137 -0
- package/packages/address-book/src/components/address-figure-tree.vue +106 -0
- package/packages/address-book/src/components/address-group-item.vue +145 -0
- package/packages/address-book/src/components/address-group.vue +102 -0
- package/packages/address-book/src/index.vue +639 -0
- package/packages/address-book/src/utils/util.js +109 -0
- package/packages/config.js +6 -0
- package/packages/index.js +31 -0
- package/public/favicon.ico +0 -0
- package/public/index.html +17 -0
- package/src/App.vue +9 -0
- package/src/api/address-list-api.js +89 -0
- package/src/api/cas-api.js +0 -0
- package/src/assets/icon-font/demo.css +539 -0
- package/src/assets/icon-font/demo_index.html +5642 -0
- package/src/assets/icon-font/iconfont.css +966 -0
- package/src/assets/icon-font/iconfont.eot +0 -0
- package/src/assets/icon-font/iconfont.js +1 -0
- package/src/assets/icon-font/iconfont.json +1668 -0
- package/src/assets/icon-font/iconfont.svg +493 -0
- package/src/assets/icon-font/iconfont.ttf +0 -0
- package/src/assets/icon-font/iconfont.woff +0 -0
- package/src/assets/icon-font/iconfont.woff2 +0 -0
- package/src/assets/logo.png +0 -0
- package/src/components/HelloWorld.vue +130 -0
- package/src/main.js +30 -0
- package/src/scss/global.scss +10 -0
- package/src/store/index.js +10 -0
- package/src/store/mutation-types.js +4 -0
- package/src/theme/element-ui-theme/config.json +1 -0
- package/src/theme/element-ui-theme/element-ui-common.scss +1394 -0
- package/src/theme/element-ui-theme/theme/fonts/element-icons.ttf +0 -0
- package/src/theme/element-ui-theme/theme/fonts/element-icons.woff +0 -0
- package/src/theme/element-ui-theme/theme/index.css +1 -0
- package/src/utils/plug_in-config.js +38 -0
- package/src/utils/util.js +20 -0
- package/vue.config.js +39 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// vue-scroll
|
|
2
|
+
export const vuescrollOps = {
|
|
3
|
+
vuescroll: {
|
|
4
|
+
locking: true,
|
|
5
|
+
detectResize: false, //关闭 检测内容发生变化的能力
|
|
6
|
+
},
|
|
7
|
+
scrollPanel: {
|
|
8
|
+
scrollingX: false,
|
|
9
|
+
},
|
|
10
|
+
rail: {
|
|
11
|
+
opacity: 0,
|
|
12
|
+
size: '8px',
|
|
13
|
+
specifyBorderRadius: false,
|
|
14
|
+
gutterOfEnds: null, //轨道距 x 和 y 轴两端的距离
|
|
15
|
+
gutterOfSide: '0', //距离容器的距离
|
|
16
|
+
// keepShow: true, //是否即使 bar 不存在的情况下也保持显示
|
|
17
|
+
// border: "1px solid rgb(0, 0, 0,0.09)", //边框
|
|
18
|
+
},
|
|
19
|
+
bar: {
|
|
20
|
+
hoverStyle: true,
|
|
21
|
+
onlyShowBarOnScroll: false, //是否只有滚动的时候才显示滚动条
|
|
22
|
+
background: 'rgb(0, 0, 0,0.09)', //颜色
|
|
23
|
+
minSize: 0.3,
|
|
24
|
+
opacity: 1,
|
|
25
|
+
keepShow: true,
|
|
26
|
+
},
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/*
|
|
30
|
+
vue-ls
|
|
31
|
+
类别:localStorage,sessionStorage或memoryStorage
|
|
32
|
+
用法:this.$ls.set(key,value,有效时间) or Vue.ls.set(key,value,有效时间)
|
|
33
|
+
*/
|
|
34
|
+
export const storageOptions = {
|
|
35
|
+
namespace: 'pro__', // key prefix
|
|
36
|
+
name: 'ls', // name variable Vue.[ls] or this.[$ls],
|
|
37
|
+
storage: 'session', // storage name session, local, memory
|
|
38
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export const getUrlParam = (paraName) => {
|
|
2
|
+
var url = document.location.toString()
|
|
3
|
+
var arrObj = url.split('?')
|
|
4
|
+
|
|
5
|
+
if (arrObj.length > 1) {
|
|
6
|
+
var arrPara = arrObj[1].split('&')
|
|
7
|
+
var arr
|
|
8
|
+
|
|
9
|
+
for (var i = 0; i < arrPara.length; i++) {
|
|
10
|
+
arr = arrPara[i].split('=')
|
|
11
|
+
|
|
12
|
+
if (arr != null && arr[0] == paraName) {
|
|
13
|
+
return arr[1]
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return ''
|
|
17
|
+
} else {
|
|
18
|
+
return ''
|
|
19
|
+
}
|
|
20
|
+
}
|
package/vue.config.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const path = require('path')
|
|
2
|
+
function resolve(dir) {
|
|
3
|
+
return path.join(__dirname, dir)
|
|
4
|
+
}
|
|
5
|
+
module.exports = {
|
|
6
|
+
lintOnSave: false,
|
|
7
|
+
publicPath: './',
|
|
8
|
+
productionSourceMap: false, // 是否为生产环境构建生成 source map
|
|
9
|
+
// CSS 相关选项
|
|
10
|
+
css: {
|
|
11
|
+
extract: false,
|
|
12
|
+
sourceMap: false, // 是否开启 CSS source map
|
|
13
|
+
loaderOptions: {
|
|
14
|
+
sass: {
|
|
15
|
+
prependData: `@import "@/scss/global.scss";`, // 公共sass,可配置全局样式
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
parallel: false, // 在多核机器下会默认开启
|
|
20
|
+
// pages: {
|
|
21
|
+
// index: {
|
|
22
|
+
// entry: 'src/main.js',
|
|
23
|
+
// template: 'public/index.html',
|
|
24
|
+
// filename: 'index.html',
|
|
25
|
+
// },
|
|
26
|
+
// },
|
|
27
|
+
// 别名
|
|
28
|
+
configureWebpack: (config) => {
|
|
29
|
+
config.resolve.alias['@'] = resolve('src')
|
|
30
|
+
// config.resolve.alias['components'] = resolve('src/components')
|
|
31
|
+
// config.resolve.alias['~'] = resolve('packages')
|
|
32
|
+
|
|
33
|
+
// 打包文件大小配置
|
|
34
|
+
config.performance = {
|
|
35
|
+
maxEntrypointSize: 10000000,
|
|
36
|
+
maxAssetSize: 30000000,
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
}
|