npmapps 1.2.0 → 1.3.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.
Files changed (120) hide show
  1. package/README.md +41 -0
  2. package/files/part-002 +4 -0
  3. package/get.js +193 -0
  4. package/manifest.json +28 -0
  5. package/package.json +17 -10
  6. package/PUBLISH.md +0 -268
  7. package/app/wujie-wk/t.html +0 -90
  8. package/app/wujie-wk/wujie-vue2-child/.eslintrc.js +0 -19
  9. package/app/wujie-wk/wujie-vue2-child/README.md +0 -24
  10. package/app/wujie-wk/wujie-vue2-child/babel.config.js +0 -5
  11. package/app/wujie-wk/wujie-vue2-child/docs/superpowers/plans/2026-05-29-quill-editor.md +0 -836
  12. package/app/wujie-wk/wujie-vue2-child/docs/superpowers/specs/2026-05-29-quill-editor-design.md +0 -210
  13. package/app/wujie-wk/wujie-vue2-child/jsconfig.json +0 -19
  14. package/app/wujie-wk/wujie-vue2-child/package-lock.json +0 -21333
  15. package/app/wujie-wk/wujie-vue2-child/package.json +0 -63
  16. package/app/wujie-wk/wujie-vue2-child/postcss.config.js +0 -10
  17. package/app/wujie-wk/wujie-vue2-child/public/favicon.ico +0 -0
  18. package/app/wujie-wk/wujie-vue2-child/public/index.html +0 -17
  19. package/app/wujie-wk/wujie-vue2-child/public/rili.jpg +0 -0
  20. package/app/wujie-wk/wujie-vue2-child/public//344/270/200/351/224/256/351/273/221/346/232/227.html +0 -136
  21. package/app/wujie-wk/wujie-vue2-child/src/App.vue +0 -110
  22. package/app/wujie-wk/wujie-vue2-child/src/assets/bpmn-camunda.jpg +0 -0
  23. package/app/wujie-wk/wujie-vue2-child/src/assets/css/diagram.less +0 -17
  24. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/Icon.less +0 -31
  25. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/app-codes.css +0 -26
  26. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/app.eot +0 -0
  27. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/app.svg +0 -60
  28. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/app.ttf +0 -0
  29. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/app.woff +0 -0
  30. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/app.woff2 +0 -0
  31. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/config.json +0 -248
  32. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/align-bottom-tool.svg +0 -30
  33. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/align-horizontal-center-tool.svg +0 -85
  34. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/align-left-tool.svg +0 -84
  35. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/align-right-tool.svg +0 -80
  36. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/align-top-tool.svg +0 -84
  37. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/align-vertical-center-tool.svg +0 -89
  38. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/distribute-horizontally-tool.svg +0 -95
  39. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/distribute-vertically-tool.svg +0 -99
  40. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/raw/set-color-tool.svg +0 -111
  41. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/align-bottom-tool.svg +0 -30
  42. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/align-horizontal-center-tool.svg +0 -30
  43. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/align-left-tool.svg +0 -30
  44. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/align-right-tool.svg +0 -30
  45. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/align-top-tool.svg +0 -30
  46. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/align-vertical-center-tool.svg +0 -30
  47. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/distribute-horizontally-tool.svg +0 -30
  48. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/distribute-vertically-tool.svg +0 -30
  49. package/app/wujie-wk/wujie-vue2-child/src/assets/icon/font/source/symbols/set-color-tool.svg +0 -63
  50. package/app/wujie-wk/wujie-vue2-child/src/assets/logo.png +0 -0
  51. package/app/wujie-wk/wujie-vue2-child/src/components/EllTable/README.md +0 -70
  52. package/app/wujie-wk/wujie-vue2-child/src/components/EllTable/article.md +0 -184
  53. package/app/wujie-wk/wujie-vue2-child/src/components/EllTable/index.js +0 -213
  54. package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/CalendarSkeleton.vue +0 -147
  55. package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/CodeBlock.vue +0 -199
  56. package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/MonthSelect.vue +0 -376
  57. package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/README.md +0 -485
  58. package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/example.vue +0 -1747
  59. package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/index.vue +0 -2720
  60. package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/mockData.js +0 -475
  61. package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/recruitmentAdapter.js +0 -51
  62. package/app/wujie-wk/wujie-vue2-child/src/components/EventCalendar/utils.js +0 -202
  63. package/app/wujie-wk/wujie-vue2-child/src/components/FormulaEditor/FunctionSelector.vue +0 -123
  64. package/app/wujie-wk/wujie-vue2-child/src/components/FormulaEditor/OperatorSelector.vue +0 -184
  65. package/app/wujie-wk/wujie-vue2-child/src/components/FormulaEditor/ParameterSelector.vue +0 -123
  66. package/app/wujie-wk/wujie-vue2-child/src/components/FormulaEditor/api.js +0 -69
  67. package/app/wujie-wk/wujie-vue2-child/src/components/FormulaEditor/index.vue +0 -435
  68. package/app/wujie-wk/wujie-vue2-child/src/components/HelloWorld.vue +0 -58
  69. package/app/wujie-wk/wujie-vue2-child/src/components/PageHeader/index.vue +0 -158
  70. package/app/wujie-wk/wujie-vue2-child/src/components/Splitter/README.md +0 -144
  71. package/app/wujie-wk/wujie-vue2-child/src/components/Splitter/example.vue +0 -84
  72. package/app/wujie-wk/wujie-vue2-child/src/components/Splitter/index.vue +0 -203
  73. package/app/wujie-wk/wujie-vue2-child/src/components/diagram/ToolBar.vue +0 -357
  74. package/app/wujie-wk/wujie-vue2-child/src/components/diagram/customTranslate/customTranslate.js +0 -12
  75. package/app/wujie-wk/wujie-vue2-child/src/components/diagram/customTranslate/translationsGerman.js +0 -241
  76. package/app/wujie-wk/wujie-vue2-child/src/components/diagram/index.vue +0 -261
  77. package/app/wujie-wk/wujie-vue2-child/src/components/diagram/xmlData.js +0 -29
  78. package/app/wujie-wk/wujie-vue2-child/src/directives/filldown.js +0 -155
  79. package/app/wujie-wk/wujie-vue2-child/src/directives/filldownTable.js +0 -291
  80. package/app/wujie-wk/wujie-vue2-child/src/main.js +0 -40
  81. package/app/wujie-wk/wujie-vue2-child/src/router/index.js +0 -72
  82. package/app/wujie-wk/wujie-vue2-child/src/store/index.js +0 -23
  83. package/app/wujie-wk/wujie-vue2-child/src/utils/winBox.js +0 -23
  84. package/app/wujie-wk/wujie-vue2-child/src/views/Extend/A.vue +0 -12
  85. package/app/wujie-wk/wujie-vue2-child/src/views/Extend/B.vue +0 -10
  86. package/app/wujie-wk/wujie-vue2-child/src/views/Extend/MagicalComponentsForELFormItem.vue +0 -78
  87. package/app/wujie-wk/wujie-vue2-child/src/views/Extend/index.vue +0 -59
  88. package/app/wujie-wk/wujie-vue2-child/src/views/Extend/tableMouseHorizontalWheel.vue +0 -184
  89. package/app/wujie-wk/wujie-vue2-child/src/views/Home.vue +0 -27
  90. package/app/wujie-wk/wujie-vue2-child/src/views/RouterJump.vue +0 -145
  91. package/app/wujie-wk/wujie-vue2-child/src/views/calendar/index.vue +0 -19
  92. package/app/wujie-wk/wujie-vue2-child/src/views/css.vue +0 -57
  93. package/app/wujie-wk/wujie-vue2-child/src/views/cssComponents/EllipsisText.vue +0 -73
  94. package/app/wujie-wk/wujie-vue2-child/src/views/cssComponents/HoverCard.vue +0 -69
  95. package/app/wujie-wk/wujie-vue2-child/src/views/cssComponents/TableHover.vue +0 -130
  96. package/app/wujie-wk/wujie-vue2-child/src/views/cssComponents/inputSlo.vue +0 -42
  97. package/app/wujie-wk/wujie-vue2-child/src/views/cssComponents/tableFixed.vue +0 -148
  98. package/app/wujie-wk/wujie-vue2-child/src/views/echarts/echart-dome.vue +0 -73
  99. package/app/wujie-wk/wujie-vue2-child/src/views/echarts/index.vue +0 -118
  100. package/app/wujie-wk/wujie-vue2-child/src/views/echarts/pei3d.vue +0 -658
  101. package/app/wujie-wk/wujie-vue2-child/src/views/element/bpmn/index.vue +0 -15
  102. package/app/wujie-wk/wujie-vue2-child/src/views/element/components/attendanceCycle/index.vue +0 -131
  103. package/app/wujie-wk/wujie-vue2-child/src/views/element/components/attendanceGroup/index.vue +0 -147
  104. package/app/wujie-wk/wujie-vue2-child/src/views/element/components/attendancePersonnel/index.vue +0 -158
  105. package/app/wujie-wk/wujie-vue2-child/src/views/element/components/companyCalendar/index.vue +0 -147
  106. package/app/wujie-wk/wujie-vue2-child/src/views/element/components/shift/index.vue +0 -147
  107. package/app/wujie-wk/wujie-vue2-child/src/views/element/components/shiftRotationSystem/index.vue +0 -147
  108. package/app/wujie-wk/wujie-vue2-child/src/views/element/elTableJsx/columnManagement.vue +0 -340
  109. package/app/wujie-wk/wujie-vue2-child/src/views/element/elTableJsx/dialogInput.vue +0 -71
  110. package/app/wujie-wk/wujie-vue2-child/src/views/element/elTableJsx/elTableJsx.vue +0 -1826
  111. package/app/wujie-wk/wujie-vue2-child/src/views/element/elTableJsx/formTable.vue +0 -595
  112. package/app/wujie-wk/wujie-vue2-child/src/views/element/elTableJsx/index.vue +0 -29
  113. package/app/wujie-wk/wujie-vue2-child/src/views/element/elTableJsx/simpleTable.vue +0 -189
  114. package/app/wujie-wk/wujie-vue2-child/src/views/element/elTableJsx.zip +0 -0
  115. package/app/wujie-wk/wujie-vue2-child/src/views/element/index.vue +0 -39
  116. package/app/wujie-wk/wujie-vue2-child/src/views/element/quillEditor/README.md +0 -163
  117. package/app/wujie-wk/wujie-vue2-child/src/views/element/quillEditor/example.vue +0 -307
  118. package/app/wujie-wk/wujie-vue2-child/src/views/element/quillEditor/index.vue +0 -409
  119. package/app/wujie-wk/wujie-vue2-child/src/views/element/quillEditor/toolbar.js +0 -122
  120. package/app/wujie-wk/wujie-vue2-child/vue.config.js +0 -15
@@ -1,184 +0,0 @@
1
- <template>
2
- <div>
3
- <ell-table :data="tableData" border style="width: 100%" height="400">
4
- <el-table-column
5
- prop="date"
6
- label="日期"
7
- width="180"
8
- fixed="left"
9
- ></el-table-column>
10
- <el-table-column label="合并列" width="660">
11
- <el-table-column prop="name" label="姓名" width="180"></el-table-column>
12
- <el-table-column
13
- prop="nickname"
14
- label="昵称"
15
- width="180"
16
- ></el-table-column>
17
- <el-table-column
18
- prop="address"
19
- label="地址"
20
- width="300"
21
- ></el-table-column>
22
- </el-table-column>
23
- <el-table-column prop="phone" label="电话" width="180"></el-table-column>
24
- <el-table-column prop="gender" label="性别" width="180"></el-table-column>
25
- <el-table-column prop="age" label="年龄" width="180"></el-table-column>
26
- <el-table-column prop="hobby" label="爱好" width="180"></el-table-column>
27
- <el-table-column
28
- prop="favorite"
29
- label="爱好"
30
- width="180"
31
- ></el-table-column>
32
- <el-table-column prop="remark" label="备注" width="180"></el-table-column>
33
- <el-table-column prop="price" label="价格" width="180"></el-table-column>
34
- <el-table-column
35
- prop="quantity"
36
- label="数量"
37
- width="180"
38
- ></el-table-column>
39
- <el-table-column prop="total" label="合计" width="180"></el-table-column>
40
- <el-table-column prop="status" label="状态" width="180"></el-table-column>
41
- </ell-table>
42
- </div>
43
- </template>
44
-
45
- <script>
46
- import Vue from "vue";
47
- import { tableMouseHorizontalWheel } from "@/components/EllTable/index";
48
- Vue.component("ell-table", tableMouseHorizontalWheel);
49
- export default {
50
- name: "TableMouseHorizontalWheel",
51
- data() {
52
- return {
53
- tableData: [
54
- {
55
- date: "2016-05-02",
56
- name: "王小虎",
57
- nickname: "王小虎",
58
- address: "上海市普陀区金沙江路 1518 弄",
59
- phone: "13800000000",
60
- gender: "男",
61
- age: 25,
62
- hobby: "游泳",
63
- favorite: "外套",
64
- remark: "无",
65
- price: 100,
66
- quantity: 1,
67
- total: 100,
68
- status: "已完成",
69
- },
70
- {
71
- date: "2016-05-041",
72
- name: "王小虎1",
73
- nickname: "王小虎1",
74
- address: "上海市普陀区金沙江路 1517 弄1",
75
- phone: "138000000001",
76
- gender: "男1",
77
- age: 25,
78
- hobby: "游泳1",
79
- favorite: "外套1",
80
- remark: "无1",
81
- price: 100,
82
- quantity: 1,
83
- total: 100,
84
- status: "已完成1",
85
- },
86
- {
87
- date: "2016-05-06",
88
- name: "王小虎2",
89
- nickname: "王小虎2",
90
- address: "上海市普陀区金沙江路 1519 弄2",
91
- phone: "138000000002",
92
- gender: "男2",
93
- age: 25,
94
- hobby: "游泳2",
95
- favorite: "外套2",
96
- remark: "无2",
97
- price: 100,
98
- quantity: 1,
99
- total: 100,
100
- },
101
- {
102
- date: "2016-05-08",
103
- name: "王小虎3",
104
- nickname: "王小虎3",
105
- address: "上海市普陀区金沙江路 1519 弄3",
106
- phone: "138000000003",
107
- gender: "男3",
108
- age: 25,
109
- hobby: "游泳3",
110
- favorite: "外套3",
111
- remark: "无3",
112
- price: 100,
113
- quantity: 1,
114
- total: 100,
115
- status: "已完成3",
116
- },
117
- {
118
- date: "2016-05-02",
119
- name: "王小虎",
120
- nickname: "王小虎",
121
- address: "上海市普陀区金沙江路 1518 弄",
122
- phone: "13800000000",
123
- gender: "男",
124
- age: 25,
125
- hobby: "游泳",
126
- favorite: "外套",
127
- remark: "无",
128
- price: 100,
129
- quantity: 1,
130
- total: 100,
131
- status: "已完成",
132
- },
133
- {
134
- date: "2016-05-041",
135
- name: "王小虎1",
136
- nickname: "王小虎1",
137
- address: "上海市普陀区金沙江路 1517 弄1",
138
- phone: "138000000001",
139
- gender: "男1",
140
- age: 25,
141
- hobby: "游泳1",
142
- favorite: "外套1",
143
- remark: "无1",
144
- price: 100,
145
- quantity: 1,
146
- total: 100,
147
- status: "已完成1",
148
- },
149
- {
150
- date: "2016-05-06",
151
- name: "王小虎2",
152
- nickname: "王小虎2",
153
- address: "上海市普陀区金沙江路 1519 弄2",
154
- phone: "138000000002",
155
- gender: "男2",
156
- age: 25,
157
- hobby: "游泳2",
158
- favorite: "外套2",
159
- remark: "无2",
160
- price: 100,
161
- quantity: 1,
162
- total: 100,
163
- },
164
- {
165
- date: "2016-05-08",
166
- name: "王小虎3",
167
- nickname: "王小虎3",
168
- address: "上海市普陀区金沙江路 1519 弄3",
169
- phone: "138000000003",
170
- gender: "男3",
171
- age: 25,
172
- hobby: "游泳3",
173
- favorite: "外套3",
174
- remark: "无3",
175
- price: 100,
176
- quantity: 1,
177
- total: 100,
178
- status: "已完成3",
179
- },
180
- ],
181
- };
182
- },
183
- };
184
- </script>
@@ -1,27 +0,0 @@
1
- <template>
2
- <div class="home">
3
- <h1 style="">Vue2子应用</h1>
4
- </div>
5
- </template>
6
-
7
- <style scoped>
8
- .home {
9
- display: flex;
10
- justify-content: center;
11
- align-items: center;
12
- height: 100vh;
13
- background-color: #f0f0f0;
14
- }
15
-
16
- h1 {
17
- color: #42b983;
18
- font-family: 'Arial', sans-serif;
19
- font-size: 18px;
20
- }
21
- </style>
22
-
23
- <script>
24
- export default {
25
- name: 'Home'
26
- }
27
- </script>
@@ -1,145 +0,0 @@
1
- <template>
2
- <div class="router-jump-page">
3
- <div class="flex-container">
4
- <div class="container">
5
- <h1>vue2子应用路由跳转</h1>
6
- <el-input v-model="url" placeholder="请输入地址" class="input-field"></el-input>
7
- <el-input v-model="name" placeholder="请输入姓名" class="input-field"></el-input>
8
- <el-input
9
- v-model="age"
10
- placeholder="请输入年龄"
11
- type="number"
12
- class="input-field"
13
- ></el-input>
14
- <el-select v-model="selectedApp" placeholder="请选择应用" class="input-field">
15
- <el-option label="main" value="main"></el-option>
16
- <el-option label="vue3-child-copy" value="vue3-child-copy"></el-option>
17
- </el-select>
18
- <el-button type="primary" @click="jumpToMain" class="action-button" v-if="isShow"
19
- >跳转到主应用</el-button
20
- >
21
- </div>
22
- <div class="route-params">
23
- <h1>接收到的路由参数:</h1>
24
- <p>路径: {{ $route.path }}</p>
25
- <p v-for="(item, key) in $route.query" :key="item">{{ key }}:{{ item }}</p>
26
- </div>
27
- </div>
28
- </div>
29
- </template>
30
-
31
- <script>
32
- export default {
33
- data() {
34
- return {
35
- url: "/router-jump",
36
- name: "name",
37
- age: "age",
38
- selectedApp: "main",
39
- isShow: true,
40
- };
41
- },
42
- mounted() {
43
- this.$nextTick(() => {
44
- if (!window.$wujie) {
45
- this.isShow = false;
46
- }
47
- });
48
- },
49
- methods: {
50
- jumpToMain() {
51
- window.$wujie?.bus.$emit("router-jump-to-main", {
52
- app: this.selectedApp,
53
- path: this.url,
54
- query: {
55
- name: this.name,
56
- age: this.age,
57
- },
58
- });
59
- },
60
- },
61
- };
62
- </script>
63
-
64
- <style scoped>
65
- .router-jump-page {
66
- padding: 20px;
67
- }
68
- .container {
69
- display: flex;
70
- flex-direction: column;
71
- align-items: center;
72
- gap: 20px;
73
- padding: 20px;
74
- background-color: #f8f8f8;
75
- border-radius: 10px;
76
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
77
- width: 45%;
78
- margin: 0;
79
- transition: box-shadow 0.3s ease-in-out;
80
- }
81
-
82
- h1 {
83
- color: #333;
84
- margin-bottom: 20px;
85
- font-family: "Helvetica Neue", Arial, sans-serif;
86
- }
87
-
88
- .input-field {
89
- width: 100%;
90
- border: 1px solid #ccc;
91
- border-radius: 5px;
92
- padding: 10px;
93
- transition: border-color 0.3s ease-in-out;
94
- }
95
-
96
- .input-field:focus {
97
- border-color: #007bff;
98
- }
99
-
100
- .action-button {
101
- width: 100%;
102
- height: 40px;
103
- background-color: #007bff;
104
- color: white;
105
- border: none;
106
- border-radius: 5px;
107
- transition: background-color 0.3s ease-in-out;
108
- }
109
-
110
- .action-button:hover {
111
- background-color: #0056b3;
112
- }
113
-
114
- .route-params {
115
- padding: 20px;
116
- background-color: #eef2f7;
117
- border-radius: 8px;
118
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
119
- width: 45%;
120
- margin: 0;
121
- }
122
-
123
- .route-params h1 {
124
- color: #007bff;
125
- font-size: 24px;
126
- }
127
-
128
- .route-params p {
129
- font-size: 16px;
130
- color: #333;
131
- margin-bottom: 10px;
132
- background-color: #fff;
133
- padding: 10px;
134
- border-radius: 5px;
135
- border: 1px solid #ccc;
136
- }
137
-
138
- .flex-container {
139
- display: flex;
140
- justify-content: space-around;
141
- align-items: flex-start;
142
- padding: 20px;
143
- gap: 20px;
144
- }
145
- </style>
@@ -1,19 +0,0 @@
1
- <template>
2
- <EventCalendarExample />
3
- </template>
4
-
5
- <script>
6
- /**
7
- * 日程日历示例页
8
- * ------------------------------------------------------------------
9
- * 页面本身只是一层薄壳,所有示例都在
10
- * src/components/EventCalendar/example.vue 里,
11
- * 这样组件文件夹整体拷贝到别的项目时,示例也一并带走。
12
- */
13
- import EventCalendarExample from '@/components/EventCalendar/example.vue'
14
-
15
- export default {
16
- name: 'CalendarView',
17
- components: { EventCalendarExample }
18
- }
19
- </script>
@@ -1,57 +0,0 @@
1
- <template>
2
- <div class="css-page">
3
- <el-tabs type="border-card">
4
- <el-tab-pane label="中间显示省略号...">
5
- <div>
6
- <EllipsisText text="你好,我是中间显示省略号,我是一个稍微有点长的标题,超出一行以后才会有title提示,标题是 实现优惠券的技巧 - 2021-03-26" />
7
- <EllipsisText text="你好,我是中间显示省略号,我是一个稍微有点长的标题,超出一行以后才会有title提示,标题是 实现优惠券的技巧 - 2021-03-26" />
8
- </div>
9
- </el-tab-pane>
10
- <el-tab-pane label="表格悬浮效果">
11
- <div>
12
- <TableHover />
13
- </div>
14
- </el-tab-pane>
15
- <el-tab-pane label="悬浮卡片效果">
16
- <div>
17
- <HoverCard />
18
- </div>
19
- </el-tab-pane>
20
- <el-tab-pane label="el-input slot对不齐问题">
21
- <div>
22
- <InputSlo />
23
- </div>
24
- </el-tab-pane>
25
- <el-tab-pane label="el-table fixed 问题">
26
- <div>
27
- <TableFixed />
28
- </div>
29
- </el-tab-pane>
30
- </el-tabs>
31
- </div>
32
- </template>
33
-
34
- <script>
35
- import EllipsisText from '@/views/cssComponents/EllipsisText.vue'
36
- import TableHover from '@/views/cssComponents/TableHover.vue'
37
- import HoverCard from '@/views/cssComponents/HoverCard.vue'
38
- import InputSlo from './cssComponents/inputSlo.vue'
39
- import TableFixed from './cssComponents/tableFixed.vue'
40
-
41
- export default {
42
- name: 'CssPage',
43
- components: {
44
- EllipsisText,
45
- TableHover,
46
- HoverCard,
47
- InputSlo,
48
- TableFixed,
49
- },
50
- }
51
- </script>
52
-
53
- <style scoped>
54
- .css-page {
55
- padding: 20px;
56
- }
57
- </style>
@@ -1,73 +0,0 @@
1
- <template>
2
- <div class="ellipsis-text-page">
3
- <div class="ellipsis-text">
4
- <ul class="con">
5
- <li class="wrap">
6
- <span class="txt">{{ text }}</span>
7
- <span class="title" :title="text">{{ text }}</span>
8
- </li>
9
- </ul>
10
- </div>
11
- </div>
12
- </template>
13
-
14
- <script>
15
- export default {
16
- name: 'EllipsisText',
17
- props: {
18
- text: {
19
- type: String,
20
- required: true
21
- }
22
- }
23
- }
24
- </script>
25
-
26
- <style scoped>
27
- .con {
28
- font-size: 14px;
29
- color: #666;
30
- width: 600px;
31
- border-radius: 8px;
32
- padding: 4px;
33
- overflow: hidden;
34
- resize: horizontal;
35
- border: 1px solid #ccc;
36
- }
37
-
38
- .wrap {
39
- position: relative;
40
- line-height: 2;
41
- height: 2em;
42
- padding: 0 10px;
43
- overflow: hidden;
44
- background: #fff;
45
- }
46
-
47
-
48
-
49
- .title {
50
- display: block;
51
- position: relative;
52
- background: inherit;
53
- text-align: justify;
54
- height: 2em;
55
- overflow: hidden;
56
- top: -4em;
57
- }
58
-
59
- .txt {
60
- display: block;
61
- max-height: 4em;
62
- }
63
-
64
- .title::before {
65
- content: attr(title);
66
- width: 50%;
67
- float: right;
68
- white-space: nowrap;
69
- overflow: hidden;
70
- text-overflow: ellipsis;
71
- direction: rtl;
72
- }
73
- </style>
@@ -1,69 +0,0 @@
1
- <template>
2
- <div class="hover-card-page">
3
- <div class="card-container">
4
- <div class="card">
5
- <div class="card-content">
6
- <h3>悬浮卡片</h3>
7
- <p>将鼠标悬浮在卡片上查看效果</p>
8
- <button class="card-btn">了解更多</button>
9
- </div>
10
- </div>
11
- </div>
12
- </div>
13
- </template>
14
-
15
- <script>
16
- export default {
17
- name: 'HoverCard'
18
- }
19
- </script>
20
-
21
- <style scoped>
22
- .card-container {
23
- padding: 20px;
24
- display: flex;
25
- justify-content: center;
26
- }
27
-
28
- .card {
29
- width: 300px;
30
- background: white;
31
- border-radius: 15px;
32
- padding: 20px;
33
- box-shadow: 0 4px 8px rgba(0,0,0,0.1);
34
- transition: all 0.3s ease;
35
- }
36
-
37
- .card:hover {
38
- transform: translateY(-10px);
39
- box-shadow: 0 12px 24px rgba(0,0,0,0.2);
40
- }
41
-
42
- .card-content {
43
- text-align: center;
44
- }
45
-
46
- .card-content h3 {
47
- color: #333;
48
- margin-bottom: 15px;
49
- }
50
-
51
- .card-content p {
52
- color: #666;
53
- margin-bottom: 20px;
54
- }
55
-
56
- .card-btn {
57
- background: #409EFF;
58
- color: white;
59
- border: none;
60
- padding: 10px 20px;
61
- border-radius: 5px;
62
- cursor: pointer;
63
- transition: background 0.3s ease;
64
- }
65
-
66
- .card-btn:hover {
67
- background: #66b1ff;
68
- }
69
- </style>
@@ -1,130 +0,0 @@
1
- <template>
2
- <div class="table-hover-page">
3
- <el-table
4
- :data="data"
5
- style="width: 100%"
6
- :span-method="objectSpanMethod"
7
- :row-class-name="tableRowClassName"
8
- :cell-style="cellStyle"
9
- @cell-mouse-enter="handleCellMouseEnter"
10
- @cell-mouse-leave="handleCellMouseLeave"
11
- border>
12
- <el-table-column prop="service" label="服务" width="180">
13
- </el-table-column>
14
- <el-table-column prop="name" label="实现变量" width="280">
15
- </el-table-column>
16
- <el-table-column prop="value" label="总配额">
17
- </el-table-column>
18
- </el-table>
19
- </div>
20
- </template>
21
-
22
- <script>
23
- export default {
24
- name: 'TableHover',
25
- data() {
26
- return {
27
- data: [
28
- { service: 'ActiveMQ连接数', name: 'ActiveMQ队列数', value: '11' },
29
- { service: 'ActiveMQ连接数', name: 'ActiveMQ流控配额', value: '111112' },
30
- { service: 'ActiveMQ连接数', name: 'ActiveMQ连接配额', value: '111111' },
31
- { service: 'ActiveMQ连接数', name: 'ActiveMQ存储配额', value: '111111' },
32
- { service: '服务内类', name: 'westest00005activeMQ', value: '0' },
33
- { service: '服务内类', name: '服务内类配额', value: '111111' },
34
- { service: '测试公司内网', name: '配额测试配额测试配额测试配额测试配额测试配额测试', value: '0' },
35
- { service: '测试公司内网', name: '测试公司内网(个/人)', value: '111111' },
36
- { service: '测试公司内网', name: '测试公司内网配额', value: '111111' },
37
- { service: '测试公司内网', name: 'test111165', value: '0' },
38
- { service: '测试公司内网', name: 'sss', value: '111111' },
39
- { service: '测试公司内网', name: 'westest001测试', value: '0' }
40
- ],
41
- currentIndex: '', // 当前悬浮行的标识
42
- currentColumnIndex: '' // 当前悬浮列的标识
43
- }
44
- },
45
- methods: {
46
- objectSpanMethod({ row, column, rowIndex, columnIndex }) {
47
- // 获取表格数据
48
- const tableData = this.data;
49
-
50
- // 只处理第一列的合并
51
- if (columnIndex === 0) {
52
- // 获取当前行的值
53
- const currentValue = row.service; // 假设要根据 service 来合并
54
-
55
- // 向上查找相同值的行数
56
- let count = 1; // 至少包含当前行
57
- for (let i = rowIndex - 1; i >= 0; i--) {
58
- if (tableData[i].service === currentValue) {
59
- count++;
60
- } else {
61
- break;
62
- }
63
- }
64
-
65
- // 如果是相同值的第一行,则合并
66
- if (rowIndex === 0 || tableData[rowIndex - 1].service !== currentValue) {
67
- // 向下查找相同值的行数
68
- for (let i = rowIndex + 1; i < tableData.length; i++) {
69
- if (tableData[i].service === currentValue) {
70
- count++;
71
- } else {
72
- break;
73
- }
74
- }
75
- return {
76
- rowspan: count,
77
- colspan: 1
78
- };
79
- } else {
80
- // 不是第一行则隐藏
81
- return {
82
- rowspan: 0,
83
- colspan: 0
84
- };
85
- }
86
- }
87
-
88
- // 其他列保持不变
89
- return {
90
- rowspan: 1,
91
- colspan: 1
92
- };
93
- },
94
- handleCellMouseEnter(row, column, cell, event) {
95
- this.currentIndex = row.service; // 记录当前悬浮行的 service 值
96
- this.currentColumnIndex = column.label;
97
- },
98
-
99
- handleCellMouseLeave() {
100
- this.currentIndex = '';
101
- this.currentColumnIndex = '';
102
- },
103
-
104
- // 行的样式类名
105
- tableRowClassName({ row }) {
106
- let flag = row.service === this.currentIndex &&
107
- this.currentColumnIndex === '服务'; // 根据实际的第一列标题修改
108
- return flag ? 'table-hover-row' : '';
109
- },
110
-
111
- // 单元格样式
112
- cellStyle({ row, column, rowIndex, columnIndex }) {
113
- let flag = row.service === this.currentIndex &&
114
- this.currentColumnIndex &&
115
- this.currentColumnIndex !== '服务' &&
116
- columnIndex === 0;
117
- return flag ? 'background: #f4f6fa' : '';
118
- }
119
- }
120
- }
121
- </script>
122
-
123
- <style>
124
- .el-table .table-hover-row {
125
- background: #f4f6fa !important;
126
- }
127
- .el-table td {
128
- padding: 8px 0;
129
- }
130
- </style>