sag-vxe-pc 1.0.0
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/LICENSE +21 -0
- package/README.md +42 -0
- package/dist/sag-vxe-pc.es.js +32262 -0
- package/dist/sag-vxe-pc.umd.js +291 -0
- package/dist/style.css +1 -0
- package/package.json +103 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Orion Chen
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
1.注册 auth 指令
|
|
2
|
+
|
|
3
|
+
2.main 引入设置
|
|
4
|
+
import { VXEPAGE } from 'sag-vxe-page';
|
|
5
|
+
import 'sag-vxe-page/dist/style.css';
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
VXEPAGE.setupConfig({
|
|
9
|
+
application: 'xxx',//应用名称-缓存使用(如果不设可能会引起同一个项目下不同子应用的缓存命名冲突)
|
|
10
|
+
vxeSlot: false, //true为vxe控件 false为ant-design控件
|
|
11
|
+
size: 'small', // 全局尺寸 medium small mini
|
|
12
|
+
ctxPath: apiPath.default, //根路径(请求服务器的路径如果不以斜杠开头都将自动添加该前缀)
|
|
13
|
+
requestDictUrl: '/xxx/xxx', //下拉框请求服务路径
|
|
14
|
+
templateForm: {
|
|
15
|
+
vertical: false, //是否使用垂直布局
|
|
16
|
+
titleColon: true, //自动设置冒号
|
|
17
|
+
titleWidth: 110, //标题宽度
|
|
18
|
+
titleAlign: 'right', //标题位置
|
|
19
|
+
},
|
|
20
|
+
templateTable: {
|
|
21
|
+
ignoreExportColumnsTitle: ['', '序号', '操作', '处理'], //导出忽略列
|
|
22
|
+
},
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
3.webpack 设置
|
|
26
|
+
module.exports = {
|
|
27
|
+
transpileDependencies: ['sag-vxe-page'],
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
4.babel 设置
|
|
31
|
+
module.exports = {
|
|
32
|
+
compact: false, //解除组件引用 js 文件大
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
5.样式
|
|
36
|
+
当弹出框挂载不在body下
|
|
37
|
+
5.1 需要在挂载处设置样式名h-con-iframe(样式内容可为空)
|
|
38
|
+
5.2 声明挂载处
|
|
39
|
+
// 获取弹窗挂载的内部容器点
|
|
40
|
+
provide('dialogContainer', () => {
|
|
41
|
+
return document.getElementById(unref(computed(() => 'xxx')));
|
|
42
|
+
});
|