@94ai/common-ui 3.1.46 → 3.1.47
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/lib/common-ui.cjs.js +112 -0
- package/lib/common-ui.esm-bundler.js +113 -1
- package/lib/const.d.ts +1 -0
- package/lib/index.d.ts +3 -1
- package/lib/util.d.ts +25 -0
- package/package/const.ts +34 -0
- package/package/index.ts +21 -3
- package/package/util.ts +76 -0
- package/package.json +36 -36
package/lib/common-ui.cjs.js
CHANGED
|
@@ -33,6 +33,110 @@ const NfResizablePanels = require("@94ai/nf-resizable-panels");
|
|
|
33
33
|
const NfAddress = require("@94ai/nf-address");
|
|
34
34
|
const NfAudio = require("@94ai/nf-audio");
|
|
35
35
|
const NfButton = require("@94ai/nf-button");
|
|
36
|
+
const fs = require("fs");
|
|
37
|
+
const path = require("path");
|
|
38
|
+
const ComponentConstantList = [
|
|
39
|
+
"NfMenu",
|
|
40
|
+
"NfInfiniteMenu",
|
|
41
|
+
"NfDoubleTime",
|
|
42
|
+
"NfEmpty",
|
|
43
|
+
"NfImportTemplate",
|
|
44
|
+
"NfSelectTransfer",
|
|
45
|
+
"NfRadioGroup",
|
|
46
|
+
"NfAlert",
|
|
47
|
+
"NfVirtualSelect",
|
|
48
|
+
"NfTag",
|
|
49
|
+
"NfAction",
|
|
50
|
+
"NfIndicatorPlane",
|
|
51
|
+
"NfQuarterPicker",
|
|
52
|
+
"NfDoubleQuarter",
|
|
53
|
+
"NfDoubleHalfYear",
|
|
54
|
+
"NfHalfYearPicker",
|
|
55
|
+
"NfDoubleWeek",
|
|
56
|
+
"NfDoubleYear",
|
|
57
|
+
"NfDatePicker",
|
|
58
|
+
"NfFormItem",
|
|
59
|
+
"NfForm",
|
|
60
|
+
"NfTable",
|
|
61
|
+
"NfSearchForm",
|
|
62
|
+
"NfDrawer",
|
|
63
|
+
"NfMessage",
|
|
64
|
+
"NfNotification",
|
|
65
|
+
"NfConfirm",
|
|
66
|
+
"NfTextOverflow",
|
|
67
|
+
"NfResizablePanels",
|
|
68
|
+
"NfAddress",
|
|
69
|
+
"NfAudio",
|
|
70
|
+
"NfButton"
|
|
71
|
+
];
|
|
72
|
+
function resolveDebuger(name) {
|
|
73
|
+
fs.appendFile(path.resolve(__dirname, "./log.txt"), `${name}
|
|
74
|
+
`, () => {
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
function kebabCase(key) {
|
|
78
|
+
const result = key.replace(/([A-Z])/g, " $1").trim();
|
|
79
|
+
return result.split(" ").join("-").toLowerCase();
|
|
80
|
+
}
|
|
81
|
+
function getDirs() {
|
|
82
|
+
return ComponentConstantList.map((item) => "node_modules/@94ai/" + kebabCase(item) + "/lib");
|
|
83
|
+
}
|
|
84
|
+
function getTranspileDependencies() {
|
|
85
|
+
return ComponentConstantList.map((item) => "@94ai/" + kebabCase(item));
|
|
86
|
+
}
|
|
87
|
+
const getResolver = () => {
|
|
88
|
+
return {
|
|
89
|
+
type: "component",
|
|
90
|
+
resolve: (name) => {
|
|
91
|
+
resolveDebuger(name);
|
|
92
|
+
if (/^Nf[A-Za-z](?!.*[Mm][Dd]$).*$/.test(name)) {
|
|
93
|
+
const kebabCasePackageName = kebabCase(name);
|
|
94
|
+
return {
|
|
95
|
+
from: `@94ai/${kebabCasePackageName}/lib/${kebabCasePackageName}.esm-bundler.js`,
|
|
96
|
+
sideEffects: []
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
const getJsComponentSampleConfig = (config = {}) => {
|
|
103
|
+
return {
|
|
104
|
+
exclude: [/[\\/]\.git[\\/]/, /[\\/]\.nuxt[\\/]/],
|
|
105
|
+
include: [
|
|
106
|
+
/\.vue$/,
|
|
107
|
+
/\.vue\?vue/,
|
|
108
|
+
/\.vue\?v=/,
|
|
109
|
+
/\.js$/,
|
|
110
|
+
/\.js\?vue/,
|
|
111
|
+
/\.js\?v=/
|
|
112
|
+
],
|
|
113
|
+
deep: true,
|
|
114
|
+
transformer: "vue2",
|
|
115
|
+
resolvers: [],
|
|
116
|
+
...config
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
const getTsComponentSampleConfig = (config = {}) => {
|
|
120
|
+
return {
|
|
121
|
+
include: [
|
|
122
|
+
/\.vue$/,
|
|
123
|
+
/\.vue\?vue/,
|
|
124
|
+
/\.md$/,
|
|
125
|
+
/\.md\?vue/,
|
|
126
|
+
/\.jsx$/,
|
|
127
|
+
/\.jsx\?vue/,
|
|
128
|
+
/\.tsx$/,
|
|
129
|
+
/\.tsx\?vue/,
|
|
130
|
+
/\.js$/,
|
|
131
|
+
/\.js\?vue/
|
|
132
|
+
],
|
|
133
|
+
deep: true,
|
|
134
|
+
extensions: ["vue", "md", "jsx", "tsx", "mjs", "mts", "js"],
|
|
135
|
+
dirs: ["src/components", "src/views", "doc"],
|
|
136
|
+
resolvers: [],
|
|
137
|
+
...config
|
|
138
|
+
};
|
|
139
|
+
};
|
|
36
140
|
const CommonUI = vueDemi.defineComponent({
|
|
37
141
|
name: "common-ui",
|
|
38
142
|
install(app) {
|
|
@@ -106,4 +210,12 @@ exports.NfResizablePanels = NfResizablePanels;
|
|
|
106
210
|
exports.NfAddress = NfAddress;
|
|
107
211
|
exports.NfAudio = NfAudio;
|
|
108
212
|
exports.NfButton = NfButton;
|
|
213
|
+
exports.ComponentConstantList = ComponentConstantList;
|
|
109
214
|
exports.default = CommonUI;
|
|
215
|
+
exports.getDirs = getDirs;
|
|
216
|
+
exports.getJsComponentSampleConfig = getJsComponentSampleConfig;
|
|
217
|
+
exports.getResolver = getResolver;
|
|
218
|
+
exports.getTranspileDependencies = getTranspileDependencies;
|
|
219
|
+
exports.getTsComponentSampleConfig = getTsComponentSampleConfig;
|
|
220
|
+
exports.kebabCase = kebabCase;
|
|
221
|
+
exports.resolveDebuger = resolveDebuger;
|
|
@@ -63,6 +63,110 @@ import NfAudio from "@94ai/nf-audio";
|
|
|
63
63
|
import { default as default32 } from "@94ai/nf-audio";
|
|
64
64
|
import NfButton from "@94ai/nf-button";
|
|
65
65
|
import { default as default33 } from "@94ai/nf-button";
|
|
66
|
+
import fs from "fs";
|
|
67
|
+
import path from "path";
|
|
68
|
+
const ComponentConstantList = [
|
|
69
|
+
"NfMenu",
|
|
70
|
+
"NfInfiniteMenu",
|
|
71
|
+
"NfDoubleTime",
|
|
72
|
+
"NfEmpty",
|
|
73
|
+
"NfImportTemplate",
|
|
74
|
+
"NfSelectTransfer",
|
|
75
|
+
"NfRadioGroup",
|
|
76
|
+
"NfAlert",
|
|
77
|
+
"NfVirtualSelect",
|
|
78
|
+
"NfTag",
|
|
79
|
+
"NfAction",
|
|
80
|
+
"NfIndicatorPlane",
|
|
81
|
+
"NfQuarterPicker",
|
|
82
|
+
"NfDoubleQuarter",
|
|
83
|
+
"NfDoubleHalfYear",
|
|
84
|
+
"NfHalfYearPicker",
|
|
85
|
+
"NfDoubleWeek",
|
|
86
|
+
"NfDoubleYear",
|
|
87
|
+
"NfDatePicker",
|
|
88
|
+
"NfFormItem",
|
|
89
|
+
"NfForm",
|
|
90
|
+
"NfTable",
|
|
91
|
+
"NfSearchForm",
|
|
92
|
+
"NfDrawer",
|
|
93
|
+
"NfMessage",
|
|
94
|
+
"NfNotification",
|
|
95
|
+
"NfConfirm",
|
|
96
|
+
"NfTextOverflow",
|
|
97
|
+
"NfResizablePanels",
|
|
98
|
+
"NfAddress",
|
|
99
|
+
"NfAudio",
|
|
100
|
+
"NfButton"
|
|
101
|
+
];
|
|
102
|
+
function resolveDebuger(name) {
|
|
103
|
+
fs.appendFile(path.resolve(__dirname, "./log.txt"), `${name}
|
|
104
|
+
`, () => {
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
function kebabCase(key) {
|
|
108
|
+
const result = key.replace(/([A-Z])/g, " $1").trim();
|
|
109
|
+
return result.split(" ").join("-").toLowerCase();
|
|
110
|
+
}
|
|
111
|
+
function getDirs() {
|
|
112
|
+
return ComponentConstantList.map((item) => "node_modules/@94ai/" + kebabCase(item) + "/lib");
|
|
113
|
+
}
|
|
114
|
+
function getTranspileDependencies() {
|
|
115
|
+
return ComponentConstantList.map((item) => "@94ai/" + kebabCase(item));
|
|
116
|
+
}
|
|
117
|
+
const getResolver = () => {
|
|
118
|
+
return {
|
|
119
|
+
type: "component",
|
|
120
|
+
resolve: (name) => {
|
|
121
|
+
resolveDebuger(name);
|
|
122
|
+
if (/^Nf[A-Za-z](?!.*[Mm][Dd]$).*$/.test(name)) {
|
|
123
|
+
const kebabCasePackageName = kebabCase(name);
|
|
124
|
+
return {
|
|
125
|
+
from: `@94ai/${kebabCasePackageName}/lib/${kebabCasePackageName}.esm-bundler.js`,
|
|
126
|
+
sideEffects: []
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
const getJsComponentSampleConfig = (config = {}) => {
|
|
133
|
+
return {
|
|
134
|
+
exclude: [/[\\/]\.git[\\/]/, /[\\/]\.nuxt[\\/]/],
|
|
135
|
+
include: [
|
|
136
|
+
/\.vue$/,
|
|
137
|
+
/\.vue\?vue/,
|
|
138
|
+
/\.vue\?v=/,
|
|
139
|
+
/\.js$/,
|
|
140
|
+
/\.js\?vue/,
|
|
141
|
+
/\.js\?v=/
|
|
142
|
+
],
|
|
143
|
+
deep: true,
|
|
144
|
+
transformer: "vue2",
|
|
145
|
+
resolvers: [],
|
|
146
|
+
...config
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
const getTsComponentSampleConfig = (config = {}) => {
|
|
150
|
+
return {
|
|
151
|
+
include: [
|
|
152
|
+
/\.vue$/,
|
|
153
|
+
/\.vue\?vue/,
|
|
154
|
+
/\.md$/,
|
|
155
|
+
/\.md\?vue/,
|
|
156
|
+
/\.jsx$/,
|
|
157
|
+
/\.jsx\?vue/,
|
|
158
|
+
/\.tsx$/,
|
|
159
|
+
/\.tsx\?vue/,
|
|
160
|
+
/\.js$/,
|
|
161
|
+
/\.js\?vue/
|
|
162
|
+
],
|
|
163
|
+
deep: true,
|
|
164
|
+
extensions: ["vue", "md", "jsx", "tsx", "mjs", "mts", "js"],
|
|
165
|
+
dirs: ["src/components", "src/views", "doc"],
|
|
166
|
+
resolvers: [],
|
|
167
|
+
...config
|
|
168
|
+
};
|
|
169
|
+
};
|
|
66
170
|
const CommonUI = defineComponent({
|
|
67
171
|
name: "common-ui",
|
|
68
172
|
install(app) {
|
|
@@ -105,6 +209,7 @@ const CommonUI = defineComponent({
|
|
|
105
209
|
}
|
|
106
210
|
});
|
|
107
211
|
export {
|
|
212
|
+
ComponentConstantList,
|
|
108
213
|
default12 as NfAction,
|
|
109
214
|
default31 as NfAddress,
|
|
110
215
|
default9 as NfAlert,
|
|
@@ -137,5 +242,12 @@ export {
|
|
|
137
242
|
default11 as NfTag,
|
|
138
243
|
default29 as NfTextOverflow,
|
|
139
244
|
default10 as NfVirtualSelect,
|
|
140
|
-
CommonUI as default
|
|
245
|
+
CommonUI as default,
|
|
246
|
+
getDirs,
|
|
247
|
+
getJsComponentSampleConfig,
|
|
248
|
+
getResolver,
|
|
249
|
+
getTranspileDependencies,
|
|
250
|
+
getTsComponentSampleConfig,
|
|
251
|
+
kebabCase,
|
|
252
|
+
resolveDebuger
|
|
141
253
|
};
|
package/lib/const.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ComponentConstantList: string[];
|
package/lib/index.d.ts
CHANGED
|
@@ -31,8 +31,10 @@ import NfResizablePanels from '@94ai/nf-resizable-panels';
|
|
|
31
31
|
import NfAddress from '@94ai/nf-address';
|
|
32
32
|
import NfAudio from '@94ai/nf-audio';
|
|
33
33
|
import NfButton from '@94ai/nf-button';
|
|
34
|
+
import { ComponentConstantList } from './const';
|
|
35
|
+
import { getDirs, getTsComponentSampleConfig, getJsComponentSampleConfig, getTranspileDependencies, kebabCase, getResolver, resolveDebuger } from './util';
|
|
34
36
|
declare const _default: import("vue/types/v3-component-public-instance").ComponentPublicInstanceConstructor<import("vue/types/v3-component-public-instance").Vue3Instance<{}, Readonly<import("vue-demi").ExtractPropTypes<{}>>, Readonly<import("vue-demi").ExtractPropTypes<{}>>, {}, {}, true, import("vue/types/v3-component-options").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import("vue-demi").ExtractPropTypes<{}>>> & import("vue-demi").ShallowUnwrapRef<{}> & import("vue/types/v3-component-options").ExtractComputedReturns<{}> & import("vue-demi").ComponentCustomProperties & Readonly<import("vue-demi").ExtractPropTypes<{}>>, any, any, any, import("vue-demi").ComponentComputedOptions, import("vue-demi").ComponentMethodOptions> & import("vue/types/v3-component-options").ComponentOptionsBase<Readonly<import("vue-demi").ExtractPropTypes<{}>>, unknown, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, {}> & {
|
|
35
37
|
props: {};
|
|
36
38
|
} & PluginObject<undefined>;
|
|
37
39
|
export default _default;
|
|
38
|
-
export { NfMenu, NfInfiniteMenu, NfDoubleTime, NfEmpty, NfImportTemplate, NfSelectTransfer, NfRadioGroup, NfAlert, NfVirtualSelect, NfTag, NfAction, NfIndicatorPlane, NfQuarterPicker, NfDoubleQuarter, NfDoubleHalfYear, NfHalfYearPicker, NfDoubleWeek, NfDoubleYear, NfDatePicker, NfFormItem, NfForm, NfTable, NfSearchForm, NfDrawer, NfMessage, NfNotification, NfConfirm, NfTextOverflow, NfResizablePanels, NfAddress, NfAudio, NfButton };
|
|
40
|
+
export { NfMenu, NfInfiniteMenu, NfDoubleTime, NfEmpty, NfImportTemplate, NfSelectTransfer, NfRadioGroup, NfAlert, NfVirtualSelect, NfTag, NfAction, NfIndicatorPlane, NfQuarterPicker, NfDoubleQuarter, NfDoubleHalfYear, NfHalfYearPicker, NfDoubleWeek, NfDoubleYear, NfDatePicker, NfFormItem, NfForm, NfTable, NfSearchForm, NfDrawer, NfMessage, NfNotification, NfConfirm, NfTextOverflow, NfResizablePanels, NfAddress, NfAudio, NfButton, ComponentConstantList, kebabCase, getTranspileDependencies, getDirs, getJsComponentSampleConfig, getTsComponentSampleConfig, getResolver, resolveDebuger };
|
package/lib/util.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare function resolveDebuger(name: any): void;
|
|
2
|
+
export declare function kebabCase(key: any): any;
|
|
3
|
+
export declare function getDirs(): string[];
|
|
4
|
+
export declare function getTranspileDependencies(): string[];
|
|
5
|
+
export declare const getResolver: () => {
|
|
6
|
+
type: string;
|
|
7
|
+
resolve: (name: any) => {
|
|
8
|
+
from: string;
|
|
9
|
+
sideEffects: never[];
|
|
10
|
+
} | undefined;
|
|
11
|
+
};
|
|
12
|
+
export declare const getJsComponentSampleConfig: (config?: Record<string, any>) => {
|
|
13
|
+
exclude: RegExp[];
|
|
14
|
+
include: RegExp[];
|
|
15
|
+
deep: boolean;
|
|
16
|
+
transformer: string;
|
|
17
|
+
resolvers: never[];
|
|
18
|
+
};
|
|
19
|
+
export declare const getTsComponentSampleConfig: (config?: Record<string, any>) => {
|
|
20
|
+
include: RegExp[];
|
|
21
|
+
deep: boolean;
|
|
22
|
+
extensions: string[];
|
|
23
|
+
dirs: string[];
|
|
24
|
+
resolvers: never[];
|
|
25
|
+
};
|
package/package/const.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export const ComponentConstantList = [
|
|
2
|
+
'NfMenu',
|
|
3
|
+
'NfInfiniteMenu',
|
|
4
|
+
'NfDoubleTime',
|
|
5
|
+
'NfEmpty',
|
|
6
|
+
'NfImportTemplate',
|
|
7
|
+
'NfSelectTransfer',
|
|
8
|
+
'NfRadioGroup',
|
|
9
|
+
'NfAlert',
|
|
10
|
+
'NfVirtualSelect',
|
|
11
|
+
'NfTag',
|
|
12
|
+
'NfAction',
|
|
13
|
+
'NfIndicatorPlane',
|
|
14
|
+
'NfQuarterPicker',
|
|
15
|
+
'NfDoubleQuarter',
|
|
16
|
+
'NfDoubleHalfYear',
|
|
17
|
+
'NfHalfYearPicker',
|
|
18
|
+
'NfDoubleWeek',
|
|
19
|
+
'NfDoubleYear',
|
|
20
|
+
'NfDatePicker',
|
|
21
|
+
'NfFormItem',
|
|
22
|
+
'NfForm',
|
|
23
|
+
'NfTable',
|
|
24
|
+
'NfSearchForm',
|
|
25
|
+
'NfDrawer',
|
|
26
|
+
'NfMessage',
|
|
27
|
+
'NfNotification',
|
|
28
|
+
'NfConfirm',
|
|
29
|
+
'NfTextOverflow',
|
|
30
|
+
'NfResizablePanels',
|
|
31
|
+
'NfAddress',
|
|
32
|
+
'NfAudio',
|
|
33
|
+
'NfButton'
|
|
34
|
+
]
|
package/package/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Vue2,
|
|
3
2
|
defineComponent,
|
|
4
|
-
PluginObject
|
|
3
|
+
PluginObject,
|
|
4
|
+
Vue2
|
|
5
5
|
} from 'vue-demi'
|
|
6
6
|
import NfMenu from '@94ai/nf-menu'
|
|
7
7
|
import NfInfiniteMenu from '@94ai/nf-infinite-menu'
|
|
@@ -35,6 +35,16 @@ import NfResizablePanels from '@94ai/nf-resizable-panels'
|
|
|
35
35
|
import NfAddress from '@94ai/nf-address'
|
|
36
36
|
import NfAudio from '@94ai/nf-audio'
|
|
37
37
|
import NfButton from '@94ai/nf-button'
|
|
38
|
+
import { ComponentConstantList } from './const'
|
|
39
|
+
import {
|
|
40
|
+
getDirs,
|
|
41
|
+
getTsComponentSampleConfig,
|
|
42
|
+
getJsComponentSampleConfig,
|
|
43
|
+
getTranspileDependencies,
|
|
44
|
+
kebabCase,
|
|
45
|
+
getResolver,
|
|
46
|
+
resolveDebuger
|
|
47
|
+
} from './util'
|
|
38
48
|
|
|
39
49
|
|
|
40
50
|
const CommonUI = defineComponent({
|
|
@@ -113,6 +123,14 @@ export {
|
|
|
113
123
|
NfResizablePanels,
|
|
114
124
|
NfAddress,
|
|
115
125
|
NfAudio,
|
|
116
|
-
NfButton
|
|
126
|
+
NfButton,
|
|
127
|
+
ComponentConstantList,
|
|
128
|
+
kebabCase,
|
|
129
|
+
getTranspileDependencies,
|
|
130
|
+
getDirs,
|
|
131
|
+
getJsComponentSampleConfig,
|
|
132
|
+
getTsComponentSampleConfig,
|
|
133
|
+
getResolver,
|
|
134
|
+
resolveDebuger
|
|
117
135
|
}
|
|
118
136
|
|
package/package/util.ts
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import fs from 'fs'
|
|
2
|
+
import path from 'path'
|
|
3
|
+
import { ComponentConstantList } from 'packages/common-ui/lib/const'
|
|
4
|
+
|
|
5
|
+
export function resolveDebuger(name) {
|
|
6
|
+
fs.appendFile(path.resolve(__dirname, './log.txt'), `${name}\n`, () => { })
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function kebabCase(key) {
|
|
10
|
+
const result = key.replace(/([A-Z])/g, ' $1').trim()
|
|
11
|
+
return result.split(' ').join('-').toLowerCase()
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function getDirs() {
|
|
15
|
+
return ComponentConstantList.map(item => 'node_modules/@94ai/' + kebabCase(item) + '/lib')
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function getTranspileDependencies() {
|
|
19
|
+
return ComponentConstantList.map(item => '@94ai/' + kebabCase(item))
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export const getResolver = () => {
|
|
23
|
+
return {
|
|
24
|
+
type: 'component',
|
|
25
|
+
resolve: (name) => {
|
|
26
|
+
resolveDebuger(name)
|
|
27
|
+
if (/^Nf[A-Za-z](?!.*[Mm][Dd]$).*$/.test(name)) {
|
|
28
|
+
const kebabCasePackageName = kebabCase(name)
|
|
29
|
+
return {
|
|
30
|
+
from: `@94ai/${kebabCasePackageName}/lib/${kebabCasePackageName}.esm-bundler.js`,
|
|
31
|
+
sideEffects: []
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export const getJsComponentSampleConfig = (config: Record<string, any> = {}) => {
|
|
39
|
+
return {
|
|
40
|
+
exclude: [/[\\/]\.git[\\/]/, /[\\/]\.nuxt[\\/]/],
|
|
41
|
+
include: [
|
|
42
|
+
/\.vue$/,
|
|
43
|
+
/\.vue\?vue/,
|
|
44
|
+
/\.vue\?v=/,
|
|
45
|
+
/\.js$/,
|
|
46
|
+
/\.js\?vue/,
|
|
47
|
+
/\.js\?v=/
|
|
48
|
+
],
|
|
49
|
+
deep: true,
|
|
50
|
+
transformer: 'vue2',
|
|
51
|
+
resolvers: [],
|
|
52
|
+
...config
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export const getTsComponentSampleConfig = (config: Record<string, any> = {}) => {
|
|
57
|
+
return {
|
|
58
|
+
include: [
|
|
59
|
+
/\.vue$/,
|
|
60
|
+
/\.vue\?vue/,
|
|
61
|
+
/\.md$/,
|
|
62
|
+
/\.md\?vue/,
|
|
63
|
+
/\.jsx$/,
|
|
64
|
+
/\.jsx\?vue/,
|
|
65
|
+
/\.tsx$/,
|
|
66
|
+
/\.tsx\?vue/,
|
|
67
|
+
/\.js$/,
|
|
68
|
+
/\.js\?vue/,
|
|
69
|
+
],
|
|
70
|
+
deep: true,
|
|
71
|
+
extensions: ['vue', 'md', 'jsx', 'tsx', 'mjs', 'mts', 'js'],
|
|
72
|
+
dirs: ['src/components', 'src/views', 'doc'],
|
|
73
|
+
resolvers: [],
|
|
74
|
+
...config
|
|
75
|
+
}
|
|
76
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/common-ui",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.47",
|
|
4
4
|
"description": "94智能公共组件库",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"组件库"
|
|
@@ -16,41 +16,41 @@
|
|
|
16
16
|
"url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@94ai/nf-action": "^3.1.
|
|
20
|
-
"@94ai/nf-address": "^3.1.
|
|
21
|
-
"@94ai/nf-alert": "^3.1.
|
|
22
|
-
"@94ai/nf-audio": "^3.1.
|
|
23
|
-
"@94ai/nf-button": "^3.1.
|
|
24
|
-
"@94ai/nf-button-demo": "^3.1.
|
|
25
|
-
"@94ai/nf-confirm": "^3.1.
|
|
26
|
-
"@94ai/nf-date-picker": "^3.1.
|
|
27
|
-
"@94ai/nf-double-half-year": "^3.1.
|
|
28
|
-
"@94ai/nf-double-quarter": "^3.1.
|
|
29
|
-
"@94ai/nf-double-time": "^3.1.
|
|
30
|
-
"@94ai/nf-double-week": "^3.1.
|
|
31
|
-
"@94ai/nf-double-year": "^3.1.
|
|
32
|
-
"@94ai/nf-drawer": "^3.1.
|
|
33
|
-
"@94ai/nf-empty": "^3.1.
|
|
34
|
-
"@94ai/nf-form": "^3.1.
|
|
35
|
-
"@94ai/nf-form-item": "^3.1.
|
|
36
|
-
"@94ai/nf-half-year-picker": "^3.1.
|
|
37
|
-
"@94ai/nf-import-template": "^3.1.
|
|
38
|
-
"@94ai/nf-indicator-plane": "^3.1.
|
|
39
|
-
"@94ai/nf-infinite-menu": "^3.1.
|
|
40
|
-
"@94ai/nf-menu": "^3.1.
|
|
41
|
-
"@94ai/nf-message": "^3.1.
|
|
42
|
-
"@94ai/nf-notification": "^3.1.
|
|
43
|
-
"@94ai/nf-quarter-picker": "^3.1.
|
|
44
|
-
"@94ai/nf-radio-group": "^3.1.
|
|
45
|
-
"@94ai/nf-resizable-panels": "^3.1.
|
|
46
|
-
"@94ai/nf-search-form": "^3.1.
|
|
47
|
-
"@94ai/nf-select-transfer": "^3.1.
|
|
48
|
-
"@94ai/nf-table": "^3.1.
|
|
49
|
-
"@94ai/nf-tag": "^3.1.
|
|
50
|
-
"@94ai/nf-text-overflow": "^3.1.
|
|
51
|
-
"@94ai/nf-theme-chalk": "^3.1.
|
|
52
|
-
"@94ai/nf-toast-demo": "^3.1.
|
|
53
|
-
"@94ai/nf-virtual-select": "^3.1.
|
|
19
|
+
"@94ai/nf-action": "^3.1.47",
|
|
20
|
+
"@94ai/nf-address": "^3.1.47",
|
|
21
|
+
"@94ai/nf-alert": "^3.1.47",
|
|
22
|
+
"@94ai/nf-audio": "^3.1.47",
|
|
23
|
+
"@94ai/nf-button": "^3.1.47",
|
|
24
|
+
"@94ai/nf-button-demo": "^3.1.47",
|
|
25
|
+
"@94ai/nf-confirm": "^3.1.47",
|
|
26
|
+
"@94ai/nf-date-picker": "^3.1.47",
|
|
27
|
+
"@94ai/nf-double-half-year": "^3.1.47",
|
|
28
|
+
"@94ai/nf-double-quarter": "^3.1.47",
|
|
29
|
+
"@94ai/nf-double-time": "^3.1.47",
|
|
30
|
+
"@94ai/nf-double-week": "^3.1.47",
|
|
31
|
+
"@94ai/nf-double-year": "^3.1.47",
|
|
32
|
+
"@94ai/nf-drawer": "^3.1.47",
|
|
33
|
+
"@94ai/nf-empty": "^3.1.47",
|
|
34
|
+
"@94ai/nf-form": "^3.1.47",
|
|
35
|
+
"@94ai/nf-form-item": "^3.1.47",
|
|
36
|
+
"@94ai/nf-half-year-picker": "^3.1.47",
|
|
37
|
+
"@94ai/nf-import-template": "^3.1.47",
|
|
38
|
+
"@94ai/nf-indicator-plane": "^3.1.47",
|
|
39
|
+
"@94ai/nf-infinite-menu": "^3.1.47",
|
|
40
|
+
"@94ai/nf-menu": "^3.1.47",
|
|
41
|
+
"@94ai/nf-message": "^3.1.47",
|
|
42
|
+
"@94ai/nf-notification": "^3.1.47",
|
|
43
|
+
"@94ai/nf-quarter-picker": "^3.1.47",
|
|
44
|
+
"@94ai/nf-radio-group": "^3.1.47",
|
|
45
|
+
"@94ai/nf-resizable-panels": "^3.1.47",
|
|
46
|
+
"@94ai/nf-search-form": "^3.1.47",
|
|
47
|
+
"@94ai/nf-select-transfer": "^3.1.47",
|
|
48
|
+
"@94ai/nf-table": "^3.1.47",
|
|
49
|
+
"@94ai/nf-tag": "^3.1.47",
|
|
50
|
+
"@94ai/nf-text-overflow": "^3.1.47",
|
|
51
|
+
"@94ai/nf-theme-chalk": "^3.1.47",
|
|
52
|
+
"@94ai/nf-toast-demo": "^3.1.47",
|
|
53
|
+
"@94ai/nf-virtual-select": "^3.1.47",
|
|
54
54
|
"vue-demi": "^0.14.5"
|
|
55
55
|
},
|
|
56
56
|
"peerDependenciesMeta": {
|