@94ai/nf-variable-select 100.1.2
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 +11 -0
- package/components.d.ts +8 -0
- package/lib/index.d.ts +39 -0
- package/lib/nf-variable-select.cjs.js +38 -0
- package/lib/nf-variable-select.esm-bundler.js +38 -0
- package/lib/nf-variable-select.vue.d.ts +14 -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/index.ts +8 -0
- package/package/nf-variable-select.vue +30 -0
- package/package/style/css.ts +1 -0
- package/package/style/index.ts +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,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-variable-select': {
|
|
4
|
+
type: import("vue-demi").PropType<string>;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
}>>, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
8
|
+
'nf-variable-select': {
|
|
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-variable-select': {
|
|
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-variable-select': {
|
|
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-variable-select': {
|
|
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-variable-select': {
|
|
34
|
+
type: import("vue-demi").PropType<string>;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
} & PluginObject<undefined>;
|
|
39
|
+
export default _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode(".nf-variable-select[data-v-86406e0f] {\n background-color: red;\n height: 300px;\n}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
"use strict";
|
|
14
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
15
|
+
const vueDemi = require("vue-demi");
|
|
16
|
+
const vue2RuntimeHelpers = require("@94ai/vue2-runtime-helpers");
|
|
17
|
+
const __sfc_main = vueDemi.defineComponent({
|
|
18
|
+
name: "nf-variable-select"
|
|
19
|
+
});
|
|
20
|
+
__sfc_main.setup = (__props, __ctx) => {
|
|
21
|
+
__ctx.emit;
|
|
22
|
+
return {};
|
|
23
|
+
};
|
|
24
|
+
const nfVariableSelect_vue_vue_type_style_index_0_scoped_86406e0f_lang = "";
|
|
25
|
+
var _sfc_render = function render() {
|
|
26
|
+
var _vm = this, _c = _vm._self._c;
|
|
27
|
+
_vm._self._setupProxy;
|
|
28
|
+
return _c("div", {
|
|
29
|
+
staticClass: "nf-variable-select"
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
var _sfc_staticRenderFns = [];
|
|
33
|
+
var __component__ = /* @__PURE__ */ vue2RuntimeHelpers.normalizeComponent(__sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "86406e0f", null, null);
|
|
34
|
+
const NfVariableSelect = __component__.exports;
|
|
35
|
+
NfVariableSelect.install = (app) => {
|
|
36
|
+
app.component("nf-variable-select", NfVariableSelect);
|
|
37
|
+
};
|
|
38
|
+
exports.default = NfVariableSelect;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode(".nf-variable-select[data-v-86406e0f] {\n background-color: red;\n height: 300px;\n}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
import { defineComponent } from "vue-demi";
|
|
14
|
+
import { normalizeComponent } from "@94ai/vue2-runtime-helpers";
|
|
15
|
+
const __sfc_main = defineComponent({
|
|
16
|
+
name: "nf-variable-select"
|
|
17
|
+
});
|
|
18
|
+
__sfc_main.setup = (__props, __ctx) => {
|
|
19
|
+
__ctx.emit;
|
|
20
|
+
return {};
|
|
21
|
+
};
|
|
22
|
+
const nfVariableSelect_vue_vue_type_style_index_0_scoped_86406e0f_lang = "";
|
|
23
|
+
var _sfc_render = function render() {
|
|
24
|
+
var _vm = this, _c = _vm._self._c;
|
|
25
|
+
_vm._self._setupProxy;
|
|
26
|
+
return _c("div", {
|
|
27
|
+
staticClass: "nf-variable-select"
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
var _sfc_staticRenderFns = [];
|
|
31
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(__sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "86406e0f", null, null);
|
|
32
|
+
const NfVariableSelect = __component__.exports;
|
|
33
|
+
NfVariableSelect.install = (app) => {
|
|
34
|
+
app.component("nf-variable-select", NfVariableSelect);
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
NfVariableSelect as default
|
|
38
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: import("vue-demi").DefineComponent<{
|
|
2
|
+
'nf-variable-select': {
|
|
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-variable-select': {
|
|
10
|
+
type: import("vue-demi").PropType<string>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
}>>, {}>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/lib/style/css.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@94ai/nf-theme-chalk/lib/css/nf-variable-select.css'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@94ai/nf-theme-chalk/lib/nf-variable-select.scss'
|
package/package/index.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import NfVariableSelect from './nf-variable-select.vue'
|
|
2
|
+
import { Vue2, PluginObject } from 'vue-demi'
|
|
3
|
+
|
|
4
|
+
NfVariableSelect.install = (app: typeof Vue2) => {
|
|
5
|
+
app!.component('nf-variable-select', NfVariableSelect)
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export default NfVariableSelect as typeof NfVariableSelect & PluginObject<undefined>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="nf-variable-select"></div>
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script lang="ts">
|
|
6
|
+
import { defineComponent } from 'vue-demi'
|
|
7
|
+
|
|
8
|
+
export default defineComponent({
|
|
9
|
+
name: "nf-variable-select",
|
|
10
|
+
})
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<script lang="ts" setup>
|
|
14
|
+
const props = defineProps<{
|
|
15
|
+
'nf-variable-select': string;
|
|
16
|
+
}>()
|
|
17
|
+
const emit = defineEmits<{
|
|
18
|
+
(e: 'click', event: Event): void
|
|
19
|
+
}>()
|
|
20
|
+
const emitClick = (e: Event) => {
|
|
21
|
+
e.stopPropagation()
|
|
22
|
+
emit('click', e)
|
|
23
|
+
}
|
|
24
|
+
</script>
|
|
25
|
+
<style lang="scss" scoped>
|
|
26
|
+
.nf-variable-select {
|
|
27
|
+
background-color: red;
|
|
28
|
+
height: 300px;
|
|
29
|
+
}
|
|
30
|
+
</style>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@94ai/nf-theme-chalk/lib/css/nf-variable-select.css'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@94ai/nf-theme-chalk/lib/nf-variable-select.scss'
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@94ai/nf-variable-select",
|
|
3
|
+
"version": "100.1.2",
|
|
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/ui/common-ui.git"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@94ai/nf-theme-chalk": "^100.1.2",
|
|
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-variable-select.cjs.js",
|
|
32
|
+
"module": "lib/nf-variable-select.esm-bundler.js",
|
|
33
|
+
"gitHead": "5b811c0e9d5ed95519222e3a9b744331734feeaf"
|
|
34
|
+
}
|