@ajaxjs/ui 1.3.12 → 1.4.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 (52) hide show
  1. package/README.md +2 -29
  2. package/dist/ajaxjs-ui.cjs.js +1 -0
  3. package/dist/ajaxjs-ui.es.js +33 -0
  4. package/dist/ajaxjs-ui.umd.js +1 -0
  5. package/dist/types/index.d.ts +1 -0
  6. package/dist/utils.d.ts +36 -0
  7. package/package.json +55 -49
  8. package/.browserslistrc +0 -3
  9. package/.eslintrc.js +0 -26
  10. package/babel.config.js +0 -5
  11. package/deprecated/api-helper.zip +0 -0
  12. package/deprecated/api-helper2.zip +0 -0
  13. package/deprecated/api-selector.zip +0 -0
  14. package/deprecated/common-ui.zip +0 -0
  15. package/deprecated/data-source.zip +0 -0
  16. package/deprecated/table-selector.zip +0 -0
  17. package/deprecated/utils.js +0 -220
  18. package/dist/@ajaxjs/ui.common.js +0 -3818
  19. package/dist/@ajaxjs/ui.common.js.map +0 -1
  20. package/dist/@ajaxjs/ui.css +0 -1
  21. package/dist/@ajaxjs/ui.umd.js +0 -3829
  22. package/dist/@ajaxjs/ui.umd.js.map +0 -1
  23. package/dist/@ajaxjs/ui.umd.min.js +0 -2
  24. package/dist/@ajaxjs/ui.umd.min.js.map +0 -1
  25. package/dist/demo.html +0 -1
  26. package/examples/App.vue +0 -137
  27. package/public/favicon.ico +0 -0
  28. package/public/index.html +0 -17
  29. package/src/data-source/data-source.less +0 -46
  30. package/src/data-source/data-source.ts +0 -97
  31. package/src/data-source/data-source.vue +0 -59
  32. package/src/iam/iam.ts +0 -65
  33. package/src/iam/user.vue +0 -53
  34. package/src/index.js +0 -52
  35. package/src/iview-ext/fast-iview-table.ts +0 -133
  36. package/src/iview-ext/fast-iview-table.vue +0 -67
  37. package/src/iview-ext/list.ts +0 -108
  38. package/src/iview-ext/table-selector.vue +0 -185
  39. package/src/iview-ext/tips.vue +0 -17
  40. package/src/libs/api-helper.d.ts +0 -194
  41. package/src/libs/api-list.d.ts +0 -15
  42. package/src/libs/common.d.ts +0 -201
  43. package/src/libs/entity.ts +0 -31
  44. package/src/libs/iview-widgets.ts +0 -73
  45. package/src/main.ts +0 -7
  46. package/src/shims-tsx.d.ts +0 -11
  47. package/src/shims-vue.d.ts +0 -4
  48. package/src/style/common-functions.less +0 -286
  49. package/src/style/reset.less +0 -19
  50. package/src/style/reset2.less +0 -49
  51. package/tsconfig.json +0 -40
  52. package/vue.config.js +0 -19
@@ -1,11 +0,0 @@
1
- import Vue, { VNode } from 'vue'
2
-
3
- declare global {
4
- namespace JSX {
5
- interface Element extends VNode {}
6
- interface ElementClass extends Vue {}
7
- interface IntrinsicElements {
8
- [elem: string]: any
9
- }
10
- }
11
- }
@@ -1,4 +0,0 @@
1
- declare module '*.vue' {
2
- import Vue from 'vue'
3
- export default Vue
4
- }
@@ -1,286 +0,0 @@
1
- :root {
2
- --admin-main-color: #1e6bb8;
3
- }
4
-
5
- .aj-center-title () {
6
- text-align : center;
7
- font-size : 1.3rem;
8
- font-weight : bold;
9
- letter-spacing: 5px;
10
- padding : 20px 0;
11
- }
12
-
13
- .aj-text-function() {
14
- color : #333;
15
- line-height : 160%;
16
- margin : 15px 0;
17
- font-size : .95rem;
18
- letter-spacing: 1px;
19
- text-align : justify;
20
- }
21
-
22
- .centerBody (@defaultWidth: 1300px) {
23
- max-width: @defaultWidth;
24
- margin : 0 auto;
25
- width : 100%;
26
- height : 100%;
27
- }
28
-
29
- .transition (@t) {
30
- -webkit-transition: @t;
31
- -moz-transition : @t;
32
- -ms-transition : @t;
33
- -o-transition : @t;
34
- transition : @t;
35
- }
36
-
37
- .transition_withTransform (@t) {
38
- -webkit-transition: -webkit-transform @t;
39
- -moz-transition : -moz-transform @t;
40
- -ms-transition : -moz-transform @t;
41
- -o-transition : -o-transform @t;
42
- transition : transform @t;
43
- }
44
-
45
- .transform (@t) {
46
- -webkit-transform: @t;
47
- -moz-transform : @t;
48
- -ms-transform : @t;
49
- -o-transform : @t;
50
- -transform : @t;
51
- }
52
-
53
- .heightFx () {
54
- .transition (300ms height ease-out);
55
- }
56
-
57
- .widthFx () {
58
- .transition (200ms width ease-out);
59
- }
60
-
61
- .leftFx () {
62
- .transition (200ms left linear);
63
- }
64
-
65
- // 解决使用CSS动画时闪烁的问题
66
- // http://ued.taobao.com/blog/2012/01/chrome%E6%B8%B2%E6%9F%93transition%E6%97%B6%E9%A1%B5%E9%9D%A2%E9%97%AA%E5%8A%A8bug/
67
- .fixTransitionFlash () {
68
- backface-visibility : hidden;
69
- -webkit-backface-visibility: hidden;
70
- -moz-backface-visibility : hidden;
71
- }
72
-
73
- // 解决高度塌陷的问题 – 清除浮动 或叫 闭合浮动
74
- // http://www.iyunlu.com/view/css-xhtml/55.html
75
- // http://www.zhangxinxu.com/wordpress/2010/01/css-float%E6%B5%AE%E5%8A%A8%E7%9A%84%E6%B7%B1%E5%85%A5%E7%A0%94%E7%A9%B6%E3%80%81%E8%AF%A6%E8%A7%A3%E5%8F%8A%E6%8B%93%E5%B1%95%E4%BA%8C/
76
- // 强制换行
77
- .forceBreak () {
78
- word-wrap : break-word;
79
- word-break: break-all;
80
- }
81
-
82
- .giveHeight () {
83
- overflow: hidden;
84
- zoom : 1;
85
- }
86
-
87
- // 透明度
88
- .imgOpacityShow (@time: 300ms) {
89
- .transition (opacity @time ease-in);
90
- }
91
-
92
- // 旋转角度
93
- .rotate (@ro: 30deg) {
94
- .transform (rotate(@ro));
95
- }
96
-
97
- // 渐变
98
- .gradient (@direction , @startColor , @endColor) {
99
- background-image: -webkit-linear-gradient(@direction, @startColor, @endColor);
100
- background-image: -moz-linear-gradient(@direction, @startColor, @endColor);
101
- background-image: -ms-linear-gradient(@direction, @startColor, @endColor);
102
- background-image: -o-linear-gradient(@direction, @startColor, @endColor);
103
- background-image: linear-gradient(@direction, @startColor, @endColor);
104
- }
105
-
106
- // 渐变
107
- .gradient (@direction , @startColor , @midColor , @endColor) {
108
- background-image: -webkit-linear-gradient(@direction, @startColor, @midColor, @endColor);
109
- background-image: -moz-linear-gradient(@direction, @startColor, @midColor, @endColor);
110
- background-image: -ms-linear-gradient(@direction, @startColor, @midColor, @endColor);
111
- background-image: -o-linear-gradient(@direction, @startColor, @midColor, @endColor);
112
- background-image: linear-gradient(@direction, @startColor, @midColor, @endColor);
113
- }
114
-
115
- .fadeIn (@duration) {
116
- animation : fade-in;
117
- animation-duration: @duration;
118
- -webkit-animation : fade-in @duration;
119
- }
120
-
121
- .fadeOut (@duration) {
122
- animation : fade-out-hide;
123
- animation-duration: @duration;
124
- -webkit-animation : fade-out-hide @duration;
125
- }
126
- .aj-text-title {
127
- letter-spacing: 2px;
128
- margin: 10px;
129
- }
130
-
131
- // 快速制作1px 表格边框,为需要设置的 table 元素加上 border 的class即可
132
- .aj-table {
133
- border : 1px lightgray solid;
134
- border-collapse: collapse;
135
- border-spacing : 0;
136
-
137
- th {
138
- background-color: #efefef;
139
- letter-spacing : 3px;
140
- }
141
-
142
- td,
143
- th {
144
- border : 1px lightgray solid;
145
- line-height: 160%;
146
- height : 120%;
147
- padding : 6px;
148
- }
149
-
150
- tr {
151
- .transition (background-color 400ms ease-out);
152
-
153
- &:nth-child(odd) {
154
- background: #f5f5f5;
155
- box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
156
- }
157
-
158
- &:hover {
159
- background-color: #fbf8e9;
160
- }
161
- }
162
-
163
- }
164
-
165
- .aj-form-table {
166
- border-collapse: collapse;
167
- border-spacing : 0;
168
-
169
- th {
170
- background-color: #efefef;
171
- letter-spacing : 3px;
172
- }
173
-
174
- td,
175
- th {
176
- line-height: 160%;
177
- height : 120%;
178
- padding : 10px 15px;
179
- }
180
-
181
- tr {
182
- .transition (background-color 400ms ease-out);
183
-
184
- &:nth-child(odd) {
185
- background: #f5f5f5;
186
- box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
187
- }
188
-
189
- &:hover {
190
- background-color: #fbf8e9;
191
- }
192
- }
193
- }
194
-
195
- .aj-btn-base() {
196
- min-height : 26px;
197
- font-size : .8rem;
198
- //line-height: 100%;
199
- padding : .3em 2.3em;
200
- margin : 10px auto;
201
- color : #333;
202
- letter-spacing : .3em;
203
- border-radius : 4px;
204
- border : 1px solid #ccc;
205
- border-bottom-color: #B4B4B4;
206
- box-shadow : 0 1px 3px rgba(0, 0, 0, 0.12);
207
- text-shadow : 0 1px 0 rgba(255, 255, 255, 0.8);
208
- background-color : lightgray;
209
- background-repeat : repeat-x;
210
- transition : background-image 0.5s linear 1s;
211
- cursor : pointer;
212
- outline : 0;
213
- .gradient (to bottom, rgba(255, 255, 255, 1) 0%, rgba(239, 239, 239, 1) 60%, rgba(225, 223, 226, 1) 100%);
214
-
215
- img {
216
- vertical-align: middle;
217
- }
218
-
219
- &:hover {
220
- color : black;
221
- border-color: lighten(black, 65%);
222
- }
223
-
224
- &:active {
225
- box-shadow : inset 0 3px 5px rgba(0, 0, 0, .2);
226
- border-color: lighten(black, 55%);
227
- }
228
-
229
- &:focus {
230
- border-color: lighten(black, 60%);
231
- }
232
-
233
- &:hover {
234
- background-position: 0px -10px;
235
- }
236
- }
237
-
238
- .aj-btnsHolder {
239
- text-align: center;
240
- padding : 2% 0;
241
-
242
- button {
243
- margin-right: 3% !important;
244
- }
245
- }
246
-
247
- .aj-input-base() {
248
- min-height : 25px;
249
- font-size : .9rem;
250
- border : 1px solid #abadb3;
251
- // border-radius : 3px;
252
- box-sizing : border-box;
253
- background-color: white;
254
- transition : border-color ease-in-out 200ms;
255
- outline : 0;
256
- padding : 2px;
257
- vertical-align : middle;
258
- color : #333;
259
- // letter-spacing : 1px;
260
-
261
- &:hover,
262
- &:focus {
263
- // box-shadow : 1px 2px 3px #e5e5e5 inset;
264
- border-color: lighten(black, 45);
265
- }
266
- }
267
-
268
- form.aj-form {
269
- input[type=text], .form input[type=password], .form textarea{
270
- .aj-input-base();
271
- }
272
- button {
273
- .aj-btn-base();
274
- }
275
-
276
- select {
277
- color: gray;
278
- height: 25px;
279
- border: 1px solid gray;
280
- }
281
-
282
- select:hover {
283
- border-color: black;
284
- }
285
-
286
- }
@@ -1,19 +0,0 @@
1
- /* AJAXJS Base CSS */
2
- body,dl,dt,dd,ul,li,pre,form,fieldset,input,p,blockquote,th,td,h1,h2,h3,h4,h5{margin:0;padding:0;}
3
- h1,h2,h3,h4,h5{font-weight: normal;}img{border:0;}ul li{list-style-type:none}.hide{display:none}
4
- body {-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing: grayscale;
5
- font-family: "Lantinghei SC", "Open Sans", Arial, "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "STHeiti", "WenQuanYi Micro Hei", SimSun, sans-serif;}
6
-
7
- /* a{text-decoration:none;color:#666;transition:color .4s ease-in-out;}
8
- a:hover{color:#000;}
9
- button{border:none;outline:0;cursor:pointer;letter-spacing:2px;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}
10
- input[type=password],input[type=text],select,textarea{outline:0;-moz-appearance:none;} */
11
-
12
- /* 手机端浏览器所显示的网页 CSS */
13
- @media screen and (max-width:480px) {
14
- * {
15
- -webkit-tap-highlight-color: transparent; /* 很多 Android 浏览器的 a 链接有边框,这里取消它 */
16
- -webkit-touch-callout: none; /* 在 iOS 浏览器里面,假如用户长按 a 标签,都会出现默认的弹出菜单事件 */
17
- /* -webkit-user-select:none; */
18
- }
19
- }
@@ -1,49 +0,0 @@
1
- /* AJAXJS Base CSS */
2
- body,dl,dt,dd,ul,li,pre,form,fieldset,input,p,blockquote,th,td,h1,h2,h3,h4,h5{margin:0;padding:0;}
3
- h1,h2,h3,h4,h5{font-weight: normal;}img{border:0;}ul li{list-style-type:none}.hide{display:none}
4
- body {-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing: grayscale;
5
- font-family: "Lantinghei SC", "Open Sans", Arial, "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "STHeiti", "WenQuanYi Micro Hei", SimSun, sans-serif;}
6
-
7
- /* a{text-decoration:none;color:#666;transition:color .4s ease-in-out;}
8
- a:hover{color:#000;}
9
- button{border:none;outline:0;cursor:pointer;letter-spacing:2px;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}
10
- input[type=password],input[type=text],select,textarea{outline:0;-moz-appearance:none;} */
11
-
12
- /* 手机端浏览器所显示的网页 CSS */
13
- @media screen and (max-width:480px) {
14
- * {
15
- -webkit-tap-highlight-color: transparent; /* 很多 Android 浏览器的 a 链接有边框,这里取消它 */
16
- -webkit-touch-callout: none; /* 在 iOS 浏览器里面,假如用户长按 a 标签,都会出现默认的弹出菜单事件 */
17
- /* -webkit-user-select:none; */
18
- }
19
- }
20
-
21
- ::-webkit-scrollbar {
22
- width: 8px;
23
- height: 8px;
24
- }
25
-
26
- ::-webkit-scrollbar-track {
27
- background-color: #fff;
28
- border-radius: 10px;
29
- }
30
-
31
- ::-webkit-scrollbar-thumb {
32
- background-color: lightgray;
33
- border-radius: 10px;
34
- }
35
-
36
- /* 修改 firefox 滚动条的样式 */
37
- * {
38
- /* 宽度 */
39
- scrollbar-width: thin;
40
- /* "auto" 或 "thin" 或 "none" */
41
- /* 轨道颜色 */
42
- scrollbar-track-color: #f1f1f1;
43
- /* 滑块颜色 */
44
- scrollbar-thumb-color: #888;
45
- /* 滑块圆角 */
46
- scrollbar-thumb-border-radius: 10px;
47
- /* 滑块悬停时的样式 */
48
- scrollbar-thumb-hover-color: #555;
49
- }
package/tsconfig.json DELETED
@@ -1,40 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "esnext",
4
- "module": "esnext",
5
- "strict": false,
6
- "jsx": "preserve",
7
- "moduleResolution": "node",
8
- "skipLibCheck": true,
9
- "esModuleInterop": true,
10
- "allowSyntheticDefaultImports": true,
11
- "forceConsistentCasingInFileNames": true,
12
- "useDefineForClassFields": true,
13
- "sourceMap": true,
14
- "baseUrl": ".",
15
- "types": [
16
- "webpack-env"
17
- ],
18
- "paths": {
19
- "@/*": [
20
- "src/*"
21
- ]
22
- },
23
- "lib": [
24
- "esnext",
25
- "dom",
26
- "dom.iterable",
27
- "scripthost"
28
- ]
29
- },
30
- "include": [
31
- "src/**/*.ts",
32
- "src/**/*.tsx",
33
- "src/**/*.vue",
34
- "tests/**/*.ts",
35
- "tests/**/*.tsx"
36
- ],
37
- "exclude": [
38
- "node_modules"
39
- ]
40
- }
package/vue.config.js DELETED
@@ -1,19 +0,0 @@
1
- const { defineConfig } = require('@vue/cli-service');
2
- const { console } = require('inspector');
3
- const path = require('path');
4
- console.log(path)
5
-
6
- module.exports = defineConfig({
7
- transpileDependencies: false,
8
- chainWebpack: (config) => {
9
- config.externals({
10
- '@ajaxjs/util': '@ajaxjs/util'
11
- });
12
- },
13
- pluginOptions: {
14
- 'style-resources-loader': {
15
- preProcessor: 'less',
16
- patterns: [path.resolve(__dirname, '.\\src\\style\\common-functions.less')]
17
- }
18
- }
19
- })