@94ai/nf-tag 3.1.16
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 +49 -0
- package/README.md +15 -0
- package/components.d.ts +8 -0
- package/lib/index.d.ts +81 -0
- package/lib/nf-tag.cjs.js +95 -0
- package/lib/nf-tag.esm-bundler.js +95 -0
- package/lib/nf-tag.vue.d.ts +34 -0
- package/lib/style/css.d.ts +1 -0
- package/lib/style/css.js +1 -0
- package/lib/style/index.d.ts +1 -0
- package/lib/style/index.js +1 -0
- package/package.json +34 -0
- package/postcss.config.js +8 -0
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
package/components.d.ts
ADDED
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
type: {
|
|
4
|
+
type: import("vue-demi").PropType<string>;
|
|
5
|
+
required: true;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
circle: {
|
|
9
|
+
type: import("vue-demi").PropType<boolean>;
|
|
10
|
+
required: true;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
}>>, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
14
|
+
type: {
|
|
15
|
+
type: import("vue-demi").PropType<string>;
|
|
16
|
+
required: true;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
circle: {
|
|
20
|
+
type: import("vue-demi").PropType<boolean>;
|
|
21
|
+
required: true;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
}>>, {}, {
|
|
25
|
+
type: string;
|
|
26
|
+
circle: boolean;
|
|
27
|
+
}, true, import("vue/types/v3-component-options").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import("vue-demi").ExtractPropTypes<{
|
|
28
|
+
type: {
|
|
29
|
+
type: import("vue-demi").PropType<string>;
|
|
30
|
+
required: true;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
circle: {
|
|
34
|
+
type: import("vue-demi").PropType<boolean>;
|
|
35
|
+
required: true;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
}>>> & import("vue-demi").ShallowUnwrapRef<{}> & import("vue/types/v3-component-options").ExtractComputedReturns<{}> & import("vue-demi").ComponentCustomProperties & Readonly<import("vue-demi").ExtractPropTypes<{
|
|
39
|
+
type: {
|
|
40
|
+
type: import("vue-demi").PropType<string>;
|
|
41
|
+
required: true;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
circle: {
|
|
45
|
+
type: import("vue-demi").PropType<boolean>;
|
|
46
|
+
required: true;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
}>>, any, any, any, import("vue-demi").ComponentComputedOptions, import("vue-demi").ComponentMethodOptions> & import("vue/types/v3-component-options").ComponentOptionsBase<Readonly<import("vue-demi").ExtractPropTypes<{
|
|
50
|
+
type: {
|
|
51
|
+
type: import("vue-demi").PropType<string>;
|
|
52
|
+
required: true;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
circle: {
|
|
56
|
+
type: import("vue-demi").PropType<boolean>;
|
|
57
|
+
required: true;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
}>>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, {
|
|
61
|
+
type: string;
|
|
62
|
+
circle: boolean;
|
|
63
|
+
}> & {
|
|
64
|
+
props: {
|
|
65
|
+
type: {
|
|
66
|
+
type: import("vue-demi").PropType<string>;
|
|
67
|
+
required: true;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
circle: {
|
|
71
|
+
type: import("vue-demi").PropType<boolean>;
|
|
72
|
+
required: true;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
} & (new () => {
|
|
77
|
+
$slots: {
|
|
78
|
+
default?(_: {}): any;
|
|
79
|
+
};
|
|
80
|
+
}) & PluginObject<undefined>;
|
|
81
|
+
export default _default;
|
|
@@ -0,0 +1,95 @@
|
|
|
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-tag"
|
|
6
|
+
});
|
|
7
|
+
__sfc_main.props = {
|
|
8
|
+
type: {
|
|
9
|
+
key: "type",
|
|
10
|
+
required: false,
|
|
11
|
+
type: String,
|
|
12
|
+
"default": ""
|
|
13
|
+
},
|
|
14
|
+
circle: {
|
|
15
|
+
key: "circle",
|
|
16
|
+
required: false,
|
|
17
|
+
type: Boolean,
|
|
18
|
+
"default": true
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
__sfc_main.setup = function(__props, __ctx) {
|
|
22
|
+
return {};
|
|
23
|
+
};
|
|
24
|
+
function normalizeComponent(scriptExports, render2, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
25
|
+
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
26
|
+
if (render2) {
|
|
27
|
+
options.render = render2;
|
|
28
|
+
options.staticRenderFns = staticRenderFns;
|
|
29
|
+
options._compiled = true;
|
|
30
|
+
}
|
|
31
|
+
if (functionalTemplate) {
|
|
32
|
+
options.functional = true;
|
|
33
|
+
}
|
|
34
|
+
if (scopeId) {
|
|
35
|
+
options._scopeId = "data-v-" + scopeId;
|
|
36
|
+
}
|
|
37
|
+
var hook;
|
|
38
|
+
if (moduleIdentifier) {
|
|
39
|
+
hook = function(context) {
|
|
40
|
+
context = context || // cached call
|
|
41
|
+
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
42
|
+
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
|
|
43
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
|
|
44
|
+
context = __VUE_SSR_CONTEXT__;
|
|
45
|
+
}
|
|
46
|
+
if (injectStyles) {
|
|
47
|
+
injectStyles.call(this, context);
|
|
48
|
+
}
|
|
49
|
+
if (context && context._registeredComponents) {
|
|
50
|
+
context._registeredComponents.add(moduleIdentifier);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
options._ssrRegister = hook;
|
|
54
|
+
} else if (injectStyles) {
|
|
55
|
+
hook = shadowMode ? function() {
|
|
56
|
+
injectStyles.call(
|
|
57
|
+
this,
|
|
58
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
59
|
+
);
|
|
60
|
+
} : injectStyles;
|
|
61
|
+
}
|
|
62
|
+
if (hook) {
|
|
63
|
+
if (options.functional) {
|
|
64
|
+
options._injectStyles = hook;
|
|
65
|
+
var originalRender = options.render;
|
|
66
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
67
|
+
hook.call(context);
|
|
68
|
+
return originalRender(h, context);
|
|
69
|
+
};
|
|
70
|
+
} else {
|
|
71
|
+
var existing = options.beforeCreate;
|
|
72
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
exports: scriptExports,
|
|
77
|
+
options
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
var _sfc_render = function render() {
|
|
81
|
+
var _vm = this, _c = _vm._self._c;
|
|
82
|
+
_vm._self._setupProxy;
|
|
83
|
+
return _c("div", {
|
|
84
|
+
"class": ["nf-tag", _vm.type ? "nf-tag--".concat(_vm.type) : ""]
|
|
85
|
+
}, [_c("i", {
|
|
86
|
+
staticClass: "circle"
|
|
87
|
+
}), _vm._t("default")], 2);
|
|
88
|
+
};
|
|
89
|
+
var _sfc_staticRenderFns = [];
|
|
90
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(__sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, null, null, null);
|
|
91
|
+
const NfTag = __component__.exports;
|
|
92
|
+
NfTag.install = function(app) {
|
|
93
|
+
app.component("nf-tag", NfTag);
|
|
94
|
+
};
|
|
95
|
+
exports.default = NfTag;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { defineComponent } from "vue-demi";
|
|
2
|
+
var __sfc_main = defineComponent({
|
|
3
|
+
name: "nf-tag"
|
|
4
|
+
});
|
|
5
|
+
__sfc_main.props = {
|
|
6
|
+
type: {
|
|
7
|
+
key: "type",
|
|
8
|
+
required: false,
|
|
9
|
+
type: String,
|
|
10
|
+
"default": ""
|
|
11
|
+
},
|
|
12
|
+
circle: {
|
|
13
|
+
key: "circle",
|
|
14
|
+
required: false,
|
|
15
|
+
type: Boolean,
|
|
16
|
+
"default": true
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
__sfc_main.setup = function(__props, __ctx) {
|
|
20
|
+
return {};
|
|
21
|
+
};
|
|
22
|
+
function normalizeComponent(scriptExports, render2, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
23
|
+
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
24
|
+
if (render2) {
|
|
25
|
+
options.render = render2;
|
|
26
|
+
options.staticRenderFns = staticRenderFns;
|
|
27
|
+
options._compiled = true;
|
|
28
|
+
}
|
|
29
|
+
if (functionalTemplate) {
|
|
30
|
+
options.functional = true;
|
|
31
|
+
}
|
|
32
|
+
if (scopeId) {
|
|
33
|
+
options._scopeId = "data-v-" + scopeId;
|
|
34
|
+
}
|
|
35
|
+
var hook;
|
|
36
|
+
if (moduleIdentifier) {
|
|
37
|
+
hook = function(context) {
|
|
38
|
+
context = context || // cached call
|
|
39
|
+
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
40
|
+
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
|
|
41
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
|
|
42
|
+
context = __VUE_SSR_CONTEXT__;
|
|
43
|
+
}
|
|
44
|
+
if (injectStyles) {
|
|
45
|
+
injectStyles.call(this, context);
|
|
46
|
+
}
|
|
47
|
+
if (context && context._registeredComponents) {
|
|
48
|
+
context._registeredComponents.add(moduleIdentifier);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
options._ssrRegister = hook;
|
|
52
|
+
} else if (injectStyles) {
|
|
53
|
+
hook = shadowMode ? function() {
|
|
54
|
+
injectStyles.call(
|
|
55
|
+
this,
|
|
56
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
57
|
+
);
|
|
58
|
+
} : injectStyles;
|
|
59
|
+
}
|
|
60
|
+
if (hook) {
|
|
61
|
+
if (options.functional) {
|
|
62
|
+
options._injectStyles = hook;
|
|
63
|
+
var originalRender = options.render;
|
|
64
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
65
|
+
hook.call(context);
|
|
66
|
+
return originalRender(h, context);
|
|
67
|
+
};
|
|
68
|
+
} else {
|
|
69
|
+
var existing = options.beforeCreate;
|
|
70
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
exports: scriptExports,
|
|
75
|
+
options
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
var _sfc_render = function render() {
|
|
79
|
+
var _vm = this, _c = _vm._self._c;
|
|
80
|
+
_vm._self._setupProxy;
|
|
81
|
+
return _c("div", {
|
|
82
|
+
"class": ["nf-tag", _vm.type ? "nf-tag--".concat(_vm.type) : ""]
|
|
83
|
+
}, [_c("i", {
|
|
84
|
+
staticClass: "circle"
|
|
85
|
+
}), _vm._t("default")], 2);
|
|
86
|
+
};
|
|
87
|
+
var _sfc_staticRenderFns = [];
|
|
88
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(__sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, null, null, null);
|
|
89
|
+
const NfTag = __component__.exports;
|
|
90
|
+
NfTag.install = function(app) {
|
|
91
|
+
app.component("nf-tag", NfTag);
|
|
92
|
+
};
|
|
93
|
+
export {
|
|
94
|
+
NfTag as default
|
|
95
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineComponent<{
|
|
2
|
+
type: {
|
|
3
|
+
type: import("vue-demi").PropType<string>;
|
|
4
|
+
required: true;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
circle: {
|
|
8
|
+
type: import("vue-demi").PropType<boolean>;
|
|
9
|
+
required: true;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
}, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
13
|
+
type: {
|
|
14
|
+
type: import("vue-demi").PropType<string>;
|
|
15
|
+
required: true;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
circle: {
|
|
19
|
+
type: import("vue-demi").PropType<boolean>;
|
|
20
|
+
required: true;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
}>>, {
|
|
24
|
+
type: string;
|
|
25
|
+
circle: boolean;
|
|
26
|
+
}>, {
|
|
27
|
+
default?(_: {}): any;
|
|
28
|
+
}>;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/lib/style/css.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@94ai/nf-theme-chalk/lib/css/nf-tag.css'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@94ai/nf-theme-chalk/lib/nf-tag.scss'
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@94ai/nf-tag",
|
|
3
|
+
"version": "3.1.16",
|
|
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.16",
|
|
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-tag.cjs.js",
|
|
32
|
+
"module": "lib/nf-tag.esm-bundler.js",
|
|
33
|
+
"gitHead": "50cafbf10c6367a75249dfd98a0ec1dbd396eafe"
|
|
34
|
+
}
|