npmapps 1.1.4 → 1.1.5

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 (114) hide show
  1. package/app/wujie-vue2-child/.eslintrc.js +19 -0
  2. package/app/wujie-vue2-child/README.md +24 -0
  3. package/app/wujie-vue2-child/babel.config.js +5 -0
  4. package/app/wujie-vue2-child/docs/superpowers/plans/2026-05-29-quill-editor.md +836 -0
  5. package/app/wujie-vue2-child/docs/superpowers/specs/2026-05-29-quill-editor-design.md +210 -0
  6. package/app/wujie-vue2-child/jsconfig.json +19 -0
  7. package/app/wujie-vue2-child/package-lock.json +21333 -0
  8. package/app/wujie-vue2-child/package.json +63 -0
  9. package/app/wujie-vue2-child/postcss.config.js +10 -0
  10. package/app/wujie-vue2-child/public/favicon.ico +0 -0
  11. package/app/wujie-vue2-child/public/index.html +17 -0
  12. package/app/wujie-vue2-child/public/rili.jpg +0 -0
  13. package/app/wujie-vue2-child/public//344/270/200/351/224/256/351/273/221/346/232/227.html +136 -0
  14. package/app/wujie-vue2-child/src/App.vue +110 -0
  15. package/app/wujie-vue2-child/src/assets/bpmn-camunda.jpg +0 -0
  16. package/app/wujie-vue2-child/src/assets/css/diagram.less +17 -0
  17. package/app/wujie-vue2-child/src/assets/icon/Icon.less +31 -0
  18. package/app/wujie-vue2-child/src/assets/icon/font/app-codes.css +26 -0
  19. package/app/wujie-vue2-child/src/assets/icon/font/app.eot +0 -0
  20. package/app/wujie-vue2-child/src/assets/icon/font/app.svg +60 -0
  21. package/app/wujie-vue2-child/src/assets/icon/font/app.ttf +0 -0
  22. package/app/wujie-vue2-child/src/assets/icon/font/app.woff +0 -0
  23. package/app/wujie-vue2-child/src/assets/icon/font/app.woff2 +0 -0
  24. package/app/wujie-vue2-child/src/assets/icon/font/config.json +248 -0
  25. package/app/wujie-vue2-child/src/assets/icon/font/source/raw/align-bottom-tool.svg +30 -0
  26. package/app/wujie-vue2-child/src/assets/icon/font/source/raw/align-horizontal-center-tool.svg +85 -0
  27. package/app/wujie-vue2-child/src/assets/icon/font/source/raw/align-left-tool.svg +84 -0
  28. package/app/wujie-vue2-child/src/assets/icon/font/source/raw/align-right-tool.svg +80 -0
  29. package/app/wujie-vue2-child/src/assets/icon/font/source/raw/align-top-tool.svg +84 -0
  30. package/app/wujie-vue2-child/src/assets/icon/font/source/raw/align-vertical-center-tool.svg +89 -0
  31. package/app/wujie-vue2-child/src/assets/icon/font/source/raw/distribute-horizontally-tool.svg +95 -0
  32. package/app/wujie-vue2-child/src/assets/icon/font/source/raw/distribute-vertically-tool.svg +99 -0
  33. package/app/wujie-vue2-child/src/assets/icon/font/source/raw/set-color-tool.svg +111 -0
  34. package/app/wujie-vue2-child/src/assets/icon/font/source/symbols/align-bottom-tool.svg +30 -0
  35. package/app/wujie-vue2-child/src/assets/icon/font/source/symbols/align-horizontal-center-tool.svg +30 -0
  36. package/app/wujie-vue2-child/src/assets/icon/font/source/symbols/align-left-tool.svg +30 -0
  37. package/app/wujie-vue2-child/src/assets/icon/font/source/symbols/align-right-tool.svg +30 -0
  38. package/app/wujie-vue2-child/src/assets/icon/font/source/symbols/align-top-tool.svg +30 -0
  39. package/app/wujie-vue2-child/src/assets/icon/font/source/symbols/align-vertical-center-tool.svg +30 -0
  40. package/app/wujie-vue2-child/src/assets/icon/font/source/symbols/distribute-horizontally-tool.svg +30 -0
  41. package/app/wujie-vue2-child/src/assets/icon/font/source/symbols/distribute-vertically-tool.svg +30 -0
  42. package/app/wujie-vue2-child/src/assets/icon/font/source/symbols/set-color-tool.svg +63 -0
  43. package/app/wujie-vue2-child/src/assets/logo.png +0 -0
  44. package/app/wujie-vue2-child/src/components/EllTable/README.md +70 -0
  45. package/app/wujie-vue2-child/src/components/EllTable/article.md +184 -0
  46. package/app/wujie-vue2-child/src/components/EllTable/index.js +213 -0
  47. package/app/wujie-vue2-child/src/components/EventCalendar/CalendarSkeleton.vue +147 -0
  48. package/app/wujie-vue2-child/src/components/EventCalendar/CodeBlock.vue +199 -0
  49. package/app/wujie-vue2-child/src/components/EventCalendar/MonthSelect.vue +376 -0
  50. package/app/wujie-vue2-child/src/components/EventCalendar/README.md +368 -0
  51. package/app/wujie-vue2-child/src/components/EventCalendar/example.vue +1551 -0
  52. package/app/wujie-vue2-child/src/components/EventCalendar/index.vue +1646 -0
  53. package/app/wujie-vue2-child/src/components/EventCalendar/mockData.js +349 -0
  54. package/app/wujie-vue2-child/src/components/EventCalendar/utils.js +201 -0
  55. package/app/wujie-vue2-child/src/components/FormulaEditor/FunctionSelector.vue +123 -0
  56. package/app/wujie-vue2-child/src/components/FormulaEditor/OperatorSelector.vue +184 -0
  57. package/app/wujie-vue2-child/src/components/FormulaEditor/ParameterSelector.vue +123 -0
  58. package/app/wujie-vue2-child/src/components/FormulaEditor/api.js +69 -0
  59. package/app/wujie-vue2-child/src/components/FormulaEditor/index.vue +435 -0
  60. package/app/wujie-vue2-child/src/components/HelloWorld.vue +58 -0
  61. package/app/wujie-vue2-child/src/components/PageHeader/index.vue +158 -0
  62. package/app/wujie-vue2-child/src/components/Splitter/README.md +144 -0
  63. package/app/wujie-vue2-child/src/components/Splitter/example.vue +84 -0
  64. package/app/wujie-vue2-child/src/components/Splitter/index.vue +203 -0
  65. package/app/wujie-vue2-child/src/components/diagram/ToolBar.vue +357 -0
  66. package/app/wujie-vue2-child/src/components/diagram/customTranslate/customTranslate.js +12 -0
  67. package/app/wujie-vue2-child/src/components/diagram/customTranslate/translationsGerman.js +241 -0
  68. package/app/wujie-vue2-child/src/components/diagram/index.vue +261 -0
  69. package/app/wujie-vue2-child/src/components/diagram/xmlData.js +29 -0
  70. package/app/wujie-vue2-child/src/directives/filldown.js +155 -0
  71. package/app/wujie-vue2-child/src/directives/filldownTable.js +291 -0
  72. package/app/wujie-vue2-child/src/main.js +40 -0
  73. package/app/wujie-vue2-child/src/router/index.js +72 -0
  74. package/app/wujie-vue2-child/src/store/index.js +23 -0
  75. package/app/wujie-vue2-child/src/utils/winBox.js +23 -0
  76. package/app/wujie-vue2-child/src/views/Extend/A.vue +12 -0
  77. package/app/wujie-vue2-child/src/views/Extend/B.vue +10 -0
  78. package/app/wujie-vue2-child/src/views/Extend/MagicalComponentsForELFormItem.vue +78 -0
  79. package/app/wujie-vue2-child/src/views/Extend/index.vue +59 -0
  80. package/app/wujie-vue2-child/src/views/Extend/tableMouseHorizontalWheel.vue +184 -0
  81. package/app/wujie-vue2-child/src/views/Home.vue +27 -0
  82. package/app/wujie-vue2-child/src/views/RouterJump.vue +145 -0
  83. package/app/wujie-vue2-child/src/views/calendar/index.vue +19 -0
  84. package/app/wujie-vue2-child/src/views/css.vue +57 -0
  85. package/app/wujie-vue2-child/src/views/cssComponents/EllipsisText.vue +73 -0
  86. package/app/wujie-vue2-child/src/views/cssComponents/HoverCard.vue +69 -0
  87. package/app/wujie-vue2-child/src/views/cssComponents/TableHover.vue +130 -0
  88. package/app/wujie-vue2-child/src/views/cssComponents/inputSlo.vue +42 -0
  89. package/app/wujie-vue2-child/src/views/cssComponents/tableFixed.vue +148 -0
  90. package/app/wujie-vue2-child/src/views/echarts/echart-dome.vue +73 -0
  91. package/app/wujie-vue2-child/src/views/echarts/index.vue +118 -0
  92. package/app/wujie-vue2-child/src/views/echarts/pei3d.vue +658 -0
  93. package/app/wujie-vue2-child/src/views/element/bpmn/index.vue +15 -0
  94. package/app/wujie-vue2-child/src/views/element/components/attendanceCycle/index.vue +131 -0
  95. package/app/wujie-vue2-child/src/views/element/components/attendanceGroup/index.vue +147 -0
  96. package/app/wujie-vue2-child/src/views/element/components/attendancePersonnel/index.vue +158 -0
  97. package/app/wujie-vue2-child/src/views/element/components/companyCalendar/index.vue +147 -0
  98. package/app/wujie-vue2-child/src/views/element/components/shift/index.vue +147 -0
  99. package/app/wujie-vue2-child/src/views/element/components/shiftRotationSystem/index.vue +147 -0
  100. package/app/wujie-vue2-child/src/views/element/elTableJsx/columnManagement.vue +340 -0
  101. package/app/wujie-vue2-child/src/views/element/elTableJsx/dialogInput.vue +71 -0
  102. package/app/wujie-vue2-child/src/views/element/elTableJsx/elTableJsx.vue +1826 -0
  103. package/app/wujie-vue2-child/src/views/element/elTableJsx/formTable.vue +595 -0
  104. package/app/wujie-vue2-child/src/views/element/elTableJsx/index.vue +29 -0
  105. package/app/wujie-vue2-child/src/views/element/elTableJsx/simpleTable.vue +189 -0
  106. package/app/wujie-vue2-child/src/views/element/elTableJsx.zip +0 -0
  107. package/app/wujie-vue2-child/src/views/element/index.vue +39 -0
  108. package/app/wujie-vue2-child/src/views/element/quillEditor/README.md +163 -0
  109. package/app/wujie-vue2-child/src/views/element/quillEditor/example.vue +307 -0
  110. package/app/wujie-vue2-child/src/views/element/quillEditor/index.vue +409 -0
  111. package/app/wujie-vue2-child/src/views/element/quillEditor/toolbar.js +122 -0
  112. package/app/wujie-vue2-child/vue.config.js +15 -0
  113. package/package.json +1 -1
  114. package/app/check-import-case.js +0 -344
@@ -0,0 +1,184 @@
1
+ <template>
2
+ <div class="selector-container">
3
+ <div class="header">操作符</div>
4
+ <div class="tree-wrapper">
5
+ <el-tree
6
+ :data="operatorData"
7
+ :props="defaultProps"
8
+ @node-click="handleNodeClick"
9
+ default-expand-all
10
+ :expand-on-click-node="false"
11
+ >
12
+ <span
13
+ class="custom-tree-node"
14
+ slot-scope="{ node, data }"
15
+ :draggable="!onlyLeafClickable || !data.children"
16
+ @dragstart="handleDragStart(node, data, $event)"
17
+ >
18
+ <span>{{ node.label }}</span>
19
+ <span v-if="!data.children && data.value" class="node-value">{{ data.value }}</span>
20
+ </span>
21
+ </el-tree>
22
+ </div>
23
+ </div>
24
+ </template>
25
+
26
+ <script>
27
+ export default {
28
+ name: "OperatorSelector",
29
+ props: {
30
+ onlyLeafClickable: {
31
+ type: Boolean,
32
+ default: true,
33
+ },
34
+ prefix: {
35
+ type: String,
36
+ default: "",
37
+ },
38
+ },
39
+ data() {
40
+ return {
41
+ defaultProps: {
42
+ children: "children",
43
+ label: "label",
44
+ },
45
+ operatorData: [
46
+ {
47
+ label: "关键字",
48
+ children: [
49
+ { label: "如果", value: "if" },
50
+ { label: "否则", value: "else" },
51
+ ],
52
+ },
53
+ {
54
+ label: "计算运算符",
55
+ children: [
56
+ { label: "加", value: "+" },
57
+ { label: "减", value: "-" },
58
+ { label: "乘", value: "*" },
59
+ { label: "除", value: "/" },
60
+ { label: "取余", value: "%" },
61
+ { label: "左括号", value: "(" },
62
+ { label: "右括号", value: ")" },
63
+ ],
64
+ },
65
+ {
66
+ label: "比较运算符",
67
+ children: [
68
+ { label: "大于", value: ">" },
69
+ { label: "小于", value: "<" },
70
+ { label: "等于", value: "==" },
71
+ { label: "不等于", value: "!=" },
72
+ { label: "大于等于", value: ">=" },
73
+ { label: "小于等于", value: "<=" },
74
+ ],
75
+ },
76
+ {
77
+ label: "逻辑运算符",
78
+ children: [
79
+ { label: "并且", value: "&&" },
80
+ { label: "或者", value: "||" },
81
+ { label: "非", value: "!" },
82
+ ],
83
+ },
84
+ ],
85
+ };
86
+ },
87
+ methods: {
88
+ handleNodeClick(data) {
89
+ // 如果配置了只允许点击叶子节点,且当前节点有子节点,则不处理
90
+ if (this.onlyLeafClickable && data.children) {
91
+ return;
92
+ }
93
+
94
+ // 处理特殊关键字
95
+ if (data.value === 'if') {
96
+ this.$emit("select", { label: data.label, value: `${this.prefix}如果(){\n \n}` });
97
+ } else if (data.value === 'else') {
98
+ this.$emit("select", { label: data.label, value: `${this.prefix}否则{\n \n}` });
99
+ } else {
100
+ this.$emit("select", { ...data, value: `${this.prefix}${data.value}` });
101
+ }
102
+ },
103
+ handleDragStart(node, data, e) {
104
+ if (this.onlyLeafClickable && data.children) {
105
+ e.preventDefault();
106
+ return;
107
+ }
108
+
109
+ let value = '';
110
+ if (data.value === 'if') {
111
+ value = `${this.prefix}如果(){\n \n}`;
112
+ } else if (data.value === 'else') {
113
+ value = `${this.prefix}否则{\n \n}`;
114
+ } else {
115
+ value = `${this.prefix}${data.value}`;
116
+ }
117
+
118
+ e.dataTransfer.setData("text/plain", value);
119
+ e.dataTransfer.effectAllowed = "copy";
120
+
121
+ // 设置自定义拖拽镜像
122
+ const div = document.createElement('div');
123
+ div.innerText = value;
124
+ div.style.position = 'absolute';
125
+ div.style.top = '-9999px';
126
+ div.style.padding = '5px 10px';
127
+ div.style.background = '#fff';
128
+ div.style.border = '1px solid #409eff';
129
+ div.style.borderRadius = '4px';
130
+ div.style.fontSize = '14px';
131
+ div.style.color = '#303133';
132
+ div.style.boxShadow = '0 2px 12px 0 rgba(0,0,0,0.1)';
133
+ div.style.zIndex = '9999';
134
+ // 保持换行
135
+ div.style.whiteSpace = 'pre';
136
+ document.body.appendChild(div);
137
+
138
+ e.dataTransfer.setDragImage(div, 0, 0);
139
+
140
+ setTimeout(() => {
141
+ document.body.removeChild(div);
142
+ }, 0);
143
+ },
144
+ },
145
+ };
146
+ </script>
147
+
148
+ <style scoped>
149
+ .selector-container {
150
+ width: 100%;
151
+ height: 100%;
152
+ display: flex;
153
+ flex-direction: column;
154
+ }
155
+
156
+ .header {
157
+ padding: 10px;
158
+ background-color: #f5f7fa;
159
+ border-bottom: 1px solid #ebeef5;
160
+ font-weight: bold;
161
+ text-align: center;
162
+ }
163
+
164
+ .tree-wrapper {
165
+ flex: 1;
166
+ overflow-y: auto;
167
+ padding: 5px;
168
+ }
169
+
170
+ .custom-tree-node {
171
+ flex: 1;
172
+ display: flex;
173
+ align-items: center;
174
+ justify-content: space-between;
175
+ font-size: 14px;
176
+ padding-right: 8px;
177
+ }
178
+
179
+ .node-value {
180
+ color: #909399;
181
+ font-size: 12px;
182
+ font-family: monospace;
183
+ }
184
+ </style>
@@ -0,0 +1,123 @@
1
+ <template>
2
+ <div class="selector-container">
3
+ <div class="header">参数</div>
4
+ <div class="tree-wrapper">
5
+ <el-tree
6
+ :data="treeData"
7
+ :props="defaultProps"
8
+ @node-click="handleNodeClick"
9
+ default-expand-all
10
+ highlight-current
11
+ >
12
+ <span
13
+ class="custom-tree-node"
14
+ slot-scope="{ node, data }"
15
+ :draggable="!onlyLeafClickable || node.isLeaf"
16
+ @dragstart="handleDragStart(node, data, $event)"
17
+ >
18
+ {{ node.label }}
19
+ </span>
20
+ </el-tree>
21
+ </div>
22
+ </div>
23
+ </template>
24
+
25
+ <script>
26
+ import { getParameters } from "./api";
27
+
28
+ export default {
29
+ name: "ParameterSelector",
30
+ props: {
31
+ onlyLeafClickable: {
32
+ type: Boolean,
33
+ default: true,
34
+ },
35
+ prefix: {
36
+ type: String,
37
+ default: "P_",
38
+ },
39
+ },
40
+ data() {
41
+ return {
42
+ treeData: [],
43
+ defaultProps: {
44
+ children: "children",
45
+ label: "label",
46
+ },
47
+ };
48
+ },
49
+ mounted() {
50
+ this.fetchData();
51
+ },
52
+ methods: {
53
+ async fetchData() {
54
+ this.treeData = await getParameters();
55
+ },
56
+ handleNodeClick(data, node) {
57
+ if (this.onlyLeafClickable && !node.isLeaf) {
58
+ return;
59
+ }
60
+ this.$emit("select", { ...data, value: `${this.prefix}${data.name}` });
61
+ },
62
+ handleDragStart(node, data, e) {
63
+ if (this.onlyLeafClickable && !node.isLeaf) {
64
+ e.preventDefault();
65
+ return;
66
+ }
67
+ const value = `${this.prefix}${data.name}`;
68
+ e.dataTransfer.setData("text/plain", value);
69
+ e.dataTransfer.effectAllowed = "copy";
70
+
71
+ // 设置自定义拖拽镜像
72
+ const div = document.createElement('div');
73
+ div.innerText = value;
74
+ div.style.position = 'absolute';
75
+ div.style.top = '-9999px';
76
+ div.style.padding = '5px 10px';
77
+ div.style.background = '#fff';
78
+ div.style.border = '1px solid #409eff';
79
+ div.style.borderRadius = '4px';
80
+ div.style.fontSize = '14px';
81
+ div.style.color = '#303133';
82
+ div.style.boxShadow = '0 2px 12px 0 rgba(0,0,0,0.1)';
83
+ div.style.zIndex = '9999';
84
+ document.body.appendChild(div);
85
+
86
+ e.dataTransfer.setDragImage(div, 0, 0);
87
+
88
+ setTimeout(() => {
89
+ document.body.removeChild(div);
90
+ }, 0);
91
+ },
92
+ },
93
+ };
94
+ </script>
95
+
96
+ <style scoped>
97
+ .custom-tree-node {
98
+ flex: 1;
99
+ display: flex;
100
+ align-items: center;
101
+ font-size: 14px;
102
+ }
103
+ .selector-container {
104
+ width: 100%;
105
+ height: 100%;
106
+ display: flex;
107
+ flex-direction: column;
108
+ }
109
+
110
+ .header {
111
+ padding: 10px;
112
+ background-color: #f5f7fa;
113
+ border-bottom: 1px solid #ebeef5;
114
+ font-weight: bold;
115
+ text-align: center;
116
+ }
117
+
118
+ .tree-wrapper {
119
+ flex: 1;
120
+ overflow-y: auto;
121
+ padding: 10px;
122
+ }
123
+ </style>
@@ -0,0 +1,69 @@
1
+ export const getFunctions = () => {
2
+ return new Promise((resolve) => {
3
+ setTimeout(() => {
4
+ resolve([
5
+ {
6
+ id: 1,
7
+ label: '数学函数',
8
+ children: [
9
+ { id: 11, label: '求和', name: '求和' },
10
+ { id: 12, label: '平均值', name: '平均值' },
11
+ { id: 13, label: '最大值', name: '最大值' },
12
+ { id: 14, label: '最小值', name: '最小值' }
13
+ ]
14
+ },
15
+ {
16
+ id: 2,
17
+ label: '逻辑函数',
18
+ children: [
19
+ { id: 21, label: '条件判断', name: '条件判断' },
20
+ { id: 22, label: '与', name: '与' },
21
+ { id: 23, label: '或', name: '或' }
22
+ ]
23
+ },
24
+ {
25
+ id: 3,
26
+ label: '文本函数',
27
+ children: [
28
+ { id: 31, label: '拼接', name: '拼接' },
29
+ { id: 32, label: '截取', name: '截取' }
30
+ ]
31
+ }
32
+ ]);
33
+ }, 500);
34
+ });
35
+ };
36
+
37
+ export const getParameters = () => {
38
+ return new Promise((resolve) => {
39
+ setTimeout(() => {
40
+ resolve([
41
+ {
42
+ id: 100,
43
+ label: '基础信息',
44
+ children: [
45
+ { id: 101, label: '员工姓名', name: '员工姓名' },
46
+ { id: 102, label: '入职日期', name: '入职日期' },
47
+ { id: 103, label: '部门', name: '部门' }
48
+ ]
49
+ },
50
+ {
51
+ id: 200,
52
+ label: '薪资数据',
53
+ children: [
54
+ {
55
+ id: 210,
56
+ label: '基本工资',
57
+ children: [
58
+ { id: 211, label: '岗位工资', name: '岗位工资' },
59
+ { id: 212, label: '绩效基数', name: '绩效基数' }
60
+ ]
61
+ },
62
+ { id: 220, label: '奖金', name: '奖金' },
63
+ { id: 230, label: '补贴', name: '补贴' }
64
+ ]
65
+ }
66
+ ]);
67
+ }, 500);
68
+ });
69
+ };