@94ai/nf-table 3.1.27

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/.eslintrc.cjs ADDED
@@ -0,0 +1,49 @@
1
+ module.exports = {
2
+ "root": true,
3
+ "env": {
4
+ "node": true
5
+ },
6
+ "extends": [
7
+ "plugin:vue/essential"
8
+ ],
9
+ "parser": "vue-eslint-parser",
10
+ "parserOptions": {
11
+ "parser": "@typescript-eslint/parser",
12
+ "ecmaVersion": 2020,
13
+ "sourceType": "module"
14
+ },
15
+ "rules": {
16
+ "@typescript-eslint/ban-ts-ignore": "off",
17
+ "@typescript-eslint/explicit-function-return-type": "off",
18
+ "@typescript-eslint/no-explicit-any": "off",
19
+ "@typescript-eslint/no-var-requires": "off",
20
+ "@typescript-eslint/no-empty-function": "off",
21
+ "vue/custom-event-name-casing": "off",
22
+ "no-use-before-define": "off",
23
+ "@typescript-eslint/no-use-before-define": "off",
24
+ "@typescript-eslint/ban-ts-comment": "off",
25
+ "@typescript-eslint/ban-types": "off",
26
+ "@typescript-eslint/no-non-null-assertion": "off",
27
+ "@typescript-eslint/explicit-module-boundary-types": "off",
28
+ "@typescript-eslint/no-unused-vars": "off",
29
+ "vue/multi-word-component-names": [
30
+ "error",
31
+ {
32
+ "ignores": [
33
+ "index"
34
+ ]
35
+ }
36
+ ],
37
+ "no-console": "warn",
38
+ "no-debugger": "warn",
39
+ "prettier/prettier": [
40
+ "error",
41
+ {
42
+ "tabWidth": 2,
43
+ "singleQuote": true,
44
+ "semi": false,
45
+ "endOfLine": "auto"
46
+ }
47
+ ]
48
+ }
49
+ }
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # `@94ai/nf-table`
2
+
3
+ > TODO: description
4
+
5
+ ## Usage
6
+
7
+ ```
8
+ const nfTable = require('@94ai/nf-table');
9
+
10
+ // TODO: DEMONSTRATE API
11
+ ```
@@ -0,0 +1,8 @@
1
+ export {}
2
+
3
+ declare module 'vue' {
4
+ export interface GlobalComponents {
5
+ NfTable: typeof import('@94ai/nf-table/lib/nf-table.vue')['default']
6
+
7
+ }
8
+ }
package/lib/index.d.ts ADDED
@@ -0,0 +1,39 @@
1
+ import { PluginObject } from 'vue-demi';
2
+ declare const _default: import("vue/types/v3-component-public-instance").ComponentPublicInstanceConstructor<import("vue/types/v3-component-public-instance").Vue3Instance<{}, Readonly<import("vue-demi").ExtractPropTypes<{
3
+ 'nf-table': {
4
+ type: import("vue-demi").PropType<string>;
5
+ required: true;
6
+ };
7
+ }>>, Readonly<import("vue-demi").ExtractPropTypes<{
8
+ 'nf-table': {
9
+ type: import("vue-demi").PropType<string>;
10
+ required: true;
11
+ };
12
+ }>>, {
13
+ click: (event: Event) => void;
14
+ }, {}, true, import("vue/types/v3-component-options").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import("vue-demi").ExtractPropTypes<{
15
+ 'nf-table': {
16
+ type: import("vue-demi").PropType<string>;
17
+ required: true;
18
+ };
19
+ }>>> & import("vue-demi").ShallowUnwrapRef<{}> & import("vue/types/v3-component-options").ExtractComputedReturns<{}> & import("vue-demi").ComponentCustomProperties & Readonly<import("vue-demi").ExtractPropTypes<{
20
+ 'nf-table': {
21
+ type: import("vue-demi").PropType<string>;
22
+ required: true;
23
+ };
24
+ }>>, any, any, any, import("vue-demi").ComponentComputedOptions, import("vue-demi").ComponentMethodOptions> & import("vue/types/v3-component-options").ComponentOptionsBase<Readonly<import("vue-demi").ExtractPropTypes<{
25
+ 'nf-table': {
26
+ type: import("vue-demi").PropType<string>;
27
+ required: true;
28
+ };
29
+ }>>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
30
+ click: (event: Event) => void;
31
+ }, string, {}> & {
32
+ props: {
33
+ 'nf-table': {
34
+ type: import("vue-demi").PropType<string>;
35
+ required: true;
36
+ };
37
+ };
38
+ } & PluginObject<undefined>;
39
+ export default _default;
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const vueDemi = require("vue-demi");
4
+ var __sfc_main = vueDemi.defineComponent({
5
+ name: "nf-table"
6
+ });
7
+ __sfc_main.setup = function(__props, __ctx) {
8
+ __ctx.emit;
9
+ return {};
10
+ };
11
+ function normalizeComponent(scriptExports, render2, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
12
+ var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
13
+ if (render2) {
14
+ options.render = render2;
15
+ options.staticRenderFns = staticRenderFns;
16
+ options._compiled = true;
17
+ }
18
+ if (functionalTemplate) {
19
+ options.functional = true;
20
+ }
21
+ if (scopeId) {
22
+ options._scopeId = "data-v-" + scopeId;
23
+ }
24
+ var hook;
25
+ if (moduleIdentifier) {
26
+ hook = function(context) {
27
+ context = context || // cached call
28
+ this.$vnode && this.$vnode.ssrContext || // stateful
29
+ this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
30
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
31
+ context = __VUE_SSR_CONTEXT__;
32
+ }
33
+ if (injectStyles) {
34
+ injectStyles.call(this, context);
35
+ }
36
+ if (context && context._registeredComponents) {
37
+ context._registeredComponents.add(moduleIdentifier);
38
+ }
39
+ };
40
+ options._ssrRegister = hook;
41
+ } else if (injectStyles) {
42
+ hook = shadowMode ? function() {
43
+ injectStyles.call(
44
+ this,
45
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
46
+ );
47
+ } : injectStyles;
48
+ }
49
+ if (hook) {
50
+ if (options.functional) {
51
+ options._injectStyles = hook;
52
+ var originalRender = options.render;
53
+ options.render = function renderWithStyleInjection(h, context) {
54
+ hook.call(context);
55
+ return originalRender(h, context);
56
+ };
57
+ } else {
58
+ var existing = options.beforeCreate;
59
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
60
+ }
61
+ }
62
+ return {
63
+ exports: scriptExports,
64
+ options
65
+ };
66
+ }
67
+ var _sfc_render = function render() {
68
+ var _vm = this, _c = _vm._self._c;
69
+ _vm._self._setupProxy;
70
+ return _c("div", {
71
+ staticClass: "nf-table"
72
+ });
73
+ };
74
+ var _sfc_staticRenderFns = [];
75
+ var __component__ = /* @__PURE__ */ normalizeComponent(__sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, null, null, null);
76
+ const NfTable = __component__.exports;
77
+ NfTable.install = function(app) {
78
+ app.component("nf-table", NfTable);
79
+ };
80
+ exports.default = NfTable;
@@ -0,0 +1,80 @@
1
+ import { defineComponent } from "vue-demi";
2
+ var __sfc_main = defineComponent({
3
+ name: "nf-table"
4
+ });
5
+ __sfc_main.setup = function(__props, __ctx) {
6
+ __ctx.emit;
7
+ return {};
8
+ };
9
+ function normalizeComponent(scriptExports, render2, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
10
+ var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
11
+ if (render2) {
12
+ options.render = render2;
13
+ options.staticRenderFns = staticRenderFns;
14
+ options._compiled = true;
15
+ }
16
+ if (functionalTemplate) {
17
+ options.functional = true;
18
+ }
19
+ if (scopeId) {
20
+ options._scopeId = "data-v-" + scopeId;
21
+ }
22
+ var hook;
23
+ if (moduleIdentifier) {
24
+ hook = function(context) {
25
+ context = context || // cached call
26
+ this.$vnode && this.$vnode.ssrContext || // stateful
27
+ this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
28
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
29
+ context = __VUE_SSR_CONTEXT__;
30
+ }
31
+ if (injectStyles) {
32
+ injectStyles.call(this, context);
33
+ }
34
+ if (context && context._registeredComponents) {
35
+ context._registeredComponents.add(moduleIdentifier);
36
+ }
37
+ };
38
+ options._ssrRegister = hook;
39
+ } else if (injectStyles) {
40
+ hook = shadowMode ? function() {
41
+ injectStyles.call(
42
+ this,
43
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
44
+ );
45
+ } : injectStyles;
46
+ }
47
+ if (hook) {
48
+ if (options.functional) {
49
+ options._injectStyles = hook;
50
+ var originalRender = options.render;
51
+ options.render = function renderWithStyleInjection(h, context) {
52
+ hook.call(context);
53
+ return originalRender(h, context);
54
+ };
55
+ } else {
56
+ var existing = options.beforeCreate;
57
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
58
+ }
59
+ }
60
+ return {
61
+ exports: scriptExports,
62
+ options
63
+ };
64
+ }
65
+ var _sfc_render = function render() {
66
+ var _vm = this, _c = _vm._self._c;
67
+ _vm._self._setupProxy;
68
+ return _c("div", {
69
+ staticClass: "nf-table"
70
+ });
71
+ };
72
+ var _sfc_staticRenderFns = [];
73
+ var __component__ = /* @__PURE__ */ normalizeComponent(__sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, null, null, null);
74
+ const NfTable = __component__.exports;
75
+ NfTable.install = function(app) {
76
+ app.component("nf-table", NfTable);
77
+ };
78
+ export {
79
+ NfTable as default
80
+ };
@@ -0,0 +1,14 @@
1
+ declare const _default: import("vue-demi").DefineComponent<{
2
+ 'nf-table': {
3
+ type: import("vue-demi").PropType<string>;
4
+ required: true;
5
+ };
6
+ }, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
7
+ click: (event: Event) => void;
8
+ }, string, Readonly<import("vue-demi").ExtractPropTypes<{
9
+ 'nf-table': {
10
+ type: import("vue-demi").PropType<string>;
11
+ required: true;
12
+ };
13
+ }>>, {}>;
14
+ export default _default;
@@ -0,0 +1 @@
1
+
@@ -0,0 +1 @@
1
+ import '@94ai/nf-theme-chalk/lib/css/nf-table.css'
@@ -0,0 +1 @@
1
+
@@ -0,0 +1 @@
1
+ import '@94ai/nf-theme-chalk/lib/nf-table.scss'
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "@94ai/nf-table",
3
+ "version": "3.1.27",
4
+ "description": "> TODO: description",
5
+ "keywords": [],
6
+ "author": "zoujiahe <zoujiahe@94ai.com>",
7
+ "homepage": "https://oss.xccjh.top/common-ui/#/ai-index",
8
+ "license": "ISC",
9
+ "publishConfig": {
10
+ "access": "public"
11
+ },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
15
+ },
16
+ "dependencies": {
17
+ "@94ai/nf-theme-chalk": "^3.1.27",
18
+ "vue-demi": "^0.14.5"
19
+ },
20
+ "peerDependenciesMeta": {
21
+ "@vue/composition-api": {
22
+ "optional": true
23
+ }
24
+ },
25
+ "peerDependencies": {
26
+ "@vue/composition-api": "^1.0.0-rc.1",
27
+ "element-ui": ">=2.13.2",
28
+ "vue": "^2.0.0 || >=3.0.0"
29
+ },
30
+ "types": "lib/index.d.ts",
31
+ "main": "lib/nf-table.cjs.js",
32
+ "module": "lib/nf-table.esm-bundler.js",
33
+ "gitHead": "945bfad470bca9493ef957f3327bf115f3f705ca"
34
+ }
@@ -0,0 +1,8 @@
1
+ export default {
2
+ plugins: {
3
+ // 这个工具可以实现自动添加CSS3前缀
4
+ autoprefixer: {
5
+ overrideBrowserslist: ['last 5 version', '>1%', 'ie >=8']
6
+ },
7
+ },
8
+ }