@xilonglab/vue-main 1.3.25 → 1.3.26

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.
@@ -40,7 +40,7 @@ const handleLoginSuccess = ({ token, userData }) => {
40
40
  store.state.accessToken = token
41
41
  localStorage.setItem('accessToken', token)
42
42
  store.state.userData = userData
43
- router.push("/dashboard")
43
+ router.push("/instr/list")
44
44
  props.callback()
45
45
  }
46
46
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xilonglab/vue-main",
3
- "version": "1.3.25",
3
+ "version": "1.3.26",
4
4
  "description": "xilong vue main",
5
5
  "main": "packages/index.js",
6
6
  "scripts": {
package/packages/index.js CHANGED
@@ -1,6 +1,13 @@
1
+ import '@imengyu/vue3-context-menu/lib/vue3-context-menu.css'
2
+ import ContextMenu from '@imengyu/vue3-context-menu'
3
+
1
4
  const components = import.meta.glob('./**/*.vue', { eager: true });
2
5
 
3
6
  const install = (app) => {
7
+ // 注册 ContextMenu 插件
8
+ app.use(ContextMenu)
9
+
10
+ // 注册所有组件
4
11
  Object.values(components).forEach((component) => {
5
12
  app.component(component.default.name, component.default);
6
13
  });
@@ -199,9 +199,12 @@ const { refs, api, params, obj, chartOptions, total } = inject('injections')
199
199
 
200
200
  <style lang="less">
201
201
  .xl-data-view {
202
+ div.buttons{
203
+ padding-right:40px;
204
+ }
205
+
202
206
  div.cell {
203
207
  padding: 0 !important;
204
-
205
208
  }
206
209
 
207
210
  .clamp(@lines) {