@ajaxjs/ui 1.3.2 → 1.3.3
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/dist/@ajaxjs/widgets.common.js +354 -114
- package/dist/@ajaxjs/widgets.common.js.map +1 -1
- package/dist/@ajaxjs/widgets.umd.js +354 -114
- package/dist/@ajaxjs/widgets.umd.js.map +1 -1
- package/dist/@ajaxjs/widgets.umd.min.js +1 -1
- package/dist/@ajaxjs/widgets.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/iam/iam.ts +5 -5
- package/src/iam/user.vue +1 -1
- package/src/index.js +5 -1
- package/src/iview-ext/fast-iview-table.ts +6 -4
package/package.json
CHANGED
package/src/iam/iam.ts
CHANGED
|
@@ -19,7 +19,7 @@ export default {
|
|
|
19
19
|
|
|
20
20
|
if (!accessToken && !token) {
|
|
21
21
|
console.log('你未登录!');
|
|
22
|
-
|
|
22
|
+
const target = `${loginUrl}?web_url=${encodeURIComponent(thisPageUrl)}`;
|
|
23
23
|
|
|
24
24
|
confirm('你未登录。是否跳转到登录页面?') && location.assign(target);
|
|
25
25
|
|
|
@@ -51,11 +51,11 @@ export default {
|
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
function getQueryParam(variable: string, isParent: boolean): string | null {
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
const query: string = (isParent ? parent.location : window.location).search.substring(1);
|
|
55
|
+
const vars: string[] = query.split("&");
|
|
56
56
|
|
|
57
|
-
for (
|
|
58
|
-
|
|
57
|
+
for (let i = 0; i < vars.length; i++) {
|
|
58
|
+
const pair: string[] = vars[i].split("=");
|
|
59
59
|
|
|
60
60
|
if (pair[0] == variable)
|
|
61
61
|
return pair[1];
|
package/src/iam/user.vue
CHANGED
package/src/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// 动态引入组件
|
|
2
2
|
const requireComponent = require.context('./', true, /\.vue$/);
|
|
3
|
-
|
|
3
|
+
import List from './iview-ext/list';
|
|
4
|
+
import IAM from './iam/iam';
|
|
5
|
+
|
|
4
6
|
const components = [];
|
|
5
7
|
|
|
6
8
|
requireComponent.keys().forEach(fileName => {
|
|
@@ -44,5 +46,7 @@ if (typeof window !== 'undefined' && window.Vue)
|
|
|
44
46
|
|
|
45
47
|
export default {
|
|
46
48
|
install,
|
|
49
|
+
List,
|
|
50
|
+
IAM,
|
|
47
51
|
...components//组件也一样要暴露
|
|
48
52
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import List from "./list";
|
|
3
|
+
import { Xhr } from '@ajaxjs/util';
|
|
3
4
|
|
|
4
|
-
export default {
|
|
5
|
+
export default Vue.extend({
|
|
6
|
+
name: "FastViewTable",
|
|
5
7
|
props: {
|
|
6
8
|
widgetName: { type: String, required: false },
|
|
7
9
|
apiUrl: { type: String, required: false }, // 接口地址
|
|
@@ -128,4 +130,4 @@ export default {
|
|
|
128
130
|
this.getData();
|
|
129
131
|
}
|
|
130
132
|
},
|
|
131
|
-
};
|
|
133
|
+
});
|